Business processing method, device and equipment, medium and product

By coding and aggregating coding representations of business behavior sequences, and using the attention mechanism for identification processing, the problem of difficulty in identifying business object risks in the existing technology is solved, and business security is improved.

CN118747648APending Publication Date: 2024-10-08TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410767551.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing technology is difficult to accurately identify the risk of business objects performing business behaviors, resulting in threats to business security. Especially in the face of black industries such as online fraud, it cannot effectively prevent abnormal business behaviors.

Method used

By obtaining the business behavior sequence, encoding it based on time order, and performing multi-level aggregated encoding representation, combined with the attention mechanism, the aggregated encoding sequence is fused and recognized, and the recognition result is generated to indicate the risk of the business object.

Benefits of technology

It achieves accurate identification of the risk of business behavior of business objects, improves business security, reduces the risk of resource loss, and enhances trust in the business system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747648A_ABST
    Figure CN118747648A_ABST
Patent Text Reader

Abstract

A service processing method, apparatus and device, a medium, and a product, the method comprising: acquiring a first service behavior sequence, the first service behavior sequence being obtained by sorting a plurality of service behaviors executed by a first service object within a preset time period according to a time sequence; based on the service attribute of each service behavior in the first service behavior sequence, coding the first service behavior sequence to obtain a first coded sequence; performing multi-level aggregation coding representation on the first coding sequence to obtain a plurality of aggregation coding sequences of the first business object; one hierarchy corresponds to one aggregation coding sequence, and each aggregation coding sequence is used for representing a time sequence feature of the first service behavior sequence on the corresponding hierarchy; and based on the attention mechanism, performing fusion identification processing on the plurality of aggregated coding sequences to obtain an identification result, the identification result being used for indicating the risk degree of the first business object for executing the business behavior. According to the embodiment of the invention, the service security can be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, in particular to the field of artificial intelligence technology, and specifically to a business processing method, a business processing device, a computer equipment, a computer-readable storage medium, and a computer program product. Background Art

[0002] With the rapid development of computer technology, more and more people choose to transfer electronic resources (resources in the form of electronic data) on the Internet. Although it brings convenience to people's daily life, it also breeds a breeding ground for the rise of black industries (illegal industries existing in the cyber world, such as online fraud). This requires timely management and intervention of the risks of business objects performing business behaviors during business processing to avoid abnormal business objects performing abnormal business behaviors and causing adverse effects. Therefore, how to accurately identify the risk of business objects performing business behaviors and ensure business security is an issue that needs to be solved urgently. Summary of the invention

[0003] The embodiments of the present application provide a business processing method, device and equipment, medium, and product, which can accurately identify the risk level of business objects in executing business behaviors and ensure business security.

[0004] On the one hand, an embodiment of the present application provides a service processing method, the method comprising:

[0005] Acquire a first business behavior sequence, where the first business behavior sequence is obtained by sorting, in chronological order, a plurality of business behaviors executed by a first business object within a preset time period;

[0006] Based on the service attributes of each service behavior in the first service behavior sequence, encoding the first service behavior sequence to obtain a first encoding sequence;

[0007] Performing multiple levels of aggregate coding representation on the first coding sequence to obtain multiple aggregate coding sequences of the first business object; wherein one level corresponds to one aggregate coding sequence, and each aggregate coding sequence is used to represent the timing characteristics of the first business behavior sequence at the corresponding level;

[0008] Based on the attention mechanism, multiple aggregated coding sequences of the first business object are fused and recognized to obtain a recognition result, and the recognition result is used to indicate the risk level of the first business object in performing the business behavior.

[0009] On the other hand, an embodiment of the present application provides a service processing device, the device comprising:

[0010] An acquiring unit, configured to acquire a first business behavior sequence, wherein the first business behavior sequence is obtained by sorting, in chronological order, a plurality of business behaviors executed by a first business object within a preset time period;

[0011] A processing unit, configured to encode the first business behavior sequence based on the business attributes of each business behavior in the first business behavior sequence to obtain a first coded sequence;

[0012] The processing unit is further used to perform multiple-level aggregate coding representation on the first coding sequence to obtain multiple aggregate coding sequences of the first business object; wherein one level corresponds to one aggregate coding sequence, and each aggregate coding sequence is used to represent the time series characteristics of the first business behavior sequence at the corresponding level;

[0013] The processing unit is also used to perform fusion recognition processing on multiple aggregated coding sequences of the first business object based on the attention mechanism to obtain a recognition result, and the recognition result is used to indicate the risk level of the first business object performing the business behavior.

[0014] In one embodiment, the number of levels is K, any level in the K levels is represented as a kth level, the aggregated coded representation includes an aggregate process and a coded representation, k is a positive integer and k is less than or equal to K;

[0015] The processing unit is used to perform multiple levels of aggregate coding representation on the first coding sequence to obtain multiple aggregate coding sequences of the first business object, specifically performing the following steps:

[0016] Let k=1, and set the first coding sequence to the first aggregated coding sequence corresponding to the first level;

[0017] If k<K, let k=k+1, perform the k+1th level aggregation processing on the first coding sequence to obtain the k+1th aggregation sequence, where k+1 is an integer greater than 1 and less than or equal to K;

[0018] Encode the k+1th aggregation sequence to obtain the k+1th aggregation encoding sequence corresponding to the k+1th level;

[0019] If k=K, K aggregated coding sequences corresponding to the K levels are obtained.

[0020] In one embodiment, a level is used to define the number of elements that are aggregated into the same group during the aggregation process of the corresponding level, and the k-th level is used to define the number of elements that are aggregated into the same group during the aggregation process of the k-th level as k;

[0021] The processing unit is used to perform the k+1th level aggregation processing on the first coding sequence, and when obtaining the k+1th aggregated sequence, specifically execute the following steps:

[0022] Based on the definition of the k+1th level, the first coding sequence is grouped according to the arrangement order of each element in the first coding sequence to obtain the k+1th aggregation sequence;

[0023] The k+1th aggregation sequence includes at least one group, and each group contains k+1 elements arranged in sequence.

[0024] In one embodiment, the processing unit is used to encode the k+1th aggregation sequence to obtain the k+1th aggregation encoding sequence corresponding to the k+1th level, and specifically performs the following steps:

[0025] The elements in each group in the k+1th aggregation sequence are concatenated to obtain the k+1th auxiliary coding sequence; the k+1th auxiliary coding sequence includes at least one concatenated string, and each concatenated string is concatenated by the elements in a group in the k+1th aggregation sequence;

[0026] The concatenated character string in the k+1th auxiliary coding sequence is encoded to obtain the k+1th aggregated coding sequence corresponding to the k+1th level.

[0027] In one embodiment, the processing unit is used to encode the first business behavior sequence based on the business attributes of each business behavior in the first business behavior sequence, and when obtaining the first encoding sequence, specifically execute the following steps:

[0028] Calling an acquisition unit to acquire a preset order between N attribute dimensions and multiple attribute information of each attribute dimension; the N attribute dimensions include: one or more of business direction, business scenario, business transaction mode, relationship between business objects, business execution time, and business transaction resource volume;

[0029] All business attributes are determined according to a preset order between the N attribute dimensions and multiple attribute information of each attribute dimension; any business attribute among all business attributes is obtained by combining and processing any attribute information included in each attribute dimension according to the preset order between the N attribute dimensions;

[0030] Based on the number of all business attributes, generate a coded value of each business attribute in all business attributes;

[0031] The service attribute of each service behavior in the first service behavior sequence is mapped to a coded value of the corresponding service attribute to obtain a first coded sequence.

[0032] In one embodiment, any business behavior in the first business behavior sequence is represented as the first business behavior, and the processing unit is further configured to perform the following steps:

[0033] Calling an acquisition unit to acquire a preset order between N attribute dimensions, where the N attribute dimensions include: one or more of business direction, business scenario, business transaction mode, relationship between business objects, business execution time, and business transaction resource volume;

[0034] Calling an acquisition unit to acquire attribute information of the first business behavior in each attribute dimension;

[0035] According to a preset order among the N attribute dimensions, the attribute information of the first business behavior in each attribute dimension is combined and processed to obtain the business attribute of the first business behavior.

[0036] In one embodiment, the fusion recognition process is performed by calling a network model based on an attention mechanism; the number of layers is K, the network model includes a recognition module and K attention encoding modules, and one aggregated encoding sequence corresponds to one attention encoding module; K is a positive integer;

[0037] The processing unit is used to perform fusion recognition processing on multiple aggregated coding sequences of the first business object based on the attention mechanism, and when obtaining the recognition result, specifically execute the following steps:

[0038] Input the K aggregated coding sequences of the first business object into the corresponding attention coding modules for temporal feature learning, and obtain K attention coding features, each of which comes from an aggregated coding sequence;

[0039] The K attention encoding features are merged and input into the recognition module for recognition processing to obtain the recognition result.

[0040] In one embodiment, any one of the K aggregated coding sequences is represented as a k-th aggregated coding sequence, the K attention coding features include a k-th attention coding feature from the k-th aggregated coding sequence; the k-th aggregated coding sequence corresponds to a k-th attention coding module among the K attention coding modules, the k-th attention coding module includes an embedding layer and a plurality of serially connected attention coding submodules; k is a positive integer less than or equal to K;

[0041] The processing unit is used to input the k-th aggregated coding sequence into the k-th attention coding module for temporal feature learning. When the k-th attention coding feature is obtained, the following steps are specifically performed:

[0042] Input the k-th aggregated coding sequence into the embedding layer for embedding processing to obtain the embedding features of the k-th aggregated coding sequence;

[0043] The embedded features of the k-th aggregated coding sequence are input into multiple series-connected attention encoding submodules for multi-head attention learning to obtain the k-th attention encoding feature.

[0044] In one embodiment, the processing unit is further configured to perform the following steps:

[0045] Calling an acquisition unit to acquire a second business behavior sequence, where the second business behavior sequence is obtained by sorting multiple business behaviors executed by the second business object within a preset time period in chronological order;

[0046] Based on the business attributes of each business behavior in the second business behavior sequence, encoding the second business behavior sequence to obtain a second encoding sequence;

[0047] Performing multiple levels of aggregate coding representation on the second coding sequence to obtain multiple aggregate coding sequences of the second business object;

[0048] Calling the initial network model to perform fusion recognition processing on multiple aggregated coding sequences of the second business object to obtain a prediction result, where the prediction result is used to indicate the risk level of the second business object performing the business behavior;

[0049] According to the prediction results and the classification label of the second business object, the initial network model is trained to obtain a network model based on the attention mechanism.

[0050] In one embodiment, the processing unit is used to train the initial network model according to the prediction result and the classification label of the second business object to obtain the network model based on the attention mechanism, and specifically performs the following steps:

[0051] Determine loss information of the initial network model according to the prediction result and the classification label of the second business object;

[0052] According to the direction of reducing the loss information, the model parameters of the initial network model are adjusted to obtain a network model based on the attention mechanism;

[0053] When the second business object is marked as an abnormal business object in the business system, the classification label of the second business object is an abnormal label; when the second business object is not marked as an abnormal business object in the business system, the classification label of the second business object is a normal label.

[0054] In one embodiment, the processing unit is further configured to perform the following steps:

[0055] Based on the identification result, risk processing is performed on the first business object.

[0056] In one embodiment, the first business object is any business object in all business objects of the business system; the processing unit is used to perform the following steps when performing risk processing on the first business object according to the identification result:

[0057] If the identification result indicates that the risk of the first business object performing a business behavior is higher than or equal to a preset risk threshold, the first business object is marked as an abnormal business object in the business system; or, risk warning information for the first business object is output in the business system; or, the business behavior execution authority of the first business object is revoked in the business system.

[0058] On the other hand, an embodiment of the present application provides a computer device, the computer device comprising:

[0059] A processor for loading and executing computer programs;

[0060] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the business processing method is implemented.

[0061] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is suitable for being loaded by a processor and executing the above-mentioned business processing method.

[0062] On the other hand, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the above-mentioned business processing method is implemented.

[0063] In the embodiment of the present application, a first business behavior sequence can be obtained. The first business behavior sequence is obtained by sorting and processing multiple business behaviors executed by the first business object within a preset time period in chronological order, that is, the first business behavior sequence can reflect the temporal relationship between the multiple business behaviors executed by the first business object. Based on the business attributes of each business behavior in the first business behavior sequence, the first business behavior sequence is encoded to obtain a first coding sequence; the first business behavior sequence is converted into a first coding sequence through encoding, which can facilitate subsequent processing (such as aggregate coding representation). The first coding sequence is represented by multiple levels of aggregate coding to obtain multiple aggregate coding sequences; wherein one level corresponds to one aggregate coding sequence, and each aggregate coding sequence is used to represent the temporal characteristics of the first business behavior sequence at the corresponding level. Based on the attention mechanism, multiple aggregate coding sequences are fused and identified to obtain a recognition result, and the recognition result is used to indicate the risk of the first business object executing the business behavior. It can be seen that through the multiple levels of aggregate coding representation, the temporal characteristics of the first business behavior sequence at multiple levels can be mined, and the learning ability of the temporal characteristics can be strengthened based on the attention mechanism, and the risk of the first business object executing the business behavior can be accurately identified to ensure business security. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0065] Figure 1 It is a structural diagram of a business system provided by an embodiment of the present application;

[0066] Figure 2a It is a structural diagram of a transformer structure layer provided in an embodiment of the present application;

[0067] Figure 2b is a structural diagram of an initial network model provided in an embodiment of the present application;

[0068] Figure 3 It is a flowchart of a business processing method provided by an embodiment of the present application;

[0069] Figure 4 It is a flowchart of another business processing method provided by an embodiment of the present application;

[0070] Figure 5 It is a flowchart of another business processing method provided by an embodiment of the present application;

[0071] Figure 6 It is a flowchart of another business processing method provided by an embodiment of the present application;

[0072] Figure 7 It is a structural diagram of a service processing device provided in an embodiment of the present application;

[0073] Figure 8 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0074] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0075] See also Figure 1 , Figure 1 Schematic diagram of a business system provided by an embodiment of the present application. Figure 1As shown, the business system may include a business server 100 and a terminal cluster. The terminal cluster may include multiple terminal devices. The embodiment of the present application does not limit the number of terminal devices included in the terminal cluster. Figure 1 As shown, the terminal cluster may specifically include: terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n, wherein there may be a communication connection between the terminal clusters, for example, there is a communication connection between terminal device 200a and terminal device 200b, and there is a communication connection between terminal device 200a and terminal device 200c. At the same time, any terminal device in the terminal cluster may have a communication connection with the business server 100, for example, there is a communication connection between terminal device 200a and business server 100, so that each terminal device in the terminal cluster may exchange data with the business server 100 through the communication connection. Among them, the above-mentioned communication connection does not limit the connection method, and may be directly or indirectly connected through a wired communication method, or directly or indirectly connected through a wireless communication method, or through other methods, and this application does not make any restrictions here.

[0076] The business server 100 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud database, cloud service, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and big data and artificial intelligence platform. The terminal device may be a smart phone, tablet computer, laptop computer, desktop computer, PDA, mobile internet device (MID), wearable device (such as smart watch, smart bracelet, etc.), smart computer, smart car, game controller, remote control, arcade equipment and other smart terminals.

[0077] like Figure 1 Each terminal device in the terminal cluster shown in the figure may be installed with a service client (a computer program for completing one or more specific tasks). When the service client runs in each terminal device, it can communicate with the above-mentioned Figure 1 Data is exchanged between the business servers 100 shown. The business client may be a payment client, a game client, an instant messaging client, a live broadcast client, a short video client, a video client, a music client, a shopping client, a novel client, a browser, or other business clients with data information functions such as displaying text, images, audio, and video. The business client may be an independent client or an embedded sub-client integrated in a client (such as a payment client, etc.), which is not limited here.

[0078] It should be noted that in the embodiment of the present application, the payment client is a client that can provide payment services (or electronic resource transfer) for the business object. The payment client is not limited to a client that only includes payment services. The payment client can also provide a variety of services such as chat services, recording services, and playback services for the business object. For example, the payment client can be an instant messaging client that includes a payment service, or a shopping client that includes a payment service, or a live broadcast client that includes a payment service, etc.

[0079] The business server 100 may be a background server corresponding to the business client, so each terminal device can perform data transmission with the business server 100 through the installed business client. Taking the business client as a payment client as an example, when a business object (such as business object a) performs a transfer operation in the payment client, the payment client may generate a resource transfer request, which may include the authentication information of business object a, the object account of business object a (i.e., the account registered by business object a in the payment client), the first resource amount to be transferred, and the object account of business object b (i.e., the account registered by business object b in the payment client, and business object b may be any business object except business object a). The payment client may send the resource transfer request to the business server 100, and the business server 100 may, after the authentication information of business object a is passed, respond to the resource transfer request and transfer the first resource amount in the object account of business object a to the object account of business object b.

[0080] At present, black industries such as online fraud are becoming more and more active in the payment system (referring to a system composed of various payment methods, financial institutions, technical platforms, etc.). If it is not controlled, it will not only affect the confidence of the business object in the payment system, but also pose a huge threat to the resource security of the business object. Therefore, in the embodiment of the present application, the above-mentioned business client can refer to the payment client, and the business object can refer to the object served by the payment client (including but not limited to: individual users, enterprises, individual industrial and commercial households, etc.), and the business system is a payment system. In response to the above-mentioned problems, the embodiment of the present application provides a business processing scheme, which can be executed by the above-mentioned business server 100, and the business processing scheme can identify the risk of the business object performing business behavior (illustratively, the business behavior can refer to the operation related to resource transfer performed by the business object), that is, the probability that the business behavior performed by the business object is an abnormal business behavior, that is, the probability that the business object is an abnormal business object. Among them, the so-called normal business object refers to the business object whose risk of performing business behavior is higher than or equal to the preset risk threshold; the so-called abnormal business object refers to the business object whose risk of performing business behavior is lower than the preset risk threshold. Correspondingly, the so-called abnormal business behavior refers to the business behavior performed by the business object with a risk level higher than or equal to the preset risk threshold, which can usually include related operations to implement black industries (such as online fraud), such as the use of false information in online fraud to make victims voluntarily perform transfer operations. Conversely, normal business behavior refers to the business behavior performed by the business object with a risk level lower than the preset risk threshold, such as conventional resource transfer operations. It is understandable that the preset risk threshold can be flexibly set as needed. For example, the preset risk threshold can be 120, 100, etc., and this application does not limit this. The following is a brief introduction to the processing flow of the business processing solution.

[0081] 1. Model building stage:

[0082] Considering that the attention mechanism can help the model adaptively mine sequence data with time series relationships, the sequence data is weighted by learning the importance weight of each time step to better capture the key information in the time series data. Here, a time step refers to a time unit when the model processes sequence data. In the sequence data, each time step represents a time point in the sequence data. In an embodiment of the present application, one or more transformer structure layers based on a self-attention mechanism can be used to construct an initial network model (such as constructing an initial network model by combining or stacking multiple transformer structure layers), and the initial network model refers to the network model to be trained.

[0083] Among them, see Figure 2aAs shown in the structural diagram of the transformer structure layer, it can be seen that the transformer structure layer is essentially an encoder based on the attention mechanism, wherein the input part of the transformer structure layer includes an input embedding layer and a positional encoder. The input embedding layer can be used to convert the input sequence data (which can be referred to as a sequence, for example, a business behavior sequence) into a high-dimensional vector. The position encoder can be used to perform position encoding processing on each data in the sequence data. A transformer structure layer can include a multi-head attention layer (Multi-Head Attention), a feed-forward neural network (Feed-Forward), and a residual link and layer normalization module (Add&Norm, where Add represents residual link and Norm represents layer normalization, i.e., layer normalization). The transformer structure layer can perform feature extraction operations in the target direction according to the given input.

[0084] For example, see Figure 2b , Figure 2b is a schematic diagram of the structure of an initial network model provided in an embodiment of the present application, such as Figure 2b As shown, the initial network model may include a recognition module and K (K is a positive integer) attention encoding modules, and the attention encoding module may include an embedding module and multiple serially connected attention encoding sub-modules (i.e., transformer structure layers).

[0085] In an embodiment of the present application, the embedding module is mainly used to map each element (integer) in the aggregated coding sequence to a vector. Optionally, the embedding module can be an embedding layer, which is a common layer in a neural network model, and is used to map discrete input data (such as elements in the aggregated coding sequence in an embodiment of the present application) to a continuous high-dimensional vector, so that the input data can be better processed in the neural network model, and the relationship between the input data can be better trained and learned. Among them, a continuous high-dimensional vector refers to a multidimensional vector composed of multiple continuous variables (or features), and each dimension corresponds to a continuous variable (or feature). Multiple transformer structure layers in series are usually referred to as multi-head transformer structures. Each transformer structure layer can learn different concerns and interdependencies in sequence data. The output of each transformer structure layer is used as the input of the next transformer structure layer, which can better capture the complex dependencies in the sequence data. The so-called complex dependencies refer to the existence of nonlinear, multi-level, interactive or other complex associations between multiple variables (or features). The recognition module is the last layer in the initial network model for performing classification tasks, and may include a fully connected layer and an activation function (such as a Sigmoid function). Exemplarily, the output of the recognition module may be a value representing the risk of a business object performing a business behavior (the larger the value, the higher the risk of the business object performing the business behavior).

[0086] It should be noted that artificial intelligence (AI) technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, cloud storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning. The neural network model is an important component of deep learning. Deep learning is a machine learning method. Its core idea is to learn the characteristics and patterns of data through a multi-layer neural network structure to automatically extract features and make predictions from data. The neural network model is an algorithmic mathematical model that imitates the behavioral characteristics of animal neural networks and performs distributed parallel information processing. This network relies on the complexity of the system to adjust the interconnected relationships between a large number of internal nodes to achieve the purpose of processing information.

[0087] 2. Model training stage:

