Diagnosing depression and other mental illnesses is largely subjective, but that could soon change as Sydney-based Trivarx Ltd. developed an AI-based algorithm that uses heart rate and heart rate variability coupled with sleep disturbance to diagnose major depressive episodes.