Wearable and digital devices to monitor and treat metabolic diseases