A holistic human activity recognition optimisation using AI techniques