1. A method, performed by an electronic device, for verifying a user to allow access to the electronic device, the method comprising: receiving sensor data from a plurality of sensors, wherein the plurality of sensors includes at least an image sensor and a sound sensor; determining context information of the electronic device based on the sensor data; selecting at least one verification unit from a plurality of verification units based on the context information, wherein each of the plurality of verification units is capable of verifying whether the user is authorized to access the electronic device; calculating, by the at least one selected verification unit, at least one verification value based on the sensor data from at least one of the image sensor or the sound sensor, wherein each of the at least one verification value is indicative of at least one of an authorized user or a predetermined access command; and determining whether to allow the user to access the electronic device based on the at least one verification value and the context information.