Sei sulla pagina 1di 9

310 IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, VOL. 20, NO.

2, FEBRUARY 2012

Energy-Aware Video Encoding for Image Quality


Improvement in Battery-Operated
Surveillance Camera
Younghoon Lee, Jungsoo Kim, Student Member, IEEE, and Chong-Min Kyung, Fellow, IEEE

AbstractGrowing needs for surveillance in locations without the battery lifetime in the surveillance system until the battery
power lines necessitates the development of a surveillance camera replacement, it needs to be operated in an event-driven manner,
with extremely low-power consumption and an assured stable i.e., the system captures events and encodes the images for
operation until the time of expected run-out of available energy.
This paper proposes an algorithm for scheduling of video en- storage and/or transmission when and only when the event
coding configurations in a battery-operated surveillance system to is detected. However, duration and arrival time of an event
reduce the image distortion while assuring the sustained operation is generally assumed to be uncertain [1]. Such uncertainties
until the battery recharge/exchange. The optimal video encoding make it difficult to predict actual video encoding time and to
configuration is determined based on the amount of estimated find the pareto-optimal (with respect to energy, distortion, and
remaining event duration (considering the uncertainty of events)
and remaining battery charge (considering the rate-capacity and rate, according to the system specification) video encoding
recovery effect). The proposed algorithm consists of two steps: configuration. Conventional methods based on worst-case
design-time step and run-time step. In the design-time step, pre- scenario are likely to waste energy, because the estimation of
diction of remaining event duration, called duration prediction, event duration is too conservative, i.e., each event is assumed
is performed considering the uncertainty of events and tradeoff to have the longest possible value [5].
between encoding power and image quality. During run-time,
video encoding configuration is switched between intra-frame In smart surveillance systems, video encoding configura-
encoding and inter-frame encoding based on the duration pre- tion is selected among many encoding configurations with
diction obtained in design-time step and the remaining battery different distortion and energy consumption levels. In video
charge measured in run-time step. Compared to the conventional encoding such as H.264 or MPEG4, the amount of distortion
method based on the most conservative duration prediction [5], of a compressed video can be represented as a function of the
experimental results show that the proposed method provides
2.24~3.78 dB improvement in the image quality (in terms of peak amount of consumed energy when the bitrate [2] is constant.
signal-to-noise ratio in the H.264 encoding of four video sequences In [2], a power-scalable video encoding method is proposed
while satisfying the battery constraint. to minimize the energy consumption in portable video com-
Index TermsBattery, surveillance camera, uncertainty, video munication devices. Such complexity control parameters as
encoding. the number of sum of absolute difference (SAD) computations
and fraction of skipped macro blocks are adjusted to provide a
trade-off between the encoding complexity and the distortion
I. INTRODUCTION level. High encoding complexity generally leads to low video
distortion. On the other hand, in dynamic voltage and frequency
T O MEET the growing demands on public security against
crimes, accidents, and disasters, it is necessary to enhance
monitoring functions in places even without power lines, which,
scaling (DVFS)-enabled systems, increasing the number of
frequency and voltage levels contributes to reduced energy
in turn, depends on the availability of battery-operated video consumption. In video encoding of smart surveillance systems,
camera with very low cost and power consumption. In such various complexity control parameters are adjusted to capture
a battery-powered surveillance system, energy management all events until the next battery recharge/replacement while
maintaining the image distortion below a given level. When the
becomes a very critical issue. The primary requirement of such
surveillance system is to capture events of concern and inform remaining battery charge is small, captured events are encoded
the relevant personnel before the battery runs out. To extend in a low-energy mode; otherwise high-energy mode is selected
leading to low-distortion level. Using this power-scalable
encoding method, we can schedule a sequence of encoding
Manuscript received April 09, 2010; revised July 17, 2010; accepted De-
cember 04, 2010. Date of publication January 24, 2011; date of current version
configurations to minimize overall distortion under any given
January 18, 2012. This work was supported by the National Research Foun- battery charge constraints.
dation of Korea (NRF) grant 2010-0000823 funded by the Korea government Battery is not an ideal energy source. The amount of energy
(MEST).
Y. Lee is with the Software Platform Laboratory, LG Electronics, Seoul 137-
actually delivered to the load by battery depends not only on
130, Republic of Korea (e-mail:lyh1064@gmail.com). the available charge in the battery but also on the discharge cur-
J. Kim and C.-M. Kyung are with the Department of Electrical Engineering, rent profile through the load. This is explained through the two
Korea Advanced Institute of Science and Technology (KAIST), Daejeon 305- nonlinear characteristics of battery: rate-capacity effect and re-
701, Republic of Korea (e-mail:jskim@vslab.kaist.ac.kr; kyung@ee.kaist.ac.
kr). covery effect. Rate-capacity effect represents the dependency of
Digital Object Identifier 10.1109/TVLSI.2010.2102055 the amount of energy delivered by a battery on the magnitude of
1063-8210/$26.00 2011 IEEE
LEE et al.: ENERGY-AWARE VIDEO ENCODING FOR IMAGE QUALITY IMPROVEMENT IN BATTERY-OPERATED SURVEILLANCE CAMERA 311

Fig. 1. Target architecture of the surveillance camera consisting of sensor, event detector, video encoder, and memory; we implemented the system using LG
XNOTE LW25 laptop such that event detector [16] and video encoder [17] as well as OS are running on Intel Core2Duo processor; the power of the system is
delivered from two batteries connected in parallel with voltage level conversion using a DC-DC converter [18].

discharge current. The recovery effect reflects the charge recov- Some battery models considering the nonlinear behavior of
ered when the discharge current is sufficiently small. Due to the battery [9], [10] predict the total charge loss of battery to esti-
nonlinear behavior of battery, the total charge loss of the battery mate the battery lifetime. Various battery-aware task scheduling
is generally different from the charge consumption by the load. methods were proposed [11][15] using the analytical battery
Analytical battery models have been proposed for the nonlinear model in [9] which reflects the rate-capacity and recovery ef-
battery characteristics [9]. fects of battery. In [11] and [12], static task scheduling methods
In this paper, we propose a scheme for determining the to maximize battery lifetime were described. In [13], effects
video encoding configurations to minimize the image distortion of inserting idle periods were described with general guide-
under the constraint of fixed time-to-battery replacement. The lines for choosing between battery-aware management policy
proposed scheme considers the probabilistic characteristics of (considering the nonlinear battery characteristics) and energy-
events and performs the prediction of remaining event duration aware management policy (without considering the nonlinear
called duration prediction which minimizes the total estimated battery characteristics). However, these methods only consider
image distortion until the battery replacement while guaran- the scheduling of tasks with fixed arrival time and duration.
teeing that the scheduled list of events is completed. This paper first proposes analytical energy management
The rest of this paper is organized as follows. Section II scheme considering the two practically most important fea-
reviews related works. Section III presents the system model tures in the design and operation of energy-aware surveillance
of our work. Section IV describes the problem definition and camera systems, i.e., stochastic event characteristic and non-
overall flow. Section V explains the battery-aware distortion linear battery behavior. To achieve this goal, we modeled the
minimization algorithm. Experiments results are given in stochastic event characteristics as a probability distribution
Section VI followed by the conclusion. function (PDF), and then, present a scheme to scale video
encoding complexity considering the statistical information of
II. RELATED WORKS PDF and nonlinear battery behavior to obtain the best image
quality. The key contribution of this paper lies in extracting the
Several methods have been proposed to maximize the overall best video quality until the given timeline while exhausting the
performance under energy constraints [3], [4] by switching battery charge based on the most realistic battery charge model.
among multiple operation modes each with different amount
of energy consumption. [5] proposed reward maximization III. SYSTEM MODEL
algorithm while satisfying the energy constraint and real-time
constraint. Recently, [6] proposed an operation mode sched- In this section, we first describe our target surveillance
uling scheme to maximize the image quality considering camera system (see Section III-A). Then, we present a
probabilistic task execution time under energy constraints, with model for power-quality relationship of video encoder (see
an assumption of fixed event arrival time. Section III-B) and a battery model considering the nonlinear
A number of schemes have been proposed to reflect and ex- battery characteristics, i.e., rate-capacity and recovery effect
ploit the probabilistic event characteristic in reducing the en- (see Section III-C).
ergy consumption. In [7], runtime distribution-aware DVFS al-
gorithm was proposed. This method analytically determines the A. Target System and Hardware Implementation
performance level to minimize the energy consumption on a We targeted at a battery-operated surveillance camera system
single processor. A heuristic DVFS algorithm was proposed for which observes a specific location without moving. Fig. 1 il-
obtaining the optimal remaining workload which provides the lustrates our target surveillance camera system consisting of
minimal dynamic and leakage energy consumption [8]. How- multiple functional blocks, i.e., sensor, event detector, video en-
ever, none of these methods [3][8] have considered the non- coder, and memory. The main function of the system is to detect
linear characteristics of battery. suspicious objects in its camera scope, and then store the video
312 IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, VOL. 20, NO. 2, FEBRUARY 2012

in memory. To avoid energy being consumed for recording un- TABLE I


critical events, our target system is operated in an event-driven VIDEO ENCODING COMPLEXITY AND IMAGE QUALITY DATA ACCORDING TO
IDR PERIOD AS OBTAINED FOR H.264 ENCODING (BIT-RATE: 2000 kb/s,
manner where all functional blocks, except for an event detector, 2
FRAME-RATE: 15 fps, IMAGE: 1280 720 PEDESTRIAN [19])
are normally power-gated and only wake up when an event is de-
tected by the event detector. Only when an event is detected by
an event detector, the image captured by a sensor is compressed
by a video encoder to be stored into a memory.
As shown in Fig. 1, we implemented the target system using
LG XNOTE LW25 laptop whose processor supports DVFS.1 We
implemented both of the event detector and the video encoder
as software running on the processor in the laptop. For the event
detector, we used background subtraction algorithm [16], which
can be implemented in very low complexity. We used x264 [17],
real-life software for H.264 encoder, as the video encoder whose
complexity is scaled according to encoding configuration, e.g.,
search range, I-frame insertion period, etc.
To reduce the power consumption of the processor using P- or B-frames between two nearest I-frames, is chosen as the
DVFS, we implemented a power manager in OS such that pro- only encoding parameter for simplicity.3 In general, I-frame
cessor operating frequency is set as the ratio of the remaining is associated with lower computational complexity and lower
number of clock cycles to the time-to-deadline as follows: image quality than P- or B-frame. Thus, with more I-frames
inserted during the event encoding, the complexity of the event
(1) encoding becomes lower while the image quality deteriorates.
Table I shows the simulation result of the average per-frame
where and represent the number of clock cycles for video encoding complexity and the average image quality
evaluating the event occurrence and encoding a frame, respec- obtained by encoding 1280 720 Pedestrian video [19] for
tively. Since the frequency level is discrete, we set the frequency various IDR periods. The first column shows the IDR period (in
at the lowest possible value, but not lower than the value calcu- terms of the number of frames). The second to fourth columns
lated by (1) among the given set of discrete frequencies. represent the corresponding average image complexity (in 10
The power of the system is supplied from two Li-Ion bat- cycles, which is obtained by Performance Application Program-
teries connected in parallel for doubling battery capacity. Note ming Interface (PAPI) [20]), average power consumption (in
that parallel connection of batteries is a typical configuration of Watts), and the average image quality [in peak signal-to-noise
battery to extend battery charge capacity where the number of ratio (PSNR)], respectively. The power consumption is mea-
batteries connected in parallel, i.e., battery charge capacity, is sured from thermal and power microarchitecture simulator
determined by the expected battery lifetime in a typical surveil- PTscalar [21] by configuring a target processor in PTscalar
lance system. A buck converter is used as a DC-DC converter in as the best-effort estimate of the processor in LG XNOTE
order to match voltage levels between the output voltage of the LW25 laptop, i.e., Intel Core2Duo T7200 processor, using the
battery and the input voltage of the target system [18]. parameters presented in [22]. As shown in Table I, the image
quality as well as the encoding complexity and power increases
as IDR period increases.
B. Power-Quality Model
Fig. 2 shows the relationship between image quality and
A complexity-scalable video encoder can encode a video power consumption for the case of encoding 1280 720 Pedes-
sequence with disparate encoding configurations. Image quality trian video [19]. -axis and -axis represent image quality
is generally improved as the complexity of video encoding (in PSNR), and the normalized encoding power consumption
configuration increases, where the complexity is defined as with respect to the power consumption when IDR period is set
the average number of clock cycles to encode a frame [2].2 to 50 in Table I, respectively. Each dot in Fig. 2 represents a
The increased complexity often leads to drastic increase in pair of the normalized power consumption and image quality
power consumption, especially in a DVFS-enabled system. obtained experimentally by varying the IDR period, which,
Video encoding complexity can be controlled by adjusting in turn, affects the power consumption through the change of
various encoding parameters such as frame type (I/P/B-frame encoding complexity, as shown in Table I. We approximated
representing intra/predictive/bi-directional predictive frame), the relationship between the image quality and the normalized
motion estimation scheme, and search range. In this work, power (solid line) through fitting the dots to the following form:
instantaneous decoding refresh (IDR) period, i.e., number of
1In
(2)
a battery-operated surveillance camera system, DVFS is the most
powerful and popular technique used to reduce the energy consumption. Intel 3Despite many other encoding parameters which can be used for controlling
Core2Duo processor, which is used in our surveillance camera system for event the trade-off between the produced image quality and required energy, we se-
detector and video encoder, can save a significant amount of energy using lected IDR period to show how remaining energy can be used to estimate the
DVFS. optimal level of image quality in a very simplistic manner. Extension to other
2There can be some exceptional cases, i.e., poorly designed algorithms where parameters, e.g., motion vector search range, macro block mode selection, etc.,
the image quality deteriorates despite higher encoding complexity. should not be too difficult, but beyond the scope of this paper.
LEE et al.: ENERGY-AWARE VIDEO ENCODING FOR IMAGE QUALITY IMPROVEMENT IN BATTERY-OPERATED SURVEILLANCE CAMERA 313

linear charge loss, [9]. represents the amount of


charge consumed by the load system until time . repre-
sents the amount of charge loss due to nonlinear battery charac-
teristics reflecting both rate-capacity and recovery effect at time
. can be expressed by quantizing the elapsed time into
time steps and approximating the current within a time step
as constant as follows:

(6)

with

(7)

Fig. 2. Relationship between image quality (PSNR) and normalized power (8)
consumption with respect to the power consumption when IDR period equals
2
50, as obtained by fitting points in Table I into (2) for 1280 720 Pedestrian
where and represent, respectively, the required battery dis-
[19].
charge current and the elapsed time at , where
is the unit time step, and is a technical parameter depending
where and represent the image quality (in PSNR) and the on the battery characteristics.
normalized power consumption of the encoding condition, re- Cumulative nonlinear charge loss depends not only on the
spectively. , , and are curve fitting parameters deter- active current profile but also on the idle period because of the
mined by least-square fitting. In Pedestrian video, the average nonlinear charge recovery during the idle period [13]. Idle pe-
(max.) fitting error becomes minimal, i.e., 1.21% (2.17%) when riod denotes the time interval between active periods, where ac-
, , and . Since the curve fitting tive period is defined as time interval during which current is dis-
parameters are dependent on the video captured, more specifi- charged from battery. As shown in (8), the cumulative nonlinear
cally, amount of motion contained in the video [2], we need to charge loss, , increases as time passes within each active pe-
find the curve fitting parameters at each video capture. riod. Thus, the cumulative nonlinear charge loss becomes max-
The power is supplied from a battery with voltage level con- imum at the end of each active period. We define cumulative
version using a DC-DC converter whose efficiency is defined nonlinearity (having the dimension of time) at as
as follows: as follows:

(3) (9)

where and are the current and voltage of a processor,


respectively. and are the current discharged from a Cumulative nonlinearity represents the equivalent amount of
battery and battery output voltage, respectively. Assuming that time during which battery is assumed to be additionally dis-
and are constant at their nominal values,4 i.e., 3.6 V and charged due to nonlinear charge loss, which depends on the pat-
0.8 and using (3), in (2) can be expressed as a function of tern of active and idle periods. Fig. 3(a) shows the pattern of
as follows: active period and idle period while Fig. 3(b) shows the corre-
sponding cumulative nonlinearity. Each circle in Fig. 3(b) rep-
(4) resents peak cumulative nonlinearity (PCN) denoted as
for the th active period in the th region (region is defined in
where is a constant defined as Section IV). With longer active period, the PCN at the end of ac-
tive period becomes larger. Because idle period leads to charge
(5)
recovery, longer idle period generally tends to lower the cumu-
lative nonlinearity.
C. Battery Model
Total charge loss of battery until time , , is calculated IV. PROBLEM DEFINITION AND SOLUTION OVERVIEW
as the sum of actual charge loss, , and cumulative non- Battery recharge time (BRT) is assumed to be fixed in this
4Even though output voltage of Li-Ion battery, V
work. Fig. 4(a) exemplifies an event trace during a BRT which
, ranges 3.0~4.2 V ac-
cording to the remaining battery charge, we approximated that V is constant is divided into fixed time intervals, each of which is called re-
in order to reduce the solution complexity. As stated in [9], it is a reasonable gion. For instance, if BRT is fixed as one week and each region
assumption since the error in terms of estimated lifetime is less than 3%. In ad- is two hours long, the number of regions, , is 84 ( 24(hours/
dition, as presented in [18], the efficiency of DC-DC converter,  , is almost con-
stant throughout the entire range of load current in a recently presented DC-DC day)/2(hours) 7(days)). In this work, we assumed that an
converter by improving the efficiency in the range of light load current. event happens when suspicious objects are observed within a
314 IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, VOL. 20, NO. 2, FEBRUARY 2012

Fig. 5. Solution inputs: pdfs of (a) RAD and (b) PCN obtained from M dif-
ferent event traces during BRT, and (c) relationship of image quality (in PSNR)
with respect to battery discharge current.

Fig. 6. Runtime solution: battery discharge current level of each region is i


L
quantized into levels to obtain the corresponding IDR period as the video
encoding configuration.
Fig. 3. (a) Battery discharge current profile within a region shown as an alter-
nating sequence of idle period and active period, each with varying duration.
(b) Time profile, within a region, of cumulative nonlinearity with each circle
denoting the PCN. ship of image quality (in PSNR) with respect to battery dis-
charge current in (4).
Based on the three inputs shown in Fig. 5, we determine
the scheduling of video encoding configuration (IDR period in
this work) to enhance the image quality under battery charge
constraint. The proposed solution consists of design-time step
and run-time step. In the design-time step, we find the optimal
duration prediction, ( ), for the th region such
that , average of predicted cumulative image quality from the
th region to the th region is maximized, where is defined
Fig. 4. Event trace divided into N fixed time intervals, each of which is called by
region.

(10)

camera scope, making the sum of absolute difference (SAD)


between the captured image and background image larger than In (10), denotes the image quality (in PSNR) recorded during
a predefined threshold value, i.e., background subtraction [16]. the th region, which is a function of battery discharge current
Within each region, there is an alternating sequence of active during the th region, i.e., , as given in (4) and Fig. 5(c). is
and idle periods as shown in Fig. 4(a). The amount of active pe- the average of , the RAD of the th region. The probability
riod, i.e., time duration of a single event is called event active distribution of is shown in Fig. 5(a).
duration (EAD), while the total amount of EAD within a region, The runtime step of the proposed solution is shown in Fig. 6.
which is calculated as the sum of EAD within a region, is called In runtime, we determine the video encoding configuration, i.e.,
regional active duration (RAD). The event sequence of the th IDR period in this work, at the start of each region based on
region is characterized with two stochastic parameters: 1) RAD the duration prediction . The LUT translating the battery dis-
of the th region, denoted by and 2) probability distribution charge current level to the IDR period in Fig. 6 is built from the
function (pdf) of peak cumulative nonlinearity (PCN) of the th relationship of the average power consumption versus IDR pe-
region, denoted by . riod in Table I, and the battery discharge current versus the av-
Fig. 5 shows three types of input required in the proposed erage power consumption in (3). Once the video encoding con-
procedure. Fig. 5(a) and (b) show, respectively, pdf of RAD and figuration is determined, it is maintained until the end of the re-
PCN of the th region obtained from different event traces gion. There are video encoding configurations each of which
during BRT. Since the event trace of the th region has a sto- is mapped onto corresponding battery discharge current where
chastic temporal variation for each BRT, RAD, and PCN ob- represents the battery discharge current of the th video en-
tained from different event traces during BRT can be repre- coding configuration. Thus, video encoding configuration of the
sented by pdfs shown in Fig. 5(a) and (b), respectively. Note th region can be selected by determining the amount of battery
that where is the probability discharge current , which is calculated as follows:
where corresponds to the th quantized level and is the
number of quantized level of . Fig. 5(c) shows the relation- (11)
LEE et al.: ENERGY-AWARE VIDEO ENCODING FOR IMAGE QUALITY IMPROVEMENT IN BATTERY-OPERATED SURVEILLANCE CAMERA 315

