Ambient intelligent framework for modelling critical medical events based on context awareness | Synapse