A method for preventing automatic ticket swiping

By evaluating the credibility value of ticket purchase requests, combined with ticket information, account login information and historical ticket purchase data, it effectively prevents automatic ticket fraud, solves the problem of existing technology being difficult to prevent machine learning from identifying verification codes, and protects consumers' safety. Right to purchase tickets.

CN112801668BActive Publication Date: 2024-10-01NSFOCUS INFORMATION TECHNOLOGY CO LTD +1
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202110160294.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-05
Publication Date
2024-10-01
Estimated Expiration
2041-02-05

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively prevent automatic ticket fraud, especially after the widespread application of machine learning technology, it becomes easier to identify graphic verification codes and text verification codes, causing the existing verification methods to become ineffective.

Method used

After receiving the ticket purchase request, the credibility value of the ticket purchase request is determined based on the ticket information, account login information and historical ticket purchase information, and whether to intercept the ticket purchase request is determined based on the preset threshold value, using multiple credibility sub-coefficient values ​​and other The weight values ​​are combined in a way that evaluates the credibility of the request.

Benefits of technology

Effectively prevent automatic ticket fraud, protect ordinary consumers' ticket purchasing rights, and ensure the fairness and security of the ticket purchasing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112801668B_ABST
    Figure CN112801668B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for preventing automatic ticket swiping, which is used to effectively prevent automatic ticket swiping. After receiving a ticket purchase request from a first account, the embodiment of the present invention can determine the credibility value of the ticket purchase request according to the information of the ticket to be purchased carried in the ticket purchase request, the information of the terminal logged in by the first account, and the saved historical ticket purchase information, and can determine whether to intercept the ticket purchase request according to the credibility value of the ticket purchase request and a preset credibility value threshold, thereby effectively preventing automatic ticket swiping and protecting the normal ticket purchase rights of ordinary consumers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automatic ticket swiping, and in particular to a method, device, equipment and medium for preventing automatic ticket swiping. Background Art

[0002] Tickets include various types of passes, such as tickets, admission tickets, visit tickets, transportation tickets, etc. Transportation tickets include bus tickets, train tickets, plane tickets, etc. Admission tickets include various cultural and entertainment tickets, such as movie tickets, performing arts and entertainment tickets, etc. With the development and popularization of the Internet, online ticket purchase has become the main way to sell tickets.

[0003] However, while online ticket purchases bring convenience to consumers’ lives, they also bring certain troubles to consumers’ lives. For example, ticket sellers use computer programs to quickly and automatically swipe tickets in large quantities, disrupting the market order and infringing on the right of ordinary consumers to purchase tickets fairly. In addition, the automatic ticket swiping behavior of ticket sellers also affects the reputation of ticket sales companies.

[0004] Although it is now possible to prevent automatic ticket swiping through verification methods such as graphic verification code recognition or text verification code recognition on the client, with the widespread application of technologies such as machine learning, it is now possible to recognize graphic verification codes or text verification codes through machine learning and other technologies. The existing verification methods are difficult to effectively prevent automatic ticket swiping. Therefore, there is an urgent need for a technical solution that can effectively prevent automatic ticket swiping. Summary of the invention

[0005] The present invention provides a method, device, equipment and medium for preventing automatic ticket swiping, which are used to effectively prevent automatic ticket swiping.

[0006] In a first aspect, the present invention provides a method for preventing automatic ticket swiping, the method comprising:

[0007] Receiving a ticket purchase request from a first account, wherein the ticket purchase request carries information about a ticket to be purchased;

[0008] Determining the credibility value of the ticket purchase request according to the ticket information, the information of the terminal logged in by the first account and the saved historical ticket purchase information;

[0009] Whether to intercept the ticket purchase request is determined according to the credibility value and a preset credibility value threshold.

[0010] Further, determining the credibility value of the ticket purchase request according to the ticket information, the information of the terminal logged in by the first account, and the saved historical ticket purchase information includes:

[0011] For each preset credibility sub-coefficient value, determine the target parameter corresponding to the credibility sub-coefficient value in the ticket information, the information of the terminal logged in by the first account, and the saved historical ticket purchase information; determine the weight value corresponding to the credibility sub-coefficient value according to the target parameter; determine the sub-credibility value corresponding to the credibility sub-coefficient value according to the credibility sub-coefficient value and the weight value;

[0012] According to each of the sub-credibility values, the credibility value of the ticket purchase request is determined.

[0013] Furthermore, determining the target parameter corresponding to the credibility sub-coefficient value in the ticket information, the terminal information logged in by the first account, and the saved historical ticket purchase information includes:

[0014] If the credibility sub-coefficient value includes the account information sub-coefficient value, obtaining the difference between the number of real-name ticket purchases and the number of non-real-name ticket purchases for each account recorded in the historical ticket purchase information; and determining each of the differences as the target parameter;

[0015] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0016] Sort each of the differences in descending order to determine the ranking of the differences corresponding to the first account in the descending order; and determine the first weight value corresponding to the account information sub-coefficient value based on the ranking and the total number of the differences.

[0017] Further, determining the first weight value corresponding to the account information sub-coefficient value according to the ranking and the total number of the differences includes:

[0018] Determine a first weight value corresponding to the account information sub-coefficient value according to a first algorithm, wherein the first algorithm includes: where c u is the first weight value, a is the ranking, and b is the total number of differences.

[0019] Furthermore, determining the target parameter corresponding to the credibility sub-coefficient value in the ticket information, the terminal information logged in by the first account, and the saved historical ticket purchase information includes:

[0020] If the credibility sub-coefficient value includes an IP address sub-coefficient value, the IP address of the terminal logged in by the first account is determined in the information of the terminal, and a first number of accounts logged in by the IP address within a first set time period recorded in the historical ticket purchase information is obtained; and the first number is determined as the target parameter;

[0021] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0022] A second weight value corresponding to the IP address sub-coefficient value is determined according to the first quantity.

[0023] Further, determining, according to the first quantity, a second weight value corresponding to the IP address sub-coefficient value includes:

[0024] Determine a second weight value corresponding to the IP address sub-coefficient value according to a second algorithm, wherein the second algorithm includes: ip =1-tanh(0.1(d-1)), where c ip is the second weight value, and d is the first quantity.

[0025] Furthermore, determining the target parameter corresponding to the credibility sub-coefficient value in the ticket information, the terminal information logged in by the first account, and the saved historical ticket purchase information includes:

[0026] If the credibility sub-coefficient value includes a device type sub-coefficient value, determining the device type of the terminal in the information of the terminal, wherein the device type includes a virtual device or a physical device, and determining the device type of the terminal as the target parameter;

[0027] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0028] Based on the device type of the terminal, a third weight value corresponding to the device type sub-coefficient value is determined.

[0029] Further, the determining, based on the device type of the terminal, a third weight value corresponding to the device type sub-coefficient value includes:

[0030] If the device type of the terminal is a virtual device, determining the preset value as the third weight value corresponding to the device type sub-coefficient value;

[0031] If the device type of the terminal is a physical device, determine the MAC address of the terminal logged in by the first account, and obtain the second number of accounts logged in by the MAC address within a second set time period recorded in the historical ticket purchase information; determine the second number as a sub-target parameter, and determine the third weight value corresponding to the device type sub-coefficient value based on the second number.

[0032] Furthermore, determining the target parameter corresponding to the credibility sub-coefficient value in the ticket information, the terminal information logged in by the first account, and the saved historical ticket purchase information includes:

[0033] If the credibility sub-coefficient value includes the ticket information sub-coefficient value, determining the starting location and the ending location in the ticket information and the current location of the terminal in the terminal information; obtaining a third number of historical ticket purchase information of the first account whose historical starting location and historical ending location are the same as the starting location and the ending location in the ticket information;

[0034] determining the starting location, the ending location, the current location, and the third quantity as the target parameters;

[0035] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0036] Determine a first distance between the starting location and the current location, and a second distance between the ending location and the current location, and determine a minimum distance between the first distance and the second distance;

[0037] A fourth weight value corresponding to the ticket information sub-coefficient value is determined according to the minimum distance and the third number.

[0038] Further, determining the fourth weight value corresponding to the ticket information sub-coefficient value according to the minimum distance and the third quantity includes:

[0039] Determine a fourth weight value corresponding to the ticket information sub-coefficient value according to a third algorithm, wherein the third algorithm includes: where c msg is the fourth weight value, h is the third quantity, min(g s , g e ) is the minimum distance.

[0040] Furthermore, determining the target parameter corresponding to the credibility sub-coefficient value in the ticket information, the terminal information logged in by the first account, and the saved historical ticket purchase information includes:

[0041] If the credibility sub-coefficient value includes a request frequency sub-coefficient value, obtaining a sending frequency and a frequency variance of ticket purchase requests sent by the first account within a third set time period recorded in the historical ticket purchase information, and determining the sending frequency and the frequency variance as the target parameter;

[0042] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0043] Based on the sending frequency and the frequency variance, a fifth weight value corresponding to the requested frequency sub-coefficient value is determined.

[0044] Further, after obtaining the sending frequency of the ticket purchase request sent by the first account within the third set time period recorded in the historical ticket purchase information, and before determining the fifth weight value corresponding to the request frequency sub-coefficient value based on the sending frequency and the frequency variance, the method further includes:

[0045] Determine whether the sending frequency is less than a set frequency threshold; if so, update the sending frequency according to the set frequency threshold, and perform subsequent steps based on the updated sending frequency.

[0046] Further, the determining, based on the sending frequency and the frequency variance, a fifth weight value corresponding to the requested frequency sub-coefficient value includes:

[0047] Determine a fifth weight value corresponding to the request frequency sub-coefficient value according to a fourth algorithm, wherein the fourth algorithm includes: where c q is the fifth weight value, F' is the frequency threshold, F is the sending frequency, and σ is the frequency variance.

