Self-mediated exploration in artificial intelligence inspired by cognitive psychology