If that interests you, see the philosophical debates about the nature and existence of consciousness, e.g. https://www.nybooks.com/daily/2018/03/13/the-consciousness-d... and the follow-up https://www.nybooks.com/daily/2018/04/03/magic-illusions-and...
I thought of this connection because of the philosopher Daniel Dennett's writing about the Sphex wasp.