Definitions of self-flagellation:

  • noun:   self-punishment inflicted by whipping