Semen collection refers to the process of obtaining semen from human males or other animals with the use of various methods, for the purposes of artificial insemination, or medical study (usually in fertility clinics). Semen can be collected via masturbation (e. g., from stallions and canids), prostate massage, artificial vagina, penile vibratory stimulation (vibroejaculation) and electroejaculation. Semen can be collected from endangered species for cryopreservation of genetic resources.