The intelligent intestinal prosthesis: from experiment to practice