Anyone who’s had experience with depression knows that finding the appropriate treatment or medication is a trial and error process. We’re often unable to identify the psychological or biological drivers behind the affliction, and different drugs affect different people in different ways (and, sadly, those drug interactions can often prove to be paradoxical). The research is still at its early stages, but some psychiatrists who are deploying technologies like brain scans and machine learning think they’re beginning to crack the code.