where represents the amount of remaining charge measured duration predictions for regions and checking inequalities
at the start of the th region. is the prediction of PCN of the in (12)~(14) in running the proposed scheme is negligible
th region (which is set to the average of PCNs of the th region compared to other functions such as video encoding and event
in this work). Since represents the average nonlinear charge detection.
loss during the th region, ( ) represents the amount of
average residual actual charge at the start of th region. Then, V. BATTERY-AWARE DISTORTION MINIMIZATION
we set so that the residual actual charge, i.e., ( ), can
In this section, we describe a method to predict the dura-
be equally distributed in encoding the remaining events when
tion to maximize the predicted cumulative image quality. In the
the prediction of total event duration is . By rearranging the
first case, we assume that the BRT is divided into only two re-
equation with respect to , we can express as shown in the
gions and the RAD in each region is fixed. We then consider
right-hand side of (11), i.e., ratio of the remaining battery charge
the second case where the RAD in each region has a pdf. In the
, to ( ) which is the effective remaining time reflecting
third case, whole BRT is divided into regions with the pdf of
the nonlinearity effect. (In the ideal case with , is
RAD of each region.
determined as .)
In addition, to prevent the battery exhaustion before the end A. Two Regions With RAD Given as Unit Function
of a BRT, we check, at the start of each region , whether
satisfies the following three constraints: When two regions are cascaded with RAD of each region
fixed, the predicted cumulative image quality metric covering
(12) from the first to the second region, i.e., , can be defined and
calculated as follows:

