A Method for Low Power Lightweight Activity Recognition using Optimal Frequencies