self-punishment

noun

1.
punishment inflicted on yourself