Weather risk affects agricultural production. Index insurance has been proposed to hedge against severe weather risk, but large basis risk and low demand accompany current piecewise-linear index insurance contracts. We propose embedding a neural network-based optimization scheme into an expected...