Intelligent fasting techniques