Apply Automation Only On One Of Many Identical Patterns

Hello,

First time question on the forum…
Suppose I have pattern 0 multiple times in a song but want to apply an automation on only one instance of the pattern, how can I do so?

Thanks,
Xiao