Ambient Intelligence Framework for Context Aware Adaptive Application