• 沒有找到結果。

Reinforcement Learning Based Adaptive Energy Management on Diverse Applications for Embedded System

N/A
N/A
Protected

Academic year: 2022

Share "Reinforcement Learning Based Adaptive Energy Management on Diverse Applications for Embedded System"

Copied!
2
0
0

加載中.... (立即查看全文)

全文

(1)

Reinforcement Learning Based Adaptive Energy Management on Diverse Applications for Embedded System

Cheng-Ting Liu, Roy Chaoming Hsu*

Dept. of Computer Science and Information Engineering National Chiayi University

Chiayi, Taiwan e-mail: [email protected]* Abstract—Use of adaptive energy management strategies is

essential in improving energy utilization, efficiency, and sustainable operation of embedded systems. Accordingly, this paper presents embedded system applications, which are suitable for employing adaptive energy management utilized reinforcement learning. We proposed rewarding function for embedded system applications in stimulating the learning agent to select the best strategy by learning from environment the agent situated. The proposed adaptive energy management applications are for battery-aware embedded systems of energy harvest wireless sensor network and human-electric hybrid bicycle. Future work of the extended study will focus on applying the reinforcement learning based adaptive energy management for hybrid electric vehicle, and designing a unified rewarding function for diverse applications.

Keywords- reinforcement learning; adaptive energy manegement;

embeded system; wirless sensor network; human-electric hybrid bicycle; hybrid electric vehicle

I. INTRODUCTION

Study of reinforcement learning (RL) is originally appeared in 1994 handbook of Brain Theory and Neural Networks by Barto [1]. In RL, as shown in Fig. 1, a decision-making agent takes actions in the environment the agent situated and receives reward for its actions in trying to solve a problem. After a set of trial-and-error runs, the agent gradually learns the best policy, which is the sequence of actions that maximize the total reward. Recently, Singh et al.

pursued the RL study using an evolutionary perspective [2], which addressed that the intrinsic motivation of RL plays a key role in the human’s intellectual growth and mental development. The framework of RL has been widely applied to many applications such as control problem, optimize problem, resource management problem, etc.

Fig. 1. Agent-environment interactions in reinforcement learning For unknown environment, the agent would repeatedly count the reward during a serial of trials and the optimized policy would be obtained after a number of trials. In the beginning of the learning process, the agent is unable to

make a for sure decision, the exploration strategy is, hence, required for retrieving the sufficient reward information on each state, while the exploitation is then adopted in deciding the actions with higher reward and higher probability on certain state in the later part of learning process. In such a case, the softmax function is utilized for the strategy of exploration-exploitation in most applications. In the case of nondeterministic environment or state transition model, where the transition probability is unknown or unsure, a certain action for the next state can not be precisely decided by observing the current state. However, the Q-learning algorithm can be utilized in recording the accumulative reward and supporting exploration-exploitation strategy to decide the near best policy or action.

In Q-learning, the accumulative reward is function of state, s, and action, a, and the learner iteratively updates the state-action value with the updating equation shown below,

Q(st,at)=(1-η)Q(st,at)+η[rt+1max∀at+1∈AQ(st+1,at+1)] (1) where Q(st, at) is the accumulative reward standing at state s and take an action a at step t, and the parametersη and γ, are the learning rate and discount rate, respectively , with value between 0 and 1. rt+1 is a reward value which is obtained by taking action at and then making transition from state st to state st+1. Normally the state-action values are stored in a table, named Q-table, as the reference for learner to take the next action. In this paper, how RL is applied as a mean of adaptive energy management for embedded system is discussed for energy harvesting wireless sensor network (WSN) and human-electric hybrid bicycle as below.

II. CASE STUDY

A. Manitaining Energy Neutrility for Energy Harvest Wireless Sensor Network

Study of the dynamic power management for energy harvesting sensor node has been proposed by [3]. We approach this problem by abstract architecture is organized by two parts as shown in Fig. 2. A reinforcement learning based dynamic power management for energy harvesting wireless sensor network is proposed by Hsu et al. [4], which was our previous work. The agent of the reinforcement learning is employed in the main management unit of Fig. 2 to learn from the environment information of enode, eharvest, and eb, and to adaptively decide and execute the action

Agent

State Reward Action

Environment

(2)

characterized by the desired operational duty-cycle. During the learning, the agent is encouraged to select the action with positive reward and a series of beneficial actions will be iteratively generated such that a better energy management performance is gradually achieved.

Fig. 2. System architecture for the sensor node

State space of the environment is defined as a set of state.

The domination state is the state of “energy neutrality”, and this term is first defined by Kansal et al. [5]. The state of energy neutrality (SD)is defined as the difference between eharvest and enode at the end of the same sensing period.

The action space is defined on the controllable variable of duty-cycle. Hence, an action with higher value means a higher operational duty cycle is assigned to the sensor node;

where more energy would be consumed consequently.

