Combining expert knowledge and neural networks to model environmental stresses in agriculture