A Time Window Based Lightweight Real-Time Activity Recognition Method