  Fires, earthquakes, floods, hurricanes, overcrowding, or and even pandemic
viruses endanger human lives. Hence, designing infrastructures to handle
possible emergencies has become an ever-increasing need. The safe evacuation of
occupants from the building takes precedence when dealing with the necessary
mitigation and disaster risk management. This thesis deals with designing an
IoT system to provide safe and quick evacuation suggestions. The IoT-based
evacuation system provides optimal evacuation paths that can be continuously
updated based on run-time sensory data, so evacuation guidelines can be
adjusted according to visitors occupants that evolve over time. This thesis
makes the following main contributions: i) Addressing an up to date state of
the art class for IoT architectural styles and patterns; ii) Proposing a set of
self-adaptive IoT patterns and assessing their specific quality attributes
(fault-tolerance, energy consumption, and performance); iii) Designing an IoT
infrastructure and testing its performance in both real-time and design-time
applications; iv) Developing a network flow algorithm that facilitates
minimizing the time necessary to evacuate people from a scene of a disaster; v)
Modeling various social agents and their interactions during an emergency to
improve the IoT system accordingly; vi) Evaluating the system by using
empirical and real case studies.
