A Dynamic Approach to Recognize Activities in WSN. (22nd April 2013)