[0088] Considering that normal business objects and abnormal business objects usually have different behavior patterns, and the business behavior of business objects naturally has time series characteristics, and time series information often contains richer information. For example, fraudsters often have the behavior of withdrawing cash quickly. Then, when a certain business object (such as the first business object) repeatedly shows the behavior combination of "collecting money-withdrawing cash", the possibility that the first business object is a business object that conducts online fraud will be higher. Therefore, in the embodiment of the present application, a model training method for multi-level time series feature learning based on an attention mechanism is proposed; the core idea of ​​the model training method is: arrange the multiple business behaviors in the order in which the business objects perform multiple business behaviors within a preset time period (such as a week or a month) to obtain the business behavior sequence of the business object. In order to deeply explore the time series characteristics of the business behavior sequence, the business behaviors in the business behavior sequence are aggregated and encoded at different levels according to the business attributes of the business behavior (used to describe the business behavior from multiple attribute dimensions), and K aggregated coding sequences are obtained. The main purpose of the aggregation process is to bundle multiple continuous business behaviors (different levels have different numbers of bundled business behaviors), and the main purpose of the encoding representation is to represent the multiple business behaviors bundled in the aggregation process as a whole, and then learn the abnormal features of the continuous business behaviors (i.e., the features of abnormal business behaviors) during model training. Figure 2b As shown, the K attention encoding modules in the initial network model can each receive an input aggregated coding sequence, merge the outputs of the K attention encoding modules, and input the merged data into the recognition module to obtain the prediction result output by the recognition module (which may include the probability of belonging to an abnormal business object). It should be noted that the classification label for normal business objects can be 0, and the classification label for abnormal business objects can be 1. According to the comparison between the prediction results and the classification labels of the business objects, the loss information can be generated to train the initial network model to obtain a network model based on the attention mechanism (i.e., the trained initial network model). For the detailed implementation process of the model training phase, please refer to Figure 3 The corresponding embodiments.

[0089] 3. Model application stage:

[0090] The network model based on the attention mechanism can be deployed on the business server 100, and all business objects in the business system can be used as business objects that need to be identified for risk. For each business object in the full set of business objects, a business behavior sequence can be generated according to the same processing logic as the model training phase, and K aggregated coding sequences can be generated through aggregation processing and coding representation. Then, the K aggregated coding sequences are received as input through the network model based on the attention mechanism to obtain the recognition result of the corresponding business object. The probability of belonging to an abnormal business object in the recognition result can be considered as the risk of the corresponding business object performing the business behavior. For high-risk business objects (such as business objects that perform business behaviors with a risk level higher than or equal to a preset risk threshold), risk control measures such as risk reminders and interceptions can be used to reduce the risk of other business objects suffering resource losses. For the detailed implementation process of the model application phase, please refer to Figure 4 The corresponding embodiments.

[0091] It should be noted that the embodiments of the present application do not limit the application scenarios of the business processing solutions, that is, the application scenarios are not limited to network fraud scenarios, for example, the application scenarios can also be resource cleaning scenarios, credit card fraud scenarios, and the like. Network fraud scenarios refer to fraudulent activities conducted through the Internet or social networking platforms (such as instant messaging clients that include payment services). Resource cleaning scenarios refer to the process of transferring, concealing or legalizing illegally acquired resources through network channels. Resource cleaning typically involves the use of virtual resources, online payment platforms or other financial instruments to conceal the source of funds, making the illegal proceeds appear legal. Credit card fraud scenarios refer to the act of exploiting security loopholes or deceptive means of credit card transactions to obtain illegal proceeds, which may include fraudulent swipes, credit card information theft, false transactions, and other methods.

[0092] It should be noted that in these application scenarios, business behavior can refer to operations related to resource transfer performed by business objects, such as receiving electronic resources transferred by other business objects, transferring electronic resources to other business objects, withdrawing electronic resources, etc. However, when generating business attributes of business behavior, business background and domain knowledge must be considered. For example, for network fraud in payment clients, business attributes of business behavior can include: business direction of business behavior (such as transfer, collection, withdrawal), business scenario of business behavior (such as bank card payment, balance payment, virtual card payment (such as recharging membership card with electronic resources)), relationship between business objects (such as friends in the same city, friends in different cities, non-friends in the same city, non-friends in different cities), business transaction resource volume (used to indicate the number of transferred electronic resources), etc. When identifying credit card fraud in financial systems, business attributes of business behavior can include: business direction of business behavior (such as transfer, collection, withdrawal), business execution time (used to indicate the time when the business behavior is executed), relationship between business objects (such as same city, non-same city; for example, the number of resource transfers, etc.), business transaction resource volume, etc. In addition, the identification of business objects also needs to be determined based on the actual application scenario. For example, if the application scenario is a network fraud scenario, then the business behavior performed by the business object includes: using false information to make the victim voluntarily perform a transfer operation. This business object is an abnormal business object. The embodiment of the present application mainly takes the network fraud scenario as an example, with the goal of identifying abnormal business objects in the network fraud scenario, to explain the business processing solution provided by the embodiment of the present application.

[0093] Understandably, Figure 1 The system structure of the possible existence of the technical solution of the present application is only exemplified, and the system structure of the business system of the technical solution of the present application is not limited, that is, the technical solution of the present application can also provide other forms of scenarios. For example, the business system can also be a financial system applicable to financial institutions. The business system can also include a detection server, which performs risk identification tasks for the business system.

