A method for providing semen optimized for use in artificial insemination is described. Methods involve monitoring sperm cell metabolism by assays that produce results in real time, while sperm are still being processed into doses for use in insemination. Processing is modified in response to assay results, to optimize sperm performance.