You can mentally train your way out of that. For instance, some monks can generate gamma waves off of the proverbial charts when doing a compassion meditation. For the more cerebral aspects of self-inflicted suffering and with a lower barrier to entry, cognitive behavior therapy should yield some results.