Smart foam and artificial intelligence could help robots know if they're injured

This foam creation can figure out what's happening to it.