A computer-implemented method, comprising: receiving, via an input interface associated with an electronic device, a first user input; identifying a first device class based on a current usage mode of the electronic device and a first set of device property values associated with the current usage mode of the electronic device; obtaining normalized values of input features associated with the first user input, the input feature values being normalized based on representative device property values that are defined for the first device class; and performing authentication of a user of the electronic device based on the normalized input feature values associated with the first user input, characterised in that the identifying the first device class comprises: for each device class in a set of predefined device classes, comparing the first set of device property values associated with the current usage mode of the electronic device with corresponding ones of the representative device property values of the device class; for each of the predefined device classes, obtaining a similarity metric value representing overall similarity between the first set of device property values associated with the current usage mode of the electronic device and corresponding representative device property values of the device class based on the comparing; and selecting a device class associated with the highest similarity metric value as the first device class. receiving, via an input interface associated with an electronic device, a first user input; identifying a first device class based on a current usage mode of the electronic device and a first set of device property values associated with the current usage mode of the electronic device; obtaining normalized values of input features associated with the first user input, the input feature values being normalized based on representative device property values that are defined for the first device class; and performing authentication of a user of the electronic device based on the normalized input feature values associated with the first user input, characterised in that the identifying the first device class comprises: for each device class in a set of predefined device classes, comparing the first set of device property values associated with the current usage mode of the electronic device with corresponding ones of the representative device property values of the device class; for each of the predefined device classes, obtaining a similarity metric value representing overall similarity between the first set of device property values associated with the current usage mode of the electronic device and corresponding representative device property values of the device class based on the comparing; and selecting a device class associated with the highest similarity metric value as the first device class. for each device class in a set of predefined device classes, comparing the first set of device property values associated with the current usage mode of the electronic device with corresponding ones of the representative device property values of the device class; for each of the predefined device classes, obtaining a similarity metric value representing overall similarity between the first set of device property values associated with the current usage mode of the electronic device and corresponding representative device property values of the device class based on the comparing; and selecting a device class associated with the highest similarity metric value as the first device class.