In reinforcement learning, the reward value is utilized to evaluate the performance of decided action. The distance of energy neutrality is a good candidate of reward by measuring the degree it close to zero. The harvesting energy is stored in the energy storage such that the remaining energy storage must be taking into consider in defining the immediate reward. By considering the effect of the remained energy in the storage, the equation of immediate reward r'D can be derived by (2)

rD = -|SD| / (emaxharvest- eminharvest) (2) r'D = -rD (1-2 eb / EB)

The positive distance of energy neutrality would induce the positive reward, while the storage remained energy stands on higher level. However, the positive distance would induce the negative reward, while the remained energy stands on lower level.

B. Comfortof Riding for Human-electric Hybrid Bicycle A reinforcement learning based power assisted method for pedelec, a human-electric hybrid bicycle, is proposed by Hsu et al. [6] with framework shown in Fig. 3. The RL agent can adaptively select and execute the action by the desired operational duty-cycle for the motor. The duty-cycle is defined as the operational percentage of the motor. By adaptively adjusting the assisted power after learning for pedelec, not only energy utilization is improved but comfort of riding for pedalist is also satisfied. Within the comfortable zone, the closer the pedelec’s velocity is to the predetermined comfortable velocity and the larger the reward will be given. The main purpose of the power

assisted method is to satisfy the comfort of ride to pedelec’s rider, such that a comfortable velocity, vcomf, on riding, and the tolerance of deviation, μ, to the pre-determined comfortable velocity should be first defined and arranged into the rewarding function as the following,

1

2

comf comf

comf

,

, otherwise

k if v v

v v

r

k v v

μ μ

⎧ − ≤ ⎫

⎪ − ⎪

= ⎨ ⎬

⎪− − ⎪

⎩ ⎭

(3)

where v is the current pedelec’s velocity, and k1 and k2 are positive weighting factors.

Fig. 3. System architecture of power assisted pedelec

III. CONSLUSION AND FUTURE WORK

In this paper, the reinforcement learning based adaptive energy management for energy harvest WSN and human- electric hybrid bicycle is discussed. Experiment results of above cases have been obtained in [4] and [6], respectively, which shown that RL is an effective mean in improving energy utilization, efficiency, and sustainable operation of embedded systems. The reinforcement learning approach can possibly be extended to hybrid electric vehicle by modifying the definition of environment and rewarding function. How to derive a unified rewarding function to fit various adaptive energy management for embedded system is another challenge and will be our future work.

REFERENCES

[1] A. G. Barto, Reinforcement Learning, in handbook of Brain Theory and Neural Networks, M.A. Arbib (Ed.), Cambridge: MIT Press, 1994.

[2] S. Singh, R. L. Lewis, A. G. Barto, and J. Sorg, “Intrinsically Motivated Reinforcement Learning: An Evolutionary Perspective,”

IEEE Trans. on Autonomous Mental Development, This article has been accepted for publication in a future issue of this journal, 2010 [3] C. Moser, L. Thiele, D. Brunelli, and L. Benini, ”Adaptive Power

Management in Energy Harvesting Systems,” in Proc. of Design, Automation & Test in Europe Conference & Exhibition, pp. 1–6, 2007.

[4] R. C. Hsu, C. T. Liu, and W. M. Lee, “Reinforcement Learning- Based Dynamic Power Management for Energy Harvesting Wireless Sensor Network,” IEA/AIE 2009, LNAI 5579, pp. 399–408, 2009.

[5] A. Kansal, J. Hsu, M. Srivastava, V. Raghunathan, ”Harvesting Aware Power Management for Sensor Networks,” in Proc. of ACM/IEEE Design Automation Conference, pp. 651–656, 2006.

[6] R. C. Hsu, C. T. Liu, W. M. Lee, and C. H. Chen, “A Reinforcement Learning Based Power Assisted Method with Comfort of Riding for Light Electric Vehicle,” IEEE Proc. Of Inte. Conf. Vehicular Technology, pp. 1-5, 2010.

Renewable Energy Source Hardware layer System layer

Energy Consuming HW Main

Management Unit

Energy Storage

Duty-cycling

eharvest eb enode

eharvest enode

參考文獻

相關文件

* All rights reserved, Tei-Wei Kuo, National Taiwan University,

When all of the pages in a replacement block in the coarse- grained AddrTM are used, the valid pages in the replace- ment block are identified, and the mapping

Roam (Resource-aware Application Migration) system is a framework for building resource-aware mobile applications that are capable of runtime migration between

Department of Electrical Engineering, National Cheng Kung University In this thesis, an embedded system based on SPCE061A for interactive spoken dialogue learning system (ISDLS)

Based on the forecast of the global total energy supply and the global energy production per capita, the world is probably approaching an energy depletion stage.. Due to the lack

“System-Level Energy Management for Periodic Real-Time Tasks”、“Minimizing Expected Energy Consumption through Optimal Integration of DVS and

Cause: A software bug known existed in General Electric Energy's Unix-based XA/21 energy management

 Propose eQoS, which serves as a gene ral framework for reasoning about th e energy efficiency trade-off in int eractive mobile Web applications.  Demonstrate a working prototype and