ritualistic behavior

rit·u·al·is·tic be·hav·ior

automatic behavior of psychogenic or cultural origin.