There are automated sperm sample analyzers already, that give sperm concentration, motility (broken down by rapid, slow, and non), morphology, velocity, and more.
Here's a promotional video from 2008 from a maker of such devices [1]. Here's a 2015 video from them showing a newer model [2].
I'm not sure how they actually work. Given the age it probably isn't machine learning.
The same company also sells a home test kit, under the name Yo, which might use machine learning [3]. It uses your smart phone camera. There is also a PC/Mac version that looks like it includes its own camera. $69.95 for either kit, $45.95 for refills for the consumables for 2 tests, $89.95 for 4 tests.
[1] https://www.youtube.com/watch?v=krakvOT-7xI
[2] https://www.youtube.com/watch?v=ukIns4rPgHw
[3] https://www.yospermtest.com/how-it-works/