To harm oneself.
Physical or verbal maltreatment of oneself.
Injury inflicted deliberately upon oneself, especially resulting from a mental disorder.
onanism