Using artificial intelligence technology, researchers have identified both risk and protective factors for depression in middle-aged to older adults. Social isolation, the study found, was the biggest risk factor for depression, followed by mobility difficulties and health issues.