기본 정보
- 저자
- DOI
- 10.48550/arxiv.2301.00884
- 저널
- arXiv (Cornell University)
- 발행년도
- 2023
- 발행기관
- Cornell University
- 피인용수
- 0
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.48550/arxiv.2301.00884
- 토픽
- Electric and Hybrid Vehicle Technologies
- OpenAlex ID
- W6929136916
평가 내용
- 관련도
- 사업분야
- 산업용 섬유 · (9) 타이어코드
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
Reinforcement learning (RL)-based adaptive cruise control systems (ACC) that learn and adapt to road, traffic and vehicle conditions are attractive for enhancing vehicle energy efficiency and traffic flow. However, the application of RL in safety critical systems such as ACC requires strong safety guarantees which are difficult to achieve with learning agents that have a fundamental need to explore. In this paper, we derive control barrier functions as safety filters that allow an RL-based ACC controller to explore freely within a collision safe set. Specifically, we derive control barrier functions for high relative degree nonlinear systems to take into account inertia effects relevant to commercial vehicles. We also outline an algorithm for accommodating actuation saturation with these barrier functions. While any RL algorithm can be used as the performance ACC controller together with these filters, we implement the Maximum A Posteriori Policy Optimization (MPO) algorithm with a hybrid action space that learns fuel optimal gear selection and torque control policies. The safety filtering RL approach is contrasted with a reward shaping RL approach that only learns to avoid collisions after sufficient training. Evaluations on different drive cycles demonstrate significant improvements in fuel economy with the proposed approach compared to baseline ACC algorithms.
본문 37,250자
본문 펼치기
## Safety Filtering for Reinforcement Learning-based Adaptive Cruise Control
Habtamu Hailemichael <sup>_∗_</sup> Beshah Ayalew <sup>_∗_</sup> Lindsey Kerbel <sup>_∗_</sup>
Andrej Ivanco <sup>_∗∗_</sup> Keith Loiselle <sup>_∗∗_</sup>
_∗_ _Automotive_ _Engineering,_ _Clemson_ _University,_ _Greenville,_ _SC_ _29607,_
_USA_ _(hhailem,_ _beshah,_ _lsutto2)@clemson.edu._
_∗∗_ _Allison_ _Transmission_ _Inc.,_ _One_ _Allison_ _Way,_ _Indianapolis,_ _IN,_
_46222,_ _USA_ _(andrej.ivanco,_ _keith.loiselle)@allisontransmission.com_
Abstract: Reinforcement learning (RL)-based adaptive cruise control systems (ACC) that
learn and adapt to road, traffic and vehicle conditions are attractive for enhancing vehicle
energy efficiency and traffic flow. However, the application of RL in safety critical systems such
as ACC requires strong safety guarantees which are difficult to achieve with learning agents
that have a fundamental need to explore. In this paper, we derive control barrier functions as
safety filters that allow an RL-based ACC controller to explore freely within a collision safe
set. Specifically, we derive control barrier functions for high relative degree nonlinear systems to
take into account inertia effects relevant to commercial vehicles. We also outline an algorithm
for accommodating actuation saturation with these barrier functions. While any RL algorithm
can be used as the performance ACC controller together with these filters, we implement the
Maximum A Posteriori Policy Optimization (MPO) algorithm with a hybrid action space that
learns fuel optimal gear selection and torque control policies. The safety filtering RL approach
is contrasted with a reward shaping RL approach that only learns to avoid collisions after
sufficient training. Evaluations on different drive cycles demonstrate significant improvements
in fuel economy with the proposed approach compared to baseline ACC algorithms.
_Keywords:_ Adaptive cruise control, Safe reinforcement learning, Safety filtering, Control
<u>barrier</u> <u>functions</u>
1. INTRODUCTION
Adaptive cruise control (ACC) systems are one of the increasingly prevalent driver assistance systems for modern
vehicles. An ACC system uses radar, computer vision, or
laser to understand the vehicle’s surrounding and make
control decisions. When another vehicle or object is not in
the sensing range, ACC compensates for the road grade,
friction, and aerodynamic resistances to maintain a speed
set by the driver. When another car or object is in front,
the ACC makes decisions to prevent collision and follow
the preceding vehicle as close as possible to avoid cut-ins.
ACC has been shown to decrease a driver’s workload, and
make traffic flows efficient and safer (Marsden et al., 2001;
Lang et al., 2014).
An effective ACC system should balance the traffic condition of the road, the vehicle performance, and the driver’s
demanded velocity. Currently available PID-based ACC
systems (Canale and Malan, 2003; Chamraz and Balogh,
2018) and proposed MPC-based approaches (Naus et al.,
2008; Yang et al., 2021) are often tuned to balance this
trade-off for various operating environments. Although
’adaptive’ or gain-scheduled versions (Radke and Isermann, 1987) can be sought, the fixed structure of these
approaches limits full adaptation throughout the lifetime
of the vehicle. Furthermore, MPC-based ACC also has
to find a reliable way of predicting the motion of the
leading vehicle for the future horizon. On the other hand,
data-driven reinforcement learning (RL) approaches offer
a mechanism to continuously customize to traffic, road
and vehicle conditions without a predefined control architecture (Li and G¨orges, 2020). In this work, we consider
applications of RL-based ACC to commercial vehicles. In
addition, while traditional ACC is primarily about the two
tasks of speed tracking and maintaining a safe gap, we
consider RL-based ACC (RL ACC for short) to explicitly
optimize fuel economy via gear selection and torque control
policies.
Despite the potential benefits of adaptability and improved performance, RL ACC faces critical safety challenges. These derive from the needs of RL algorithms to
explore in order to learn the optimal policies. RL learns
how good the given state-action pair is after experiencing
it, but for applications like vehicle control, exploration in
an unsafe domain is unacceptable even during (on-road)
training of the RL algorithms. However, thanks to recent
progress in safe RL, different approaches are suggested
to encourage or limit the exploration only in the safe
domain. We briefly mention a few of them. Reward shaping
approaches put large penalties into the performance objective function if constraints are violated. On the other hand,
constrained Markov decision process (CMDP) approaches
assign safety constraint costs to each state-action pair and
limit the total safety constraint cost of a trajectory to
be lower than a certain threshold (Altman, 1999). The
reward shaping and CMDP approaches are implemented
on the performance controller itself to encourage respecting safety constraints but they do not guarantee safety.
Another set of approaches involve the use of safety filters
that impose hard constraints. Such approaches separate
the performance-oriented RL controller, whose only aim is
to optimize the system’s performance objective function,
from the safety filters, which project the unsafe actions
proposed by the performance controller into the safe set.
The safety filters determine the safety condition of the
given state-action pair using the dynamical model of the
system, or they use offline data to learn constraints (Dalal
et al., 2018) and safety indexes (Thananjeyan et al., 2021;
Srinivasan et al., 2020). In this paper, we pursue dynamical
model-based safety guarantees to construct the safe set in
such a way that gives the RL performance controller the
freedom to explore within the safe boundaries. As its training progresses, the RL performance controller eventually
learns the safety boundaries and ceases to demand unsafe
actions (Thananjeyan et al., 2021). Note that even though
it does not interfere with the inner workings, the safety
filter affects control performance by dictating where the
performance controller can operate.
Of the model-based approaches to designing safety filters,
control barrier functions (CBFs) offer light computation
and scalability (Li, 2021). A CBF guarantees safety by
making the controller work in the invariant safe-set defined
by a superlevel set of a continuously differentiable function
_h_ ( _x_ ) : R <sup>_n_</sup> _→_ R. The actions selected by the performance
controllers are projected into the safe set in such a manner
that the proposed actions are modified minimally (Ames
et al., 2019), and no unsafe actions are passed to the
controlled system. Different approaches could be pursued
to specify CBFs with their pros and cons. The intuitive
one is to come up with a handcrafted CBF considering the
dynamics of the system and the action bounds associated
with it (Xu et al., 2018; Ames et al., 2014; Cheng et al.,
2019). In collision avoidance problems, for instance, the
CBF can be derived by considering the maximum deceleration that the system could exert to close a distance
gap. When possible, it is also desirable to progressively
widen the safe set to get the maximal safe domain, a task
currently possible with polynomial plant dynamics and
polynomial CBFs via sum-of-squares (SOS) programming
(Chamraz and Balogh, 2018). Another approach that is
tailored to high relative degree nonlinear dynamical systems such as those involving inertia effects is the use of
exponential CBF (ECBF) (Nguyen and Sreenath, 2016).
In this work, we derive ECBFs to work as safety filters with
our RL-ACC controllers, thereby taking explicit considerations of inertia effects that are important for commercial
vehicles that experience large changes in loading.
The main contributions of this paper are then the derivation and demonstration of CBF-based safe RL-ACC approach for commercial vehicles that optimizes fuel economy. While we derive ECBFs for safety certification, we
note that straight ECBFs (or CBFs in general) assume
unbounded actions, and in their natural form, they might
request actions that are not feasible for the vehicle’s powertrain to meet. We therefore put forward a method to
provide a safety guarantee for a given parameters of ECBF
within the vehicle action limits. Our performance RL-ACC
coordinates traction torque control and gear decisions
considering fuel consumption optimization objectives. The
RL ACC augmented with the safety certificate is trained
and evaluated on different driving cycles, and the vehicle
performance is compared with an RL ACC with rewardshaping approach to safe RL, as well as with a conventional
PID-based ACC.
The rest of the paper is organized as follows. Section
2 describes our derivation of the ECBF as safety filters
for ACC and detail how we address actuation constraints
within them. Section 3 describes the algorithmic details of
our performance RL-ACC. Section 4 discusses results and
discussions, and Section 5 concludes the paper.
2. SAFETY FILTER FOR ACC
We briefly review the definition of CBFs as follows. Details
are given in Hsu et al. (2015). Consider a nonlinear control
affine system:
_x_ ˙ = _f_ ( _x_ ) + _g_ ( _x_ ) _u,._ (1)
where _f_ and _g_ are locally Lipschitz, _x ∈R_ <sup>_n_</sup> is the system
state, _u_ _∈R_ <sup>_m_</sup> is the control inputs. Assume a safe set
defined by _C_ = _{x ∈R_ <sup>_n_</sup> _|h_ ( _x_ ) _≥_ 0 _}_, where _h_ : _R_ <sup>_n_</sup> _→_
_R_ is a continuously differentiable function. Then _h_ is a
control barrier function (CBF) if there exists an extended
class _κ∞_ function _α_ such that for all _x_ _∈_ _Int_ ( _C_ ) =
_{x ∈R_ <sup>_n_</sup> : _h_ ( _x_ ) _>_ 0 _}_ :
_Fr_ = <sup>_<u>ρAcdv</u>_</sup> _<u>h</u>_ <sup>2</sup> + _mvgf_ cos _θ_ + _mvg_ sin _θ_ (5)
2
sup
_u∈U_
[ _Lf_ _h_ ( _x_ ) + _Lgh_ ( _x_ ) _u_ ] _≥−α_ ( _h_ ( _x_ )) _._ (2)
For high relative degree nonlinear affine systems, feedback
linearization could be used to develop exponential CBFs
(ECBF) as detailed in Nguyen and Sreenath (2016). This
is accomplished by transforming (input-output linearizing)
the high relative degree nonlinear systems into a virtual
linear system with new state variable _ηb_ := [ _h_ ( _x_ ) _,_ _h_ <sup>˙</sup> ( _x_ ) _, ·_ _·_
_·, h_ <sup>_r_</sup> ( _x_ )] <sup>_T_</sup>, input _µ_ and output _h_ ( _x_ ):
_η_ ˙ _b_ = _Fηb_ ( _x_ ) + _Gµ,_
(3)
_h_ ( _x_ ) = _Cηb_
where _F_ and _G_ are matrices representing an integrator
chain, and _C_ = [1 _,_ 0 _,_ _·_ _·_ _·,_ 0]. A state feedback controller
can be designed for the transformed system as: _µ_ = _−K_ _αηb_
with a suitable gain vector _Kα_ that makes _F_ _−_ _GKα_
Hurwitz. For a system with relative degree _r_, _µ_ is also _r_ <sup>_th_</sup>
derivative of the output _h_ ( _x_ ), _µ_ = _L_ <sup>_r_</sup> _f_ <sup>_h_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)+</sup> <sup>_Lg_</sup> <sup>�L</sup> <sup>_r_</sup> _f_ <sup>_−_</sup> <sup>1</sup> _h_ ( _x_ ) _u_ .
If there exists a state feedback gain _Kα_ that makes _µ_ _≥_
_−Kαηb_ ( _x_ ) for all states, then one can show that _h_ ( _x_ ) is
an exponential control barrier function (see Nguyen and
Sreenath (2016)).
The ACC part of the present problem is modelled with the
state variables of separation distance _z_, the velocity of the
host vehicle _vh_ and the velocity of the leading vehicle _vl_ .
The corresponding state equations are:
_z_ ˙ = _vl −_ _vh_ (4a)
_v_ ˙ _l_ = _al_ (4b)
_<u>Tt</u>_
_v_ ˙ _h_ =
_rwmv_
_−_ <sup>_<u>Fr</u>_</sup> <sup><u>(</u></sup> <sup>_<u>vh, mv, θ</u>_</sup> <sup><u>)</u></sup>
_mv_
(4c)
where _Fr_ is the total resistance force including gravitational, rolling and aerodynamic resistances, and _Tt_ is the
traction torque at the wheels. The parameters _cd_, _f_, _θ_, _mv_,
_ρ_, _Av_, _rw_, _al_ are aerodynamic coefficient, rolling resistance
coefficient, road grade, mass of the vehicle, density of
air, frontal area of the vehicle, radius of the wheels, and
acceleration of the leading vehicle, respectively.
We observe that the above model can be readily put in the
control affine form (1). Given a collision safety objective,
we seek the separation distance _z_ to always be above a
specified minimum inter-vehicle distance _z_ 0. To this end,
we define the control barrier function (CBF) as the output
_h_ ( _x_ ) = _z_ _−_ _z_ 0. Considering that the control actuation is
the traction torque _Tt_, we have a control affine system of
relative degree two. In physical terms, the safety objective
is on position while traction torque directly manipulates
acceleration. Inertia effects come into play and must be
accounted for. The input-output linearization into the
form (3) then gives:
_h_ ˙ ( _x_ ) = _vl −_ _vh,_ (6)
safety. Otherwise, the _Kα_ needs to be changed until this
is satisfied.
Algorithm 1 An algorithm to enforce system bounds on
<u>a</u> <u>virtual</u> <u>linear</u> <u>system</u>
_<u>η</u>_ _<u>←</u>_ _<u>η</u>_ 0
_µ ←_ _µ_ 0
while _t ≤_ _t∞_ do
_t ←_ _t_ + ∆ _t_
if _µ_ _<_ _µT max−xrm_ then
_µ ←_ _µT max−xrm_
else if _µ_ _> µT min−xrm_ then
_µ ←_ _µT min−xrm_
end if
_h_ ( _x_ ( _t_ )) _←_ _C_ ( _e_ <sup>_F_</sup> <sup>∆</sup> <sup>_t_</sup> _η_ 0 + _e_ <sup>_F_</sup> <sup>∆</sup> <sup>_t_</sup> <sup>�</sup> 0 <sup>∆</sup> <sup>_t_</sup>
_h_ ( _x_ ( _t_ )) _←_ _C_ ( _e_ <sup>_F_</sup> <sup>∆</sup> <sup>_t_</sup> _η_ 0 + _e_ <sup>_F_</sup> <sup>∆</sup> <sup>_t_</sup> <sup>�</sup> 0 <sup>∆</sup> <sup>_t_</sup> _e_ <sup>_−F τ_</sup> _Gµd_ ( _τ_ ))
_µ_ _←−kα_ 1 _h_ ( _x_ ) _−_ _kα_ 2 _h_ <sup>˙</sup> ( _x_ )
_η_ 0 _←_
- _h_ ( _x_ )�
_h_ ˙ ( _x_ )
_µ_ = _h_ <sup>¨</sup> ( _x_ ) = <sup>_<u>Fr</u>_</sup> <sup><u>(</u></sup> <sup>_<u>vh, mv, θ</u>_</sup> <sup><u>)</u></sup>
_mv_
_<u>Tt</u>_
+ _al −_
_mvrw_
_,_ (7)
<u>end</u> <u>while</u>
Once the suitable gain vector _Kα_ is selected, the ECBF
safety constraint enforces safety by projecting the action
proposed by the outputs of the RL controller’s actor
network _Ta_ ( _s_ ) (see next section) to the control traction
torque _Tt_ in a way that introduces minimal changes to it.
This is done by posing and solving the quadratic program:
_−K_ _αηb_ ( _x_ ) = _−kα_ 1 ( _z −_ _z_ 0) _−_ _kα_ 2 ( _vl−vh_ ) (8)
We now compute some bounds for the given control input
_µ_ considering actuation limits on the traction torque ( _Tmin_
and _Tmax_ ). For a given acceleration of the preceding
vehicle ( _al_ ) and velocity of the host ( _vh_ ), the feasible
bounds of _µ_ are given as
_Tt_ <sup>_∗_</sup>
_t_ <sup>_∗_</sup> <sup>= arg min</sup>
<u>1</u>
2 <sup>_∥Tt −_</sup> <sup>_Ta_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup> <sup>_∥_</sup> <sup>2</sup>
_Tt_
s.t. _al_ + <sup>_<u>Fr</u>_</sup> <sup><u>(</u></sup> <sup>_<u>vh, mv, θ</u>_</sup> <sup><u>)</u></sup>
_mv_
_<u>Tt</u>_
_−_
_mvrw_
_≥−kα_ 1 ( _z −_ _z_ 0)
(10)
_µTmin/max_ = _al_ + <sup>_<u>Fr</u>_</sup> <sup><u>(</u></sup> <sup>_<u>vh, θ, mv</u>_</sup> <sup><u>)</u></sup>
_mv_
_−_ <sup>_Tmin/max_</sup>
_mvrw_
(9)
_−_ _kα_ 2 ( _vl −_ _vh_ )
3. VEHICLE ENVIRONMENT AND RL ACC
The powertrain controller is modeled as Markov decision
process (MDP) consisting of states _s_, actions _a_, a reward
function _r_ ( _s, a_ ), and discounting factor _γ_ . The probability
of action choices is policy _π_ ( _a|s,_ _θ_ ) where _θ_ denotes the
parameters of the deep neural network used to approximate the policy. The host vehicle velocity _vl_, the relative
velocity between the preceding and host vehicles _vrel_,
the separation distance between the vehicles _z_, the gear
_ng_, the mass of the vehicle _mv_, the road grade _θ_, the
driver demanded velocity _vset_ and a flag to show if the
vehicle is in ACC sensor range _f_ constitute the states
of the RL agent, _s_ = _{vl, vrel, z, ng,mv, θ, vset, f_ _}_ . The
RL performance controller is designed to perform both
traction torque _Ta_ control and gear change selection ∆ _ng_,
i.e. _a_ = _{Ta,_ ∆ _ng}_ . As shown in Fig.1, the proposed _Ta_ is
filtered by the ECBF safety layer to safe traction torque
demand _Tt_ (10). The engine torque and engine speed that
brings about this wheel traction torque are then calculated
utilizing transmission ratios of the selected gear and the
final drive, and the associated fuel rate is read from the
fuel map. Notice that while the RL controller’s actions are
_Ta_ and ∆ _ng_, the ECBF safety filter does not use ∆ _ng_ in
the safety constraint. However, taking into account that
gear selection is crucial for fuel economy and driver accommodation, it is an integral part of the RL performance
controller.
The filtered traction torque _Tt_ and the gear change ∆ _ng_
actions are implemented in the vehicle environment, and
For a given gain vector _Kα_ = [ _kα_ 1 _,_ _kα_ 2], ECBF guarantees safety if the proposed state feedback control,
_−kα_ 1 ( _z −_ _z_ 0) _−_ _kα_ 2 ( _vl −_ _vh_ ), is within the virtual linear
system action bound [ _µT max,_ _µT min_ ]. In general application cases, however, this bound may not be respected.
Nevertheless, if _Kα_ is chosen so that the poles are placed
sufficiently to the left in s-plane, the above ECBF could
still bound the safe set. Safety assurance for such pole
selections could be achieved by investigating the evolution
of the CBF control term _h_ ( _x_ ) in worst-case situation where
the linear virtual model is initialized with extreme possible
_η_ 0 _,xrm_, and then the possible limiting torque actions are
applied. For a given minimum separation distance target
and maximum downhill road grade, this is equivalent to
applying the maximum possible traction torque output
of the performance RL-ACC agent, with the host vehicle
model (of largest loading) initialized in with the maximum
possible velocity while the preceding vehicle is under its
maximum deceleration. This extreme conditions gives the
feasible _µ_ bounds as _µT min−xrm_ and _µT max−xrm_ using
equations (9).
To capture the evolution of _h_ ( _x_ ) under these extreme
conditions, a simulation rollout is discretized into timestep
∆ _t_, and the action _µ_ (saturated with _µT min−xrm_ and
_µT max−xrm_ ) held piecewise constant. Algorithm 1 shows
how this is implemented by integrating the virtual system
(3). If the _h_ ( _x_ ) from this simulation is positive at infinity
(or after some finite time), the selected _Kα_ guarantees
sampled (13). In addition to that, it uses softmax activation at the output layer with three choices for the
gear change decision, analogous to the available gear
changes ∆ _n_ = _{_ 1 _,_ 0 _, −_ 1 _}_ ( _upshift, nochange, downshift_ ).
Categorical sampling is then used to obtain the gear
change policy (14). Assuming independence between the
continuous _π_ _θ_ <sup>_T_</sup> <sup>(</sup> <sup>_Ta|s_</sup> <sup>)</sup> <sup>and</sup> <sup>discrete</sup> <sup>_π_</sup> _θ_ <sup>_g_</sup> <sup>(∆</sup> <sup>_ng|s_</sup> <sup>)</sup> <sup>policies,</sup> <sup>the</sup>
total policy could be factorized as (15) for combine action
_a_ = _{Ta,_ ∆ _ng}_ .
_π_ _θ_ <sup>_T_</sup> ( _Ta|s_ ) <sup>=</sup> <sup>_N_</sup>
- _µ_ _θ_ ( _s_ ) _, σ_ _θ_ <sup>2</sup>
- (13)
_θ_ <sup>2</sup> <sup>(</sup> <sup>_s_</sup> <sup>)</sup>
_π_ _θ_ <sup>_g_</sup> <sup>(∆</sup> <sup>_ng|s_</sup> <sup>) =</sup> <sup>_Cat_</sup> <sup>(</sup> <sup>_α_</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_s_</sup> <sup>))</sup> <sup>_, ∀s_</sup>
3
_k_ =1
_αk,_ _θ_ ( _s_ ) = 1 (14)
Fig. 1. Training RL agent for ACC
the suitability of the actions is measured by the reward
function. The reward is designed to accomplish the in
range and out of range tasks, and different performance
objectives within each task are tuned by reward weights
( _w_ ). When there is not a vehicle present in the sensing
range ( _z_ _> zsr_ ), as shown in (11), the reward structure
requires the vehicle to maintain the driver-set velocity and
concurrently balances the fuel consumption and smooth
torque change considerations. When there is a vehicle in
the sensing range, on the other hand, the reward aims to
maintain a close distance from the preceding vehicle, as
shown in (12). In such proximity, in addition to smooth
torque change and fuel consumption considerations, the
reward _ros_ discourages the host vehicle from overspeeding
beyond the driver demanded velocity ( _vset_ ). Gear hunting
and the associated rough vehicle operation are mitigated
by including a gear reward term weighted by _wg_ .
_π_ _θ_ ( _a|s_ ) = _π_ _θ_ <sup>_T_</sup> <sup>(</sup> <sup>_Ta|s_</sup> <sup>)</sup> <sup>_π_</sup> _θ_ <sup>_g_</sup> <sup>(∆</sup> <sup>_ng|s_</sup> <sup>))</sup> (15)
In the policy improvement phase, MPO samples from the
Q-function for different actions and update the actornetwork parameters to output actions that maximize the
action values _Q_ ( _s, a_ ). This is accomplished by optimizing the likelihood function of acting optimally using the
expectation-maximization algorithm ( see Neunert et al.
(2020); Abdolmaleki et al. (2018)). The policy evaluation
phase of the training fits the Q-function _Qθ_ ( _s, a, φ_ ) of
the critic network, with parameters _φ_, by minimizing the
square loss of the current _Qθ_ ( _s, a,_ _φ_ ) and a target defined
by retrace sampling _Q_ <sup>_ret_</sup> _t_ (Munos et al., 2016).
_π_ _θ_ ( _a|s_ ) = _π_ _θ_ <sup>_T_</sup>
_θ_ <sup>_T_</sup> <sup>(</sup> <sup>_Ta|s_</sup> <sup>)</sup> <sup>_π_</sup> _θ_ <sup>_g_</sup>
<sup>_ret_</sup> _t_ (Munos et al., 2016).
�2
(16)
min _φ_
min _φ_ <sup>_L_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>) = min</sup> _φ_
_φ_ <sup>E(</sup> <sup>_s,a_</sup> <sup>)</sup> <sup>_∼R_</sup>
- _Q_ _θ_ ( _s, a|_ _φ_ ) _−_ _Q_ <sup>_ret_</sup> _t_
_m_ ˙ _<u>f</u>_
_mf,max_ + _wT_ 0 _._ 1
_r_ = _wv_ 0 _._ 1
_|vh−vset|_
_Vrel,max_ + _wf_ 0 _._ 1
_<u>|</u>_ <u>∆</u> _<u>Te</u>_ _<u>|</u>_
_Te,max_ +
4. RESULTS AND DISCUSSIONS
The above RL ACC with the ECBF safety filter is applied
to a model of medium duty truck in urban and highway
driving conditions. The actor and critic networks are constructed with three hidden layers, and each layer consists
of 256 nodes. The simulation uses a 10-speed automated
manual transmission (AMT) truck that has a 5 to 10
tons weight range. The preceding vehicle follows Federal
Test Procedure (FTP-75) drive cycle for the urban driving training, while for highway driving, a combination of
Highway Fuel Economy (HWFET) and ArtMw130 cycles
are used in succession (Barlow et al., 2009). Once trained,
we will use different drive cycles for evaluation as will be
described below.
In each simulation step, as shown in Fig.1, the actor
network proposes the torque and the gear actions for a
given state which will be filtered by the ECBF safety
layer. The vehicle environment then executes the safe
actions, and the associated rewards are calculated. To
accommodate the different objectives of each task, the
reward is structured with weights of [ _wv_ = 0 _._ 675 _, wf_ =
0 _._ 175 _, wT_ = 0 _._ 075 _, wg_ = 0 _._ 075] for in range, and [ _wz_ =
0 _._ 325 _, wf_ = 0 _._ 175 _, wos_ = 0 _._ 35 _, wT_ = 0 _._ 075 _, wg_ = 0 _._ 075]
for out of range conditions. The state, action and rewards
are stored in the memory buffer, and afterward, batches
of these data are used to train the networks using the
HMPO algorithm. In order to prevent RL from learning
the specific drive cycles, the vehicles are initialized in
random separation distance along with the addition of
noise to the velocity profile of the preceding vehicle. The
weight fluctuations are considered by varying the truck
weight within and between training episodes.
(11)
(12)
_wg_ 0 _._ 1
_|_ ∆ _ng_ _|_
_ng,max_
_m_ ˙ _<u>f</u>_
_mf,max_ + _wT_ 0 _._ 1
_<u>|</u>_ <u>∆</u> _<u>Te</u>_ _<u>|</u>_
_Te,max_ +
_r_ = _wz_ 0 _._ 1
_ZsrZ_ + _wf_ 0 _._ 1
_wg_ 0 _._ 1
_|_ ∆ _ng_ _|_
_ng,max_ + _ros_
_vh−vset_
where _ros_ = _wos_ _if_ _vh_ _≤_ _vset,_ _else_ : _ros_ = _wos_ 0 _._ 1 _vrel,max_,
_m_ ˙ _f_ is the fuel rate and _Te_ is the engine torque.
To accommodate the continuous traction torque and the
discrete gear selection, Hybrid Maximum A Posteriori
Policy Optimization (HMPO) is found to be a good fit
for the RL training algorithm (Kerbel et al., 2022; Neunert
et al., 2020; Abdolmaleki et al., 2018). In addition to being
scalable and robust like state of the art Proximal Policy
Optimization (PPO) (Schulman et al., 2017) and TrustRegion Policy Optimization (TRPO) (Schulman et al.,
2015) algorithms, the fact that it is off-policy makes it
data efficient to apply it to the real world RL ACC
trainings. The RL agent comprises of an actor (parameterized by _θ_ ) and a critic (parameterized by _φ_ ) networks,
in which the former determines the control policy for
a given state _π_ ( _s|_ _θ_ ) and the latter evaluates these actions by providing the associated action values _Q_ ( _s, a|_ _φ_ ).
The actor network outputs the mean and variance of
a Gaussian distribution, from which traction torque is
During training, because of the careful choice of the gain
vector _Kα_ = [0 _._ 2 _,_ 5] as per section 2, the vehicle never
crashes nor comes within safe distance _z_ 0. As the training
progresses, the RL learns to operate near the driver set
velocity when it is out of range and follows the preceding
vehicle more and more closely when it is in range. Even
though it is not provided with the engine efficiency map,
as exhibited by the improvement of MPG with training,
the RL network eventually learns the fuel optimal gear and
torque actions.
Table 1. Vehicle environment and RL hyperpa
rameter setting
<u>Vehicle</u> <u>Parameters</u> <u>MPO</u> <u>Hyperparameters</u>
Mass 5 - 10 tons Actor, critic learning rate 10 <sup>_<u>−</u>_</sup> <sup><u>4</u></sup> _,_ 10 <sup>_<u>−</u>_</sup> <sup><u>5</u></sup>
_Au_ 7 _._ 71 _m_ <sup>2</sup> Dual constraint 0.1
_Cd_ 0 _._ 08 Retrace steps 15
_rw_ 0 _._ 498 KL constraints _ϵµ, ϵσ, ϵd_ 0 _._ 1 _,_ 0 _._ 001 _,_ 0 _._ 1
_f_ 0 _._ 015 _αd, αc_ 10
_<u>zsr</u>_ <u>350</u> _<u>γ</u>_ <u>0.99</u>
Even if it is not practical for safety critical systems, a
reward shaping approach of safeguarding safety is considered to compare against the ECBF-based safety filtering.
A penalty of _rs_ = _−_ 1 is added to the reward function
when the host approaches closer than the minimum safe
distance limit _z_ 0 and, in the situation of a crash, the
penalty is enlarged to _rc_ = _−_ 10. Due to these safety
violation penalties, unsafe actions reduce with training,
and eventually, the agent learns to maximize the reward
safely. In addition to the reward shaping approach, the
conventional PID ACC is used as a baseline which, like
in the case of RL, is designed by dividing the control into
phases for the in range and out of range conditions (Canale
and Malan, 2003). The traction torque _Tt_ request is given
by PID controller and an optimal gear is chosen based on
the gear with the lowest fuel rate given the desired traction
torque and vehicle velocity (Yoon et al., 2020; Kerbel et al.,
2022).
After the RL ACC with ECBF is trained, its performance
is evaluated and compared with PID ACC and RL ACC
with reward shaping counterparts on a 9-ton truck in
urban and highway driving conditions. For the urban case,
the preceding vehicle follows the ArtUrban drive cycle,
and the driver demanded velocity _vset_ is set to be 15 _m/s_ .
Similarly, a _vset_ of 25 _m/s_ is used for highway driving, and
to better capture different velocity profiles in the highway
situation, the preceding vehicle follows a combination of
ArtRoad and ARTMw150. The initial separation distance
between the vehicles is 1500 _m_ in both cases.
In both driving conditions, the RL ACC successfully
meets the in range as well as out of range objectives
and, most importantly, safety constraints are respected.
Fig.2 shows the RL ACC has a similar velocity profile
to its PID ACC counterpart for the most part of the
simulation. However, when it comes to gear selection, the
RL ACC tends to operate at higher gears. As summarised
in Table 2, for highway driving, the RL ACC exhibited
an MPG improvement of 8 _._ 3%, whereas, in the case of
urban driving, it has 7 _._ 9% higher MPG than the PID
ACC baseline. When the preceding vehicle is in range,
the RL ACC is less susceptible to cut-in as it follows the
preceding vehicle closer, shown by the lower mean in range
Fig. 2. Simulation of separation distance, velocity, and gear
profiles of RL and PID ACC controllers in a highway
driving.
separation distance _zir_ . Moreover, it is possible to see that
the RL ACC with ECBF filter and the RL ACC with
reward shaping arrangements achieve equivalent levels of
fuel economy and in range car following performances.
Table 3 shows the performance comparison with weight
fluctuation in which the vehicle’s weight ranges from 5 to
10-tons. The RL ACC maintains higher MPG than the
PID ACC throughout the given weight range, and the
separation distance is not significantly influenced.
Table 2. Performance comparison between PID
ACC, RL ACC with ECBF and RL ACC with
reward shaping
Highway driving Urban driving
<u>ACC</u> <u>PID</u> <u>RL</u> <u>RL</u> <u>PID</u> <u>RL</u> <u>RL</u>
Safety - ECBF Reward - ECBF
<u>layer</u> <u>shaping</u>
Safety - ECBF Reward - ECBF Reward
<u>layer</u> <u>shaping</u> <u>shaping</u>
MPG 8.6 9.3 9.31 6.8 7.35 7.38
(-) (8.31%) (8.37%) (-) (7.9%) (8.4%)
- ECBF Reward
<u>shaping</u>
MPG 8.6 9.3 9.31 6.8 7.35 7.38
(-) (8.31%) (8.37%) (-) (7.9%) (8.4%)
_<u>Zir</u>_ <u>(</u> _<u>m</u>_ <u>)</u> <u>95</u> <u>74</u> <u>73</u> <u>42</u> <u>39</u> <u>38</u>
9.3
(8.31%)
9.31
(8.37%)
6.8
(-)
7.35
(7.9%)
5. CONCLUSION
In this paper, an exponential control barrier functionbased safety filter is employed to instill safety into RL
based ACC system by projecting the learning exploration
to a safe set. Since practical systems operate with bounded
actions, we proposed an approach to verify the safety of a
given ECBF design by forward simulating in consideration
of worst case scenarios. After being filtered by this ECBF,
the traction torque and gear change actions proposed by
the RL-based ACC are implemented on a simulated vehicle environment and the associated rewards are observed.
The RL networks are trained using Hybrid Maximum A
Table 3. Perandomizedof PID ACC and RL
ACC with vehicle mass fluctuation
Weight
<u>(tons)</u>
5 6 7 8 9 10
RL
with
<u>ECBF</u>
MPG 10.58
(10.9%)
MPG 10.58 10.38 9.99 9.61 9.3 8.95
(10.9%) (11.6%) (9.6%) (8.3%) (8.31%) (7.6%)
_<u>Zir</u>_ <u>(</u> _<u>m</u>_ <u>)</u> <u>67</u> <u>69</u> <u>73</u> <u>75</u> <u>74</u> <u>77</u>
10.38
(11.6%)
9.99
(9.6%)
9.61
(8.3%)
9.3
(8.31%)
MPG 9.54 9.3 9.11 8.87 8.6 8.32
PID
_<u>Zir</u>_ <u>(</u> _<u>m</u>_ <u>)</u> <u>95</u> <u>95</u> <u>94</u> <u>95</u> <u>95</u> <u>96</u>
Posteriori Policy Optimization (HMPO) algorithm that
accommodates the continuous traction torque and discrete
gear change actions. Evaluation on a medium-duty truck
shows that the RL ACC fulfilled the velocity objectives
and, most importantly, respected the safety constraints.
Compared to PID ACC, the RL ACC augments MPG by
8 _._ 3% in highway driving conditions when the preceding
vehicle follows a combination of ArtRoad and ARTMw150
drive cycles, and by 7 _._ 9% in urban driving conditions when
the preceding vehicle follows ArtUrban drive cycle. Moreover, the RL ACC learns to handle weight fluctuations
and maintains high performance throughout the vehicle’s
weight range.
The current algorithm training and evaluations are performed on standard driving cycles. Future work will focus
on using randomized traffic data and measurement noise to
assess the performance and robustness of RL ACC in even
more realistic driving conditions. In addition, future work
will also look at less conservative methods of accounting
for uncertainties (not worst-case) in ECBF design.
REFERENCES
Abdolmaleki, A., Springenberg, J.T., Tassa, Y., Munos,
R., Heess, N., and Riedmiller, M. (2018). Maximum a
posteriori policy optimisation. _6th_ _International_ _Con-_
_ference_ _on_ _Learning_ _Representations_ .
Altman, E. (1999). Constrained Markov Decision Processes .
Ames, A.D., Coogan, S., Egerstedt, M., Notomista, G.,
Sreenath, K., and Tabuada, P. (2019). Control barrier
functions: Theory and applications. _2019 18th European_
_Control_ _Conference,_ _ECC_ _2019_, 3420–3431.
Ames, A.D., Grizzle, J.W., and Tabuada, P. (2014). Con
trol barrier function based quadratic programs with
application to adaptive cruise control. _Proceedings_ _of_
_the_ _IEEE_ _Conference_ _on_ _Decision_ _and_ _Control_, 2015Febru(February), 6271–6278.
Barlow, T.J., Latham, S., Mccrae, I.S., and Boulter, P.G.
(2009). A reference book of driving cycles for use in the
measurement of road vehicle emissions.
Canale, M. and Malan, S. (2003). Robust design of
PID based ACC S and G systems. _IFAC_ _Proceedings_
_Volumes_, 36(18), 333–338.
Chamraz, S. and Balogh, R. (2018). Two approaches to
the adaptive cruise control (ACC) design. _Proceedings_
_of the 29th International Conference on Cybernetics and_
_Informatics,_ _K_ _and_ _I_ _2018_, 2018-Janua(2), 1–6.
Cheng, R., Orosz, G., Murray, R.M., and Burdick, J.W.
(2019). End-to-end safe reinforcement learning through
barrier functions for safety-critical continuous control
tasks. _33rd_ _AAAI_ _Conference_ _on_ _Artificial_ _Intelligence,_
_AAAI_ _2019_, 3387–3395.
Dalal, G., Dvijotham, K., Vecerik, M., Hester, T., Padu
raru, C., and Tassa, Y. (2018). Safe Exploration in
Continuous Action Spaces.
Hsu, S.C., Xu, X., and Ames, A.D. (2015). Control barrier
function based quadratic programs with application to
bipedal robotic walking. _Proceedings_ _of_ _the_ _American_
_Control_ _Conference_, 2015-July, 4542–4548.
Kerbel, L., Ayalew, B., Ivanco, A., and Loiselle, K. (2022).
Driver Assistance Eco-driving and Transmission Control
with Deep Reinforcement Learning.
Lang, D., Stanger, T., Schmied, R., and del Re, L. (2014).
Predictive Cooperative Adaptive Cruise Control: Fuel
Consumption Benefits and Implementability. 163–178.
Li, G. and G¨orges, D. (2020). Ecological Adaptive Cruise
Control for Vehicles with Step-Gear Transmission Based
on Reinforcement Learning. _IEEE_ _Transactions_ _on_
_Intelligent_ _Transportation_ _Systems_, 21(11), 4895–4905.
Li, Z. (2021). Comparison between safety methods control
barrier function vs. reachability analysis. _arXiv_ _preprint_
_arXiv:2106.13176_ .
Marsden, G., McDonald, M., and Brackstone, M. (2001).
Towards an understanding of adaptive cruise control.
_Transportation_ _Research_ _Part_ _C:_ _Emerging_ _Technolo-_
_gies_, 9(1), 33–51.
Munos, R., Stepleton, T., Harutyunyan, A., and
Bellemare, M.G. (2016). Safe and Efficient OffPolicy Reinforcement Learning. _Advances_ _in_
_Neural_ _Information_ _Processing_ _Systems_, 1054–
1062. doi:10.48550/arxiv.1606.02647. URL
`https://arxiv.org/abs/1606.02647v2` .
Naus, G., Van Den Bleek, R., Ploeg, J., Scheepers, B., Van
De Molengraft, R., and Steinbuch, M. (2008). Explicit
MPC design and performance evaluation of an ACC
stop and go. _Proceedings_ _of_ _the_ _American_ _Control_
_Conference_, 224–229.
Neunert, M., Abdolmaleki, A., Wulfmeier, M., Lampe,
T., Springenberg, J.T., Hafner, R., Romano, F., Buchli,
J., Heess, N., and Riedmiller, M. (2020). ContinuousDiscrete Reinforcement Learning for Hybrid Control in
Robotics. (CoRL).
Nguyen, Q. and Sreenath, K. (2016). Exponential Con
trol Barrier Functions for enforcing high relative-degree
safety-critical constraints. _Proceedings_ _of_ _the_ _American_
_Control_ _Conference_, 2016-July(3), 322–328.
Radke, F. and Isermann, R. (1987). A parameter-adaptive
PID-controller with stepwise parameter optimization.
_Automatica_, 23(4), 449–457.
Schulman, J., Levine, S., Moritz, P., Jordan, M., and
Abbeel, P. (2015). Trust region policy optimization.
_32nd_ _International_ _Conference_ _on_ _Machine_ _Learning,_
_ICML_ _2015_, 3, 1889–1897.
Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and
Klimov, O. (2017). Proximal Policy Optimization Algorithms. 1–12.
Srinivasan, K., Eysenbach, B., Ha, S., Tan, J., and Finn,
C. (2020). Learning to be Safe: Deep RL with a Safety
Critic. 1–16.
Thananjeyan, B., Balakrishna, A., Nair, S., Luo, M.,
Srinivasan, K., Hwang, M., Gonzalez, J.E., Ibarz, J.,
Finn, C., and Goldberg, K. (2021). Recovery RL: Safe
Reinforcement Learning with Learned Recovery Zones.
_IEEE_ _Robotics_ _and_ _Automation_ _Letters_, 6(3).
Xu, X., Grizzle, J.W., Tabuada, P., and Ames, A.D.
(2018). Correctness Guarantees for the Composition
of Lane Keeping and Adaptive Cruise Control. _IEEE_
_Transactions_ _on_ _Automation_ _Science_ _and_ _Engineering_,
15(3), 1216–1229.
Yang, Z., Wang, Z., and Yan, M. (2021). An Optimization
Design of Adaptive Cruise Control System Based on
MPC and ADRC. _Actuators_ _2021,_ _Vol._ _10,_ _Page_ _110_,
10(6), 110.
Yoon, D.D., Ayalew, B., Ivanco, A., and Loiselle, K.
(2020). Predictive kinetic energy management for an
add-on driver assistance eco-driving of heavy vehicles.
_IET_ _Intelligent_ _Transport_ _Systems_, 14(13), 1824–1834.
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.