Application of support vector machine technology for weed and nitrogen stress detection in corn