Recognition of activities in resource constrained environments; reducing the computational complexity