[0048] In a second aspect, the present invention provides a device for preventing automatic ticket swiping, the device comprising:

[0049] A receiving module, configured to receive a ticket purchase request from a first account, wherein the ticket purchase request carries information about a ticket to be purchased;

[0050] A determination module, configured to determine the credibility value of the ticket purchase request according to the ticket information, the information of the terminal logged in by the first account and the saved historical ticket purchase information;

[0051] The interception module is used to determine whether to intercept the ticket purchase request according to the credibility value and a preset credibility value threshold.

[0052] Furthermore, the determination module is specifically used to determine, for each preset credibility sub-coefficient value, a target parameter corresponding to the credibility sub-coefficient value in the ticket information, the information of the terminal logged in by the first account, and the saved historical ticket purchase information; determine a weight value corresponding to the credibility sub-coefficient value based on the target parameter; determine a sub-credibility value corresponding to the credibility sub-coefficient value based on the credibility sub-coefficient value and the weight value; and determine the credibility value of the ticket purchase request based on each of the sub-credibility values.

[0053] Furthermore, the determination module is specifically used to obtain the difference between the number of real-name ticket purchases and the number of non-real-name ticket purchases for each account recorded in the historical ticket purchase information if the credibility sub-coefficient value includes an account information sub-coefficient value; determine each of the differences as the target parameter; sort each of the differences in descending order, and determine the ranking of the difference corresponding to the first account in the descending order; and determine the first weight value corresponding to the account information sub-coefficient value based on the ranking and the total number of the differences.

[0054] Furthermore, the determination module is specifically configured to determine a first weight value corresponding to the account information sub-coefficient value according to a first algorithm, wherein the first algorithm includes: where c u is the first weight value, a is the ranking, and b is the total number of differences.

[0055] Furthermore, the determination module is specifically used to determine the IP address of the terminal logged in by the first account in the information of the terminal if the credibility sub-coefficient value includes an IP address sub-coefficient value, and obtain the first number of accounts logged in by the IP address within a first set time period recorded in the historical ticket purchase information; determine the first number as the target parameter; and determine the second weight value corresponding to the IP address sub-coefficient value based on the first number.

[0056] Furthermore, the determination module is specifically configured to determine a second weight value corresponding to the IP address sub-coefficient value according to a second algorithm, wherein the second algorithm includes: ip =1-tanh(0.1(d-1)), where c ip is the second weight value, and d is the first quantity.

[0057] Furthermore, the determination module is specifically used to determine the device type of the terminal in the information of the terminal if the credibility sub-coefficient value includes a device type sub-coefficient value, wherein the device type includes a virtual device or a physical device, and determine the device type of the terminal as the target parameter; based on the device type of the terminal, determine a third weight value corresponding to the device type sub-coefficient value.

[0058] Furthermore, the determination module is specifically configured to determine the preset value as the third weight value corresponding to the device type sub-coefficient value if the device type of the terminal is a virtual device;

[0059] If the device type of the terminal is a physical device, determine the MAC address of the terminal logged in by the first account, and obtain the second number of accounts logged in by the MAC address within a second set time period recorded in the historical ticket purchase information; determine the second number as a sub-target parameter, and determine the third weight value corresponding to the device type sub-coefficient value based on the second number.

[0060] Furthermore, the determination module is specifically used to determine the starting location and the ending location in the ticket information and the current location of the terminal in the terminal information if the credibility sub-coefficient value includes the ticket information sub-coefficient value; obtain a third number of historical ticket purchase information in which the historical starting location and the historical ending location in the historical ticket purchase information of the first account are the same as the starting location and the ending location in the ticket information; determine the starting location, the ending location, the current location and the third number as the target parameters; determine a first distance between the starting location and the current location, and a second distance between the ending location and the current location, and determine the minimum distance between the first distance and the second distance; and determine a fourth weight value corresponding to the ticket information sub-coefficient value based on the minimum distance and the third number.

[0061] Furthermore, the determination module is specifically configured to determine the fourth weight value corresponding to the ticket information sub-coefficient value according to a third algorithm, wherein the third algorithm includes: where c msg is the fourth weight value, h is the third quantity, min(g s , g e ) is the minimum distance.

[0062] Furthermore, the determination module is specifically used to obtain the sending frequency and frequency variance of the ticket purchase requests sent by the first account within a third set time period recorded in the historical ticket purchase information if the credibility sub-coefficient value includes a request frequency sub-coefficient value, and determine the sending frequency and frequency variance as the target parameters; based on the sending frequency and frequency variance, determine the fifth weight value corresponding to the request frequency sub-coefficient value.

[0063] Furthermore, the determination module is also used to determine whether the sending frequency is less than a set frequency threshold after obtaining the sending frequency of the ticket purchase request sent by the first account recorded in the historical ticket purchase information within a third set time period, and before determining the fifth weight value corresponding to the request frequency sub-coefficient value based on the sending frequency and frequency variance; if so, update the sending frequency according to the set frequency threshold.

[0064] Further, the determination module is specifically configured to determine a fifth weight value corresponding to the request frequency sub-coefficient value according to a fourth algorithm, wherein the fourth algorithm includes: where c q is the fifth weight value, F' is the frequency threshold, F is the sending frequency, and σ is the frequency variance.

[0065] In a third aspect, the present invention provides an electronic device comprising at least a processor and a memory, wherein the processor is configured to implement any of the steps of the above-mentioned method for preventing automatic ticket swiping when executing a computer program stored in the memory.

[0066] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned methods for preventing automatic ticket swiping.

[0067] After receiving a ticket purchase request from a first account, the embodiment of the present invention can determine the credibility value of the ticket purchase request based on the information of the ticket to be purchased carried in the ticket purchase request, the information of the terminal logged into the first account, and the saved historical ticket purchase information, and can determine whether to intercept the ticket purchase request based on the credibility value of the ticket purchase request and a preset credibility value threshold, thereby effectively preventing automatic ticket swiping and protecting the normal ticket purchasing rights of ordinary consumers. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 A schematic diagram of a first process for preventing automatic ticket swiping provided by an embodiment of the present invention;

[0069] Figure 2 A schematic diagram of a second process for preventing automatic ticket swiping provided by an embodiment of the present invention;

[0070] Figure 3 A schematic diagram of the difference after being processed by the ReLU function provided in an embodiment of the present invention;

[0071] Figure 4 A schematic diagram of determining a second weight value corresponding to an IP address sub-coefficient value provided by an embodiment of the present invention;

[0072] Figure 5 A schematic diagram of a device for preventing automatic ticket swiping provided by an embodiment of the present invention;

[0073] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0074] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0075] In order to effectively prevent automatic ticket swiping, the embodiments of the present invention provide a method, device, equipment and medium for preventing automatic ticket swiping.

[0076] Embodiment 1:

[0077] Figure 1 A schematic diagram of a first process for preventing automatic ticket swiping provided by an embodiment of the present invention, the process includes the following steps:

[0078] S101: Receive a ticket purchase request from a first account, wherein the ticket purchase request carries information about a ticket to be purchased.

[0079] The method for preventing automatic ticket swiping provided in the embodiment of the present invention is applied to an electronic device, which may be a PC, a mobile terminal, or a server, etc. In a possible implementation, the electronic device may be a server device for selling tickets.

[0080] In a possible implementation, a user may send a ticket purchase request to an electronic device based on a first account, and the electronic device may receive the ticket purchase request sent by the user based on the first account, and the ticket purchase request may carry information about the ticket to be purchased. The information about the ticket to be purchased carried in the ticket purchase request may be flexibly set according to demand, and for example, the information about the ticket to be purchased may include the purchase time, the starting location, the ending location, etc., which is not specifically limited in the embodiments of the present invention.

[0081] S102: Determine the credibility value of the ticket purchase request according to the ticket information, the information of the terminal logged into the first account and the saved historical ticket purchase information.

[0082] In order to effectively prevent automatic ticket swiping, the credibility value of the ticket purchase request can be determined after receiving the ticket purchase request from the first account. In a possible implementation, when determining the credibility value of the ticket purchase request, the credibility value of the received ticket purchase request can be determined based on the information of the ticket to be purchased carried in the ticket purchase request, the IP address and MAC address of the terminal logged in by the first account, and the historical ticket purchase information stored in the electronic device.

[0083] S103: Determine whether to intercept the ticket purchase request according to the credibility value and a preset credibility value threshold.

[0084] In order to effectively prevent automatic ticket swiping, a credibility value threshold can be preset, wherein the specific value of the preset credibility value threshold can be flexibly set according to the demand, and the embodiment of the present invention does not specifically limit this. In a possible implementation, after determining the credibility value of the received ticket purchase request, the credibility value of the ticket purchase request can be compared with the preset credibility value threshold, so as to determine whether to intercept the ticket purchase request. Exemplarily, when the credibility value of the ticket purchase request is greater than the preset credibility value threshold, it is considered that the credibility of the ticket purchase request is high, and the possibility that the ticket purchase request is a normal ticket purchase behavior of ordinary consumers is high, and the ticket purchase request can be intercepted, so that the ticket purchase request can be purchased normally. If the credibility value of the ticket purchase request is not greater than the preset credibility value threshold, it can be considered that the credibility of the ticket purchase request is low, and the possibility that the ticket purchase request is an automatic ticket swiping behavior such as a ticket seller is high, and the ticket purchase request can be intercepted, so that the ticket purchase request cannot be purchased normally, thereby achieving the purpose of effectively preventing automatic ticket swiping and protecting the normal ticket purchase rights of ordinary consumers.

