Research Article

Wearable Sensor-Based Location-Specific Occupancy Detection in Smart Environments

Algorithm 2

Frame selection
Input: Frames,
Output: Selected frames,
   Selected empty frame set
for do
compute_rms    Calculate RMS value of a given frame
compute_entropy Calculate entropy using (1)
if or then
Insert   Add the selected frame to the set
return