The invention discloses a method of operating a system for neurofeedback (NFB) that includes trained animal in a feedback chain. Feedback chain consists of the following steps:A->;B->;C->;D->;Awherein said steps are:A. real time recording of the subject's EEG performed by the user module and forwarded to the mobile module;B. analytics of the recorded signal performed by the mobile module and algorithmic decisioning about the stimulation form;C. forwarding the stimulation towards the animal by using of one or more ultrasonic speakers simultaneously wherein the information needed for the animal performance is forwarded in the form of a coded ultrasonic signal; andD. performing of a learned action by the animal triggered by the received ultrasonic signal from the step C which provides a stimulus to the subject exposed to the NBF training.