(15)
(13) As presented in (11), the battery discharge current level and
can be expressed as follows:
(14)
(16)
We define a new operator which is used to represent
the maximum value of within the corresponding region, e.g.,
(17)
represents the maximum value of within the
th region. First constraint (12) implies that has to be set such
that the maximum charge consumed in the th region, i.e., sum where
of the actual and nonlinear charge loss when the total amount
of RAD becomes the largest, must be less than the amount of (18)
residual charge, i.e., , even in the worst case, to prevent the
system failure. The second constraint (13) requires that is set By replacing and with (16) and (17) and normalizing
so that the amount of residual charge at the start of the th region to one, we can rearrange (15) as follows:
must be larger than the sum of actual charge loss consumed by
the th region and the minimum amount of charge required to
encode remaining events occurring from ( )th to th region
in the lowest power mode, i.e., . The third constraint (14) (19)
represents the specified range of the current level. We calculate the optimal event duration in each region in the
If battery discharge current determined by (11) does not reverse order, i.e., , as presented in [7]. First, we de-
satisfy the constraints in inequalities (12)~(14), is adjusted to termine . Since the second region is the last region in this
the minimum value the th quantized battery current level case, we set as the worst-case RAD of the second region
which satisfies the constraints in inequalities (12)~(14). After to prevent battery exhaustion when the worst case actually hap-
is determined, we find corresponding video encoding configu- pens. Then, we find which maximizes in (19). Because
ration (i.e., IDR period, in this work) by accessing the pre-char- is set as the average peak cumulative nonlinearity (APCN) of
acterized LUT which stores the set of pairs (battery discharge each region, is a unit function in this case, and is already
current, IDR period) as shown in Fig. 6. determined to its worst-case RAD, is the only unknown vari-
The proposed solution causes hardware cost and power able in (19). In addition, is a concave function with respect to
consumption. In our proposed scheme, additional hardware is , thereby, we can obtain which maximizes by finding
required to store LUT for a set of pairs (battery discharge a point where . The point can efficiently be found
current, IDR period) shown in Fig. 6, and duration predictions using root-finding algorithm, e.g., bisection, NewtonRaphson
for regions found in design time. However, it is negligible method, etc.
since both and are usually set to small numbers ( and
in our experiment as mentioned in Section VI-A). The B. Two Regions With Probabilistic Distribution of RAD
amount of power consumed for finding proper video encoding When RAD of each region has a probabilistic distribution as
configuration, i.e., IDR period, by accessing the table storing shown in Fig. 5(a), the predicted cumulative image quality can
316 IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, VOL. 20, NO. 2, FEBRUARY 2012

