Multilevel approach to male infertility using machine learning