Ketogenic diet. The ketogenic diet (KD) has been formally used to treat epilepsy for the past 100 years. Its history of use dates to Hippocrates who realized that while people with epilepsy fasted their seizures improved. The ketogenic diet mimics a long-term fasting state by having the body enter ketosis with a high fat low carbohydrate + protein diet.