Underfitting is the situation in which the model cannot model the training data or generalize to new data. Underfitting is easy to detect when you have a good performance metric. The solution to underfitting is simply to try alternate machine learning algorithms.