[0094] The business processing scheme proposed in this application involves a large number of data computing services and data storage services, so a large amount of computer operating costs are required. Then, this application can perform corresponding business processing operations based on cloud storage technology in cloud technology; for example, data is stored based on data storage services to store attribute information of business behavior. Among them, the so-called cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the application of cloud computing business model, which can form a resource pool, which is used on demand and is flexible and convenient. Among them, cloud technology can include cloud storage technology. The so-called cloud storage is a new concept extended and developed from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as a storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of different types of storage devices (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide data storage and business access functions to the outside world.

[0095] The collection and processing of relevant data in the embodiments of this application should be strictly in accordance with the requirements of relevant laws and regulations. The acquisition of personal information requires the knowledge or consent of the individual subject (or the legal basis for obtaining the information), and the subsequent use and processing of data shall be carried out within the scope of authorization of laws and regulations and the subject of personal information. For example, when the embodiments of this application are applied to specific products or technologies, such as when collecting attribute information of business behaviors, it is necessary to obtain the permission or consent of the subject, and the collection, use and processing of relevant data shall comply with the relevant laws, regulations and standards of the relevant regions.

[0096] The following is a more detailed introduction to the business processing solution proposed in the embodiment of the present application in conjunction with the accompanying drawings.

[0097] See also Figure 3 , Figure 3 A flowchart of a business processing method provided in an embodiment of the present application. The business processing method can be Figure 1 The business server 100 in the business system shown in the figure executes; the business processing method involves the model training stage. Among them, the business processing method mainly includes but is not limited to the following steps S301 to S305:

[0098] S301: Acquire a second business behavior sequence, where the second business behavior sequence is obtained by sorting, in chronological order, a plurality of business behaviors executed by a second business object within a preset time period.

[0099] In the model training phase, it is necessary to obtain normal business objects and abnormal business objects for model training. Among them, normal business objects refer to business objects whose risk of executing business behaviors is lower than the preset risk threshold, and abnormal business objects refer to business objects whose risk of executing business behaviors is higher than or equal to the preset risk threshold. In the scenario of online fraud, abnormal business behavior can refer to the use of false information to make victims voluntarily perform transfer operations. Exemplarily, the business client may have a reporting function, and victims of fraud can report fraudsters through the business client. The object accounts of these verified fraudsters will be specially marked in the business system, such as adding a first mark (which can be understood as a description or a symbol) to the fraudster's object account, so that the object account carrying the first mark can be considered as the object account used by the abnormal business object, and the object account not carrying the first mark can be considered as the object account used by the normal business object.

[0100] In an embodiment of the present application, any business object used for model training is referred to as a second business object, and the second business object has a classification label, and the classification label of the second business object is used to indicate the category into which the second business object should be classified (one of a normal business object and an abnormal business object). Specifically, when the second business object is marked as an abnormal business object in the business system (such as the object account of the second business object carries a first label), the classification label of the second business object is an abnormal label, which is used to indicate that the second business object is an abnormal business object, and the abnormal label can be 1; when the second business object is not marked as an abnormal business object in the business system (such as the object account of the second business object does not carry the first label), the classification label of the second business object is a normal label, and the normal label is used to indicate that the second business object is a normal business object, and the normal label can be 0.

[0101] The preset time period can be any historical time period, and the length of the preset time period can be any length, such as one week, one month, etc. In one embodiment, it is necessary to sort the multiple business behaviors executed by the second business object within the preset time period in chronological order to obtain a second business behavior sequence, that is, the second business behavior sequence is a set arranged in chronological order of the time when the multiple business behaviors executed by the second business object occur, so that each business behavior in the second business behavior sequence has a temporal correlation with its previous and subsequent business behaviors, so that the model can capture this sequence dependency in the second business behavior sequence. Among them, the business behavior executed by the business object can refer to the operation related to resource transfer performed by the business object in the business client, such as when the business object receives a red envelope sent by other business objects in the business client, it can be considered that the business object has performed a collection operation, and when the business object transfers money to the merchant through the business client, it can be considered that the business object has performed a transfer operation.

[0102] S302: Based on the service attribute of each service behavior in the second service behavior sequence, encode the second service behavior sequence to obtain a second encoding sequence.

[0103] In fact, a complete description of a single business behavior also requires rich features. For example, the embodiment of the present application can select attribute information to describe a single business behavior based on the background and domain knowledge related to the payment business (or resource transfer business). Specifically, the embodiment of the present application defines the following N (positive integer) attribute dimensions: one or more of business direction, business scenario, business transaction method, relationship between business objects, business execution time, and business transaction resource volume.

[0104] Among them, business direction refers to the direction of resource transfer, business scenario refers to the scenario in which resource transfer occurs, business transaction method refers to the method of resource transfer, the relationship between business objects refers to the relationship between the two parties involved in resource transfer, business execution time refers to the time when resource transfer occurs (which can be measured in hours), and business transaction resource volume is used to indicate the number of electronic resources transferred (which can be represented in groups and discretized).

[0105] Exemplarily, the multiple attribute information of the business direction, business scenario, business transaction mode, relationship between business objects, business execution time, and business transaction resource volume may be as follows:

[0106] Business direction: collection, transfer, withdrawal, etc.

[0107] Business scenarios: ordinary transfer (such as transferring a certain amount of electronic resources from one's own object account to the object account of another business object), face-to-face transfer (select the business object to be transferred from nearby business objects and transfer money directly to it), red envelope (send red envelopes to other business objects, and the other party can receive them after receiving the red envelopes), commercial payment (after the merchant provides goods or services to the business object, the merchant uses online payment methods), etc.

[0108] Business transaction methods: bank card payment, balance payment, virtual card payment (such as payment using resources recharged in membership cards), etc.

[0109] The relationship between business objects (including friend information and region information): friends in the same city, friends in different cities, non-friends in the same city, non-friends in different cities, etc.;

[0110] Business execution time: 1:00, 2:00, 3:00, ..., 24:00;

[0111] Business transaction resource volume: resource group 1 (indicating that the amount of resources transferred is in the range of 0 to 100), resource group 2 (indicating that the amount of resources transferred is in the range of 100 to 200), resource group 3 (indicating that the amount of resources transferred is in the range of 200 to 300), and so on.

[0112] Among them, the second business behavior sequence refers to the business behavior sequence of the second business object, and the second coding sequence refers to the coding sequence of the second business object. In one embodiment, any business behavior in the second business behavior sequence can be represented as a second business behavior, and obtaining the business attributes of the second business behavior includes: obtaining the preset order between N attribute dimensions, obtaining the attribute information of the second business behavior under each attribute dimension, and combining the attribute information of the second business behavior under each attribute dimension according to the preset order between the N attribute dimensions to obtain the business attributes of the second business behavior. Among them, the preset order between the N attribute dimensions is a fixed order, which can be obtained by artificial setting. Combination processing refers to connecting the attribute information of the second business behavior under each attribute dimension according to this preset order, and the connection can be achieved by a connection symbol (such as "_").

[0113] For example, assume that N attribute dimensions include business direction, business scenario, business transaction method, relationship between business objects, business execution time, and business transaction resource volume, and the preset order between the N attribute dimensions is: business direction, business scenario, business transaction method, relationship between business objects, business execution time, and business transaction resource volume. If the amount of resources transferred from business object 1 to business object 2 by balance payment in the transfer interface is 90, business object 1 and business object 2 have not established a friend relationship, the business object is located in city 1, business object 2 is located in city 2, and the time when business object 1 initiates balance payment is 12:23, then for business object 1, the business attribute can be constructed: transfer_normal transfer_balance_non-friend non-same city_12 o'clock_resource group 1 to describe the transfer operation (a business behavior) of business object 1, and for business object 2, the business attribute can be constructed: collection_normal transfer_balance_non-friend non-same city_12 o'clock_resource group 1 to describe the collection operation (a business behavior) of business object 2.

[0114] In an embodiment of the present application, based on the business attributes of each business behavior in the second business behavior sequence, the second business behavior sequence is encoded to obtain a second encoding sequence. Mode 1: Since N attribute dimensions and multiple attribute information of each attribute dimension can be defined, the combination of these attribute information is limited, and all business attributes can be determined according to the preset order between the N attribute dimensions and the multiple attribute information of each attribute dimension, wherein any business attribute among all business attributes is obtained by combining any attribute information included in each attribute dimension according to the preset order between the N attribute dimensions. The number P of all business attributes can be obtained (that is, there are a total of P combinations of attribute information, and P is a positive integer), and based on the number P of all business attributes, the encoding value of each business attribute among all business attributes is generated, specifically, the encoding value of each business attribute among all business attributes is set to a value (integer) in [1, P]. For example, the code value of transfer_normal transfer_balance_non-friend non-same city_1 point_resource group 1 is: 1, the code value of transfer_normal transfer_balance_non-friend non-same city_1 point_resource group 2 is: 2, ..., the code value of transfer_normal transfer_balance_non-friend non-same city_1 point_resource group 12 is: 12, the code value of collection_normal transfer_balance_non-friend non-same city_1 point_resource group 1 is: 13, ..., the code value of collection_normal transfer_balance_non-friend non-same city_12 points_resource group 12 is: 24, the code value of withdrawal_normal transfer_balance_non-friend non-same city_12 points_resource group 1 is: 25, ..., the code value of withdrawal_normal transfer_balance_non-friend non-same city_12 points_resource group 12 is: 36, and so on. In this way, the business attributes of each business behavior in the second business behavior sequence can be mapped (i.e., replaced) to the coded values ​​of the corresponding business attributes to obtain a second coded sequence. Method 2: Since the business objects used for model training usually include multiple ones, the number Q (positive integer) of different business attributes constructed for multiple business objects (all used for model training) in the model training phase can be obtained, and the coded value of a business attribute can be set to a value in [1, Q]. Similarly, the business attributes of each business behavior in the second business behavior sequence can be mapped to the coded values ​​of the corresponding business attributes to obtain a second coded sequence.

[0115] S303: Perform multiple levels of aggregate coding representation on the second coding sequence to obtain multiple aggregate coding sequences of the second business object.

[0116] In an embodiment of the present application, an example is taken in which the number of levels is K (K is a positive integer, generally 3 to 5 can be selected). At this time, the second coding sequence is represented by multiple levels of aggregate coding to obtain multiple aggregate coding sequences of the second business object, including: the second coding sequence is represented by K levels of aggregate coding to obtain K aggregate coding sequences of the second business object.

[0117] The aggregated coded representation includes an aggregate process and a coded representation, and the level is used to define the number of elements aggregated into the same group during the aggregation process of the corresponding level. For example, any level among the K levels is represented as the kth level, and the kth level is used to define the number of elements aggregated into the same group during the aggregation process of the corresponding level as k, where k is a positive integer and k is less than or equal to K. The coded representation is used to represent the elements aggregated into the same group as a whole.

[0118] ① Let k=1, and set the second coding sequence to the first aggregated coding sequence corresponding to the first level.

[0119] The first level is used to define that the number of elements aggregated into the same group during the aggregation process of the first level is 1, so the result of the aggregation process on the second coded sequence is still the second coded sequence itself, and the coding representation process can be omitted. Therefore, when k=1, the second coded sequence can be directly set to the first aggregated coded sequence corresponding to the first level.

[0120] ② If k<K, then let k=k+1, perform aggregation processing at the k+1th level on the second coding sequence to obtain the k+1th aggregation sequence, encode the k+1th aggregation sequence to obtain the k+1th aggregation coding sequence corresponding to the k+1th level, where k+1 is an integer greater than 1 and less than or equal to K.

[0121] The k+1th level is used to define that the number of elements aggregated into the same group during the aggregation process of the k+1th level is k+1 (i.e., the definition of the k+1th level), and k+1 is an integer greater than 1 and less than or equal to K. Specifically, the second coding sequence is subjected to the aggregation process of the k+1th level to obtain the k+1th aggregated sequence, including: based on the definition of the k+1th level, the second coding sequence is subjected to grouping process according to the arrangement order of each element in the second coding sequence to obtain the k+1th aggregated sequence. In specific implementation, starting from the first element of the second coding sequence, the second coding sequence is divided into one or more groups with k+1 elements as one group. At this time, the k+1th aggregated sequence contains at least one group, and each group contains k+1 elements arranged in sequence. For example, k+1=2, and the second coding sequence is: [2,3,5,1,4,7,2,3,2,3]. Then, the second level of aggregation processing is performed on the second coding sequence: [2,3,5,1,4,7,2,3,2,3], and the second aggregation sequence is: [2,3,|5,1,|4,7,|2,3,|2,3]. The symbol "|" is the interval mark of each group. It can be seen that the number of elements in each group is 2, and the arrangement order of the elements still follows the arrangement order in the second coding sequence. For another example, k+1=3, and the second coding sequence is: [2,3,5,1,4,7,2,3,2,3]. Then, the third-level aggregation processing is performed on the second coding sequence: [2,3,5,1,4,7,2,3,2,3] to obtain the third aggregation sequence: [2,3,5,|1,4,7,|2,3,2|,3,0,0]. The 0 in the third aggregation sequence is a filling character.

[0122] Further, the k+1th aggregate sequence is encoded to obtain the k+1th aggregate coding sequence corresponding to the k+1th level, including: concatenating the elements in each group in the k+1th aggregate sequence to obtain the k+1th auxiliary coding sequence. The k+1th auxiliary coding sequence includes at least one concatenated string, and each concatenated string is concatenated by the elements in a group in the k+1th aggregate sequence. The concatenation process can be achieved by concatenating the elements in each group in sequence by the concatenation symbol "-", for example, the second auxiliary coding sequence corresponding to the second aggregate sequence: [2,3,|5,1,|4,7,|2,3,|2,3] can be: [2-3,|5-1,|4-7,|2-3,|2-3]. Then, the concatenated string in the k+1th auxiliary coding sequence is encoded to obtain the k+1th aggregate coding sequence corresponding to the k+1th level. In specific implementation, after generating the k+1th auxiliary coding sequence for multiple business objects (all used for model training), the number R (positive integer) of different concatenated strings can be obtained, and the coding value of a concatenated string can be set to a value (integer) in [1, R]. In this way, the concatenated string in the k+1th auxiliary coding sequence can be mapped (i.e., replaced) to the coding value of the corresponding concatenated string, and the k+1th aggregated coding sequence corresponding to the k+1th level can be obtained. For example, the concatenated strings (for the second level) are obtained: 2-3, 5-1, 4-7, 1-2, 3-6, then the coding value of the concatenated string: 2-3 can be 1, the coding value of the concatenated string: 5-1 can be 2, the coding value of the concatenated string: 4-7 can be 3, the coding value of the concatenated string: 1-2 can be 4, and the coding value of the concatenated string: 3-6 can be 5. By encoding the second auxiliary coding sequence: [2-3,|5-1,|4-7,|2-3,|2-3], the second aggregated coding sequence: [1,2,3,1,1] can be obtained.

[0123] ③ If k = K, then obtain K aggregated coding sequences corresponding to the K levels respectively.

[0124] When k=K, it indicates that the second coding sequence has been processed from the first level to the Kth level of aggregate coding representation, and K aggregate coding sequences corresponding to the K levels can be obtained (i.e., K aggregate coding sequences of the second business object). At this time, the kth aggregate coding sequence corresponding to the kth level can represent the temporal characteristics of the second business behavior sequence at the kth level.

[0125] S304: Call the initial network model to perform fusion recognition processing on multiple aggregated coding sequences of the second business object to obtain a prediction result, where the prediction result is used to indicate the risk level of the second business object in executing the business behavior.

[0126] In an embodiment of the present application, the initial network model may be called to perform recognition processing on the K aggregated coding sequences of the second business object to obtain a prediction result. The initial network model may include a recognition module and K attention coding modules (one aggregated coding sequence corresponds to one attention coding module), and the attention coding module may include an embedding module and multiple serially connected attention coding submodules (the number of layers is generally set to 6 layers).

[0127] In specific implementation, the K aggregated coding sequences of the second business object can be respectively input into the corresponding attention coding module for temporal feature learning to obtain K attention coding features, each of which comes from an aggregated coding sequence. Figure 2b As shown, the 1st aggregate coding sequence corresponding to the 1st level is input into the 1st attention coding module for temporal feature learning, the 2nd aggregate coding sequence corresponding to the 2nd level is input into the 2nd attention coding module for temporal feature learning, ..., the Kth aggregate coding sequence corresponding to the Kth level is input into the Kth attention coding module for temporal feature learning.

[0128] The kth aggregate coding sequence corresponding to the kth level is input into the kth attention coding module for temporal feature learning to obtain the kth attention coding feature as an example for explanation. In one implementation, the kth aggregate coding sequence is input into the kth attention coding module for temporal feature learning to obtain the kth attention coding feature, including: calling the embedding module in the kth attention coding module to embed the kth aggregate coding sequence to map each element (integer) in the kth aggregate coding sequence to a high-dimensional vector to obtain the embedding feature of the kth aggregate coding sequence. The embedding feature of the kth aggregate coding sequence is input into multiple series-connected attention coding submodules for multi-head attention learning to obtain the kth attention coding feature.

[0129] Among them, multi-head attention learning is implemented based on the multi-head attention mechanism (Multi-Head Self-Attention) of the attention encoding submodule (i.e., the transformer structure layer). The multi-head self-attention mechanism divides the calculation of attention weights into multiple heads, and each head learns different focus points and attention weights, so that different information representations can be learned in different subspaces, increasing the representation and generalization capabilities of the model. In addition, by connecting multiple attention encoding submodules in series, the model can perform deeper feature extraction and representation learning in each attention encoding submodule, which helps capture longer-distance dependencies and more complex features, and is conducive to improving the performance and generalization capabilities of the model.

[0130] After obtaining K attention coding features, the K attention coding features can be merged and input into the recognition module for recognition processing to obtain a prediction result. When merging K attention coding features, it can be achieved through common feature merging methods such as feature splicing (including any one of horizontal splicing and vertical splicing) and feature addition. The recognition module is actually a classification layer, which is a layer that maps the features obtained after merging K attention coding features to the final category prediction. Exemplarily, the recognition module can be composed of a fully connected layer containing one node and a Sigmoid activation function, and the value output by this node can represent the probability of being classified as an abnormal business object. Therefore, the prediction result refers to the probability that the second business object belongs to an abnormal business object. It is understandable that the greater this probability, the greater the risk of the second business object performing the business behavior indicated by the prediction result, and the smaller this probability, the smaller the risk of the second business object performing the business behavior indicated by the prediction result.

[0131] S305: Train the initial network model according to the prediction result and the classification label of the second business object to obtain a network model based on the attention mechanism.

[0132] It is understandable that if the classification label of the second business object is 1 (indicating that the second business object is an abnormal business object), but the prediction result is: the probability that the second business object is an abnormal business object is 0.1 (that is, the probability that the second business object is an abnormal business object is relatively low), then it means that the model prediction is inaccurate. Therefore, in one embodiment, the initial network model can be trained based on the prediction result and the classification label of the second business object to obtain a network model based on the attention mechanism. In specific implementation, the loss information of the initial network model can be determined based on the prediction result and the classification label of the second business object. For example, the prediction result and the classification label of the second business object are substituted into the following formula (1) to obtain the loss information of the initial network model:

[0133] L = -[yi·log(pi)+(1-yi)·log(1-pi)] (1)

[0134] Among them, L represents the loss information of the calculated initial network model, y i Indicates the classification label of the second business object, p i Represents the prediction result.

[0135] Then, stochastic gradient descent (SGD) or other optimization algorithms can be used to adjust the model parameters of the initial network model in the direction of reducing the loss information to obtain a network model based on the attention mechanism. The "in the direction of reducing the loss information" mentioned here refers to: the model optimization direction with the goal of minimizing the loss information; the model is optimized in this direction so that the loss information generated by the initial network model again after each optimization must be less than the loss information generated by the initial network model before optimization. For example, the loss information obtained by this calculation is 0.85. After adjusting the model parameters of the initial network model in the direction of reducing the loss information, the loss information generated by the initial network model after the model parameters are updated should be less than 0.85.

[0136] Among them, steps S301-S305 are: a process of adjusting the model parameters of the initial network model in one round. In the actual training process of the initial network model, it is necessary to continuously use the business behavior sequence of the business object to construct K aggregated coding sequences to adjust the parameters of the initial network model. Each time the parameters are adjusted, the model parameters of the initial network model are updated once. If the loss information meets the model training stop condition after multiple updates, it can be determined that the training process of the initial network model is over, and the initial network model obtained by the last update can be determined as a network model based on the attention mechanism. Among them, the loss information meets the model training stop condition including: the loss information is less than the set loss threshold, and the number of parameter adjustments reaches one or more of the preset number.

[0137] After obtaining the network model based on the attention mechanism, it is also possible to verify whether the effect of the network model based on the attention mechanism has achieved the expected effect. Common evaluation indicators include IV (Information Value), AUC (Area Under the ROC Curve) and KS (Kolmogorov-Smirnov). IV, AUC, and KS are commonly used evaluation indicators in binary classification tasks to evaluate the performance and effect of the model. If the effect of the network model based on the attention mechanism has achieved the expected effect, then the network model based on the attention mechanism can be used to identify the risk of business objects performing business behaviors. For detailed description, please refer to Figure 4 The corresponding embodiments.

[0138] Among them, IV is an indicator used to evaluate the predictive ability of a feature. It evaluates the discriminability of a feature by measuring the degree of distribution difference between different categories. The larger the IV value, the stronger the predictive ability of the feature for the target variable. AUC is an indicator used to measure the predictive ability of a binary classification model. The ROC curve is a curve that describes the relationship between the true positive rate (TPR) and the false positive rate (FPR) of a binary classification model at different thresholds, and AUC is the area under the ROC curve. The closer the AUC value is to 1, the better the model performance. The KS statistic is an indicator that measures the ability of a binary classification model to distinguish between positive and negative samples at different thresholds. The KS value is the maximum vertical distance between the cumulative distribution curve of positive samples and the cumulative distribution curve of negative samples. The larger the KS value, the stronger the model's ability to distinguish between positive and negative samples.

[0139] It should be noted that the embodiments of the present application do not limit the structure of the initial network model. For example, other algorithms (such as word2vec, etc.) can also be used to characterize and learn business behaviors in advance, and as machine learning technology is updated, the structure of the initial network model may also change.

[0140] It can be seen that in the embodiments of the present application, normal business objects and abnormal business objects for model training can be obtained based on business objects as units. For each business object used for model training, all business behaviors of the business object within a time window are selected to construct a business behavior sequence, and for each business behavior in the business behavior sequence, the business behavior is encoded and represented according to the business behavior-related attributes screened in advance, and the business behavior sequence is aggregated and encoded at multiple levels based on the combinatoriality between business behaviors to obtain multiple aggregated coding sequences. Then, the constructed initial network model is back-propagated and trained using multiple aggregated coding sequences to obtain a network model based on an attention mechanism. The network model based on the attention mechanism can be used to accurately identify the risk of business objects performing business behaviors, which is beneficial to improving business security, reducing the risk of resource loss of business objects, and enhancing trust in business systems.

[0141] See also Figure 4 , Figure 4 A flowchart of another service processing method provided in an embodiment of the present application. The service processing method can be Figure 1 The business server 100 in the business system shown in the figure is executed, and a network model based on the attention mechanism may be deployed in the business server 100; the business processing method involves the model application stage. Among them, the business processing method mainly includes but is not limited to the following steps S401 to S404:

[0142] S401: Obtain a first business behavior sequence, where the first business behavior sequence is obtained by sorting, in chronological order, a plurality of business behaviors executed by a first business object within a preset time period.

[0143] The first business behavior sequence is a business behavior sequence of the first business object. The first business object may be any one of the full business objects of the business system. The full business objects may refer to all business objects with object accounts registered in the business system. For the first business object, based on the same time window as the model training phase (i.e., the preset time period used in the model application phase has the same duration as the preset time period used in the model training phase, which may be one week, one month, etc.), multiple business behaviors performed by the first business object within the preset time period are obtained, and the multiple business behaviors are arranged in chronological order to obtain the first business behavior sequence.

[0144] It should be noted that in the embodiment of the present application, it is necessary to obtain the risk level of the business behavior executed by the first business object, that is, to determine whether the first business object is a normal business object or an abnormal business object, that is, to determine whether the business behavior executed by the first business object is a normal business behavior or an abnormal business behavior. In other words, the first business object is a business object that needs to be risk identified.

[0145] S402: Based on the service attributes of each service behavior in the first service behavior sequence, encode the first service behavior sequence to obtain a first encoding sequence. The first encoding sequence is an encoding sequence of the first service object.

[0146] Any business behavior in the first business behavior sequence is represented as the first business behavior; in one implementation, obtaining the business attributes of the first business behavior includes: obtaining a preset order between N attribute dimensions, the N attribute dimensions include: business direction, business scenario, business transaction method, relationship between business objects, business execution time, business transaction resource volume or one or more; obtaining the attribute information of the first business behavior under each attribute dimension; combining and processing the attribute information of the first business behavior under each attribute dimension according to the preset order between the N attribute dimensions to obtain the business attributes of the first business behavior. The detailed implementation process is the same as the method of obtaining the business attributes of the second business behavior in the model training phase, and will not be repeated here. It should be noted that the N attribute dimensions used in the model training phase and the model application phase and the preset order between the N attribute dimensions should be the same, so that the encoded values ​​of the business attributes in the model training phase can be used in the model application phase.

[0147] In one embodiment, based on the business attributes of each business behavior in the first business behavior sequence, the first business behavior sequence is encoded to obtain a first encoding sequence, including: obtaining a preset order between N attribute dimensions and multiple attribute information of each attribute dimension; determining all business attributes according to the preset order between the N attribute dimensions and multiple attribute information of each attribute dimension; any business attribute among all business attributes is obtained by combining and processing any attribute information included in each attribute dimension according to the preset order between the N attribute dimensions; based on the number of all business attributes, generating an encoding value of each business attribute among all business attributes; mapping the business attributes of each business behavior in the first business behavior sequence to the encoding value of the corresponding business attribute to obtain a first encoding sequence. The detailed implementation process is the same as S302 in the model training stage: encoding the second business behavior sequence based on the business attributes of each business behavior in the second business behavior sequence to obtain a second encoding sequence, and will not be repeated here.

[0148] S403. Perform multiple levels of aggregate coding representation on the first coding sequence to obtain multiple aggregate coding sequences of the first business object; wherein one level corresponds to one aggregate coding sequence, and each aggregate coding sequence is used to represent the timing characteristics of the first business behavior sequence at the corresponding level.

[0149] In the model application stage, the number of levels is K (must be the same as in the model training stage). Similarly, the aggregated coding representation includes aggregation processing and coding representation. The level is used to define the number of elements aggregated into the same group during the aggregation processing of the corresponding level. The k-th level is used to define the number of elements aggregated into the same group during the aggregation processing of the k-th level as k. The coding representation is used to represent the elements aggregated into the same group as a whole.

[0150] In one implementation, a first coding sequence is subjected to multiple levels of aggregate coding representation to obtain multiple aggregate coding sequences of a first business object, including: ① Let k = 1, and set the first coding sequence to the first aggregate coding sequence corresponding to the first level. ② If k < K, then let k = k + 1, perform the k + 1th level of aggregation processing on the first coding sequence to obtain the k + 1th aggregate sequence, and perform coding representation on the k + 1th aggregate sequence to obtain the k + 1th aggregate coding sequence corresponding to the k + 1th level, where k + 1 is an integer greater than 1 and less than or equal to K. Wherein, performing the k + 1th level of aggregation processing on the first coding sequence to obtain the k + 1th aggregate sequence includes: based on the definition of the k + 1th level, according to the arrangement order of each element in the first coding sequence, grouping the first coding sequence to obtain the k + 1th aggregate sequence; wherein the k + 1th aggregate sequence includes at least one group, and each group aggregates k + 1 elements arranged in sequence. The k+1th aggregate sequence is encoded to obtain the k+1th aggregate coding sequence corresponding to the k+1th level, including: concatenating the elements in each group in the k+1th aggregate sequence to obtain the k+1th auxiliary coding sequence; the k+1th auxiliary coding sequence includes at least one concatenated string, each concatenated string is concatenated by the elements in a group in the k+1th aggregate sequence; the concatenated string in the k+1th auxiliary coding sequence is encoded to obtain the k+1th aggregate coding sequence corresponding to the k+1th level. ③ If k=K, then obtain K aggregate coding sequences corresponding to the K levels respectively (i.e., K aggregate coding sequences of the first business object). The detailed implementation process is the same as S303 in the model training stage: performing multiple levels of aggregate coding representation on the second coding sequence to obtain multiple aggregate coding sequences of the second business object, and will not be repeated here.

[0151] S404. Based on the attention mechanism, multiple aggregated coding sequences of the first business object are subjected to fusion recognition processing to obtain a recognition result, where the recognition result is used to indicate the risk level of the first business object in performing the business behavior.

[0152] In one embodiment, multiple aggregated coding sequences of the first business object are fused and identified based on the attention mechanism to obtain an identification result, including: calling a network model based on the attention mechanism to perform fusion identification on K aggregated coding sequences of the first business object to obtain an identification result. In specific implementation, the K aggregated coding sequences of the first business object include the first aggregated coding sequence corresponding to the first level, the second aggregated coding sequence corresponding to the second level, ..., the Kth aggregated coding sequence corresponding to the Kth level. As in the model training stage, the first aggregated coding sequence is input into the first attention coding module for temporal feature learning, the second aggregated coding sequence is input into the second attention coding module for temporal feature learning, ..., the Kth aggregated coding sequence is input into the Kth attention coding module for temporal feature learning. The K attention coding features output by the K aggregated coding sequences are merged and input into the identification module for identification processing to obtain an identification result. The identification result may include the probability that the first business object is an abnormal business object, so the identification result can be used to indicate the risk of the first business object performing a business behavior. It can be understood that if the first business object is an abnormal business object, then the risk of the first business object executing the business behavior is higher (higher than or equal to the preset risk threshold); if the first business object is a normal business object, then the risk of the first business object executing the business behavior is lower (lower than the preset risk threshold).

[0153] In one embodiment, the first business object may be subjected to risk processing based on the identification result. Risk processing refers to the process of taking actions to reduce the risk of resource loss caused by the first business object. In specific implementation, if the identification result indicates that the risk of the first business object performing a business behavior is higher than or equal to a preset risk threshold, the first business object is marked as an abnormal business object in the business system (such as adding a first identifier to the object account of the first business object to identify the first business object as an abnormal business object); or, risk warning information for the first business object is output in the business system (such as "The transaction of the first business object is abnormal, please be careful in trading"); or, the business behavior execution authority of the first business object is revoked in the business system (such as blocking the object account of the first business object). Among them, the identification result indicating that the risk of the first business object performing a business behavior is higher than or equal to the preset risk threshold includes: the probability that the first business object is an abnormal business object is greater than or equal to the preset risk threshold, and the preset risk threshold can be set manually, such as 0.7.

[0154] It should be noted that the identification results of all business objects with a risk level higher than or equal to the preset risk threshold can be uploaded to the business system for risk processing at one time. Compared with uploading the identification results of all business objects to the business system, the speed and efficiency of data upload can be improved and the consumption of system storage resources can be reduced.

[0155] It can be seen that in the embodiment of the present application, the model application stage can obtain the full amount of business objects to be detected. As in the model training stage, a business behavior sequence of each business object can be constructed, and the business behavior can be encoded according to the business behavior-related attributes. In addition, based on the combinatoriality between business behaviors, the business behavior sequence is aggregated and encoded at multiple levels to obtain multiple aggregated coding sequences, and then the network model based on the attention mechanism is called to perform fusion recognition processing on the multiple aggregated coding sequences. The risk of the business object executing the business behavior can be accurately identified through forward propagation prediction, and the identified abnormal business objects can be further handled to reduce the risk of the business object being deceived, improve business security, reduce the risk of resource loss of business objects, and enhance trust in the business system.

[0156] See also Figure 5 , Figure 5 This is a flow chart of a model training phase provided in an embodiment of the present application: Figure 5 As shown, the model training phase includes the following steps S11-S18:

[0157] S11. Obtain a training set, where the training set includes normal business objects and abnormal business objects used for training.

[0158] S12: Construct a business behavior sequence for each business object in the training set, wherein the business behavior sequence of a business object refers to a set of multiple business behaviors performed by the business object recorded in chronological order within a preset time period (such as a week, a month, etc.).

[0159] S13, select attribute information to perform encoding processing on the business behavior sequence to obtain an encoding sequence. The embodiment of the present application can select attribute information to describe each business behavior in the business behavior sequence based on the background and domain knowledge of the resource transfer business. For detailed implementation process, please refer to Figure 3 The corresponding S302 in the embodiment.

[0160] S14. Execute multiple levels of aggregate coding representation for the coding sequence to obtain multiple aggregate coding sequences, where one level corresponds to one aggregate coding sequence. For the detailed implementation process, please refer to Figure 3 The corresponding S303 in the embodiment.

[0161] S15. Generate loss information of the initial network model using the constructed initial network model and multiple aggregated coding sequences. For the detailed implementation process, please refer to Figure 3 The corresponding S304 in the embodiment.

[0162] S16. Use the loss information of the initial network model to perform back propagation training on the initial network model to obtain a network model based on the attention mechanism. For the detailed implementation process, please refer to Figure 3 The corresponding S305 in the embodiment.

[0163] S17. Evaluate the training effect of the network model based on the attention mechanism. For example, use IV, AUC, KS, which are commonly used evaluation indicators in binary classification tasks, to evaluate the training effect of the model.

[0164] S18. When the training effect reaches the expected effect, the network model based on the attention mechanism is called for prediction.

[0165] The detailed implementation process of S18 can be found in Figure 6 The flow chart of the model application phase is shown in Figure 1. Figure 6 As shown, the model training phase includes the following steps S21-S2:

[0166] S21, obtaining the business objects to be detected. For example, the business objects to be detected may include all business objects of the business system.

[0167] S22: Construct a business behavior sequence of the business object. The processing process of S22 is the same as that of S12.

[0168] S23: aggregate and encode the business behavior sequence according to the business attributes of the business behavior to obtain multiple aggregated code sequences. The processing of S23 is the same as the joint processing of S13 and S14.

[0169] S24, call the network model based on the attention mechanism to perform forward propagation processing on multiple aggregated coding sequences to obtain recognition results. For detailed implementation process, please refer to Figure 4 The corresponding S404 in the embodiment.

[0170] It can be seen that the core of this technology is that after constructing the business behavior sequence of the business object, the business behavior sequence is aggregated at multiple levels to construct multi-level time series features, and encoded according to business attributes to enhance the ability to mine the time series features of the business behavior sequence. Subsequently, multi-level time series feature mining is performed through the multi-head transfomer structure layer, which further enhances the learning ability of the time series features. Finally, the model can accurately identify abnormal business objects.

[0171] The method of the embodiment of the present application is described in detail above. In order to facilitate better implementation of the above scheme of the embodiment of the present application, the device of the embodiment of the present application is provided below accordingly.

[0172] Figure 7is a schematic diagram of a business processing device provided in an embodiment of the present application; the business processing device can be used to execute Figure 3 or Figure 4 Some or all of the steps in the method embodiment shown. Figure 7 The business processing device includes the following units: an acquisition unit 701 and a processing unit 702.

[0173] An acquisition unit 701 is used to acquire a first business behavior sequence, where the first business behavior sequence is obtained by sorting multiple business behaviors executed by a first business object within a preset time period in chronological order;

[0174] A processing unit 702 is used to encode the first service behavior sequence based on the service attribute of each service behavior in the first service behavior sequence to obtain a first encoding sequence;

[0175] The processing unit 702 is further configured to perform multiple-level aggregate coding representation on the first coding sequence to obtain multiple aggregate coding sequences of the first business object; wherein one level corresponds to one aggregate coding sequence, and each aggregate coding sequence is used to represent the time series characteristics of the first business behavior sequence at the corresponding level;

[0176] The processing unit 702 is also used to perform fusion recognition processing on multiple aggregated coding sequences of the first business object based on the attention mechanism to obtain a recognition result, and the recognition result is used to indicate the risk level of the first business object performing the business behavior.

[0177] In one embodiment, the number of levels is K, any level in the K levels is represented as a kth level, the aggregated coded representation includes an aggregate process and a coded representation, k is a positive integer and k is less than or equal to K;

[0178] The processing unit 702 is used to perform multiple-level aggregate coding representation on the first coding sequence to obtain multiple aggregate coding sequences of the first business object, specifically performing the following steps:

[0179] Let k=1, and set the first coding sequence to the first aggregated coding sequence corresponding to the first level;

[0180] If k<K, let k=k+1, perform the k+1th level aggregation processing on the first coding sequence to obtain the k+1th aggregation sequence, where k+1 is an integer greater than 1 and less than or equal to K;

[0181] Encode the k+1th aggregation sequence to obtain the k+1th aggregation encoding sequence corresponding to the k+1th level;

[0182] If k=K, K aggregated coding sequences corresponding to the K levels are obtained.

[0183] In one embodiment, a level is used to define the number of elements that are aggregated into the same group during the aggregation process of the corresponding level, and the k-th level is used to define the number of elements that are aggregated into the same group during the aggregation process of the k-th level as k;

[0184] The processing unit 702 is used to perform the k+1th level aggregation processing on the first coding sequence to obtain the k+1th aggregated sequence, specifically performing the following steps:

[0185] Based on the definition of the k+1th level, the first coding sequence is grouped according to the arrangement order of each element in the first coding sequence to obtain the k+1th aggregation sequence;

[0186] The k+1th aggregation sequence includes at least one group, and each group contains k+1 elements arranged in sequence.

[0187] In one embodiment, the processing unit 702 is used to encode the k+1th aggregation sequence to obtain the k+1th aggregation coding sequence corresponding to the k+1th level, and specifically performs the following steps:

[0188] The elements in each group in the k+1th aggregation sequence are concatenated to obtain the k+1th auxiliary coding sequence; the k+1th auxiliary coding sequence includes at least one concatenated string, and each concatenated string is concatenated by the elements in a group in the k+1th aggregation sequence;

[0189] The concatenated character string in the k+1th auxiliary coding sequence is encoded to obtain the k+1th aggregated coding sequence corresponding to the k+1th level.

[0190] In one embodiment, the processing unit 702 is used to encode the first business behavior sequence based on the business attributes of each business behavior in the first business behavior sequence, and when obtaining the first encoding sequence, specifically execute the following steps:

[0191] Calling the acquisition unit 701 to acquire a preset order between N attribute dimensions and multiple attribute information of each attribute dimension; the N attribute dimensions include: one or more of business direction, business scenario, business transaction mode, relationship between business objects, business execution time, and business transaction resource quantity;

[0192] All business attributes are determined according to a preset order between the N attribute dimensions and multiple attribute information of each attribute dimension; any business attribute among all business attributes is obtained by combining and processing any attribute information included in each attribute dimension according to the preset order between the N attribute dimensions;

[0193] Based on the number of all business attributes, generate a coded value of each business attribute in all business attributes;

[0194] The service attribute of each service behavior in the first service behavior sequence is mapped to a coded value of the corresponding service attribute to obtain a first coded sequence.

[0195] In one embodiment, any business behavior in the first business behavior sequence is represented as the first business behavior, and the processing unit 702 is further configured to perform the following steps:

[0196] Calling the acquisition unit 701 to acquire a preset order between N attribute dimensions, where the N attribute dimensions include: one or more of business direction, business scenario, business transaction mode, relationship between business objects, business execution time, and business transaction resource volume;

[0197] Calling the acquisition unit 701 to acquire the attribute information of the first business behavior in each attribute dimension;

[0198] According to a preset order among the N attribute dimensions, the attribute information of the first business behavior in each attribute dimension is combined and processed to obtain the business attribute of the first business behavior.

[0199] In one embodiment, the fusion recognition process is performed by calling a network model based on an attention mechanism; the number of layers is K, the network model includes a recognition module and K attention encoding modules, and one aggregated encoding sequence corresponds to one attention encoding module; K is a positive integer;

[0200] The processing unit 702 is used to perform fusion recognition processing on multiple aggregated coding sequences of the first business object based on the attention mechanism, and when obtaining the recognition result, specifically execute the following steps:

[0201] Input the K aggregated coding sequences of the first business object into the corresponding attention coding modules for temporal feature learning, and obtain K attention coding features, each of which comes from an aggregated coding sequence;

[0202] The K attention encoding features are merged and input into the recognition module for recognition processing to obtain the recognition result.

[0203] In one embodiment, any one of the K aggregated coding sequences is represented as a k-th aggregated coding sequence, the K attention coding features include a k-th attention coding feature from the k-th aggregated coding sequence; the k-th aggregated coding sequence corresponds to a k-th attention coding module among the K attention coding modules, the k-th attention coding module includes an embedding layer and a plurality of serially connected attention coding submodules; k is a positive integer less than or equal to K;

[0204] The processing unit 702 is used to input the k-th aggregated coding sequence into the k-th attention coding module for temporal feature learning. When the k-th attention coding feature is obtained, the following steps are specifically performed:

[0205] Input the k-th aggregated coding sequence into the embedding layer for embedding processing to obtain the embedding features of the k-th aggregated coding sequence;

[0206] The embedded features of the k-th aggregated coding sequence are input into multiple series-connected attention encoding submodules for multi-head attention learning to obtain the k-th attention encoding feature.

[0207] In one embodiment, the processing unit 702 is further configured to perform the following steps:

[0208] Calling the acquisition unit 701 to acquire a second business behavior sequence, where the second business behavior sequence is obtained by sorting multiple business behaviors executed by the second business object within a preset time period in chronological order;

[0209] Based on the business attributes of each business behavior in the second business behavior sequence, encoding the second business behavior sequence to obtain a second encoding sequence;

[0210] Performing multiple levels of aggregate coding representation on the second coding sequence to obtain multiple aggregate coding sequences of the second business object;

[0211] Calling the initial network model to perform fusion recognition processing on multiple aggregated coding sequences of the second business object to obtain a prediction result, where the prediction result is used to indicate the risk level of the second business object performing the business behavior;

[0212] According to the prediction results and the classification label of the second business object, the initial network model is trained to obtain a network model based on the attention mechanism.

[0213] In one embodiment, the processing unit 702 is used to train the initial network model according to the prediction result and the classification label of the second business object to obtain the network model based on the attention mechanism, and specifically performs the following steps:

[0214] Determine loss information of the initial network model according to the prediction result and the classification label of the second business object;

[0215] According to the direction of reducing the loss information, the model parameters of the initial network model are adjusted to obtain a network model based on the attention mechanism;

[0216] When the second business object is marked as an abnormal business object in the business system, the classification label of the second business object is an abnormal label; when the second business object is not marked as an abnormal business object in the business system, the classification label of the second business object is a normal label.

[0217] In one embodiment, the processing unit 702 is further configured to perform the following steps:

[0218] Based on the identification result, risk processing is performed on the first business object.

[0219] In one embodiment, the first business object is any business object in all business objects of the business system; the processing unit 702 is used to perform the following steps when performing risk processing on the first business object according to the identification result:

[0220] If the identification result indicates that the risk of the first business object performing a business behavior is higher than or equal to a preset risk threshold, the first business object is marked as an abnormal business object in the business system; or, risk warning information for the first business object is output in the business system; or, the business behavior execution authority of the first business object is revoked in the business system.

[0221] According to one embodiment of the present application, Figure 7 The various units in the business processing device shown can be individually or completely combined into one or several other units to form, or one (some) of the units can be further divided into multiple functionally smaller units to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the business processing device may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units. According to another embodiment of the present application, it can be executed by running on a general computing device such as a computer that includes processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM). Figure 3 or Figure 4 A computer program (including program code) for each step involved in the corresponding method shown in FIG. Figure 7 The business processing device shown in the embodiment of the present application is implemented by the business processing method of the embodiment of the present application. The computer program can be recorded on a computer-readable recording medium, for example, and loaded into the above-mentioned computing device through the computer-readable recording medium and run therein.

[0222] In the embodiment of the present application, a first business behavior sequence can be obtained. The first business behavior sequence is obtained by sorting and processing multiple business behaviors executed by the first business object within a preset time period in chronological order, that is, the first business behavior sequence can reflect the temporal relationship between the multiple business behaviors executed by the first business object. Based on the business attributes of each business behavior in the first business behavior sequence, the first business behavior sequence is encoded to obtain a first coding sequence; the first business behavior sequence is converted into a first coding sequence through encoding, which can facilitate subsequent processing (such as aggregate coding representation). The first coding sequence is represented by multiple levels of aggregate coding to obtain multiple aggregate coding sequences; wherein one level corresponds to one aggregate coding sequence, and each aggregate coding sequence is used to represent the temporal characteristics of the first business behavior sequence at the corresponding level. Based on the attention mechanism, multiple aggregate coding sequences are fused and identified to obtain a recognition result, and the recognition result is used to indicate the risk of the first business object executing the business behavior. It can be seen that through the multiple levels of aggregate coding representation, the temporal characteristics of the first business behavior sequence at multiple levels can be mined, and the learning ability of the temporal characteristics can be strengthened based on the attention mechanism, and the risk of the first business object executing the business behavior can be accurately identified to ensure business security.

[0223] Figure 8 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 8 , the computer device includes a processor 801, a communication interface 802 and a computer-readable storage medium 803. The processor 801, the communication interface 802 and the computer-readable storage medium 803 can be connected via a bus or other means. The communication interface 802 is used to receive and send data. The computer-readable storage medium 803 can be stored in the memory of the computer device, the computer-readable storage medium 803 is used to store a computer program, the computer program includes program instructions, and the processor 801 is used to execute the program instructions stored in the computer-readable storage medium 803. The processor 801 (or CPU (Central Processing Unit)) is the computing core and control core of the computer device, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function.

[0224] The embodiment of the present application also provides a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space that stores the processing system of the computer device. In addition, one or more instructions suitable for being loaded and executed by the processor 801 are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it can also be at least one computer-readable storage medium located away from the aforementioned processor.

[0225] In one embodiment, the computer-readable storage medium stores one or more instructions; the processor 801 loads and executes the one or more instructions stored in the computer-readable storage medium to implement the corresponding steps in the above-mentioned business processing method embodiment; in a specific implementation, the one or more instructions in the computer-readable storage medium are loaded by the processor 801 and the following steps are executed:

[0226] Acquire a first business behavior sequence, where the first business behavior sequence is obtained by sorting, in chronological order, a plurality of business behaviors executed by a first business object within a preset time period;

[0227] Based on the business attributes of each business behavior in the first business behavior sequence, encoding the first business behavior sequence to obtain a first encoding sequence;

[0228] Performing multiple levels of aggregate coding representation on the first coding sequence to obtain multiple aggregate coding sequences of the first business object; wherein one level corresponds to one aggregate coding sequence, and each aggregate coding sequence is used to represent the temporal characteristics of the first business behavior sequence at the corresponding level;

[0229] Based on the attention mechanism, multiple aggregated coding sequences of the first business object are fused and recognized to obtain a recognition result, and the recognition result is used to indicate the risk level of the first business object in performing the business behavior.

[0230] In one embodiment, the number of levels is K, any level in the K levels is represented as a kth level, the aggregated coded representation includes an aggregate process and a coded representation, k is a positive integer and k is less than or equal to K;

[0231] The processor 801 is configured to perform multiple-level aggregate coding representation on the first coding sequence to obtain multiple aggregate coding sequences of the first business object, specifically executing the following steps:

[0232] Let k=1, and set the first coding sequence to the first aggregated coding sequence corresponding to the first level;

[0233] If k<K, let k=k+1, perform the k+1th level aggregation processing on the first coding sequence to obtain the k+1th aggregation sequence, where k+1 is an integer greater than 1 and less than or equal to K;

[0234] Encode the k+1th aggregation sequence to obtain the k+1th aggregation encoding sequence corresponding to the k+1th level;

[0235] If k=K, K aggregated coding sequences corresponding to the K levels are obtained.

[0236] In one embodiment, a level is used to define the number of elements that are aggregated into the same group during the aggregation process of the corresponding level, and the k-th level is used to define the number of elements that are aggregated into the same group during the aggregation process of the k-th level as k;

[0237] The processor 801 is configured to perform the k+1th level aggregation processing on the first coding sequence to obtain the k+1th aggregated sequence by specifically executing the following steps:

[0238] Based on the definition of the k+1th level, the first coding sequence is grouped according to the arrangement order of each element in the first coding sequence to obtain the k+1th aggregation sequence;

[0239] The k+1th aggregation sequence includes at least one group, and each group contains k+1 elements arranged in sequence.

[0240] In one embodiment, the processor 801 is used to encode the k+1th aggregation sequence to obtain the k+1th aggregation coding sequence corresponding to the k+1th level, and specifically performs the following steps:

[0241] The elements in each group in the k+1th aggregation sequence are concatenated to obtain the k+1th auxiliary coding sequence; the k+1th auxiliary coding sequence includes at least one concatenated string, and each concatenated string is concatenated by the elements in a group in the k+1th aggregation sequence;

[0242] The concatenated character string in the k+1th auxiliary coding sequence is encoded to obtain the k+1th aggregated coding sequence corresponding to the k+1th level.

[0243] In one embodiment, the processor 801 is used to encode the first business behavior sequence based on the business attributes of each business behavior in the first business behavior sequence, and when obtaining the first coding sequence, specifically execute the following steps:

[0244] Calling to obtain a preset order between N attribute dimensions and multiple attribute information of each attribute dimension; the N attribute dimensions include: one or more of business direction, business scenario, business transaction method, relationship between business objects, business execution time, and business transaction resource volume;

[0245] All business attributes are determined according to a preset order between the N attribute dimensions and multiple attribute information of each attribute dimension; any business attribute among all business attributes is obtained by combining and processing any attribute information included in each attribute dimension according to the preset order between the N attribute dimensions;

[0246] Based on the number of all business attributes, generate a coded value of each business attribute in all business attributes;

[0247] The service attribute of each service behavior in the first service behavior sequence is mapped to a coded value of the corresponding service attribute to obtain a first coded sequence.

[0248] In one embodiment, any business behavior in the first business behavior sequence is represented as the first business behavior, and the processor 801 is further configured to perform the following steps:

[0249] Calling to obtain a preset order between N attribute dimensions, where the N attribute dimensions include: one or more of business direction, business scenario, business transaction method, relationship between business objects, business execution time, and business transaction resource volume;

[0250] Call to obtain attribute information of the first business behavior in each attribute dimension;

[0251] According to a preset order among the N attribute dimensions, the attribute information of the first business behavior in each attribute dimension is combined and processed to obtain the business attribute of the first business behavior.

[0252] In one embodiment, the fusion recognition process is performed by calling a network model based on an attention mechanism; the number of layers is K, the network model includes a recognition module and K attention encoding modules, and one aggregated encoding sequence corresponds to one attention encoding module; K is a positive integer;

[0253] The processor 801 is used to perform fusion recognition processing on multiple aggregated coding sequences of the first business object based on the attention mechanism, and when obtaining the recognition result, specifically execute the following steps:

[0254] Input the K aggregated coding sequences of the first business object into the corresponding attention coding modules for temporal feature learning, and obtain K attention coding features, each of which comes from an aggregated coding sequence;

[0255] The K attention encoding features are merged and input into the recognition module for recognition processing to obtain the recognition result.

[0256] In one embodiment, any one of the K aggregated coding sequences is represented as a k-th aggregated coding sequence, the K attention coding features include a k-th attention coding feature from the k-th aggregated coding sequence; the k-th aggregated coding sequence corresponds to a k-th attention coding module among the K attention coding modules, the k-th attention coding module includes an embedding layer and a plurality of serially connected attention coding submodules; k is a positive integer less than or equal to K;

[0257] The processor 801 is used to input the k-th aggregated coding sequence into the k-th attention coding module for temporal feature learning. When the k-th attention coding feature is obtained, the following steps are specifically performed:

[0258] Input the k-th aggregated coding sequence into the embedding layer for embedding processing to obtain the embedding features of the k-th aggregated coding sequence;

[0259] The embedded features of the k-th aggregated coding sequence are input into multiple series-connected attention encoding submodules for multi-head attention learning to obtain the k-th attention encoding feature.

[0260] In one embodiment, the processor 801 is further configured to perform the following steps:

[0261] Calling to obtain a second business behavior sequence, where the second business behavior sequence is obtained by sorting multiple business behaviors executed by the second business object within a preset time period in chronological order;

[0262] Based on the business attributes of each business behavior in the second business behavior sequence, encoding the second business behavior sequence to obtain a second encoding sequence;

[0263] Performing multiple levels of aggregate coding representation on the second coding sequence to obtain multiple aggregate coding sequences of the second business object;

[0264] Calling the initial network model to perform fusion recognition processing on multiple aggregated coding sequences of the second business object to obtain a prediction result, where the prediction result is used to indicate the risk level of the second business object performing the business behavior;

[0265] According to the prediction results and the classification label of the second business object, the initial network model is trained to obtain a network model based on the attention mechanism.

[0266] In one embodiment, the processor 801 is used to train the initial network model according to the prediction result and the classification label of the second business object to obtain the network model based on the attention mechanism, and specifically perform the following steps:

[0267] Determine loss information of the initial network model according to the prediction result and the classification label of the second business object;

[0268] According to the direction of reducing the loss information, the model parameters of the initial network model are adjusted to obtain a network model based on the attention mechanism;

[0269] When the second business object is marked as an abnormal business object in the business system, the classification label of the second business object is an abnormal label; when the second business object is not marked as an abnormal business object in the business system, the classification label of the second business object is a normal label.

[0270] In one embodiment, the processor 801 is further configured to perform the following steps:

[0271] Based on the identification result, risk processing is performed on the first business object.

[0272] In one embodiment, the first business object is any business object in all business objects of the business system; the processor 801 is used to perform the following steps when performing risk processing on the first business object according to the identification result:

[0273] If the identification result indicates that the risk of the first business object performing a business behavior is higher than or equal to a preset risk threshold, the first business object is marked as an abnormal business object in the business system; or, risk warning information for the first business object is output in the business system; or, the business behavior execution authority of the first business object is revoked in the business system.

[0274] Based on the same inventive concept, the principles and beneficial effects of solving the problems provided by the computer device in the embodiment of the present application are similar to the principles and beneficial effects of solving the problems provided by the business processing method in the method embodiment of the present application. Please refer to the principles and beneficial effects of the implementation of the method. For the sake of concise description, they will not be repeated here.

[0275] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0276] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above-mentioned business processing method.