be calculated as the sum of (19) with respect to pdfs of RAD is 0.8 [18]. We assumed that the battery recharge time (BRT)
of two regions, i.e., and , as follows: is 1000 min and is partitioned into 10 regions, thereby each re-
gion is 100 min ( 1000 min/10 regions) long. We applied the
proposed method in four different scenarios which are classified
according to event duration and occurrence:
1) Scenario 1: short-duration events occurring once in a
while (e.g., parking lot or road crossing at night);
2) scenario 2: short-duration events occurring frequently
(e.g., parking lot or road crossing in the daytime);
3) scenario 3: long-duration events occurring once in a while
(e.g., desert or public cemetery at night);
(20)
4) scenario 4: long-duration events occurring frequently
where is the number of quantized levels of RAD, i.e., . (e.g., desert or public cemetery in the daytime).
is the probability of fitting into the th quantized We compared the following three schemes, all of which ex-
level. denote when and fit into the th ploit nonlinear battery characteristics:
and th quantized levels, respectively. WORST [5]: duration prediction as the sum of the worst-
Because in (20) is also a concave function with respect to case RAD of all remaining regions;
, we can obtain the global maximum point, at a point, , AVERAGE: duration prediction as the sum of average
where . RAD of all remaining regions;
DIST (proposed): duration prediction with exploiting
C. Regions With Probabilistic Distribution of Event Active probabilistic RAD.
Duration We compared the effectiveness of each scheme with the
When BRT is partitioned into regions with RAD of each average of normalized measured cumulative image quality
region represented by a pdf, optimal duration prediction of the (in PSNR) with respect to the number of encoded frames (in
short, measured cumulative image quality), which is calculated
th region ( ) can be obtained by finding a point which max-
as (sum of image quality of all encoded frames)/(number of
imizes the predicted cumulative image quality from the th to
encoded frames). Since battery-unaware video encoding sched-
the th region, i.e., . is then calculated by summing ,
uling schemes lead to system failure due to battery exhaustion
using the pdf of RAD, from the th to the th region
before BRT is completed, it is unfair to compare the effective-
ness of battery-aware and battery-unaware methods. Therefore,
in our experiment, we compared the effectiveness (in terms
of measured cumulative image quality) of considering the
distribution of event characteristics only among battery-aware
video encoding configuration scheduling methods.

