“…The context-aware system is an answer to challenges associated with service discovery, mobility, environmental changes, and context retrieval (Romero et al, 2008). Context inference plays the role of the brain in the context-aware middleware, which contains two main tasks: one is checking context consistency; the other is determining or inferring the user's situation.…”