Text this: Iterative error re-establishment to improve neural network cost function for imbalanced data learning