B. Quality Improvement
(21) Table II shows the comparison of the measured cumu-
lative image quality (in PSNR) and measured cumulative
is obtained first, followed by , , and so on, i.e.,
image distortion (in MSE) obtained by applying the three
the sequence of obtaining each is
methods for the above-mentioned four scenarios. Compared
.5
with WORST and AVERAGE, the proposed distribution-aware
method (DIST) gives 2.24~3.78 dB and 0.59~1.15 dB image
VI. EXPERIMENT
quality improvement, which correspond to 40.32%~58.12%
A. Setup and 12.76%~23.28% reduction of image distortion in terms
of image distortion (MSE), respectively. The reason for such
In our experiment, we used the target system presented in significant improvement can be analyzed with Fig. 7 which
Section III-A. We used nine IDR periods each of which cor- shows battery discharge current (first row), measured cumu-
responds to different encoding power consumption and image lative image quality (shown as PSNR in the second row) of
quality level as shown in Table I. We used the battery-related the encoded image until the corresponding time, and residual
parameters in [9], i.e., initial charge, , which equals to 40 375 charge (shown as distortion (MSE) in the third row) obtained
(mA-min) and in (6) (8). In our system, by applying WORST, AVERAGE, and DIST for the average
two batteries are connected in parallel while the battery and load case of Scenario 3, respectively.
system are connected by a dc-dc converter whose efficiency ( ) As shown in the first row of Fig. 7(a), battery discharge cur-
5The complexity to calculate (21) isOR N
( 1 ) where R and N represent rent is set relatively low at the start of BRT while it is mono-
the number of quantized levels of RAD and regions, respectively. However, tonically increasing as time goes on. Such an increasing battery
since it is calculated in design time as we mentioned in Section IV, the discharge current schedule comes from conservative duration
additional components required to be implemented in a target surveillance
camera system are additional memory space to store duration predictions, i.e., prediction of the WORST. Since WORST sets duration predic-
fD ;D ; ;D ... g, and a power manager shown in Fig. 1. tion as the sum of the worst-case RAD of remaining regions,
LEE et al.: ENERGY-AWARE VIDEO ENCODING FOR IMAGE QUALITY IMPROVEMENT IN BATTERY-OPERATED SURVEILLANCE CAMERA 317

