The authors created a machine learning–based model to identify patients with major depressive disorder in the primary care setting at high risk of frequent emergency department visits, enabling ...