The way I think is it is like a pattern trying to maintain itself. Pattern is the ghost in the machine. But the pattern isn't significant in itself in that apart from continuing its existence there is no other requirement. It's just that intelligence either individual or collective helps in continuing the pattern further. Self in that sense is like a soliton on a water surface.