I've had a weird thought that it might be that consciousness is the result of a quantum field that collapses to instantiate a consciousness when enough feedback mechanisms are present to allow for its function. Of course, this is likely not true, but it would explain a few things.