This is very similar to how people develop allergies to common substances in their environment. (thedrakecenter.com)
SMPs, which are the most common substances used in 4 - D printing, can be programmed to «remember» a shape and then transform into it when heated. (sciencedaily.com)