Endocrinologists are trained to diagnose and treat conditions that affect glands, and many conditions including hormone imbalances, diabetes, thyroid diseases, metabolic disorders, over or underproduction of hormones, menopause, osteoporosis, and of course, infertility.