Researchers discovered a “spooky” similarity between how human brains and artificial intelligence compute