[0277] A person skilled in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0278] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium or transmitted by a computer-readable storage medium. The computer instruction can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (for example, coaxial cable, optical fiber, digital line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data processing device such as a server, a data center, etc. that contains one or more available media integration. Available media can be magnetic media (for example, floppy disk, hard disk, tape), optical media (for example, DVD), or semiconductor media (for example, solid-state drive (Solid State Disk, SSD)) and the like.

[0279] In this application, elements expressed in the singular are intended to mean "one or more" rather than "one and only one", unless otherwise specified. In this application, "at least one" is intended to mean "one or more", and "more than one" is intended to mean "two or more", unless otherwise specified.

[0280] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technical object familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A business processing method, characterized in that: The method comprises: Acquire a first business behavior sequence, where the first business behavior sequence is obtained by sorting, in chronological order, a plurality of business behaviors executed by a first business object within a preset time period; Based on the service attributes of each service behavior in the first service behavior sequence, encoding the first service behavior sequence to obtain a first encoding sequence; Performing multiple levels of aggregate coding representation on the first coding sequence to obtain multiple aggregate coding sequences of the first business object; wherein one level corresponds to one aggregate coding sequence, and each aggregate coding sequence is used to represent the timing characteristics of the first business behavior sequence at the corresponding level; Based on the attention mechanism, multiple aggregated coding sequences of the first business object are fused and recognized to obtain a recognition result, and the recognition result is used to indicate the risk level of the first business object in performing the business behavior.

2. The method according to claim 1, characterized in that The number of the layers is K, any one of the K layers is represented as the kth layer, the aggregated coding representation includes an aggregate process and a coding representation, k is a positive integer and k is less than or equal to K; The performing a plurality of levels of aggregate coding representation on the first coding sequence to obtain a plurality of aggregate coding sequences of the first business object includes: Let k=1, and set the first coding sequence to be the first aggregated coding sequence corresponding to the first level; If k<K, let k=k+1, perform the k+1th level aggregation processing on the first coding sequence to obtain the k+1th aggregation sequence, where k+1 is an integer greater than 1 and less than or equal to K; Encode the k+1th aggregation sequence to obtain the k+1th aggregation encoding sequence corresponding to the k+1th level; If k=K, K aggregated coding sequences corresponding to the K levels are obtained.

3. The method according to claim 2, characterized in that The level is used to define the number of elements that are aggregated into the same group during the aggregation process of the corresponding level, and the k-th level is used to define the number of elements that are aggregated into the same group during the aggregation process of the k-th level as k; The step of performing a k+1th level aggregation process on the first coding sequence to obtain a k+1th aggregated sequence includes: Based on the definition of the k+1th level, the first coding sequence is grouped according to the arrangement order of each element in the first coding sequence to obtain a k+1th aggregated sequence; The k+1th aggregation sequence includes at least one group, and each group contains k+1 elements arranged in sequence.

4. The method according to claim 3, characterized in that The encoding and representing of the k+1th aggregate sequence to obtain the k+1th aggregate encoding sequence corresponding to the k+1th level includes: The elements in each group in the k+1th aggregation sequence are concatenated to obtain a k+1th auxiliary coding sequence; the k+1th auxiliary coding sequence includes at least one concatenated string, each of which is concatenated by elements in a group in the k+1th aggregation sequence; The concatenated character string in the k+1th auxiliary coding sequence is encoded to obtain the k+1th aggregated coding sequence corresponding to the k+1th level.

5. The method according to any one of claims 1 to 4, characterized in that: The encoding process of the first business behavior sequence based on the business attributes of each business behavior in the first business behavior sequence to obtain a first encoding sequence includes: Acquire a preset order between N attribute dimensions and multiple attribute information of each of the attribute dimensions; the N attribute dimensions include: one or more of business direction, business scenario, business transaction mode, relationship between business objects, business execution time, and business transaction resource volume; Determine all business attributes according to a preset order between the N attribute dimensions and a plurality of attribute information of each attribute dimension; any business attribute among all business attributes is obtained by combining and processing any attribute information included in each attribute dimension according to the preset order between the N attribute dimensions; Based on the number of all the service attributes, generate a coded value for each of the service attributes; The service attribute of each service behavior in the first service behavior sequence is mapped to a coded value of the corresponding service attribute to obtain a first coded sequence.

6. The method according to any one of claims 1 to 4, characterized in that: Any business behavior in the first business behavior sequence is represented as a first business behavior; the method further includes: Obtaining a preset order between N attribute dimensions, where the N attribute dimensions include: one or more of: business direction, business scenario, business transaction mode, relationship between business objects, business execution time, and business transaction resource volume; Acquire attribute information of the first business behavior in each of the attribute dimensions; According to a preset order among the N attribute dimensions, the attribute information of the first business behavior in each attribute dimension is combined and processed to obtain the business attribute of the first business behavior.

7. The method according to claim 1, characterized in that The fusion recognition process is performed by calling a network model based on an attention mechanism; the number of the layers is K, the network model includes a recognition module and K attention encoding modules, and one of the aggregated encoding sequences corresponds to one of the attention encoding modules; K is a positive integer; The performing fusion recognition processing on the multiple aggregated coding sequences of the first business object based on the attention mechanism to obtain a recognition result includes: Inputting the K aggregated coding sequences of the first business object into the corresponding attention coding modules respectively for temporal feature learning to obtain K attention coding features, each of which comes from an aggregated coding sequence; The K attention coding features are combined and input into the recognition module for recognition processing to obtain a recognition result.

8. The method according to claim 7, characterized in that Any one of the K aggregated coding sequences is represented as a k-th aggregated coding sequence, the K attention coding features include a k-th attention coding feature from the k-th aggregated coding sequence; the k-th aggregated coding sequence corresponds to a k-th attention coding module among the K attention coding modules, the k-th attention coding module includes an embedding layer and a plurality of serially connected attention coding submodules; k is a positive integer less than or equal to K; Inputting the kth aggregated coding sequence into the kth attention coding module for temporal feature learning to obtain the kth attention coding feature, including: Inputting the kth aggregated coding sequence into the embedding layer for embedding processing to obtain an embedding feature of the kth aggregated coding sequence; The embedded features of the kth aggregated coding sequence are input into the multiple serially connected attention coding submodules to perform multi-head attention learning to obtain the kth attention coding feature.

9. The method according to claim 7, characterized in that The method further comprises: Acquire a second business behavior sequence, where the second business behavior sequence is obtained by sorting, in chronological order, a plurality of business behaviors executed by the second business object within a preset time period; Based on the service attributes of each service behavior in the second service behavior sequence, encoding the second service behavior sequence to obtain a second encoding sequence; Performing multiple levels of aggregate coding representation on the second coding sequence to obtain multiple aggregate coding sequences of the second business object; Calling the initial network model to perform fusion recognition processing on multiple aggregated coding sequences of the second business object to obtain a prediction result, where the prediction result is used to indicate the risk level of the second business object performing a business behavior; The initial network model is trained according to the prediction result and the classification label of the second business object to obtain the network model based on the attention mechanism.

10. The method according to claim 9, characterized in that The step of training the initial network model according to the prediction result and the classification label of the second business object to obtain the network model based on the attention mechanism includes: Determining loss information of the initial network model according to the prediction result and the classification label of the second business object; Adjusting the model parameters of the initial network model in a direction of reducing the loss information to obtain the network model based on the attention mechanism; Among them, when the second business object is marked as an abnormal business object in the business system, the classification label of the second business object is an abnormal label; when the second business object is not marked as an abnormal business object in the business system, the classification label of the second business object is a normal label.

11. The method according to claim 1, characterized in that The method further comprises: According to the identification result, risk processing is performed on the first business object.

12. The method according to claim 11, characterized in that The first business object is any business object in all business objects of the business system; and performing risk processing on the first business object according to the identification result includes: If the identification result indicates that the risk of the first business object performing the business behavior is higher than or equal to a preset risk threshold, the first business object is marked as an abnormal business object in the business system; or, risk warning information for the first business object is output in the business system; or, the business behavior execution authority of the first business object is revoked in the business system.

13. A service processing device, characterized in that: The device comprises: An acquiring unit, configured to acquire a first business behavior sequence, wherein the first business behavior sequence is obtained by sorting, in chronological order, a plurality of business behaviors executed by a first business object within a preset time period; a processing unit, configured to perform encoding processing on the first service behavior sequence based on the service attribute of each service behavior in the first service behavior sequence to obtain a first encoding sequence; The processing unit is further used to perform multiple-level aggregate coding representation on the first coding sequence to obtain multiple aggregate coding sequences of the first business object; wherein one level corresponds to one aggregate coding sequence, and each aggregate coding sequence is used to represent the time series characteristics of the first business behavior sequence at the corresponding level; The processing unit is also used to perform fusion recognition processing on multiple aggregated coding sequences of the first business object based on an attention mechanism to obtain a recognition result, and the recognition result is used to indicate the risk level of the first business object performing a business behavior.

14. A computer device, characterized in that: include: a processor adapted to execute a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the business processing method according to any one of claims 1 to 12 is implemented.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the business processing method according to any one of claims 1 to 12.

16. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the service processing method according to any one of claims 1 to 12 is implemented.