Text this: Real-time pattern recognition for prosthetic hand