A reference signal is mixed with a bioelectric signal, the capacitance between a biological composition and an input device is detected from the intensity of the reference signal, and the gain of the bioelectric signal is corrected on the basis of the detected capacitance.