A Framework for the Prediction of Soil Moisture