Electroencephalography (EEG) is a non-invasive technique used to record electrical activity of the brain through electrodes placed on the scalp, providing valuable insights into brain function and aiding in the diagnosis of neurological disorders. It is widely used in clinical and research settings to monitor brain states, study sleep patterns, and investigate cognitive processes.