This isn't my field (nor yours, apparently). But my layman's understanding is that the activity generated by our brains is different during sleep, dreams, waking activity, etc. I'm just not qualified to get into this in any detail at all. But this I do know -- there are no verifiable electrical readouts at all for creatures (deities, angels, whatever) from the so-called "spirit world."
That is true, but you equate consciousness to electrical activity. If electrical activity is present, where is the consciousness, for a comatose person? If the electrical activity related to consciousness is not present, which you must admit if a person under the knife is not conscious, where is the consciousness? I believe most people associate spirit with the "person". A "total" description of the "being". Program might be analogous. It is inferred from the conscious being. But not wearing a scarf on my head and peering into a crystal ball I am not an expert on spirits, not even the kind that comes in bottles.