[0085] After receiving a ticket purchase request from a first account, the embodiment of the present invention can determine the credibility value of the ticket purchase request based on the information of the ticket to be purchased carried in the ticket purchase request, the information of the terminal logged into the first account, and the saved historical ticket purchase information, and can determine whether to intercept the ticket purchase request based on the credibility value of the ticket purchase request and a preset credibility value threshold, thereby effectively preventing automatic ticket swiping and protecting the normal ticket purchasing rights of ordinary consumers.

[0086] Embodiment 2:

[0087] In order to accurately determine the credibility value of the ticket purchase request, based on the above embodiment, in an embodiment of the present invention, the credibility value of the ticket purchase request is determined according to the information of the ticket, the information of the terminal logged in by the first account, and the saved historical ticket purchase information, including:

[0088] For each preset credibility sub-coefficient value, determine the target parameter corresponding to the credibility sub-coefficient value in the ticket information, the information of the terminal logged in by the first account, and the saved historical ticket purchase information; determine the weight value corresponding to the credibility sub-coefficient value according to the target parameter; determine the sub-credibility value corresponding to the credibility sub-coefficient value according to the credibility sub-coefficient value and the weight value;

[0089] According to each of the sub-credibility values, the credibility value of the ticket purchase request is determined.

[0090] In a possible implementation, a plurality of credibility sub-coefficient values ​​may be preset, wherein each of the preset credibility sub-coefficient values ​​may be flexibly set according to the requirements, and illustratively, each of the preset credibility sub-coefficient values ​​may be a positive number greater than 0. In order to accurately determine the credibility value of the ticket purchase request, for each preset credibility sub-coefficient value, a weight value corresponding to the credibility sub-coefficient value may be determined, wherein the weight value may be a number greater than or equal to 0 and less than or equal to 1, and the sub-credibility value corresponding to the credibility sub-coefficient value may be determined according to the product of the credibility sub-coefficient value and the weight value corresponding thereto. In a possible implementation, the credibility value of the received ticket purchase request may be determined according to each sub-credibility value, and illustratively, the sum of each sub-credibility value may be determined as the credibility value of the received ticket purchase request.

[0091] In a possible implementation, for each preset credibility sub-coefficient value, in order to accurately determine the weight value corresponding to the credibility sub-coefficient value, the target parameter corresponding to the credibility sub-coefficient value can be first determined from the information of the ticket to be purchased carried in the ticket purchase request, the information of the terminal logged in to the first account, and the saved historical ticket purchase information, and then the weight value corresponding to the credibility sub-coefficient value can be determined based on the target parameter.

[0092] For ease of understanding, the process of preventing automatic ticket swiping provided by the embodiment of the present invention is described below through a specific embodiment. Figure 2 A schematic diagram of a second process for preventing automatic ticket swiping provided by an embodiment of the present invention, such as Figure 2 As shown, the process includes the following steps:

[0093] S201: Receive a ticket purchase request from a first account, where the ticket purchase request carries information about a ticket to be purchased.

[0094] S202: For each preset credibility sub-coefficient value, determine the target parameter corresponding to the credibility sub-coefficient value from the information of the ticket to be purchased, the information of the terminal logged in to the first account, and the saved historical ticket purchase information; determine the weight value corresponding to the credibility sub-coefficient value based on the target parameter; determine the sub-credibility value corresponding to the credibility sub-coefficient value based on the credibility sub-coefficient value and the weight value corresponding to it; determine the credibility value of the ticket purchase request based on each sub-credibility value.

[0095] S203: Determine whether to intercept the ticket purchase request according to the credibility value of the ticket purchase request and a preset credibility value threshold.

[0096] Embodiment 3:

[0097] In order to accurately determine the weight value corresponding to the credibility sub-coefficient value, based on the above embodiments, in an embodiment of the present invention, the target parameter corresponding to the credibility sub-coefficient value is determined from the information of the ticket, the information of the terminal logged in by the first account, and the saved historical ticket purchase information, including:

[0098] If the credibility sub-coefficient value includes the account information sub-coefficient value, obtaining the difference between the number of real-name ticket purchases and the number of non-real-name ticket purchases for each account recorded in the historical ticket purchase information; and determining each of the differences as the target parameter;

[0099] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0100] Sort each of the differences in descending order to determine the ranking of the differences corresponding to the first account in the descending order; and determine the first weight value corresponding to the account information sub-coefficient value based on the ranking and the total number of the differences.

[0101] In a possible implementation, the historical ticket purchase information stored in the electronic device may include whether each account purchased a ticket in real name each time. To improve work efficiency, the historical ticket purchase information stored in the electronic device may record the difference between the number of real-name ticket purchases and the number of non-real-name ticket purchases for each account. In a possible implementation, in order to accurately record the difference between the number of real-name ticket purchases and the number of non-real-name ticket purchases for each account, the difference between the number of real-name ticket purchases and the number of non-real-name ticket purchases for each account recorded in the historical ticket purchase information may be periodically updated at a set frequency.

[0102] If the preset credibility sub-coefficient value includes an account information sub-coefficient value, in order to determine the target parameter corresponding to the credibility sub-coefficient value, the difference between the number of real-name ticket purchases and the number of non-real-name ticket purchases for each account recorded in the saved historical ticket purchase information can be obtained, and the difference corresponding to each account can be determined as the target parameter. When determining the first weight value corresponding to the account information sub-coefficient value according to the target parameter, the difference corresponding to each account can be sorted in descending order, and the ranking of the difference corresponding to the first account in the descending order can be determined, and then the first weight value corresponding to the account information sub-coefficient value can be determined according to the ranking of the difference corresponding to the first account in the descending order and the total number of differences corresponding to each account (i.e., the total number of each account).

[0103] In one possible implementation, given that real-name ticket purchases can generally increase the credibility of an account, while non-real-name ticket purchases can reduce the credibility of an account, when determining the first weight value corresponding to the account information sub-coefficient value based on the ranking of the difference corresponding to the first account in the descending order and the total number of differences corresponding to each account, if the difference between the number of real-name ticket purchases by the first account and the number of non-real-name ticket purchases is relatively high, and the difference corresponding to the first account is ranked higher in the descending order, it can be considered that the first account is more credible and is a high-quality account, and the first weight value corresponding to the account information sub-coefficient value can be set to be relatively large; on the contrary, if the difference between the number of real-name ticket purchases by the first account and the number of non-real-name ticket purchases is relatively small, and the difference corresponding to the first account is ranked lower in the descending order, it can be considered that the credibility of the first account is lower, and the first weight value corresponding to the account information sub-coefficient value can be set to be relatively small.

[0104] In a possible implementation, in order to facilitate calculation, the difference corresponding to each account can be further processed using a rectified linear unit (ReLU), and each difference processed by the ReLU function is used as a target parameter. Specifically, Figure 3 A schematic diagram of the difference after being processed by the ReLU function provided in an embodiment of the present invention, such as Figure 3 As shown, the ReLU function can be expressed as:

[0105] Where x is the difference before processing, and f(x) is the difference after processing by the ReLU function. The process of processing the difference using the ReLU function can be: determine whether the difference x before processing is not greater than 0, if so, set the difference to 0; if not, keep the difference unchanged. In other words, when the difference x between the number of real-name ticket purchases x1 and the number of non-real-name ticket purchases x2 is not greater than 0, the difference is processed to 0, that is, f(x) is 0; if the difference x between the number of real-name ticket purchases x1 and the number of non-real-name ticket purchases x2 is greater than 0, the difference f(x) after processing is the same as the difference x before processing.

[0106] Among them, each difference value processed by the ReLU function is used as a target parameter. According to the target parameter, the process of determining the first weight value corresponding to the account information sub-coefficient value is the same as the above embodiment, which will not be repeated here.

[0107] Embodiment 4:

[0108] In order to accurately determine the first weight value corresponding to the account information sub-coefficient value, based on the above embodiments, in an embodiment of the present invention, determining the first weight value corresponding to the account information sub-coefficient value according to the ranking and the total number of the differences includes:

[0109] Determine a first weight value corresponding to the account information sub-coefficient value according to a first algorithm, wherein the first algorithm includes: where c u is the first weight value, a is the ranking, and b is the total number of differences.

[0110] In a possible implementation, according to the first algorithm Determine the first weight value corresponding to the account information sub-coefficient value, where c u is the first weight value corresponding to the account information sub-coefficient value, a is the ranking of the difference corresponding to the first account in descending order, and b is the total number of differences. It can be seen from the first algorithm that if the ranking of the difference corresponding to the first account in descending order is higher, the credibility of the first account is higher, and the ratio of the ranking a of the difference corresponding to the first account in descending order to the total number of differences b is smaller, the first weight value c corresponding to the account information sub-coefficient value is higher. u On the contrary, if the difference corresponding to the first account ranks lower in descending order, the credibility of the first account is lower, and the ratio of the ranking a of the difference corresponding to the first account in descending order to the total number of differences b is larger, the first weight value c corresponding to the account information sub-coefficient value is larger. u The smaller.

[0111] In a possible implementation, the first weight value is greater than or equal to 0 and less than or equal to 1. Exemplarily, if the total number of differences is 100, and the difference of the first account ranks 5th in the descending order of each difference, then the first weight value is 0.95.

[0112] Embodiment 5:

[0113] In order to accurately determine the weight value corresponding to the credibility sub-coefficient value, based on the above embodiments, in an embodiment of the present invention, the target parameter corresponding to the credibility sub-coefficient value is determined from the information of the ticket, the information of the terminal logged in by the first account, and the saved historical ticket purchase information, including:

[0114] If the credibility sub-coefficient value includes an IP address sub-coefficient value, the IP address of the terminal logged in by the first account is determined in the information of the terminal, and a first number of accounts logged in by the IP address within a first set time period recorded in the historical ticket purchase information is obtained; and the first number is determined as the target parameter;

