Research Article

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

Algorithm 1

People count
Input: set of segments, , total number of segments =
Output: Number of distinct speakers,
Selected empty frame set
fori from do
 = Compute_MFCC Compute MFCC vectors
Insert Insert into MFCC set
Sort   Sort MFCC set and keep sorted MFCC set into the same set
= {⁡}    Initialize Person Set which contains similar person in sets
for from do
for from do
θ = Cosine_Similarity
if ( ) then
Insert
else
Insert   denotes Person Set
= Count_Elements(PS)
return