Share an algorithm to collect #Electrochemical signals from brain.I got this from web.
Information processing starts with input from the sensory organs, which transform physical stimuli such as touch, heat, sound waves, or photons of light into electrochemical signals. The sensory information is repeatedly transformed by the algorithms of the brain in both bottom-up and top-down processing. For example, when looking at a picture of a black box on a white background, bottom-up processing puts together very simple information such as color, orientation, and where the borders of the object are - where the color changes significantly over a short space - to decide that you are seeing a box. Top-down processing uses the decisions made at some steps of the bottom-up process to speed up your recognition of the box. Top-down processing in this example might help you identify the object as a black box rather than a box-shaped hole in the white background.
Once information is processed to a degree, an attention filter decides how important the signal is and which cognitive processes it should be made available to. For example, although your brain processes every blade of grass when you look down at your shoes, a healthy attention filter prevents you from noticing them individually. In contrast, you might pick out your name, even when spoken in a noisy room. There are many stages of processing, and the results of processing are modulated by attention repeatedly.