Researchers have created a machine-learning algorithm that was able to accurately predict suicidal ideation and attempts in a small group of participants.
Source: Suicide could be predicted with brain imaging