Designing a bidirectional, adaptive neural interface incorporating machine learning capabilities and memristor-enhanced hardware. (January 2021)