[0115] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0116] A second weight value corresponding to the IP address sub-coefficient value is determined according to the first quantity.

[0117] If the preset credibility sub-coefficient value includes an IP address sub-coefficient value, the IP address of the terminal logged in by the first account can be determined from the information of the terminal logged in by the first account, wherein the IP address (Internet Protocol Address) is an Internet Protocol address, which is also translated as an Internet Protocol address. Determining the IP address of the terminal logged in by the first account is a prior art and will not be repeated here. In a possible implementation, the IP address of the terminal logged in by each account and the time information of the login can be recorded in the saved historical ticket purchase information, so that the first number of accounts logged in by the IP address of the terminal logged in by the first account recorded in the historical ticket purchase information within the first set time period can be obtained, wherein the first set time period can be flexibly set according to demand, and the embodiment of the present invention does not specifically limit this. Exemplarily, the first set time period can be 12 hours, 24 hours, etc.

[0118] After determining the first number of accounts logged in by the IP address of the terminal logged in by the first account within the first set time period, the first number can be determined as the target parameter, and the second weight value corresponding to the IP address sub-coefficient value can be further determined based on the first number. In a possible implementation, the larger the first number of accounts logged in by the IP address of the terminal logged in by the first account within the first set time period, the greater the possibility that the ticket purchase request is an automatic ticket swiping behavior such as a ticket seller, and the second weight value corresponding to the IP address sub-coefficient value can be set to be relatively small; on the contrary, if the first number is smaller, it can be considered that the ticket purchase request is less likely to be an automatic ticket swiping behavior such as a ticket seller, and the greater the possibility that it is a ticket purchase for an ordinary consumer, and the second weight value corresponding to the IP address sub-coefficient value can be set to be relatively large.

[0119] Embodiment 6:

[0120] In order to accurately determine the second weight value corresponding to the IP address sub-coefficient value, based on the above embodiments, in an embodiment of the present invention, determining the second weight value corresponding to the IP address sub-coefficient value according to the first quantity includes:

[0121] Determine a second weight value corresponding to the IP address sub-coefficient value according to a second algorithm, wherein the second algorithm includes: ip =1-tanh(0.1(d-1)), where c ip is the second weight value, and d is the first quantity.

[0122] In a possible implementation, according to the second algorithm c ip =1-tanh(0.1(d-1)), determine the second weight value corresponding to the IP address sub-coefficient value, where c ipis the second weight value corresponding to the IP address sub-coefficient value, and d is the first number of accounts logged in by the IP address of the terminal logged in by the first account within the first set time period. Figure 4 A schematic diagram of determining a second weight value corresponding to an IP address sub-coefficient value provided by an embodiment of the present invention, such as Figure 4 As shown in the second algorithm, it can be seen that if the first number d of accounts logged in by the IP address of the terminal logged in by the first account within the first set time period is larger, the second weight value c corresponding to the IP address sub-coefficient value is ip If the first number d is smaller, the second weight value c corresponding to the IP address sub-coefficient value ip The bigger.

[0123] Embodiment 7:

[0124] In order to accurately determine the weight value corresponding to the credibility sub-coefficient value, based on the above embodiments, in an embodiment of the present invention, the target parameter corresponding to the credibility sub-coefficient value is determined from the information of the ticket, the information of the terminal logged in by the first account, and the saved historical ticket purchase information, including:

[0125] If the credibility sub-coefficient value includes a device type sub-coefficient value, determining the device type of the terminal in the information of the terminal, wherein the device type includes a virtual device or a physical device, and determining the device type of the terminal as the target parameter;

[0126] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0127] Based on the device type of the terminal, a third weight value corresponding to the device type sub-coefficient value is determined.

[0128] In view of the fact that the device type of the terminal may generally include physical devices and virtual devices, wherein the virtual device may include a simulator or a cloud host, etc., ordinary consumers generally use physical devices to send ticket purchase requests, and ticket sellers and the like may send ticket purchase requests through virtual devices when automatically swiping tickets. In order to effectively prevent automatic ticket swiping behavior, the preset credibility sub-coefficient value may include the device type sub-coefficient value. If the preset credibility sub-coefficient value includes the device type sub-coefficient value, in order to determine the third weight value corresponding to the device type sub-coefficient value, the device type of the terminal logged in by the first account may be first determined in the terminal information, and it may be determined whether the terminal logged in by the first account is a virtual device or a physical device, wherein the existing technology may be used to determine whether the terminal logged in by the first account is a virtual device or a physical device, which will not be repeated here. After determining the device type of the terminal logged in by the first account, the device type of the terminal may be determined as the target parameter, and the third weight value corresponding to the device type sub-coefficient value may be determined based on the device type of the terminal logged in by the first account.

[0129] In a possible implementation, when determining the third weight value corresponding to the device type sub-coefficient value based on the device type of the terminal logged in by the first account, if the device type of the terminal logged in by the first account is a virtual device, it can be considered that the possibility of the ticket purchase request being an automatic ticket swiping behavior is relatively large, and the third weight value corresponding to the device type sub-coefficient value can be set to be relatively small. On the contrary, if the device type of the terminal logged in by the first account is a physical device, it can be considered that the possibility of the ticket purchase request being an automatic ticket swiping behavior is relatively small, and the third weight value corresponding to the device type sub-coefficient value can be set to be relatively large.

[0130] Embodiment 8:

[0131] In order to accurately determine the third weight value corresponding to the device type sub-coefficient value, on the basis of the above embodiments, in an embodiment of the present invention, the determining, based on the device type of the terminal, the third weight value corresponding to the device type sub-coefficient value includes:

[0132] If the device type of the terminal is a virtual device, determining the preset value as the third weight value corresponding to the device type sub-coefficient value;

[0133] If the device type of the terminal is a physical device, determine the MAC address of the terminal logged in by the first account, and obtain the second number of accounts logged in by the MAC address within a second set time period recorded in the historical ticket purchase information; determine the second number as a sub-target parameter, and determine the third weight value corresponding to the device type sub-coefficient value based on the second number.

[0134] In a possible implementation, if the device type of the terminal logged in by the first account is a virtual device, in order to facilitate calculation, the preset value can be determined as the third weight value corresponding to the device type sub-coefficient value. The preset value can be flexibly set according to demand. For example, in order to effectively prevent automatic ticket swiping, the preset value can be set to a relatively small value, such as 0.

[0135] If the device type of the terminal logged in by the first account is a physical device, in order to accurately determine the third weight value corresponding to the device type sub-coefficient value, the MAC address of the terminal logged in by the first account can be determined in the information of the terminal logged in by the first account, where the MAC address (Media Access Control Address) is literally translated as the media access control address, also known as the local area network address (LAN Address), MAC address, Ethernet address (Ethernet Address) or physical address (Physical Address). It is an address used to confirm the location of a network device. In the Open System Interconnection (OSI) model, the third network layer is responsible for the IP address, and the second data link layer is responsible for the MAC address. The MAC address is used to uniquely identify a network card in the network. If a device has one or more network cards, each network card needs and can have a unique MAC address. Determining the MAC address of the terminal logged in by the first account is a prior art and will not be repeated here.

[0136] In a possible implementation, the MAC address of the terminal used to log in to each account and the login time information can be recorded in the saved historical ticket purchase information, so that the second number of accounts logged in by the MAC address of the terminal used to log in to the first account recorded in the historical ticket purchase information within a second set time period can be obtained, wherein the second set time period can be flexibly set according to demand. For example, the second set time period can be 12 hours, 24 hours, etc. The first set time period and the second set time period can be the same or different, and the embodiment of the present invention does not specifically limit this.

[0137] After determining the second number of accounts logged in by the MAC address of the terminal logged in by the first account within the second set time period, the second number can be determined as a sub-target parameter, and the third weight value corresponding to the device type sub-coefficient value can be further determined based on the second number. Similar to the first number, in a possible implementation, the larger the second number of accounts logged in by the MAC address of the terminal logged in by the first account within the second set time period, the greater the possibility that the ticket purchase request is an automatic ticket swiping behavior such as a ticket seller, and the third weight value corresponding to the device type sub-coefficient value of the MAC address can be set to be relatively small; on the contrary, if the second number is smaller, it can be considered that the ticket purchase request is less likely to be an automatic ticket swiping behavior such as a ticket seller, and the greater the possibility of purchasing tickets for ordinary consumers, and the third weight value corresponding to the device type sub-coefficient value of the MAC address can be set to be relatively large.

[0138] In a possible implementation, if the device type of the terminal logged in by the first account is a physical device, in order to accurately determine the third weight value corresponding to the device type sub-coefficient value, when determining the third weight value corresponding to the device type sub-coefficient value according to the second number of accounts logged in within the second set time period by the MAC address of the terminal logged in by the first account, the fifth algorithm c can be used. dev =1-tanh(0.1(f-1)), determine the third weight value corresponding to the device type sub-coefficient value, where c dev It can be seen from the fifth algorithm that if the second number f of accounts logged in by the MAC address of the terminal logged in by the first account within the second set time period is larger, the third weight value c corresponding to the device type sub-coefficient value of the MAC address is larger. dev If the second number f is smaller, the third weight value c corresponding to the device type sub-coefficient value of the MAC address dev The bigger.

[0139] Embodiment 9:

[0140] In order to accurately determine the weight value corresponding to the credibility sub-coefficient value, based on the above embodiments, in an embodiment of the present invention, the target parameter corresponding to the credibility sub-coefficient value is determined from the information of the ticket, the information of the terminal logged in by the first account, and the saved historical ticket purchase information, including:

[0141] If the credibility sub-coefficient value includes the ticket information sub-coefficient value, determining the starting location and the ending location in the ticket information and the current location of the terminal in the terminal information; obtaining a third number of historical ticket purchase information of the first account whose historical starting location and historical ending location are the same as the starting location and the ending location in the ticket information;

