A system and method for optimizing chemigation of a crop. The method includes: identifying at least one image of at least one portion of the crop analyzing, via machine imaging, the at least one image to identify at least one reference image respective of the crop determining, based on the at least one reference image, at least one abnormality respective of the crop and generating a chemical composition for treating the at least one abnormality.