An ear plug comprises a shell with at least two electrodes adapted formeasuringbrain wave signals, said electrodes being connected with means for processingthemeasured signals, wherein the contours of the outer surface of the ear plugand theelectrodes are individually matched to at least part of the ear canal and theconcha ofthe user. The invention further provides a method for producing an ear plug.