derived from the term mind-fucking, where when mind fucking one self, one tends to mindsterbate, therefore the word directs towards the situation to when a person is fucking with ones on mind he tends to be mind-fucking
Joe: I have been fucking with my mind, with all this arithmetic and alcohol
Harry: Yeah dude I guess mindsterbation of a higher form