Forecasting transitions in the state of food security with machine learning using transferable features