An optimization strategy for detection of fertile pigeon egg based on NIR spectroscopy analysis