[0142] determining the starting location, the ending location, the current location, and the third quantity as the target parameters;

[0143] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0144] Determine a first distance between the starting location and the current location, and a second distance between the ending location and the current location, and determine a minimum distance between the first distance and the second distance;

[0145] A fourth weight value corresponding to the ticket information sub-coefficient value is determined according to the minimum distance and the third number.

[0146] In a possible implementation, if the preset credibility sub-coefficient value includes a ticket information sub-coefficient value, when determining the target parameter corresponding to the ticket information sub-coefficient value, the starting location and the ending location in the information of the ticket to be purchased can be determined in the information of the ticket to be purchased. At the same time, the current location of the terminal can also be determined in the information of the terminal logged in by the first account, wherein the current location of the terminal logged in by the first account can be determined using existing technology, which will not be described in detail here.

[0147] In addition, when determining the target parameter corresponding to the ticket information sub-coefficient value, the third number of historical ticket purchase information in which the historical starting location and the historical ending location in the historical ticket purchase information of the first account are the same as the starting location and the ending location in the information of the ticket to be purchased in this ticket purchase request can be obtained from the historical ticket purchase information saved about the first account. For example, if the information of the ticket to be purchased in this ticket purchase request is a ticket from Beijing to Shanghai, that is, the starting location is Beijing and the ending location is Shanghai, the third number of historical ticket purchase information from Beijing to Shanghai purchased in the historical ticket purchase information of the first account can be obtained.

[0148] In a possible implementation, the starting location, the ending location, the current location and the third quantity may be determined as target parameters. When determining the fourth weight value corresponding to the ticket information sub-coefficient value according to these target parameters, the first distance between the starting location and the current location may be determined first, and the second distance between the ending location and the current location may be determined, and then the minimum distance between the first distance and the second distance may be determined, and the fourth weight value corresponding to the ticket information sub-coefficient value may be determined according to the minimum distance and the third quantity. Specifically, when determining the fourth weight value corresponding to the ticket information sub-coefficient value according to the minimum distance and the third quantity, the smaller the minimum distance is, the greater the possibility that it is a normal ticket purchase behavior of an ordinary consumer, and the fourth weight value corresponding to the ticket information sub-coefficient value may be set relatively large; on the contrary, if the minimum distance is larger, the possibility that it is a normal ticket purchase behavior of an ordinary consumer is smaller, and the possibility that it is an automatic ticket swiping behavior such as a ticket seller is greater, and the fourth weight value corresponding to the ticket information sub-coefficient value may be set relatively small. At the same time, if the third number is larger, it can be considered that the credibility of the ticket purchase request is higher, and the fourth weight value corresponding to the ticket information sub-coefficient value can be set relatively large; on the contrary, if the third number is smaller, it can be considered that the credibility of the ticket purchase request is lower, and the fourth weight value corresponding to the ticket information sub-coefficient value can be set relatively small.

[0149] Embodiment 10:

[0150] In order to accurately determine the fourth weight value corresponding to the ticket information sub-coefficient value, based on the above embodiments, in an embodiment of the present invention, determining the fourth weight value corresponding to the ticket information sub-coefficient value according to the minimum distance and the third number includes:

[0151] Determine a fourth weight value corresponding to the ticket information sub-coefficient value according to a third algorithm, wherein the third algorithm includes: where c msg is the fourth weight value, h is the third quantity, min(g s , g e ) is the minimum distance.

[0152] In a possible implementation, if the first distance between the starting location and the current location is expressed as g s The second distance between the end point and the current point is expressed as g. e Indicates that the minimum distance between the first distance and the second distance is min(g s , g e ), and the third quantity is represented by h, then according to the third algorithm Determine the fourth weight value corresponding to the ticket information sub-coefficient value. In a possible implementation, the fourth weight value may be a number greater than or equal to 0 and less than or equal to 1. It can be seen from the fourth algorithm that the minimum distance min(g s , g e ) is smaller, the third number h is larger, and the fourth weight value c corresponding to the ticket information sub-coefficient value is msg The larger the distance, the greater the s , g e ) is larger, the smaller the third number h is, the fourth weight value c corresponding to the ticket information sub-coefficient value is msg The smaller.

[0153] Embodiment 11:

[0154] In order to accurately determine the weight value corresponding to the credibility sub-coefficient value, based on the above embodiments, in an embodiment of the present invention, the target parameter corresponding to the credibility sub-coefficient value is determined from the information of the ticket, the information of the terminal logged in by the first account, and the saved historical ticket purchase information, including:

[0155] If the credibility sub-coefficient value includes a request frequency sub-coefficient value, obtaining a sending frequency and a frequency variance of ticket purchase requests sent by the first account within a third set time period recorded in the historical ticket purchase information, and determining the sending frequency and the frequency variance as the target parameter;

[0156] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0157] Based on the sending frequency and the frequency variance, a fifth weight value corresponding to the requested frequency sub-coefficient value is determined.

[0158] In a possible implementation, if the preset credibility sub-coefficient value includes a request frequency sub-coefficient value, the sending frequency and frequency variance of the ticket purchase request sent by the first account within the third set time period recorded in the historical ticket purchase information can be obtained. The third set time period can be flexibly set according to demand, for example, the third set time period can be 3 minutes, etc. The first set time period, the second set time period, and the third set time period can be the same or different, and the embodiment of the present invention does not specifically limit this. The sending frequency and frequency variance of the ticket purchase request sent by the first account within the third set time period can be obtained, wherein the sending frequency can be the ratio of the total number of ticket purchase requests sent within the third set time period to the third set time period. Exemplarily, the unit of the sending frequency can be "times / second", "times / minute", etc., which can be flexibly set according to demand. When determining the frequency variance, the time interval between two adjacent ticket purchase requests within the third set time period can be determined first. For the convenience of description, the time interval between two adjacent ticket purchase requests is denoted by t. i The total number of ticket purchase requests within the third set time is represented by N, and the average time interval between two adjacent ticket purchase requests within the third set time is Frequency variance

[0159] In one possible implementation, the fifth weight value corresponding to the request frequency sub-coefficient value can be determined based on the sending frequency and the frequency variance. Specifically, when determining the fifth weight value corresponding to the request frequency sub-coefficient value based on the sending frequency and the frequency variance, the greater the sending frequency and the smaller the frequency variance, that is, the closer the sizes of different time intervals are, the greater the possibility that the current ticket purchase request is an automatic ticket swiping behavior, and the fifth weight value corresponding to the request frequency sub-coefficient value can be set to a relatively small value; on the contrary, if the smaller the sending frequency and the larger the frequency variance, that is, the larger the difference in the sizes of different time intervals is, the smaller the possibility that the current ticket purchase request is an automatic ticket swiping behavior, and the fifth weight value corresponding to the request frequency sub-coefficient value can be set to a relatively large value.

[0160] Embodiment 12:

[0161] In order to accurately determine the fifth weight value corresponding to the request frequency sub-coefficient value, based on the above embodiments, in an embodiment of the present invention, after obtaining the sending frequency of the ticket purchase request sent by the first account recorded in the historical ticket purchase information within the third set time period, before determining the fifth weight value corresponding to the request frequency sub-coefficient value based on the sending frequency and the frequency variance, the method further includes:

[0162] Determine whether the sending frequency is less than a set frequency threshold; if so, update the sending frequency according to the set frequency threshold, and perform subsequent steps based on the updated sending frequency.

[0163] In a possible implementation, a frequency threshold may be preset, wherein the frequency threshold may be flexibly set according to demand. For example, when the frequency threshold is preset, the frequency threshold may be determined according to the sending frequency of each account in the saved historical ticket purchase information. For example, the average frequency of the sending frequency of each account in the historical ticket purchase information may be obtained first. In a possible implementation, The preset frequency threshold is determined, and it is determined whether the sending frequency of the first account is less than the set frequency threshold. If so, it can be considered that the possibility of this ticket purchase request being an automatic ticket swiping behavior is not high. In order to accurately determine the fifth weight value corresponding to the request frequency sub-coefficient value, the sending frequency can be updated according to the set frequency threshold, that is, the sending frequency of the first account is set to the set frequency threshold, and based on the updated sending frequency and frequency variance, the fifth weight value corresponding to the request frequency sub-coefficient value is determined.

[0164] It is understandable that if the sending frequency is not less than the set frequency threshold, the sending frequency of the first account may not be updated, and the fifth weight value corresponding to the requested frequency sub-coefficient value may be determined based on the actual sending frequency and frequency variance of the first account.

[0165] In a possible implementation manner, in order to accurately determine the fifth weight value corresponding to the requested frequency sub-coefficient value, on the basis of the above embodiments, in an embodiment of the present invention, determining the fifth weight value corresponding to the requested frequency sub-coefficient value based on the sending frequency and the frequency variance includes:

[0166] Determine a fifth weight value corresponding to the request frequency sub-coefficient value according to a fourth algorithm, wherein the fourth algorithm includes: where c q is the fifth weight value, F' is the frequency threshold, F is the sending frequency, and σ is the frequency variance.

[0167] In a possible implementation manner, when determining the fifth weight value corresponding to the request frequency sub-coefficient value based on the sending frequency and the frequency variance, the fourth algorithm can be used. To determine, where c q is the fifth weight value, F' is the frequency threshold, F is the sending frequency, σ is the frequency variance. It can be seen from the fourth algorithm that the larger the sending frequency F is, the smaller the frequency variance σ is, and the fifth weight value c corresponding to the request frequency sub-coefficient value is q On the contrary, the smaller the sending frequency F is, the larger the frequency variance σ is, and the fifth weight value c corresponding to the request frequency sub-coefficient value isq The bigger.

