Prediabetes affects more than 600 million people worldwide and is linked not only to an increased risk of type 2 diabetes but also to impaired brain function.