A Novel Neural Network Training Framework with Data Assimilation