CHAPTER 4 PROBABILISTIC OCCUPANCY PREDICTION MODEL
4.2 Research Methodology for Developing Occupancy Model
4.2.2 Occupancy Behavior Analytics (Data Processing)
The occupancy behavior analytics (data processing), which is comprised of three phases, is performed to find important occupancy features, such as the number of present occupants, periods of absence and presence, and other occasional variations in the occupantsβ profiles. Figure 4-3 depicts the pseudocode showing how the collected data is converted to the occupancy location and presence duration information to calculate the occupancy zone and rate, respectively. All the phases of the data processing procedure are also shown in Figure 4-4.
The occupantβs zones for each time-step of the total daily presence time (PT) are determined at the end of Phase 1 according to the x and y coordinates of his/her tag for each time-step. Using the information from phase one, the number of present occupants, and eventually the occupancy rate of the office, as will be explained in Section 4.2.2.1, are determined at zone and room levels for each time-step of the total occupancy duration (TOD), each day of a week (π), and for the total number of weeks of the data collection (π) during phase 2. Phase 3 of the data processing focuses on the analysis required to obtain the parameters that are necessary for developing the occupant- specific transition probability matrices, as will be explained in Section 4.3.1, for each time-step of each day of a week. This phase starts with changing the time-step resolution according to the
purpose of the occupancy model. For instance, HVAC system local control strategies require longer time-steps knowing that it takes time for the system to adjust the zone temperature.
Set W = the total number of weeks of the data collection, w = week, D = the total days of a week, d = the day of a week, o = occupant, No = the total number of occupants in the office, π‘ ππ= detection time resolution, π§ =
occupant zone, no = the number of present occupants, ππππ = occupancy rate
For each d in D
For each w in W
For each o in No
ππ π‘πππ‘π = the first time that the occupant o is detected in the morning
πππππ = the last time that the occupant o is detected in the evening
πππ = π πππ π - π π π‘πππ‘ π For π‘πππ in πππ
if there are multiple readings for each π‘πππ:
calculate the average coordinates of readings with the same π‘π ππ
if there is a missing data:
assign the coordinates of π‘πβ1ππ to π‘πππ
determine π§ based on the coordinates of o from the tracking system and the office dimensions end
end end
ππ π‘πππ‘π‘ππ‘ππ= the earliest arrival time to the office among all occupants
πππππ‘ππ‘ππ = the latest departure time from the office among all occupants
πππ· = ππππ π‘ππ‘ππ- π π π‘πππ‘ π‘ππ‘ππ For π‘π ππin πππ· if o is present: add 1 to ππ π‘πππ,ππ
calculate the ππππ based one ππ π‘πππ,ππ
else no change in the number of present occupants end
end
Figure 4-3 Pseudocode for data processing phases: zone and occupancy rate calculations 4.2.2.1 Occupancy Rate
The occupancy rate for time-step π‘, (πππππ‘,π), is the average occupancy rate for each day of a week based on the total number of weeks of the data collection (π). After collecting data for a certain period, the occupancy rate (%) of all zones within an office is calculated for each time-step (e.g., one minute) and for each day of a week (including weekends) according to Equation (4-1):
πππππ‘,π = β (ππ π‘,π ππ)π€ π π€=1 π Γ 100% (4-1)
Phase 2 β Occupancy Rate Calculation Phase 1 β Zone Calculation
Multiple readings per time-step? NO
Calculate the average coordinates of readings with the same time-step
YES
Missing data between successive readings?
One reading per time-step
Generate missing data
YES
NO
Calculate the zone of the occupant for each time-step
Calculate the total occupancy duration (TOD)
Start time of occupancy End time of occupancy Determine the earliest first
arrival to the office among all occupants
Determine the latest departure from the office
among all occupants
Calculate the number of present occupants (not,d) for each time-step
of the TOD
occrt,d=( (not,d/No)w)/W*100
Calculate the internal load from the occupancy presence o = 1 t = 1 t = t + 1 d = d + 1 d 7 t PT NO YES
Collected data from RTLS
o = o + 1 o No
NO
Start
w = 1
Phase 3 - Prediction Model Parameters Calculation
YES
YES
Raw data d = 1
Calculate the total daily presence time (PT) of the occupant
NO
For each time-step and each day of a week:
ο· The average zone of each occupant
ο· Number of occupants ο· Occupancy Rate
End Calculate the number of occurrence
of being in work state i, (nst,d o,i) trtd o,ij = (ntrtdo,ij)w / W i = 1 i I i = i + 1 YES
Calculate the transition probability matrix for each time-step (Pijdo(t))
Change time-step resolution
NO
o = 1 w = 1
YES
Calculate the average zone of the occupant for new time-step (t)
t = t + 1 t PT YES w = w + 1 w W NO t = 1 NO t = 1 t PT YES st,d o,i = (nst,do,i)w / W t = t + 1
Calculate the number of transition occurrences between different work states (ntrtd
o,ij) NO NO d = 1 o No d = d + 1 d 7 o = o + 1 NO YES YES w = w + 1 w W NO YES
where πππ‘,π is the number of present occupants at time-step π‘ and day π, and π
π is the total number
of occupants sharing the same open-plan office during day π.