Disclosed is a method for an electronic device. The method may include: acquiring a galvanic skin response generating a first parameter for a first interval and a second parameter for a second interval based on the galvanic skin response, the second interval being an interval before the first interval determining a first threshold corresponding to the first interval based on the second parameter and determining an activity state of the first interval based on the first threshold and the first parameter corresponding to the first interval.