User feature value measurement method and apparatus, storage medium and electronic device
A user feature value measurement method includes: generating training data of at least one user that by acquiring standard feature values and measurement feature data input multiple times by the user, wherein the training data of each user comprises a standard feature value set and a measurement feature data set; training a data calculation model of each user based on the training data; acquiring current feature data of a target user, and determining a data calculation model of the target user according to the current feature data and the measurement feature data set; and calculating a user feature value of the target user based on the current feature data and the data calculation model of the target user.
1 . A user feature value measurement method, comprising:
generating training data of at least one user that by acquiring standard feature values and measurement feature data input multiple times by the user, wherein the training data of each user comprises a standard feature value set and a measurement feature data set;
training a data calculation model of each user based on the training data;
measuring current feature data of the target user, and calculating correlation coefficients between the current feature data and multiple measurement feature data sets;
determining a data calculation model corresponding to measurement feature data with a correlation coefficient greater than or equal to a second preset threshold as the data calculation model of the target user; wherein the correlation coefficient is greater than or equal to the second preset threshold, corresponding to the user login being determined; and
calculating a user feature value of the target user based on the current feature data and the data calculation model of the target user.
2 . The method according to claim 1 , further comprising:
acquiring a current standard feature value of the target user when the user feature value is not within a preset range; and
updating the training data based on the current feature data and the current standard feature value when a difference between the user feature value and the current standard feature value is greater than a preset value.
3 . The method according to claim 1 , further comprising:
acquiring a current standard feature value of the target user at a preset time interval; and
updating the training data based on the current feature data and the current standard feature value when a difference between the user feature value and the current standard feature value is greater than a preset value.
4 . The method according to claim 2 , wherein the updating the training data based on the current feature data and the current standard feature value comprises:
determining a target correlation degree as a maximum value of correlation degrees calculated between the current feature data of the target user and a plurality of measurement feature data corresponding to the target user;
replacing the measurement feature data corresponding to the current feature data by the current feature data when the target correlation degree is greater than or equal to a first preset threshold; and
replacing the standard feature values corresponding to the current feature data by the current standard feature value.
5 . The method according to claim 4 , wherein the updating the training data based on the current feature data and the current standard feature value further comprises:
when the target correlation degree is less than the first preset threshold, adding the current feature data and the current standard feature value to the training data, and deleting a group of standard feature values and measurement feature data firstly input by the target user.
6 . The method according to claim 1 , wherein the training the data calculation model of the user based on the training data comprises:
updating parameters in the data calculation model based on the training data.
7 . The method according to claim 1 , wherein the calculating the correlation coefficients between the current feature data and the multiple measurement feature data sets comprises:
obtaining a correlation coefficient by calculating an average value of correlation degrees between the current feature data and each measurement feature data in one of the multiple measurement feature data sets; and
obtaining the correlation coefficients by traversing the multiple measurement feature data sets.
8 . A non-transitory computer-readable storage medium on which a computer program is stored, wherein the program, when executed by a processor, is used for implementing a user feature value measurement method comprising:
generating training data of at least one user that by acquiring standard feature values and measurement feature data input multiple times by the user, wherein the training data of each user comprises a standard feature value set and a measurement feature data set;
training a data calculation model of each user based on the training data;
measuring current feature data of the target user, and calculating correlation coefficients between the current feature data and multiple measurement feature data sets;
determining a data calculation model corresponding to measurement feature data with a correlation coefficient greater than or equal to a second preset threshold as the data calculation model of the target user; wherein the correlation coefficient is greater than or equal to the second preset threshold, corresponding to the user login being determined; and
calculating a user feature value of the target user based on the current feature data and the data calculation model of the target user.
9 . An electronic device, comprising:
one or more processors; and
a memory, configured to store one or more programs which, when executed by the one or more processors, cause the one or more processors to:
generate training data of at least one user that by acquiring standard feature values and measurement feature data input multiple times by the user, wherein the training data of each user comprises a standard feature value set and a measurement feature data set;
train a data calculation model of each user based on the training data;
measure current feature data of the target user, and calculate correlation coefficients between the current feature data and multiple measurement feature data sets;
determine a data calculation model corresponding to measurement feature data with a correlation coefficient greater than or equal to a second preset threshold as the data calculation model of the target user; wherein the correlation coefficient is greater than or equal to the second preset threshold, corresponding to the user login being determined; and
calculate a user feature value of the target user based on the current feature data and the data calculation model of the target user.
10 . The electronic device according to claim 9 , wherein the one or more processors are further caused to:
acquire a current standard feature value of the target user when the user feature value is not within a preset range; and
update the training data based on the current feature data and the current standard feature value when a difference between the user feature value and the current standard feature value is greater than a preset value.
11 . The electronic device according to claim 9 , wherein the one or more processors are further caused to:
acquire a current standard feature value of the target user at a preset time interval; and
update the training data based on the current feature data and the current standard feature value when a difference between the user feature value and the current standard feature value is greater than a preset value.
12 . The electronic device according to claim 10 , wherein the one or more processors are further caused to:
determine a target correlation degree as a maximum value of correlation degrees calculated between the current feature data of the target user and a plurality of measurement feature data corresponding to the target user;
replace the measurement feature data corresponding to the current feature data by the current feature data when the target correlation degree is greater than or equal to a first preset threshold; and
replace the standard feature values corresponding to the current feature data by the current standard feature value.
13 . The electronic device according to claim 12 , wherein the one or more processors are further caused to:
when the target correlation degree is less than the first preset threshold, add the current feature data and the current standard feature value to the training data, and delete a group of standard feature values and measurement feature data firstly input by the target user.
14 . The electronic device according to claim 9 , wherein the one or more processors are further caused to:
update parameters in the data calculation model based on the training data.
15 . The electronic device according to claim 9 , wherein the one or more processors are further caused to:
obtain a correlation coefficient by calculating an average value of correlation degrees between the current feature data and each measurement feature data in one of the multiple measurement feature data sets; and
obtain the correlation coefficients by traversing the multiple measurement feature data sets.