[0168] In one possible implementation, if the frequency threshold is Then the fourth algorithm is

[0169] For ease of understanding, the process of preventing automatic ticket swiping provided by an embodiment of the present invention is described below through a specific embodiment.

[0170] Each preset credibility sub-coefficient value includes the account information sub-coefficient value w u 、IP address sub-coefficient value w ip , Equipment type sub-coefficient value w dev , ticket information sub-coefficient value w msg , request frequency sub-coefficient value w q , the first weight value corresponding to the account information sub-coefficient value is c u Indicates that the second weight value corresponding to the IP address sub-coefficient value is c ip Indicates that the third weight value corresponding to the device type sub-coefficient value is c dev Indicates that the fourth weight value corresponding to the ticket information sub-coefficient value is c msg Indicates that the fifth weight value corresponding to the requested frequency sub-coefficient value is c q express;

[0171] In a possible implementation, for each credibility sub-coefficient value, the product of the credibility sub-coefficient value and the weight value corresponding thereto may be determined first, and the sub-credibility value corresponding to the credibility sub-coefficient value may be determined according to the ratio of the product to the sum of each credibility sub-coefficient value. The sub-credibility values ​​corresponding to each credibility sub-coefficient value are:

[0172] The first sub-credibility value corresponding to the account information sub-coefficient value is

[0173] The first sub-credibility value corresponding to the IP address sub-coefficient value is

[0174] The third sub-credibility value corresponding to the device type sub-coefficient value is

[0175] The fourth sub-credibility value corresponding to the ticket information sub-coefficient value is

[0176] The fifth sub-credibility value corresponding to the request frequency sub-coefficient value is

[0177] In a possible implementation, the sum of each sub-credibility value may be determined as the credibility value c of the ticket purchase request. Then the credibility value of the ticket purchase request is:

[0178]

[0179] In order to effectively prevent automatic ticket swiping, it is possible to determine whether to intercept the ticket purchase request based on the credibility value of the ticket purchase request and the preset credibility value threshold. For example, when the credibility value of the ticket purchase request is greater than the preset credibility value threshold, it is considered that the credibility of the ticket purchase request is high, and the ticket purchase request is likely to be a normal ticket purchase behavior of an ordinary consumer, and the ticket purchase request may not be intercepted. If the credibility value of the ticket purchase request is not greater than the preset credibility value threshold, it can be considered that the credibility of the ticket purchase request is low, and the ticket purchase request is likely to be an automatic ticket swiping behavior of ticket sellers, etc., and the ticket purchase request can be intercepted, thereby achieving the purpose of effectively preventing automatic ticket swiping and protecting the normal ticket purchase rights of ordinary consumers.

[0180] Embodiment 13:

[0181] Based on the above embodiments, an embodiment of the present invention provides an abnormal process detection device. Figure 5 A schematic diagram of a device for preventing automatic ticket swiping provided by an embodiment of the present invention, such as Figure 5 As shown, the device comprises:

[0182] The receiving module 51 is used to receive a ticket purchase request from a first account, wherein the ticket purchase request carries information about the ticket to be purchased;

[0183] A determination module 52, configured to determine the credibility value of the ticket purchase request according to the ticket information, the information of the terminal logged in by the first account and the stored historical ticket purchase information;

[0184] The interception module 53 is used to determine whether to intercept the ticket purchase request according to the credibility value and a preset credibility value threshold.

[0185] In a possible implementation, the determination module 52 is specifically used to determine, for each preset credibility sub-coefficient value, a target parameter corresponding to the credibility sub-coefficient value in the ticket information, the information of the terminal logged in to the first account, and the saved historical ticket purchase information; determine a weight value corresponding to the credibility sub-coefficient value based on the target parameter; determine a sub-credibility value corresponding to the credibility sub-coefficient value based on the credibility sub-coefficient value and the weight value; and determine the credibility value of the ticket purchase request based on each of the sub-credibility values.

[0186] In one possible implementation, the determination module 52 is specifically used to obtain the difference between the number of real-name ticket purchases and the number of non-real-name ticket purchases for each account recorded in the historical ticket purchase information if the credibility sub-coefficient value includes an account information sub-coefficient value; determine each of the differences as the target parameter; sort each of the differences in descending order, and determine the ranking of the difference corresponding to the first account in the descending order; and determine the first weight value corresponding to the account information sub-coefficient value based on the ranking and the total number of the differences.

[0187] In a possible implementation manner, the determination module 52 is specifically configured to determine a first weight value corresponding to the account information sub-coefficient value according to a first algorithm, wherein the first algorithm includes: where c u is the first weight value, a is the ranking, and b is the total number of differences.

[0188] In a possible implementation, the determination module 52 is specifically used to determine the IP address of the terminal logged in by the first account in the information of the terminal if the credibility sub-coefficient value includes an IP address sub-coefficient value, and obtain a first number of accounts logged in by the IP address within a first set time period recorded in the historical ticket purchase information; determine the first number as the target parameter; and determine a second weight value corresponding to the IP address sub-coefficient value based on the first number.

[0189] In a possible implementation manner, the determination module 52 is specifically configured to determine the second weight value corresponding to the IP address sub-coefficient value according to a second algorithm, wherein the second algorithm includes: ip =1-tanh(0.1(d-1)), where c ip is the second weight value, and d is the first quantity.

[0190] In a possible implementation, the determination module 52 is specifically used to determine the device type of the terminal in the information of the terminal if the credibility sub-coefficient value includes a device type sub-coefficient value, wherein the device type includes a virtual device or a physical device, and determine the device type of the terminal as the target parameter; based on the device type of the terminal, determine a third weight value corresponding to the device type sub-coefficient value.

[0191] In a possible implementation manner, the determination module 52 is specifically configured to determine the preset value as the third weight value corresponding to the device type sub-coefficient value if the device type of the terminal is a virtual device;

[0192] If the device type of the terminal is a physical device, determine the MAC address of the terminal logged in by the first account, and obtain the second number of accounts logged in by the MAC address within a second set time period recorded in the historical ticket purchase information; determine the second number as a sub-target parameter, and determine the third weight value corresponding to the device type sub-coefficient value based on the second number.

[0193] In a possible implementation, the determination module 52 is specifically used to determine the starting location and the ending location in the ticket information and the current location of the terminal in the terminal information if the credibility sub-coefficient value includes the ticket information sub-coefficient value; obtain a third number of historical ticket purchase information in which the historical starting location and the historical ending location in the historical ticket purchase information of the first account are the same as the starting location and the ending location in the ticket information; determine the starting location, the ending location, the current location and the third number as the target parameters; determine a first distance between the starting location and the current location, and a second distance between the ending location and the current location, and determine the minimum distance between the first distance and the second distance; and determine a fourth weight value corresponding to the ticket information sub-coefficient value based on the minimum distance and the third number.

[0194] In a possible implementation manner, the determination module 52 is specifically configured to determine the fourth weight value corresponding to the ticket information sub-coefficient value according to a third algorithm, wherein the third algorithm includes: where c msg is the fourth weight value, h is the third quantity, min(g s , g e ) is the minimum distance.

[0195] In a possible implementation, the determination module 52 is specifically used to obtain the sending frequency and frequency variance of the ticket purchase requests sent by the first account within a third set time period recorded in the historical ticket purchase information if the credibility sub-coefficient value includes a request frequency sub-coefficient value, and determine the sending frequency and frequency variance as the target parameters; based on the sending frequency and frequency variance, determine the fifth weight value corresponding to the request frequency sub-coefficient value.

[0196] In a possible implementation, the determination module 52 is also used to determine whether the sending frequency is less than a set frequency threshold after obtaining the sending frequency of the ticket purchase request sent by the first account recorded in the historical ticket purchase information within a third set time period, and before determining the fifth weight value corresponding to the request frequency sub-coefficient value based on the sending frequency and frequency variance; if so, update the sending frequency according to the set frequency threshold.

[0197] In a possible implementation manner, the determination module 52 is specifically configured to determine the fifth weight value corresponding to the request frequency sub-coefficient value according to a fourth algorithm, wherein the fourth algorithm includes: where c q is the fifth weight value, F' is the frequency threshold, F is the sending frequency, and σ is the frequency variance.

[0198] After receiving a ticket purchase request from a first account, the embodiment of the present invention can determine the credibility value of the ticket purchase request based on the information of the ticket to be purchased carried in the ticket purchase request, the information of the terminal logged into the first account, and the saved historical ticket purchase information, and can determine whether to intercept the ticket purchase request based on the credibility value of the ticket purchase request and a preset credibility value threshold, thereby effectively preventing automatic ticket swiping and protecting the normal ticket purchasing rights of ordinary consumers.

[0199] Embodiment 14:

[0200] Based on the above embodiments, an embodiment of the present invention further provides an electronic device, Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 6 As shown, the electronic device includes: a processor 61, a communication interface 62, a memory 63 and a communication bus 64, wherein the processor 61, the communication interface 62, and the memory 63 communicate with each other through the communication bus 64;

[0201] The memory 63 stores a computer program. When the program is executed by the processor 61, the processor 61 performs the following steps:

[0202] Receiving a ticket purchase request from a first account, wherein the ticket purchase request carries information about a ticket to be purchased;

[0203] Determining the credibility value of the ticket purchase request according to the ticket information, the information of the terminal logged in by the first account and the saved historical ticket purchase information;

[0204] Whether to intercept the ticket purchase request is determined according to the credibility value and a preset credibility value threshold.

[0205] In a possible implementation, the processor 61 is specifically used to determine, for each preset credibility sub-coefficient value, a target parameter corresponding to the credibility sub-coefficient value in the ticket information, the information of the terminal logged in to the first account, and the saved historical ticket purchase information; determine a weight value corresponding to the credibility sub-coefficient value according to the target parameter; determine a sub-credibility value corresponding to the credibility sub-coefficient value according to the credibility sub-coefficient value and the weight value; and determine the credibility value of the ticket purchase request according to each of the sub-credibility values.

