Artificial Intelligence Used To Predict Loneliness In Senior Citizens Publishing in the American Journal of Psychiatry, the researchers were able to harness natural language processing (NLP) and machine learning to classify the sentiment and emotions of speech.