A recent study found a more reliable way to detect cognitive decline