Fig. 7. Scheduling result for Scenario 3 where three rows represent battery discharge current (first row), corresponding normalized cumulative image quality
(second row), and residual charge (third row), respectively, obtained by applying: (a) WORST, (b) AVERAGE, and (c) DIST (proposed).

TABLE II
COMPARISON OF IMAGE QUALITY AND DISTORTION RESULTS

battery discharge current, which is inversely proportional to du- constraint. Thus, despite large excess residual charge in later re-
ration prediction as in (11), is set too low owing to the over- gions, battery discharge current cannot be set sufficiently high.
estimation of the remaining event duration. At the end of each In case of AVERAGE shown in Fig. 7(b), battery discharge cur-
region, the amount of residual charge is larger than estimated rent (the first row) is almost even during a BRT.
at the start of the region, because actual RAD is smaller than In contrast with WORST and AVERAGE, the proposed solu-
the RAD based on the worst-case assumption. In the WORST tion DIST sets battery discharge current in a decreasing fashion,
scheme, to utilize the excess residual charge to improve the en- i.e., battery discharge current is set high in the beginning and
coded image quality, the battery discharge current of the next lowered as time goes on, as shown in Fig. 7(c). Since excess
region has to be increased. As a consequence, the measured cu- residual charge cannot be fully utilized in later regions, we set
mulative image quality also monotonically increases as shown the discharge current sufficiently high and set the video en-
in the second row of Fig. 7(a). However, to satisfy the constraints coding configuration accordingly to obtain high video quality,
on battery discharge current to prevent battery exhaustion, i.e., in earlier regions where residual charge is much larger than
(12) and (13), the excess residual charge cannot be fully uti- PCN. As a consequence, in later regions, battery discharge cur-
lized as the amount of residual charge becomes smaller in later rent needs to be set lower than the other two methods due to
regions, since high discharge current leads to large PCN which smaller residual charge. As the second row of Fig. 7(c) shows,
lowers the battery discharge current to meet the battery charge in earlier regions, measured cumulative image quality obtained
318 IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, VOL. 20, NO. 2, FEBRUARY 2012

