New technology to help detect depression before it starts