-
Notifications
You must be signed in to change notification settings - Fork 1
/
sec_2_2.tex.bak
491 lines (384 loc) · 17 KB
/
sec_2_2.tex.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
\begin{frame}
\frametitle{About This Work...}
\emph{Scalable Continuous Range Monitoring of Moving Objects in Symbolic Indoor Space}.~\cite{DBLP:conf/cikm/YangLJ09} \\
B.~Yang, H.~Lu, and C.~S. Jensen.\\~\\
\begin{itemize}
\item Published in \emph{CIKM' 2009}.
\item Application: continuously monitor indoor moving objects for space use analysis or security purposes.
\item An incremental, query-aware continuous range query processing technique for objects moving in indoor space.
\item Use maxmum-speed constraint on object movement to refine the uncertain results.
\end{itemize}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Motivation}
\begin{itemize}
\item People spend much time in indoor spaces.
\item Indoor spaces are becoming increasingly larger and complex.
\begin{itemize}
\item E.g., London Underground, 268 stations, 408 kilometers of network, +4 million daily passegers.
\end{itemize}
\item Indoor monitoring of people can help support.
\begin{itemize}
\item space use analysis
\item security purposes
\end{itemize}
\end{itemize}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Preliminaries: Indoors vs. Outdoors}
\begin{itemize}
\item Modeling of indoor spaces do not assume
\begin{itemize}
\item Euclidean space. (since obstacles render movement more constrained)
\item Spatial network. (since indoor movement is less constrained than movements in polylines)
\end{itemize}
\item Instead indoor spaces are characterized by entities.
\begin{itemize}
\item Doors, rooms, hallways, staircase, etc.
\end{itemize}
\item \textbf{Symbolic models} are more suitable.
\item \emph{GPS} and \emph{cellular tracking} do not work indoors.
\item Sensing devices are used to detect objects within their activation range, e.g., RFID readers or Bluetooth hotspots.
\end{itemize}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Positioning Devices Deployment Graph}
\begin{columns}[c]
\column{.57\textwidth}
\begin{itemize}
\footnotesize{
%\item More advanced compared to \emph{RFID Deployment Graph}.
\item Two types of positioning devices
\begin{itemize}
\scriptsize{
\item Partitioning Device -- \emph{undirected} (\textbf{UP}), e.g., $\mathnormal{d_{21}}$ -- \emph{directed} (\textbf{DP}), e.g., $\mathnormal{d_{11}}$ and $\mathnormal{d_{11'}}$
\item Presence Device -- (\textbf{PR})
}
\end{itemize}
\item Note an indoor space is partitioned into \emph{activation ranges} and \emph{cells}
}
\end{itemize}
\begin{block}{Deployment Graph}
\textrm{
\begin{itemize}
\scriptsize{
\item $\mathnormal{G = \{C, E, \Sigma_{devices}, l_E\}}$
\item $\mathnormal{C}$: the set of cells
\item $\mathnormal{E}$: the set of edges, $\mathnormal{\{ c_i, c_j \}}$ where $\mathnormal{c_i, c_j \in C}$
\item $\mathnormal{\Sigma_{devices}}$: a mapping from $\mathnormal{deviceID}$ to activation range and type
\item $\mathnormal{l_E}$ maps an edge to a set of positioning devices, i.e., $\mathnormal{E \rightarrow 2^{\Sigma_{devices}}}$
}
\end{itemize}
}
\end{block}
\column{.43\textwidth}
\vspace{-30pt}
\begin{figure}[tb]
\includegraphics[width=\columnwidth]{figures/2-2/2-2-1.pdf}
\end{figure}
\vspace{-20pt}
\pause
\begin{figure}[tb]
\includegraphics[width=\columnwidth]{figures/2-2/2-2-2.pdf}
\end{figure}
\end{columns}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{States of Indoor Moving Objects}
%\begin{columns}[c]
%\column{.57\textwidth}
\begin{figure}[tb]
\includegraphics[width=0.6\columnwidth]{figures/2-2/2-2-3.pdf}
\end{figure}
\vspace{-10pt}
%\column{.43\textwidth}
\begin{itemize}
\item An object is in an \textbf{active state} when it is inside the activation range of a positioning device.
\item Otherwise the object is in an \textbf{inactive state}
\item When an object is in the inactive state it is
\begin{itemize}
\item \textbf{nondeterministic} if it can be in more than one cell
\item \textbf{deterministic} if it is in one specific cell
\end{itemize}
\end{itemize}
%\end{columns}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Indexing Indoor Moving Objects}
\textbf{The proposed indexing scheme uses 4 hash tables}
\\~\\
\pause
\footnotesize{
\emph{Device Hash Table(DHT)} maps each device to a set of active objects:
\pause
$$\mathnormal{DHT[deviceID] = O_A;~deviceID \in \Sigma_{devices}, O_A \subseteq O_{indoor}}$$
\\~\\
\pause
\emph{Cell Deterministic Hash Table(CDHT)} maps each cell to a set of deterministic objects:
\pause
$$\mathnormal{CDHT[cellID] = O_D;~cellID \in C, O_D \subseteq O_{indoor}}$$
\\~\\
\pause
\emph{Cell Nondeterministic Hash Table(CNHT)} maps each cell to a set of nondeterministic objects:
\pause
$$\mathnormal{CNHT[cellID] = O_N;~cellID \in C, O_N \subseteq O_{indoor}}$$
\\~\\
\pause
\emph{Object Hash Table(OHT)} maps objects to their current data(state, time, cell(s) the object can be in)
\pause
$$\mathnormal{OHT[objectID] = (STATE, t, IDSet);~objectID \in O_{indoor}}$$
\\~\\
\pause
}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{RFID Deployment Graph Construction}
\begin{columns}[c]
\column{.47\textwidth}
\begin{figure}[tb]
\includegraphics[width=\columnwidth]{figures/2-2/2-2-4.pdf}
\end{figure}
\column{.53\textwidth}
\scriptsize{
\begin{enumerate}
\item Line 1: \textrm{reset $\mathnormal{IDSet}$} \pause
\item Lines 2--12: \textrm{$\mathnormal{O.flag}$ is ENTER so check the object's previous state. Remove $\mathnormal{O}$ from the corresponding table according its previous state} \pause
\item Lines 13--14: \textrm{add $\mathnormal{O}$ to table of active objects (DHT), and update $\mathnormal{O}$'s in the objects' table (OHT)} \pause
\item Lines 16--17: \textrm{$\mathnormal{O.flag}$ is LEAVE so remove the object from DHT. Get the possible cells that $\mathnormal{O}$ can move to} \pause
\item Lines 18--25: \textrm{if the device is undirected, set $\mathnormal{O}$ in OHT and add $\mathnormal{O}$ to CNHT for the cells in sSet, else apply the same to CDHT}
\end{enumerate}
}
\end{columns}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Continuous Range Monitoring: Query Definition}
\begin{itemize}
\item A \emph{Continuous Range Monitoring Query} (CRMQ)
\begin{itemize}
\item takes an \textbf{indoor spatial range} $\bf \mathnormal{R}$ as parameter
\item keeps reporting the objects when it is registered for a certain time frame $\mathnormal{[t_s, t_e]}$
\end{itemize}
\item The \textbf{query result} $\bf \mathcal{M}$ -- the set of moving objects in $\bf \mathnormal{R}$ - is maintained as follows:
\begin{equation*}
\mathnormal{
\forall t \in [t_s, t_e]: o \in CRMQ[R](\mathcal{M}) \Leftrightarrow o \in \mathcal{M} \wedge pos_{\mathcal{M}}(o, t) \in R
}
\end{equation*}
where $\mathnormal{pos_\mathcal{M}}$ is a function that can determine the position of object $\mathnormal{o}$ at time $\mathnormal{t}$
\item Multiple monitoring queries may coexist
\end{itemize}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Critical Devices}
\scriptsize{
For a \textrm{CRMQ} query, a \emph{critical device} is one from which a new observation can potentially change the query result (either certain or uncertain). Use a \emph{Device Query Hash Table} (DQHT) to record the relationships:
\vspace{-5pt}
\begin{equation*}
\mathnormal{DQHT[deviceID] = \{ (queryID, CLASS) \}}
\end{equation*}
}
\begin{columns}[c]
\column{.3\textwidth}
\vspace{-20pt}
\begin{figure}[tb]
\includegraphics[width=\columnwidth]{figures/2-2/2-2-5.pdf}
\end{figure}
\column{.8\textwidth}
\vspace{-15pt}
\begin{itemize}
\scriptsize{
\item $\mathrm{CLASS1}$ -- \textrm{Device is fully covered in $\mathnormal{R}$ along with cells, e.g., $\mathnormal{(device_{16}, query_2)}$}
\item $\mathrm{CLASS2}$ -- \textrm{Device is fully covered but corresponding cells are not, e.g., $\mathnormal{(device_{13}, query_1)}$}
\item $\mathrm{CLASS3}$ -- \textrm{Device intersects with the query range $\mathnormal{R}$, e.g., $\mathnormal{(device_{16}, query_1)}$}
\item $\mathrm{CLASS4}$ -- \textrm{Device is disjoint from $\mathnormal{R}$ and at least one of its corresponding cells in $\mathnormal{C_{ic} = \{ c|c \sqcap R \neq \varnothing \}}$, e.g., $\mathnormal{(device_{1}, query_1)}$}
\item $\mathrm{CLASS5}$ -- \textrm{Device is disjoint from $\mathnormal{R}$ and at least one of its corresponding cells in $\mathnormal{C_{ex} = \{ c| \{ c, c'\} \in G.E, c' \in C_{ic} \}}$, but none of them are in $\mathnormal{C_{ic}}$, e.g., $\mathnormal{(device_{10}, query_2)}$}
}
\end{itemize}
\end{columns}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Query Registration}
\begin{itemize}
\item To handle concurrent \textrm{CRMQ}s, a \emph{Query Hash Table} is created hold the results
\begin{itemize}
\item $\mathnormal{QHT[queryID] = (CR, UR);~ CR \subseteq O_{indoor}, UR \subseteq O_{indoor}}$
\item where $\mathnormal{CR}$ is the certain result and $\mathnormal{UR}$ is the uncertain result
\end{itemize}
\item Overview
\begin{figure}[tb]
\includegraphics[width=0.68\columnwidth]{figures/2-2/2-2-6.pdf}
\end{figure}
\end{itemize}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Query Registration Algorithm (I)}
\begin{columns}[c]
\column{.48\textwidth}
\begin{figure}[tb]
\includegraphics[width=\columnwidth]{figures/2-2/2-2-7.pdf}
\end{figure}
\column{.6\textwidth}
\scriptsize{
\begin{enumerate}
\item Lines 1--9: \textrm{Initialization} \pause
\item Lines 10--14: \textrm{Add possible devices to CriticalDeviceList $\mathnormal{cd}$ ($\mathrm{CLASS1}$ and $\mathrm{CLASS2}$)} \pause
\item Lines 15--16: \textrm{Add possible $\mathrm{CLASS3}$ devices} \pause
\item Lines 17--20: \textrm{Add possible $\mathrm{CLASS4}$ devices} \pause
\item Line 21: \textrm{Determine extended cell set $\mathnormal{C_{ex}}$} \pause
\item Lines 22--25: \textrm{Add possible $\mathrm{CLASS5}$ devices}
\end{enumerate}
}
\end{columns}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Query Registration Algorithm (II)}
\begin{columns}[c]
\column{.48\textwidth}
\begin{figure}[tb]
\includegraphics[width=\columnwidth]{figures/2-2/2-2-8.pdf}
\end{figure}
\column{.6\textwidth}
\vspace{-10pt}
\scriptsize{
\begin{enumerate}
\item Lines 26--27: \textrm{Add active objects from DHT to the certain result} \pause
\item Lines 28--29: \textrm{Intersected device set, add active objects from DHT to the uncertain result} \pause
\item Lines 30--31: \textrm{From covered cells, add deterministic objects to the certain result} \pause
\item Lines 32-37: \textrm{If more than one cell, check nondeterministic objects. If all its possible cells are in $\mathnormal{C_c}$ add the object to the certain result, else uncertain result} \pause
\item Lines 38--39: \textrm{Only one cell. Nondeterministic objects are added to the uncertain result} \pause
\item Lines 40--41: \textrm{Intersected set. Add all objects to the uncertain result} \pause
\item Line 42: \textrm{Results added to QHT} \pause
\item Lines 43--44: \textrm{DQHT entry is created for each critical device}
\end{enumerate}
}
\end{columns}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Query Result Updates}
\begin{itemize}
\footnotesize{
\item When an object enters the activation range of a critical device:
\begin{itemize}
\scriptsize{
\item For $\mathrm{CLASS1}$ or $\mathrm{CLASS2}$ devices the object is the certain result
\item For $\mathrm{CLASS3}$ devices the object is possibly in the query range
\item For $\mathrm{CLASS4}$ or $\mathrm{CLASS5}$ devices the object is not in the query range
}
\end{itemize}
\item When an object leaves:
\begin{itemize}
\scriptsize{
\item For $\mathrm{CLASS1,3,5}$ devices there are no changes
\item For $\mathrm{CLASS2}$ devices the object may still be in the query range, thus it is moved to the uncertain result
\item For $\mathrm{CLASS4}$ devices the object may be in a cell that intersects with the query range and it added to the uncertain result
}
\end{itemize}
}
\end{itemize}
\begin{figure}[tb]
\includegraphics[width=0.75\columnwidth]{figures/2-2/2-2-9.pdf}
\end{figure}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Deferred Query Updates}
\begin{itemize}
\item Deferred query updates is the concept of postponing updates where we already know the result
\item The time a query result is still valid is calculated from \emph{minimum indoor walking distance} divided by the \emph{maximum speed} an object can travel
\end{itemize}
\begin{columns}[c]
\column{.3\textwidth}
\begin{figure}[tb]
\includegraphics[width=\columnwidth]{figures/2-2/2-2-5.pdf}
\end{figure}
\column{.7\textwidth}
\footnotesize{
Consider $\mathnormal{query_1}$, after the object $\mathnormal{o}$ leaves a $\mathrm{CLASS2}$ critical device $\mathnormal{devoce_{13}}$, it should be moved from certain to uncertain result.
\\~\\
Let $\mathnormal{V_{max}}$ be the maximum speed, if $\mathnormal{R_1 = V_{max} * \Delta t}$, the certain result can be maintained without updating for an extra period of time $\mathnormal{\Delta t}$.
}
\end{columns}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Deferred Query Updates}
\begin{itemize}
\item Deferred query updates is the concept of postponing updates where we already know the result
\item The time a query result is still valid is calculated from \emph{minimum indoor walking distance} divided by the \emph{maximum speed} an object can travel
\end{itemize}
\begin{columns}[c]
\column{.3\textwidth}
\begin{figure}[tb]
\includegraphics[width=\columnwidth]{figures/2-2/2-2-5.pdf}
\end{figure}
\column{.7\textwidth}
\footnotesize{
Consider $\mathnormal{query_1}$, after the object $\mathnormal{o}$ leaves a $\mathrm{CLASS2}$ critical device $\mathnormal{devoce_{13}}$, it should be moved from certain to uncertain result.
\\~\\
Let $\mathnormal{V_{max}}$ be the maximum speed, if $\mathnormal{R_1 = V_{max} * \Delta t}$, the certain result can be maintained without updating for an extra period of time $\mathnormal{\Delta t}$.
}
\end{columns}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Probabilistic Analysis of Uncertain Results}
\footnotesize{\textrm{
To analyze probability that $\mathnormal{o}$ is in the query range $\mathnormal{R}$. Assume that the possible locations in a given indoor space conform a uniform distribution within all reachable regions constrainted by its maximum speed.
}}
\\~\\
\textit{1. Probabilities for Active Objects}
\\~\\
Formally, the probability that an active object $\mathnormal{o}$ is in the range $\mathnormal{R}$ is defined as:
\begin{equation}
\mathnormal{prob(o \Theta R) = \frac{Area(Devices(d).ActRange \sqcap R)}{Area(Devices(d).ActRange)}}
\end{equation}
\begin{columns}[c]
\column{.3\textwidth}
\vspace{-15pt}
\begin{figure}[tb]
\includegraphics[width=\columnwidth]{figures/2-2/2-2-5.pdf}
\end{figure}
\column{.7\textwidth}
Consider $\mathnormal{device_{16}}$, a $\mathrm{CLASS3}$ device for $\mathnormal{query_1}$, the probability for an active object in $\mathnormal{device_{16}}$ to be in the query range is calculated as ...
\end{columns}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Probabilistic Analysis of Uncertain Results}
\textit{2. Probabilities for Inactive Objects}
\\~\\
For the case that after leaving $\mathrm{CLASS2,3,4}$ devices, the probabilities for incative objects can be defined based on the maximum speed constraint.
\\~\\
An example for an inactive object that just leaves $\mathnormal{device_{12}}$...
\vspace{-5pt}
\begin{figure}[tb]
\includegraphics[width=0.7\columnwidth]{figures/2-2/2-2-10.pdf}
\end{figure}
\end{frame}
%------------------------------------------------
\begin{frame}
\frametitle{Conclusion}
\begin{itemize}
\item A solution with a symbolic model of the floorplan, device locations, and activation ranges
\item Data is stored in several hash tables which make it possible to efficiently locate a specific object (result is a signle room/cell, or a set of rooms/cells)
\item Future work
\begin{itemize}
\item sharing of query processing among concurrent queries
\item common critical devices exploitation
\item other types of queries: range and $k$NN
\item further invastigate the probability analysis
\end{itemize}
\end{itemize}
\end{frame}