Research Article

Privacy-Preserving Sensing and Two-Stage Building Occupancy Prediction Using Random Forest Learning

Algorithm 1

Detection algorithm for human presence identification.
Result: Person detection
NumberTrees =
% E.g. 1000 for our reference case for i=1:do
 Split dataset into training and test sets
 Choose random records from training set
 Predict the category to which the new record
  belongs
end
Assign the new record to a category based on majority
vote;