Suicide is complex. But researchers are finding that AI and real-time monitoring tools could help offer support at exactly the right moment.