A two-layer NN framework for modeling agro-hydrological systems