by DIST is higher than others while it slightly decreases as [19] VQEG, [Online]. Available: ftp://vqeg.its.bldrdoc.gov/
time goes on due to the decreasing battery discharge current [20] PAPI, [Online]. Available: http:// icl.cs.utk.edu/papi
[21] W. Liao et al., Temperature and supply voltage aware performance
schedule in DIST. As shown in the third row in Fig. 7(a)(c), and power modeling at microarchitecture level, IEEE Trans. Comput.-
the residual charge at the end of BRT of DIST is less than those Aided Des. Integr. Circuits Syst., vol. 24, no. 7, pp. 10421053, Jul.
of others since DIST can efficiently utilize the battery charge by 2005.
[22] K. Puttaswamy and G. H. Loh, Thermal herding: Microarchitecture
exploiting the nonlinear battery characteristics. techniques for controlling hotspots in high-performance 3d-integrated
processor, in Proc. HPCA, 2007, pp. 193204.
VII. CONCLUSION
In this paper, we proposed an analytical scheme for setting
video encoding configurations that exploits stochastic event Younghoon Lee received the B.S. degree in elec-
characteristics and nonlinear discharge behavior of battery in trical engineering from Korea University, Seoul,
Republic of Korea, in 2008, the M.S. degree from the
a battery-powered surveillance camera system. The proposed Department of Electrical Engineering and Computer
scheme predicts the remaining event active duration, which is Science, Korea Advanced Institute of Science and
used to set IDR period, such that the average image quality is max- Technology (KAIST), Daejeon, Republic of Korea,
in 2010.
imized under the given battery energy constraints. Experimental He is currently with Software Platform Laboratory,
results show that the proposed scheme yields 0.59~1.15 dB LG Electronics, Seoul, Republic of Korea. His re-
and 2.24~3.78 dB improvement in the image quality (in terms search interests include dynamic power management
and low power OS kernel design.
of PSNR) compared to average and worst-case prediction
schemes, respectively, while satisfying the battery constraint.
Jungsoo Kim (S06M11) received the B.S. degree
REFERENCES in electrical engineering from Korea Advanced Insti-
[1] A. Harmpapur, L. Brown, J. Connell, N. Haas, M. Lu, H. Mearkl, S. tute of Science and Technology (KAIST), Daejeon,
Pankanti, A. Senior, C-F. Shu, and Y. Tian, S3-R1: The IBM smart Republic of Korea, in 2005, and the unified course
surveillance system-release 1, in Proc. ETP, 2004, pp. 5962. of the M.S. and Ph.D. degrees from the Department
[2] Z. He, W. Cheng, and X. Chen, Energy minimization of portable video of Electrical Engineering and Computer Science,
communication devices based on power-rate-distortion optimization, KAIST, in 2010.
IEEE Trans. Circuits Syst. Video Technol., vol. 18, no. 5, pp. 596608, He is currently with KAIST as a postdoc since
May 2008. 2010. His research interests include dynamic power
[3] R. Kravets and P. Krishnan, Power management techniques for mobile and thermal management, MPSoC design, and
communication, in Proc. IFIP VLSI-SoC, 2006, pp. 157168. low-power wireless surveillance system design.
[4] W. Yuan and K. Nahrstedt, Energy-efficient soft real-time CPU sched-
uling for mobile multimedia systems, in Proc. ACM Symp. Oper. Syst.
Principles, 2003, pp. 149163.
[5] C. Rusu, R. Melhem, and D. Mosse, Maximize rewards for real-time Chong-Min Kyung (S76M81SM99F08)
applications with energy constraints, ACM Trans. Embed. Comput., received the B.S. degree in electronics engineering
vol. 2, no. 2, pp. 537559, Dec. 2003. from Seoul National University, Seoul, Korea, in
[6] W. Y. Lee, H. Kim, and H. Lee, Maximum-utility scheduling of oper- 1975, and the M.S. and Ph.D. degree in electrical
ation modes with probabilistic task execution times under energy con- engineering from Korea Advanced Institute of Sci-
straints, IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst., vol. ence and Technology (KAIST), Daejeon, Republic
28, no. 9, pp. 15311544, Sep. 2009. of Korea, in 1977 and 1981, respectively.
[7] S. Hong, S. Yoo, H. Jin, K.-M. Choi, J.-T. Kong, and S.-K. Eo, Run- From April 1981 to January 1983, he worked as
time distribution-aware dynamic voltage scaling, in Proc. ICCAD, a postdoc with Bell Telephone Laboratories, Murray
2006, pp. 587594. Hill, NJ. He joined KAIST in 1983, where he has
[8] S. Hong, S. Yoo, B. Bin, K.-M. Choi, S.-K. Eo, and T. Kim, Dynamic been working on system-on-a-chip design and verifi-
voltage scaling of supply and body bias exploiting software runtime cation methodology, processor, and graphics architectures for high-speed and/or
distribution, in Proc. DATE, 2008, pp. 242247. low-power applications including mobile video codec. He was a visiting Pro-
[9] D. Rakhmatov, S. Vrudhula, and D. A. Wallach, A model for battery
fessor with the University of Karsruhe in 1989, as an Alexander von Humboldt
lifetime analysis for organizing applications on a pocket computer,
Fellow, visiting Professor with the University of Tokyo from January 1985 to
IEEE Trans. Very Large Scale Integr. (VLSI) Syst., vol. 11, no. 6, pp.
February 1985, visiting Professor with the Technical University of Munich from
10191030, Dec. 2003.
July 1994 to August 1994, at the Waseda University at Kyushu Campus from
[10] V. Rao, G. Singhal, A. Kumar, and N. Navat, Battery model for em-
2002 to 2005, University of Auckland, New Zealand from February 2004 to
bedded systems, in Proc. VLSID, 2005, pp. 105110.
[11] P. Chowdgury and C. Chakrabarti, Static task-scheduling algorithms February 2005, and Chuo University from July to August 2005. He is a Hynix
for battery-powered DVS systems, IEEE Trans. Very Large Scale In- Chair Professor at the KAIST. He is Director of the Integrated Circuit Design
tegr. (VLSI) Syst., vol. 13, no. 2, pp. 226237, Feb. 2005. Education Center (IDEC) established in 1995 to promote the IC design educa-
[12] S. Zhang, K. S. Chartha, and G. Konjevod, Near optimal battery-aware tion in Korean universities through CAD environment setup and chip fabrication
energy management, in Proc. ISLPED, 2009, pp. 249254. services. He is Director of SoC Initiative for Ubiquity and Mobility (SoCium)
[13] R. Rao and S. Vrudhula, Battery optimization vs energy optimization: Research Center established to promote academia/industry collaboration in the
Which to choose and when?, in Proc. ICCAD, 2005, pp. 439445. SoC design-related area.
[14] J. Luo and N. K. Jha, Battery-aware static scheduling for distributed Dr. Kyung was a recipient of the Most Excellent Design Award, and Spe-
real-time embedded systems, in Proc. DAC, 2001, pp. 444449. cial Feature Award in the University Design Contest in the ASP-DAC 1997
[15] C. Yuan, S. M. Reddy, I. Pomeranz, and B. M. Al-Hashimi, Battery- and 1998, respectively, the Best Paper Awards in the 36th DAC held in New
aware dynamic voltage scaling in multiprocessor embedded system, Orleans, LA, the 10th International Conference on Signal Processing Applica-
in Proc. ISCAS, 2005, pp. 616619. tion and Technology (ICSPAT), Orlando, FL, in September 1999, and the 1999
[16] A. Hampapur et al., Smart video surveillance exploring the concept of International Conference on Computer Design (ICCD), Austin, TX. In 2000,
multiscale spatiotemporal tracking, IEEE Signal. Process. Mag., vol. he received the National Medal from the Korean Government for his contribu-
22, no. 2, pp. 3851, Mar. 2005. tion to research and education in IC design. From 1993 to 1994, he served as
[17] X264, [Online]. Available: http://videolan.org/developers/x264.html Asian Representative in the International Conference on Computer-Aided De-
[18] J. Qahouq, O. Abdel-Rahman, L. Huang, and I. Batarseh, On load sign (ICCAD) executive committee. He was General Chair of Asian Solid-State
adaptive control of voltage regulators for power managed loads: Con- Circuits Conference (A-SSCC) 2007, and ASP-DAC 2008. He is a member of
trol schemes to improve converter efficiency and performance, IEEE National Academy of Engineering Korea (NAEK) and Korean Academy of Sci-
Trans. Power Electron., vol. 22, no. 5, pp. 18061819, Sep. 2007. ence and Technology (KAST)..

Potrebbero piacerti anche