The technology, which was tested with four people, is still in its infancy but could one day help people communicate or decode dreams, researchers say