Sperm collection. Sperm are collected by means of masturbation or by taking sperm from a testicle through a small incision. This procedure is done when a blockage prevents sperm from being ejaculated or when there is a problem with sperm development. Sperm may have been collected and frozen at an earlier time. Then the sperm are thawed on the day the eggs are collected.