Machine learning-enhanced gesture recognition through impedance signal analysis