The invention provides an identity
verification method and device, and relates to the technical field of
data processing, and the method comprises the steps: obtaining the eye and head movement of a first user in each glancing time period to form a glancing
feature set, and the eye and head movement in each
staring time period to form a
staring feature set in the process of inputting a
password through the eye and head cooperative movement of the first user; the glancing
feature set and the
staring feature set are input into corresponding pre-trained
random forest classifiers, output results of the
random forest classifiers are summarized, a first
authentication result is obtained through a voting mechanism, and the
random forest classifiers are constructed according to the corresponding feature sets obtained when a target user registers; matching
authentication is carried out according to a
password indicated by the
eye movement track and a
password when the target user registers, and a second
authentication result is obtained; and determining whether the identity
verification of the first user is successful or not according to the first authentication result and the second authentication result. Therefore, the
time cost can be reduced, and the user experience and safety can be improved.