Bio-inspired systems for treatment of diabetes