Machine Learning for Unbalanced Datasets using Neural Networks