Diving deep to understand minds and machines