1. A method, performed by an electronic device, for determining whether to allow a user to access 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 wherein the context information includes at least one reliability value indicative of a quality of the sensor data; selecting at least one verification unit from a plurality of verification units based on the at least one reliability value, wherein each of the plurality of verification units is configured to determine whether the user is authorized to access the electronic device; assigning at least one weight to the at least one selected verification unit based on the context information; 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 the at least one verification value is indicative of an authorized user or an access command; calculating a weighted verification value by multiplying the at least one verification value by the at least one weight; and determining whether to allow the user to access the electronic device based on a comparison of the weighted verification value with a threshold verification value.