A neural network to analyze fertility data