Feature similarity-based payment security verification method and device, and storage medium
By constructing a feature vector based on the device APP application list and payment merchant characteristics, and using machine learning models to conduct electronic payment security verification, the problem of insufficient security of device numbers and MAC addresses in the existing technology is solved, and payment security and convenience are improved. sex.
Patent Information
- Application Number
- CN202410837226.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-15
AI Technical Summary
Existing electronic payment security verification technology relies on the device's mobile phone number and MAC address, which has security flaws. The advanced verification mechanism is triggered frequently, affecting convenience.
By obtaining the characteristics of the APP application list in the device and the payment merchant, constructing a feature vector and inputting it into the machine learning model for verification, it avoids simulating MAC address and IMEI information to bypass security verification, and improves verification security and convenience.
It effectively improves payment security, reduces the trigger frequency of advanced verification mechanisms, enhances user experience, and facilitates users to avoid tedious verification when changing devices.
Smart Images

Figure CN118780795A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to, in particular to, a payment security verification method, device and storage medium based on feature similarity. Background Art
[0002] At present, electronic payment has become the main payment method. Due to the convenience of electronic payment, the transaction cost is greatly reduced.
[0003] Since the first day of the birth of electronic payment, security has been the focus of society's attention on electronic payment and the focus of research and development of financial technology institutions. In the existing technology, the security technology of electronic payment is mainly developed around identity authentication. The early U-shield combined with the password to verify whether it is the real person, but this method is very cumbersome to use. With the popularization of mobile Internet, it has gradually been eliminated.
[0004] In the later stage, the main way to confirm whether it is the real person is through trusted device management combined with mobile phone verification code and other technologies. However, this method is too dependent on the mobile phone number of the device. The mobile phone number is in the hands of the operator and cannot be controlled by financial institutions. It may flow into the hands of criminals through the device or through the second-hand market. In addition, some dedicated devices can also skip the trusted device verification by simulating MAC address and IMEI information, which still has certain security defects. Summary of the invention
[0005] The purpose of the present invention is to provide a payment security verification method, device and storage medium based on feature similarity. By taking the features of the APP application list in the device and the payment merchant as part of the verification features, it is possible to avoid bypassing the security verification mechanism by simulating MAC addresses and IMEI information, and it is also possible to improve the security of the verification, thereby avoiding the triggering frequency of the advanced verification mechanism and improving the convenience of use.
[0006] The purpose of the present invention can be achieved by the following technical solutions:
[0007] A payment security verification method based on feature similarity, comprising:
[0008] Acquire payment environment information, and construct a first feature vector based on the payment environment information, wherein the payment environment information at least includes device information and a device APP application list;
[0009] When a payment instruction is received, the payment amount and the code of the payment receiving merchant are extracted based on the payment instruction, a second feature vector is constructed based on the payment amount, and a third feature vector corresponding to the payment receiving merchant is obtained according to the code of the payment receiving merchant;
[0010] The first eigenvector, the second eigenvector and the third eigenvector are concatenated to obtain verification features, and the obtained verification features are input into a trained verification model to obtain a verification result output by the verification model.
[0011] The device information includes at least a device number and a MAC address.
[0012] The step of constructing a first feature vector based on payment environment information includes:
[0013] generating a first sub-feature according to the device information;
[0014] Generate the installation duration corresponding to each APP application based on the installation time of each APP application and the current time;
[0015] Determine whether the installation duration of the APP applications that exceed the first set ratio is less than the first set duration. If yes, set the information position to state one, sort all APP applications according to the first rule, select the unified digital codes of the top 50 APP applications in sequence to generate the second sub-feature. Otherwise, set the information position to state two, sort according to the usage frequency of each APP application, and select the unified digital codes of the top 50 APP applications in sequence to generate the second sub-feature.
[0016] The first sub-feature, the information bit and the second sub-feature are concatenated to obtain a first feature vector.
[0017] The first rule is that the download amount is from large to small.
[0018] If the total number of APP applications is less than 50, the remaining items in the second sub-feature are filled with 0.
[0019] The step of obtaining a third feature vector corresponding to the payment receiving merchant according to the code of the payment merchant includes:
[0020] Obtain information of all transaction users corresponding to the payment merchant according to the payment merchant's code;
[0021] Filter out typical users from all transaction users corresponding to the payment merchant according to payment frequency;
[0022] Calculate the first distance between the current user's portrait features and the portrait features of all typical users respectively;
[0023] Sort all the first distances from small to large to obtain the third eigenvector.
[0024] The first distance is the Euclidean distance.
[0025] The verification model is a classification model based on machine learning.
[0026] A payment security verification device based on feature similarity includes a memory, a processor, and a program stored in the memory, wherein the processor implements the above method when executing the program.
[0027] A storage medium stores a program, which implements the above method when executed.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] 1. By taking the features of the APP application list in the device and the merchant receiving the payment as part of the verification features, it is possible to avoid bypassing the security verification mechanism by simulating the MAC address and IMEI information. In addition, it can also improve the security of the verification, thereby avoiding the triggering frequency of the advanced verification mechanism and improving the convenience of use.
[0030] 2. Distinguish new and old machines based on the length of installation, so that old machines can be sorted by frequency of use to improve accuracy and avoid the tediousness of verification when users replace new machines.
[0031] 3. By screening the transaction users of the payment merchant and obtaining the third characteristic vector based on the first distance between the current user and each typical user, the consumption habits of the user can be greatly considered, thereby improving security and convenience. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic flow chart of the main steps of the method of the present invention;
[0033] Figure 2 Schematic diagram of the composition to verify the features;
[0034] Figure 3 Schematic diagram of the verification model in the embodiment. DETAILED DESCRIPTION
[0035] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0036] A payment security verification method based on feature similarity, such as Figure 1 As shown, including:
[0037] Acquire payment environment information, and construct a first feature vector based on the payment environment information, wherein the payment environment information includes at least device information and a device APP application list;
[0038] When a payment instruction is received, the payment amount and the code of the payment receiving merchant are extracted based on the payment instruction, a second feature vector is constructed based on the payment amount, and a third feature vector corresponding to the payment receiving merchant is obtained according to the code of the payment receiving merchant;
[0039] like Figure 2 As shown, the first feature vector 101, the second feature vector 102 and the third feature vector 103 are concatenated to obtain verification features, and the obtained verification features are input into the trained verification model to obtain the verification result output by the verification model.
[0040] By taking the features of the APP application list in the device and the merchant receiving the payment as part of the verification features, it is possible to avoid bypassing the security verification mechanism by simulating the MAC address and IMEI information. In addition, it can also improve the security of the verification, thereby avoiding the triggering frequency of the advanced verification mechanism and improving the convenience of use.
[0041] Generally, similar to the prior art, the device information includes at least the device number and the MAC address, and the device number is the IMEI serial number, which can reduce the difficulty.
[0042] Based on this, in this embodiment, the first feature vector 101 is constructed based on the payment environment information, including:
[0043] Generate a first sub-feature according to the device information, where the first sub-feature may be in a form consistent with the prior art;
[0044] Generate the installation duration corresponding to each APP application based on the installation time of each APP application and the current time;
[0045] Determine whether the installation duration of the APP applications that exceed the first set ratio is less than the first set duration. If yes, set the information position to state one, sort all APP applications according to the first rule, select the unified digital codes of the top 50 APP applications in sequence to generate the second sub-feature. Otherwise, set the information position to state two, sort according to the usage frequency of each APP application, and select the unified digital codes of the top 50 APP applications in sequence to generate the second sub-feature.
[0046] The first sub-feature, the information bit and the second sub-feature are concatenated to obtain a first feature vector 101 .
[0047] New and old machines are distinguished based on the length of installation time, so that old machines can be sorted by usage frequency to improve accuracy and avoid the tediousness of verification when users replace new machines.
[0048] In addition, in this embodiment, the first rule is that the download volume is from large to small. If the current device is a new machine, the installation time is relatively close. At this time, the frequency of use cannot reflect the user's habits. Therefore, the APP application's total network download volume is used for sorting. It can reflect the general importance of the APP application. For two different sorting methods, it is expressed through information bits. Generally, state one can be 1 and state two can be 2.
[0049] In addition, in this embodiment, the first set ratio is 60%, and the purpose of such setting is to take into account that some OEMs may pre-install some APP applications, and their installation time will be earlier. And the first set duration is one week.
[0050] The process of obtaining the APP application list can be carried out in the same manner as in the prior art. For example, for the Android system, the list can be obtained by:
[0051] Android's PackageManager class can be used to retrieve information about application packages currently installed on the device.
[0052] Call the getPackageManager() method to get an instance of the PackageManager class, and then use the getInstalledApplications() method to get a list of installed applications.
[0053] More detailed application information can be obtained by setting appropriate flags (such as PackageManager.GET_META_DATA).
[0054] This approach is often used when developing applications that need to query or manipulate other installed applications.
[0055] Generally, if the total number of APP applications is less than 50, the remaining items in the second sub-feature are filled with 0. This is to take into account some extreme cases where some users have fewer APP applications.
[0056] In addition, in this embodiment, obtaining the third feature vector 103 corresponding to the payment merchant according to the code of the payment merchant includes:
[0057] Obtain information of all transaction users corresponding to the payment merchant according to the payment merchant's code;
[0058] Filter out typical users from all transaction users corresponding to the payment merchant according to payment frequency;
[0059] Calculate the first distance between the current user's portrait features and the portrait features of all typical users respectively;
[0060] All the first distances are sorted from small to large to obtain the third eigenvector 103 .
[0061] In this way, by screening the transaction users of the payment merchant and obtaining the third feature vector 103 based on the first distance between the current user and each typical user, the consumption habits of the users can be greatly considered, thereby improving security and convenience.
[0062] In particular, in the process of screening out typical users, it specifically depends on the payment frequency of each user to the payment merchant. Specifically, in a certain embodiment, it is possible to first sort according to the payment frequency within a certain time period, and then select users ranked 20% to 80%, and then perform stratified sampling according to the proportion to obtain typical users. In the process of stratified sampling, the proportion of users with different payment frequencies is used as the proportion of typical users of that frequency.
[0063] Generally, the first distance can be Euclidean distance.
[0064] In addition, the verification model is a classification model based on machine learning. Specifically, in this embodiment, Figure 3 As shown, the verification model can be divided into three parts, wherein the first part is for each user, the second part is for all users, and the third part is to perform an AND operation on the results of the first part and the second part.
[0065] Among them, the second part can use the data of all users for pre-training, so that there is enough training set data. The first part needs to use the data accumulated every time the user makes a payment to construct training samples for training, so as to improve representativeness.
[0066] The input of the second part is the second eigenvector 102 and the third eigenvector 103, and the output is 0 or 1, where 0 indicates that the verification fails and 1 indicates that the verification passes. The input of the first part is the first eigenvector 101, and the output is 0 or 1, where 0 indicates that the verification fails and 1 indicates that the verification passes. The third part is to multiply the output of the first part and the output of the second part, and the final result 0 indicates that the verification fails and 1 indicates that the verification passes.
[0067] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.
Claims
1. A payment security verification method based on feature similarity, characterized in that: include: Acquire payment environment information, and construct a first feature vector based on the payment environment information, wherein the payment environment information at least includes device information and a device APP application list; When a payment instruction is received, the payment amount and the code of the payment receiving merchant are extracted based on the payment instruction, a second feature vector is constructed based on the payment amount, and a third feature vector corresponding to the payment receiving merchant is obtained according to the code of the payment receiving merchant; The first feature vector, the second feature vector and the third feature vector are concatenated to obtain a verification feature, and the obtained verification feature is input into a trained verification model corresponding to the user to obtain a verification result output by the verification model.
2. A payment security verification method based on feature similarity according to claim 1, characterized in that: The device information includes at least a device number and a MAC address.
3. A payment security verification method based on feature similarity according to claim 1 or 2, characterized in that: The step of constructing a first feature vector based on payment environment information includes: generating a first sub-feature according to the device information; Generate the installation duration corresponding to each APP application based on the installation time of each APP application and the current time; Determine whether the installation duration of the APP applications that exceed the first set ratio is less than the first set duration. If yes, set the information position to state one, sort all APP applications according to the first rule, select the unified digital codes of the top 50 APP applications in sequence to generate the second sub-feature. Otherwise, set the information position to state two, sort according to the usage frequency of each APP application, and select the unified digital codes of the top 50 APP applications in sequence to generate the second sub-feature. The first sub-feature, the information bit and the second sub-feature are concatenated to obtain a first feature vector.
4. A payment security verification method based on feature similarity according to claim 3, characterized in that: The first rule is that the download amount is from large to small.
5. A payment security verification method based on feature similarity according to claim 3, characterized in that: If the total number of APP applications is less than 50, the remaining items in the second sub-feature are filled with 0.
6. A payment security verification method based on feature similarity according to claim 1, characterized in that: The step of obtaining a third feature vector corresponding to the payment receiving merchant according to the code of the payment merchant includes: Obtain information of all transaction users corresponding to the payment merchant according to the payment merchant's code; Filter out typical users from all transaction users corresponding to the payment merchant according to payment frequency; Calculate the first distance between the current user's portrait features and the portrait features of all typical users respectively; Sort all the first distances from small to large to obtain the third eigenvector.
7. A payment security verification method based on feature similarity according to claim 6, characterized in that: The first distance is the Euclidean distance.
8. A payment security verification method based on feature similarity according to claim 1, characterized in that: The verification model is a classification model based on machine learning.
9. A payment security verification device based on feature similarity, comprising a memory, a processor, and a program stored in the memory, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
10. A storage medium having a program stored thereon, characterized in that: When the program is executed, the method according to any one of claims 1 to 8 is implemented.
