Brain scans and machine learning programs are paving the way for a scientific breakthrough