Inertial-based smart indoor localisation system