The relationships between the use of agricultural inputs and crop yields are complex. This study presents a machine learning model to predict the changes in crop yield in the face of single and combined agricultural input shocks and shows that shocks in the availability of commercial agricultural inputs have a considerable impact on crop yields, particularly in high-yield regions worldwide.