A medical system including electrodes for acquiring electroencephalography (EEG) signals, amplifiers to amplify the EEG signals, an analog-to-digital converter to generate digitalized EEG data from the EEG signals, and a processor for processing the digitalized EEG data to generate a indication of neurological or psychological symptom based on a combination selected among spectral, temporal, and spatial features of the digitalized EEG data. The medical system further including a transcranial electrical stimulator that regulates stimulation frequency, intensity, or polarity according to the indication.