[0206] In one possible implementation, the processor 61 is specifically used to, if the credibility sub-coefficient value includes an account information sub-coefficient value, obtain the difference between the number of real-name ticket purchases and the number of non-real-name ticket purchases for each account recorded in the historical ticket purchase information; determine each of the differences as the target parameter; sort each of the differences in descending order, and determine the ranking of the difference corresponding to the first account in the descending order; and determine the first weight value corresponding to the account information sub-coefficient value based on the ranking and the total number of the differences.

[0207] In a possible implementation manner, the processor 61 is specifically configured to determine a first weight value corresponding to the account information sub-coefficient value according to a first algorithm, wherein the first algorithm includes: where c u is the first weight value, a is the ranking, and b is the total number of differences.

[0208] In a possible implementation, the processor 61 is specifically used to determine, in the information of the terminal, the IP address of the terminal logged in by the first account if the credibility sub-coefficient value includes an IP address sub-coefficient value, and obtain a first number of accounts logged in by the IP address within a first set time period recorded in the historical ticket purchase information; determine the first number as the target parameter; and determine a second weight value corresponding to the IP address sub-coefficient value based on the first number.

[0209] In a possible implementation manner, the processor 61 is specifically configured to determine a second weight value corresponding to the IP address sub-coefficient value according to a second algorithm, wherein the second algorithm includes: ip =1-tanh(0.1-(1d)), where c ip is the second weight value, and d is the first quantity.

[0210] In a possible implementation, the processor 61 is specifically used to determine the device type of the terminal in the information of the terminal if the credibility sub-coefficient value includes a device type sub-coefficient value, wherein the device type includes a virtual device or a physical device, and determine the device type of the terminal as the target parameter; based on the device type of the terminal, determine a third weight value corresponding to the device type sub-coefficient value.

[0211] In a possible implementation manner, the processor 61 is specifically configured to, if the device type of the terminal is a virtual device, determine the preset value as the third weight value corresponding to the device type sub-coefficient value;

[0212] If the device type of the terminal is a physical device, determine the MAC address of the terminal logged in by the first account, and obtain the second number of accounts logged in by the MAC address within a second set time period recorded in the historical ticket purchase information; determine the second number as a sub-target parameter, and determine the third weight value corresponding to the device type sub-coefficient value based on the second number.

[0213] In a possible implementation, the processor 61 is specifically used to, if the credibility sub-coefficient value includes a ticket information sub-coefficient value, determine the starting location and the ending location in the ticket information and the current location of the terminal in the terminal information; obtain a third number of historical ticket purchase information in which the historical starting location and the historical ending location in the historical ticket purchase information of the first account are the same as the starting location and the ending location in the ticket information; determine the starting location, the ending location, the current location and the third number as the target parameters; determine a first distance between the starting location and the current location, and a second distance between the ending location and the current location, and determine the minimum distance between the first distance and the second distance; and determine a fourth weight value corresponding to the ticket information sub-coefficient value based on the minimum distance and the third number.

[0214] In a possible implementation manner, the processor 61 is specifically configured to determine the fourth weight value corresponding to the ticket information sub-coefficient value according to a third algorithm, wherein the third algorithm includes: where c msg is the fourth weight value, h is the third quantity, min(g s , g e ) is the minimum distance.

[0215] In a possible implementation, the processor 61 is specifically used to obtain the sending frequency and frequency variance of the ticket purchase requests sent by the first account within a third set time period recorded in the historical ticket purchase information if the credibility sub-coefficient value includes a request frequency sub-coefficient value, and determine the sending frequency and frequency variance as the target parameters; based on the sending frequency and frequency variance, determine the fifth weight value corresponding to the request frequency sub-coefficient value.

[0216] In a possible implementation, the processor 61 is also used to determine whether the sending frequency is less than a set frequency threshold after obtaining the sending frequency of the ticket purchase request sent by the first account recorded in the historical ticket purchase information within a third set time period, and before determining the fifth weight value corresponding to the request frequency sub-coefficient value based on the sending frequency and frequency variance; if so, update the sending frequency according to the set frequency threshold.

[0217] In a possible implementation manner, the processor 61 is specifically configured to determine a fifth weight value corresponding to the request frequency sub-coefficient value according to a fourth algorithm, wherein the fourth algorithm includes: where c q is the fifth weight value, F' is the frequency threshold, F is the sending frequency, and σ is the frequency variance.

[0218] Since the principle of solving the problem by the above electronic device is similar to the method of preventing automatic ticket swiping, the implementation of the above electronic device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0219] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0220] The communication interface 62 is used for communication between the above electronic device and other devices.

[0221] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0222] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; it can also be a digital signal processing processor (Digital Signal Processing, DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.

[0223] After receiving a ticket purchase request from a first account, the embodiment of the present invention can determine the credibility value of the ticket purchase request based on the information of the ticket to be purchased carried in the ticket purchase request, the information of the terminal logged into the first account, and the saved historical ticket purchase information, and can determine whether to intercept the ticket purchase request based on the credibility value of the ticket purchase request and a preset credibility value threshold, thereby effectively preventing automatic ticket swiping and protecting the normal ticket purchasing rights of ordinary consumers.

[0224] Embodiment 15:

[0225] On the basis of the above embodiments, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program executable by an electronic device, and when the program is run on the electronic device, the electronic device implements the following steps when executing:

[0226] Receiving a ticket purchase request from a first account, wherein the ticket purchase request carries information about a ticket to be purchased;

[0227] Determining the credibility value of the ticket purchase request according to the ticket information, the information of the terminal logged in by the first account and the saved historical ticket purchase information;

[0228] Whether to intercept the ticket purchase request is determined according to the credibility value and a preset credibility value threshold.

[0229] In a possible implementation manner, determining the credibility value of the ticket purchase request according to the ticket information, the information of the terminal logged in by the first account, and the stored historical ticket purchase information includes:

[0230] For each preset credibility sub-coefficient value, determine the target parameter corresponding to the credibility sub-coefficient value in the ticket information, the information of the terminal logged in by the first account, and the saved historical ticket purchase information; determine the weight value corresponding to the credibility sub-coefficient value according to the target parameter; determine the sub-credibility value corresponding to the credibility sub-coefficient value according to the credibility sub-coefficient value and the weight value;

[0231] According to each of the sub-credibility values, the credibility value of the ticket purchase request is determined.

[0232] In a possible implementation manner, determining the target parameter corresponding to the credibility sub-coefficient value from the ticket information, the information of the terminal logged in by the first account, and the saved historical ticket purchase information includes:

[0233] If the credibility sub-coefficient value includes the account information sub-coefficient value, obtaining the difference between the number of real-name ticket purchases and the number of non-real-name ticket purchases for each account recorded in the historical ticket purchase information; and determining each of the differences as the target parameter;

[0234] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0235] Sort each of the differences in descending order to determine the ranking of the differences corresponding to the first account in the descending order; and determine the first weight value corresponding to the account information sub-coefficient value based on the ranking and the total number of the differences.

[0236] In a possible implementation manner, determining the first weight value corresponding to the account information sub-coefficient value according to the ranking and the total number of the differences includes:

[0237] Determine a first weight value corresponding to the account information sub-coefficient value according to a first algorithm, wherein the first algorithm includes: where c u is the first weight value, a is the ranking, and b is the total number of differences.

[0238] In a possible implementation manner, determining the target parameter corresponding to the credibility sub-coefficient value from the ticket information, the information of the terminal logged in by the first account, and the saved historical ticket purchase information includes:

[0239] If the credibility sub-coefficient value includes an IP address sub-coefficient value, the IP address of the terminal logged in by the first account is determined in the information of the terminal, and a first number of accounts logged in by the IP address within a first set time period recorded in the historical ticket purchase information is obtained; and the first number is determined as the target parameter;

[0240] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0241] A second weight value corresponding to the IP address sub-coefficient value is determined according to the first quantity.

[0242] In a possible implementation manner, determining, according to the first quantity, a second weight value corresponding to the IP address sub-coefficient value includes:

[0243] Determine a second weight value corresponding to the IP address sub-coefficient value according to a second algorithm, wherein the second algorithm includes: ip =1-tanh(0.1(d-1)), where c ip is the second weight value, and d is the first quantity.

[0244] In a possible implementation manner, determining the target parameter corresponding to the credibility sub-coefficient value from the ticket information, the information of the terminal logged in by the first account, and the saved historical ticket purchase information includes:

[0245] If the credibility sub-coefficient value includes a device type sub-coefficient value, determining the device type of the terminal in the information of the terminal, wherein the device type includes a virtual device or a physical device, and determining the device type of the terminal as the target parameter;

[0246] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0247] Based on the device type of the terminal, a third weight value corresponding to the device type sub-coefficient value is determined.

[0248] In a possible implementation manner, determining, based on the device type of the terminal, a third weight value corresponding to the device type sub-coefficient value includes:

[0249] If the device type of the terminal is a virtual device, determining the preset value as the third weight value corresponding to the device type sub-coefficient value;

[0250] If the device type of the terminal is a physical device, determine the MAC address of the terminal logged in by the first account, and obtain the second number of accounts logged in by the MAC address within a second set time period recorded in the historical ticket purchase information; determine the second number as a sub-target parameter, and determine the third weight value corresponding to the device type sub-coefficient value based on the second number.

[0251] In a possible implementation manner, determining the target parameter corresponding to the credibility sub-coefficient value from the ticket information, the information of the terminal logged in by the first account, and the saved historical ticket purchase information includes:

