Science fiction? No, this is the reality according to Blue River Technology and their See & Spray machine proves it.
Artificial Intelligence (deep learning algorithms) have been trained to recognize weed vs. cotton plants. Their "See & Spray machine" sprays than just the weed optimizing herbicides.
Blue River Technology has been acquired by John Deere last year (Sept 2017) for $305 million