According to classic forensic medicine, it is a sexual perversion but nowadays masturbation is treated as a natural sexual activity.