A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations comprising:
- obtaining, by the computer system of an online service site accessible to a plurality of users, a first type of the plurality of users' historical behavior data of a first time period in which the users interacted with the online service site, wherein the first type of the plurality of users' historical behavior data represents respective time durations between when a user sends an instant message and when the user provides a request for a service of the online service site;
- calculating, by the computer system of the online service site for each user of the plurality of users, a first metric value for the first type of the plurality of users' historical behavior data over the first time period;
- obtaining, by the computer system of the online service site, a second type of the plurality of users' historical behavior data of a second time period that is shorter than the first time period;
- calculating, by the computer system of the online service site for each user of the plurality of users, a second metric value for the second type of the plurality of users' historical behavior data over the second time period that is shorter than the first time period;
- generating a respective user-specific risk model for each user of the plurality of users who accessed the online service site over the first time period, wherein each respective risk model for each user is based on first historical behavior data of the first type by the user over the first time period and second historical behavior data of the second type of the user over the second time period, wherein generating the user-specific risk model comprises generating a user-specific safety threshold based on historical behavior data of the first type over the first time period that represents a time duration within which the user must initiate the request for the service after sending the online service site the instant message in order for the request for the service to be approved;
- receiving, from a particular user of the plurality of users, a request for the service provided by the online service site;
- computing a first value for the first type of behavior data by the particular user, including computing a time duration between which the particular user sent the online service site an instant message and when the user provided a request for the service;
- computing a second value for the second type of the behavior data by the particular user;
- obtaining, by the computer system of the online service site, a user-specific risk model for the particular user, wherein the user-specific risk model for the particular user comprises the user-specific safety threshold computed for the particular user from the first type of the particular user's historical behavior data;
- determining, based on the first value for the first type of the behavior data by the particular user, that the particular user did not initiate the request for the service within the time duration specified by the user-specific safety threshold generated for the particular user;
- and
- in response to determining that the particular user did not initiate the request for the service within the time duration specified by the user-specific safety threshold generated for the particular user, rejecting the request for the service.