The online learning architecture with edge computing for high-level control for assisting patients