1. A method comprising: periodically sampling a user environment via a set of environmental sensors integrated into a communication device; deriving a set of environmental circumstances based at least partially on an output of the set of environmental sensors by an analysis module in communication with the set of environmental sensors; and comparing, by the analysis module, the derived set of environmental circumstances to a set of templates to determine whether there is a matching template, wherein if more than one of the templates matches the derived set of environmental circumstances, a best-match template is determined, and wherein if there is a matching template, an action script is executed.
1. A method comprising: periodically sampling a user environment via a set of environmental sensors integrated into a communication device; deriving a set of environmental circumstances based at least partially on an output of the set of environmental sensors by an analysis module in communication with the set of environmental sensors; and comparing, by the analysis module, the derived set of environmental circumstances to a set of templates to determine whether there is a matching template, wherein if more than one of the templates matches the derived set of environmental circumstances, a best-match template is determined, and wherein if there is a matching template, an action script is executed. 4. The method of claim 1 , further comprising sending a command from the analysis module to an emergency action module to assume control of a component of the communication device at least partially based on the matching template.