I think you would need the biological components of a nervous system for some of these things
Why couldn't a different substrate produce the same structure?