Programmable responsive hydrogels inspired by classical conditioning algorithm | Synapse