[0252] If the credibility sub-coefficient value includes the ticket information sub-coefficient value, determining the starting location and the ending location in the ticket information and the current location of the terminal in the terminal information; obtaining a third number of historical ticket purchase information of the first account whose historical starting location and historical ending location are the same as the starting location and the ending location in the ticket information;

[0253] determining the starting location, the ending location, the current location, and the third quantity as the target parameters;

[0254] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0255] Determine a first distance between the starting location and the current location, and a second distance between the ending location and the current location, and determine a minimum distance between the first distance and the second distance;

[0256] A fourth weight value corresponding to the ticket information sub-coefficient value is determined according to the minimum distance and the third number.

[0257] In a possible implementation manner, determining, according to the minimum distance and the third quantity, a fourth weight value corresponding to the ticket information sub-coefficient value includes:

[0258] Determine a fourth weight value corresponding to the ticket information sub-coefficient value according to a third algorithm, wherein the third algorithm includes: where c msg is the fourth weight value, h is the third quantity, min(g s , g e ) is the minimum distance.

[0259] In a possible implementation manner, determining the target parameter corresponding to the credibility sub-coefficient value from the ticket information, the information of the terminal logged in by the first account, and the saved historical ticket purchase information includes:

[0260] If the credibility sub-coefficient value includes a request frequency sub-coefficient value, obtaining a sending frequency and a frequency variance of ticket purchase requests sent by the first account within a third set time period recorded in the historical ticket purchase information, and determining the sending frequency and the frequency variance as the target parameter;

[0261] Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes:

[0262] Based on the sending frequency and the frequency variance, a fifth weight value corresponding to the requested frequency sub-coefficient value is determined.

[0263] In a possible implementation manner, after obtaining the sending frequency of the ticket purchase request sent by the first account within the third set time period recorded in the historical ticket purchase information, and before determining the fifth weight value corresponding to the request frequency sub-coefficient value based on the sending frequency and the frequency variance, the method further includes:

[0264] Determine whether the sending frequency is less than a set frequency threshold; if so, update the sending frequency according to the set frequency threshold, and perform subsequent steps based on the updated sending frequency.

[0265] In a possible implementation manner, determining, based on the sending frequency and the frequency variance, a fifth weight value corresponding to the requested frequency sub-coefficient value includes:

[0266] Determine a fifth weight value corresponding to the request frequency sub-coefficient value according to a fourth algorithm, wherein the fourth algorithm includes: where c q is the fifth weight value, F' is the frequency threshold, F is the sending frequency, and σ is the frequency variance.

[0267] The above-mentioned computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor in the electronic device, including but not limited to magnetic storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc., optical storage such as CD, DVD, BD, HVD, etc., and semiconductor storage such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD), etc.

[0268] After receiving a ticket purchase request from a first account, the embodiment of the present invention can determine the credibility value of the ticket purchase request based on the information of the ticket to be purchased carried in the ticket purchase request, the information of the terminal logged into the first account, and the saved historical ticket purchase information, and can determine whether to intercept the ticket purchase request based on the credibility value of the ticket purchase request and a preset credibility value threshold, thereby effectively preventing automatic ticket swiping and protecting the normal ticket purchasing rights of ordinary consumers.

[0269] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0270] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0271] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0272] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0273] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for preventing automatic ticket swiping, characterized in that: The method comprises: Receiving a ticket purchase request from a first account, wherein the ticket purchase request carries information about a ticket to be purchased; For each preset credibility sub-coefficient value, determine the target parameter corresponding to the credibility sub-coefficient value from the ticket information, the information of the terminal logged in by the first account, and the saved historical ticket purchase information; determine the weight value corresponding to the credibility sub-coefficient value according to the target parameter; determine the sub-credibility value corresponding to the credibility sub-coefficient value according to the product of the credibility sub-coefficient value and the weight value; Determining the credibility value of the ticket purchase request according to each of the sub-credibility values; Determining whether to intercept the ticket purchase request according to the credibility value and a preset credibility value threshold; Among them, determining the target parameter corresponding to the credibility sub-coefficient value in the ticket information, the information of the terminal logged in by the first account, and the saved historical ticket purchase information includes: If the credibility sub-coefficient value includes a device type sub-coefficient value, determining the device type of the terminal in the information of the terminal, wherein the device type includes a virtual device or a physical device, and determining the device type of the terminal as the target parameter; Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes: If the device type of the terminal is a virtual device, the preset value is determined as the third weight value corresponding to the device type sub-coefficient value; if the device type of the terminal is a physical device, the MAC address of the terminal logged in by the first account is determined, and the second number of accounts logged in by the MAC address recorded in the historical ticket purchase information within a second set time period is obtained; the second number is determined as a sub-target parameter, and the third weight value corresponding to the device type sub-coefficient value is determined based on the second number; wherein, the third weight value corresponding to the device type sub-coefficient value when the device type is a physical device is greater than the third weight value corresponding to the device type sub-coefficient value when the device type is a virtual device.

2. The method according to claim 1, characterized in that Determining the target parameter corresponding to the credibility sub-coefficient value from the ticket information, the terminal information logged in by the first account, and the saved historical ticket purchase information includes: If the credibility sub-coefficient value includes the account information sub-coefficient value, obtaining the difference between the number of real-name ticket purchases and the number of non-real-name ticket purchases for each account recorded in the historical ticket purchase information; and determining each of the differences as the target parameter; Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes: Sort each of the differences in descending order to determine the ranking of the differences corresponding to the first account in the descending order; and determine the first weight value corresponding to the account information sub-coefficient value based on the ranking and the total number of the differences.

3. The method according to claim 2, characterized in that Determining the first weight value corresponding to the account information sub-coefficient value according to the ranking and the total number of the differences includes: Determine a first weight value corresponding to the account information sub-coefficient value according to a first algorithm, wherein the first algorithm includes: where c u is the first weight value, a is the ranking, and b is the total number of differences.

4. The method according to claim 1, characterized in that Determining the target parameter corresponding to the credibility sub-coefficient value from the ticket information, the terminal information logged in by the first account, and the saved historical ticket purchase information includes: If the credibility sub-coefficient value includes an IP address sub-coefficient value, the IP address of the terminal logged in by the first account is determined in the information of the terminal, and a first number of accounts logged in by the IP address within a first set time period recorded in the historical ticket purchase information is obtained; and the first number is determined as the target parameter; Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes: A second weight value corresponding to the IP address sub-coefficient value is determined according to the first quantity.

5. The method according to claim 4, characterized in that Determining, according to the first quantity, a second weight value corresponding to the IP address sub-coefficient value includes: Determine a second weight value corresponding to the IP address sub-coefficient value according to a second algorithm, wherein the second algorithm includes: ip =1-tanh(0.1(d-1)), where c ip is the second weight value, and d is the first quantity.

6. The method according to claim 1, characterized in that Determining the target parameter corresponding to the credibility sub-coefficient value from the ticket information, the terminal information logged in by the first account, and the saved historical ticket purchase information includes: If the credibility sub-coefficient value includes the ticket information sub-coefficient value, determining the starting location and the ending location in the ticket information and the current location of the terminal in the terminal information; obtaining a third number of historical ticket purchase information of the first account whose historical starting location and historical ending location are the same as the starting location and the ending location in the ticket information; determining the starting location, the ending location, the current location, and the third quantity as the target parameters; Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes: Determine a first distance between the starting location and the current location, and a second distance between the ending location and the current location, and determine a minimum distance between the first distance and the second distance; A fourth weight value corresponding to the ticket information sub-coefficient value is determined according to the minimum distance and the third number.

7. The method according to claim 6, characterized in that Determining the fourth weight value corresponding to the ticket information sub-coefficient value according to the minimum distance and the third quantity includes: Determine a fourth weight value corresponding to the ticket information sub-coefficient value according to a third algorithm, wherein the third algorithm includes: where c msg is the fourth weight value, h is the third quantity, min(g s , g e ) is the minimum distance.

8. The method according to claim 1, characterized in that Determining the target parameter corresponding to the credibility sub-coefficient value from the ticket information, the terminal information logged in by the first account, and the saved historical ticket purchase information includes: If the credibility sub-coefficient value includes a request frequency sub-coefficient value, obtaining a sending frequency and a frequency variance of ticket purchase requests sent by the first account within a third set time period recorded in the historical ticket purchase information, and determining the sending frequency and the frequency variance as the target parameter; Determining the weight value corresponding to the credibility sub-coefficient value according to the target parameter includes: Based on the sending frequency and the frequency variance, a fifth weight value corresponding to the requested frequency sub-coefficient value is determined.

9. The method according to claim 8, characterized in that After obtaining the sending frequency of the ticket purchase request sent by the first account within the third set time period recorded in the historical ticket purchase information, and before determining the fifth weight value corresponding to the request frequency sub-coefficient value based on the sending frequency and the frequency variance, the method further includes: Determine whether the sending frequency is less than a set frequency threshold; if so, update the sending frequency according to the set frequency threshold, and perform subsequent steps based on the updated sending frequency.

10. The method according to claim 9, characterized in that The determining, based on the sending frequency and the frequency variance, a fifth weight value corresponding to the requested frequency sub-coefficient value comprises: Determine a fifth weight value corresponding to the request frequency sub-coefficient value according to a fourth algorithm, wherein the fourth algorithm includes: where c q is the fifth weight value, F' is the frequency threshold, F is the sending frequency, and σ is the frequency variance.

Citation Information

Patent Citations

  • Illegal operation identification method and device

    CN104601547A

  • Air ticket order safety detecting method, device and system

    CN108305134A

  • User ticket buying behavior detection method and device

    CN110675228A

  • Online ticket buying fraud behavior automatic detection method and device and readable storage medium

    CN111147441A

  • Intelligent station anti-ticket-refreshing method and anti-ticket-refreshing system

    CN111292099A