Researchers are not sure how ketosis inhibits seizures. One study showed that a byproduct of ketosis called beta-hydroxybutyrate (BHB) inhibits seizures in animals. If BHB also works in humans, researchers may eventually be able to develop drugs that mimic the seizure-inhibiting effects of the ketogenic diet.