Risk behavior identification method and device
Through the preprocessing of user behavior data and the construction of deep learning models, the problem of errors and omissions in traditional methods when identifying customer risk behaviors is solved, the accurate identification of customer risk behaviors and the accurate capture of potential risks are achieved, providing a Real-time risk warning and decision support adapt to different sizes and types of customer behavior data.
Patent Information
- Application Number
- CN202410792251.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-10
AI Technical Summary
Traditional methods are difficult to accurately identify and predict customer risk behaviors, especially when dealing with complex non-linear relationships and potential risk behavior patterns, which are prone to errors and omissions.
By preprocessing, correlating and sequence building user behavior data, using a deep learning model to build a risk behavior identification model, and combining forward and backward algorithms for iterative updates until the prediction accuracy reaches the preset standard to identify the user's risk level. .
It achieves accurate identification of customer risk behaviors and accurate capture of potential risks, provides real-time risk warning and decision support, adapts to different sizes and types of customer behavior data, and has high flexibility and versatility.
Smart Images

Figure CN118628254A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of financial technology, and in particular to a method and device for identifying risky behaviors. Background Art
[0002] This section is intended to provide a background or context for embodiments of the present invention. No description herein is admitted to be prior art by virtue of its inclusion in this section.
[0003] In the fields of finance, e-commerce, etc., it is of great significance to accurately identify and predict customer risk behaviors. Traditional methods often rely on rules and specific domain knowledge, but it is difficult to capture complex nonlinear relationships and potential risk behavior patterns. This makes these traditional methods often have large errors and omissions when processing risk data in the real world. Summary of the invention
[0004] The embodiment of the present invention provides a risk behavior identification method for accurately identifying customer risk behaviors and accurately capturing potential risks. The method includes:
[0005] Preprocessing the acquired original user behavior data to obtain user behavior data, wherein the user behavior data includes user identity information and original user behavior information;
[0006] Determine user behavior information based on original user behavior information, and associate user identity information with user behavior information;
[0007] Constructing a user behavior information sequence in chronological order according to the user identity information and the user behavior information associated with the user identity information;
[0008] Inputting the user behavior information sequence into the constructed risk behavior identification model to obtain the probability that the corresponding user is at each level of risk, wherein the risk behavior identification model is used to predict the risk level corresponding to the user behavior information sequence based on the user behavior information sequence;
[0009] Among them, the risk behavior identification model is constructed in the following way:
[0010] Acquire a historical user behavior information sequence, wherein the historical user behavior information sequence includes historical user identity information and user behavior information associated with the historical user identity information, determine a risk level according to the user behavior information in the historical user behavior information sequence, and construct a deep learning model according to the risk level;
[0011] A training set and a validation set are constructed based on the historical user behavior information sequence. The deep learning model is trained based on the training set. The prediction accuracy of the deep learning model is tested based on the validation set. The deep learning model is iteratively updated using the forward algorithm and the backward algorithm until the prediction accuracy of the deep learning model reaches the preset standard, thereby obtaining a risk behavior identification model.
[0012] The embodiment of the present invention further provides a risk behavior identification device for accurately identifying customer risk behaviors and accurately capturing potential risks. The device includes:
[0013] A preprocessing module, used to preprocess the acquired original user behavior data to obtain user behavior data, wherein the user behavior data includes user identity information and original user behavior information;
[0014] An association module, used to determine user behavior information based on original user behavior information, and to associate user identity information with user behavior information;
[0015] A sequence construction module, used to construct a user behavior information sequence in chronological order according to the user identity information and the user behavior information associated with the user identity information;
[0016] A risk identification module is used to input the user behavior information sequence into a constructed risk behavior identification model to obtain the probability that the corresponding user is at each level of risk. The risk behavior identification model is used to predict the risk level corresponding to the user behavior information sequence based on the user behavior information sequence;
[0017] It also includes a model building module, which is specifically used to build a risk behavior identification model in the following way:
[0018] Obtain a historical user behavior information sequence, wherein the historical user behavior information sequence includes historical user identity information and user behavior information associated with the historical user identity information, determine the risk level according to the user behavior information in the historical user behavior information sequence, and build a deep learning model according to the risk level; build a training set and a validation set according to the historical user behavior information sequence, train the deep learning model according to the training set, detect the prediction accuracy of the deep learning model according to the validation set, iteratively update the deep learning model using a forward algorithm and a backward algorithm until the prediction accuracy of the deep learning model reaches a preset standard, thereby obtaining a risk behavior identification model.
[0019] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned risk behavior identification method when executing the computer program.
[0020] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned risk behavior identification method is implemented.
[0021] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the above-mentioned risk behavior identification method is implemented.
[0022] In an embodiment of the present invention, the acquired original user behavior data is preprocessed to obtain user behavior data, wherein the user behavior data includes user identity information and original user behavior information; user behavior information is determined based on the original user behavior information, and the user identity information and the user behavior information are associated; a user behavior information sequence is constructed in chronological order based on the user identity information and the user behavior information associated with the user identity information; the user behavior information sequence is input into a constructed risk behavior identification model to obtain the probability that the corresponding user is at each level of risk, wherein the risk behavior identification model is used to predict the risk level corresponding to the user behavior information sequence based on the user behavior information sequence; wherein, The risk behavior identification model is constructed in the following manner: obtaining a historical user behavior information sequence, the historical user behavior information sequence includes historical user identity information and user behavior information associated with the historical user identity information, determining the risk level according to the user behavior information in the historical user behavior information sequence, and constructing a deep learning model according to the risk level; constructing a training set and a validation set according to the historical user behavior information sequence, training the deep learning model according to the training set, detecting the prediction accuracy of the deep learning model according to the validation set, iteratively updating the deep learning model using a forward algorithm and a backward algorithm until the prediction accuracy of the deep learning model reaches a preset standard, and obtaining a risk behavior identification model. In this way, by constructing a user behavior sequence, a deep learning model, a training model, and an application model to evaluate the probability of user behavior data being at each risk level, potential risk behaviors can be effectively identified, and customer behavior data of different scales and types can be adapted, with high flexibility and versatility. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0024] Figure 1 A flow chart of a risk behavior identification method provided in an embodiment of the present invention;
[0025] Figure 2 A schematic diagram of preprocessing the original user behavior data provided in an embodiment of the present invention;
[0026] Figure 3 A schematic diagram of an HMM model provided in an embodiment of the present invention;
[0027] Figure 4 A schematic diagram of a risk behavior identification device provided in an embodiment of the present invention;
[0028] Figure 5 It is a structural block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0029] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0030] The information collected in the technical solution of this application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0031] Provide users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0032] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0033] In the description of this specification, the terms "include", "including", "have", "contain", etc. are all open terms, which mean including but not limited to. The descriptions with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", etc. mean that the specific features, structures or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. The order of steps involved in each embodiment is used to schematically illustrate the implementation of the present application, and the order of steps is not limited and can be appropriately adjusted as needed.
[0034] First, some of the terms in the embodiments of the present application are explained:
[0035] Chinese English abbreviation Hidden Markov Model hidden Markov model HMM Extract Transform Load Extract-transform-load ETL
[0036] The embodiment of the present invention provides a risk behavior identification method, such as Figure 1 As shown, including:
[0037] Step 101: pre-processing the acquired original user behavior data to obtain user behavior data, wherein the user behavior data includes user identity information and original user behavior information;
[0038] Step 102: determining user behavior information based on the original user behavior information, and associating the user identity information with the user behavior information;
[0039] Step 103: constructing a user behavior information sequence in chronological order according to the user identity information and the user behavior information associated with the user identity information;
[0040] Step 104: Input the user behavior information sequence into the constructed risk behavior identification model to obtain the probability that the corresponding user is at each risk level, wherein the risk behavior identification model is used to predict the risk level corresponding to the user behavior information sequence based on the user behavior information sequence;
[0041] Among them, the risk behavior identification model is constructed in the following way:
[0042] Acquire a historical user behavior information sequence, wherein the historical user behavior information sequence includes historical user identity information and user behavior information associated with the historical user identity information, determine a risk level according to the user behavior information in the historical user behavior information sequence, and construct a deep learning model according to the risk level;
[0043] A training set and a validation set are constructed based on the historical user behavior information sequence. The deep learning model is trained based on the training set. The prediction accuracy of the deep learning model is tested based on the validation set. The deep learning model is iteratively updated using the forward algorithm and the backward algorithm until the prediction accuracy of the deep learning model reaches the preset standard, thereby obtaining a risk behavior identification model.
[0044] The risk behavior identification method proposed in the embodiment of the present invention can effectively identify potential risk behaviors and provide real-time risk warnings and decision support by modeling and analyzing the customer's behavior sequence data. The present invention also proposes an algorithm for training the HMM model and a process for applying the HMM model to customer risk behavior identification, which can automatically learn and capture complex nonlinear relationships and potential risk behavior patterns. It provides real-time risk warnings and decision support to help institutions take timely measures to reduce risks. It can adapt to customer behavior data of different sizes and types and has high flexibility and versatility.
[0045] Figure 2 A schematic diagram of preprocessing the original user behavior data provided in an embodiment of the present invention, such as Figure 2 As shown, in the embodiment of the present invention, the acquired original user behavior data is preprocessed to obtain the user behavior data, including:
[0046] Step 201: Clean the original user data;
[0047] Step 202: Perform missing value analysis on the cleaned original user data, and fill in the missing values according to the analysis results;
[0048] Step 203: unify the data format of the original user data after filling in the missing values to obtain user behavior data.
[0049] Collection and preprocessing of heterogeneous data: Heterogeneous data are common in information systems in the fields of banking, finance, e-commerce, etc. However, when we develop data-driven machine learning and artificial intelligence models, we need to collect, clean, and convert data in a unified manner so that they can be analyzed and applied on a unified platform. For this purpose, we have designed a complete set of heterogeneous data collection and preprocessing methods, which mainly include 11 aspects:
[0050] 1. Clarify the goal: Based on different system and application requirements, define and determine the target data to be collected, including the source, type, purpose, and analysis purpose of the data to be collected.
[0051] 2. Determine the source of the data: Determine the source of the data, which may involve different data sources, such as sensors, social media, streaming data from different channels, batch data, databases, log files, etc.
[0052] 3. Identify data types and formats: Determine the type of data collected, such as structured data, semi-structured data, unstructured data, etc. For heterogeneous data, consider the different formats that different data sources may use, such as CSV, JSON, XML, etc.
[0053] 4. Establish a data transmission channel: Determine the method of data transmission, and you can use API, FTP, HTTP and other protocols. For heterogeneous data, middleware or data integration tools are needed to realize data transmission between different systems.
[0054] 5. Data security and privacy: Ensure the security of data during transmission and use encryption and other means to prevent data leakage. Comply with relevant laws and policies to ensure the legitimacy and privacy protection of data.
[0055] 6. Design a data storage solution: Choose a suitable database such as Mysql, GaussDB, HBase, Redis, etc. or a data warehouse to store the collected data, taking into account the growth of data volume and performance requirements. Consider data backup and recovery strategies to ensure data reliability.
[0056] 7. Implement data cleaning and pre-processing ETL: formulate data cleaning rules, clean and process abnormal data, fill in missing values. Unify data formats to ensure data consistency and comparability.
[0057] 8. Quality control and monitoring: Design data quality control strategies to monitor the quality and integrity of data. Set up alarm mechanisms to detect and handle data anomalies in a timely manner.
[0058] 9. Establish metadata management: record data metadata, including data source, data format, update time and other information, to facilitate management and query.
[0059] 10. Documentation and communication: Write detailed documents to record the steps and decisions of the data collection plan. Communicate with relevant teams and stakeholders to ensure that everyone has a consensus on the data collection plan.
[0060] 11. Periodic maintenance and updates: Regularly check and update data collection plans to adapt to business needs and technology changes. Handle changes in data sources and data formats.
[0061] After collecting and processing the required data, it is necessary to build a user behavior sequence based on business needs.
[0062] In one embodiment,
[0063] User behavior information includes: behavior type, behavior attributes and behavior content;
[0064] Determine user behavior information based on original user behavior information, including:
[0065] The original user behavior information is classified according to the behavior type, behavior attribute and behavior content to obtain the user behavior information.
[0066] In one embodiment, associating the user identity information with the user behavior information includes:
[0067] Set a unique identity for each user;
[0068] Based on the unique identity, the user behavior information of the user is associated with the unique identity.
[0069] In specific implementation, the user behavior sequence is a user time point behavior sequence generated by uniformly processing the collected data. It contains different behaviors of users at different time points and sorts user behaviors according to timestamps. The specific implementation steps are as follows:
[0070] 1. Clarify the behavior type, behavior attributes, and behavior content;
[0071] 2. Determine the user ID and determine a unique ID for each user so that their behavior can be associated with the same user;
[0072] 3. Time serialization: sort user behaviors in chronological order according to timestamps and construct a time series.
[0073] 4. Continuously optimize, iteratively increase or decrease user behavior types, behavior attributes, and behavior content based on demand and model effects.
[0074] Hidden Markov Model is a common statistical model used to model time series data. By improving and optimizing HMM in certain aspects, it can be used to model user behavior sequences and predict user behavior risks by learning potential states (hidden states). The key point is to determine the hidden states.
[0075] Implicit states usually represent potential or invisible states within the system, while observation sequences are visible user behavior sequences. In layman's terms, the user behavior sequence constructed earlier in this article is the observation sequence; at a certain point in time, based on the observation sequence and historical observation sequence at that point in time, to determine whether the user's behavior at that point in time is risky, that is, whether there is risk is the implicit state. Because the user's behavior sequence is observable, and the risk of user behavior is not immediately visible, for example, a seemingly normal user is transferring money in or out, and it is currently impossible to immediately know whether this behavior is a fraudulent behavior or a deceived behavior. It is generally regarded as normal behavior, and the risk of the behavior can only be determined after a period of time.
[0076] To this end, it is necessary to use the HMM theory to build a user behavior sequence risk identification model, directly give the risk status at the moment the behavior occurs, and limit high-risk behaviors as much as possible.
[0077] In one embodiment, determining a risk level based on user behavior information in a historical user behavior information sequence, and constructing a deep learning model based on the risk level include:
[0078] Get the preset risk level standard,
[0079] Determine the risk level corresponding to the user behavior information according to the user behavior information in the historical user behavior information sequence and the risk level standard, wherein the risk level corresponds to a plurality of user behavior information;
[0080] A hidden Markov model is constructed based on the risk level corresponding to the user behavior information.
[0081] In one embodiment, the deep learning model is iteratively updated using a forward algorithm and a backward algorithm, including:
[0082] Calculate the forward probability of the user behavior information sequence through the forward algorithm, calculate the backward probability of the user behavior information sequence through the backward algorithm, and calculate the expectation of the forward probability and the backward probability;
[0083] According to the expectation of the forward probability and the backward probability, the expected value of the transition probability and the emission probability is calculated, wherein the transition probability represents the probability of the user behavior information being transferred from one risk level to another risk level, and the emission probability represents the probability of each risk level generating an observed behavior, wherein the observed behavior represents the collected user behavior;
[0084] The deep learning model is iteratively updated based on the expected values of the transition probability and the emission probability.
[0085] In the specific implementation, the observation set and state are defined: the HMM problem of solving the user behavior risk can be simplified as follows: define three states of user behavior (normal S0, low risk S1, medium risk S2, high risk S3), and each risk contains M different behavior types. Figure 3 In the HMM model shown, the values from state 1 to state n are {S0, S1, S2, S3}, and the observed behavior sequence of each state is {observation 1, observation 2, ···, observation n}. The arrows represent two important probability transitions:
[0086] 1. Transition probability between states: the probability of transitioning from one state to another.
[0087] 2. Emission probability between observation and state: the probability of generating a certain observation value from a certain state.
[0088] After defining the states and probabilities, the following more detailed steps are required to complete the customer risk behavior identification method based on the hidden Markov model HMM:
[0089] 1. Initialization probability estimation: Estimate the initial probability of each risk state, which represents the probability of being in a certain state at the beginning of the behavior sequence. Use statistical analysis methods combined with domain knowledge to estimate the initial probability.
[0090] 2. Transition probability estimation: Estimate the probability of transitioning from one risk state to another. The transition probability can be estimated by analyzing the transition frequency between states in historical behavior data.
[0091] 3. Emission probability estimation: Estimate the probability of each state generating an observed behavior. Statistical methods such as frequency statistics and Bayesian estimation can be used to estimate the emission probability.
[0092] After building the HMM, you need to use the collected and processed user behavior sequence data to train the model:
[0093] The forward-backward algorithm calculates the forward and backward probabilities of the observation sequence, and then calculates the expected values of the state transition probability and emission probability based on the expectation, and uses these expected values to update the model parameters. This process will be iterated repeatedly until the convergence condition is met.
[0094] Once the model training is complete, the application can be deployed. Use the trained HMM model to identify and classify new customer behavior sequences; based on the observed behavior sequences, calculate the probability of a given sequence under different risk states through a forward algorithm or a backward algorithm; assess the customer's risk level based on the probability, and take appropriate measures or decisions.
[0095] In one embodiment, it further includes:
[0096] The risk behavior identification model was evaluated through cross-validation;
[0097] Based on the evaluation results, suggestions for model modification are made.
[0098] During specific implementation, support continuous iteration and improvement.
[0099] Model evaluation and improvement: Use cross-validation or other evaluation methods to evaluate the performance and accuracy of the model. Make model improvements based on the evaluation results, such as adjusting state definitions, feature extraction methods, probability estimates, etc.
[0100] The present invention also provides a risk behavior identification device, as described in the following embodiments. Since the principle of the device to solve the problem is similar to that of the risk behavior identification method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0101] It should be noted that the risk behavior identification method and device provided in the embodiment of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiment of the present invention does not limit the application field of the risk behavior identification method and device.
[0102] Figure 4 Schematic diagram of a risk behavior identification device provided in an embodiment of the present invention, such as Figure 4 As shown, the device comprises:
[0103] A preprocessing module 401 is used to preprocess the acquired original user behavior data to obtain user behavior data, wherein the user behavior data includes user identity information and original user behavior information;
[0104] An association module 402 is used to determine user behavior information based on the original user behavior information, and associate the user identity information with the user behavior information;
[0105] A sequence construction module 403, configured to construct a user behavior information sequence in chronological order according to the user identity information and the user behavior information associated with the user identity information;
[0106] The risk identification module 404 is used to input the user behavior information sequence into the constructed risk behavior identification model to obtain the probability that the corresponding user is at each risk level. The risk behavior identification model is used to predict the risk level corresponding to the user behavior information sequence based on the user behavior information sequence;
[0107] The model building module 405 is also included, which is specifically used to build a risk behavior identification model in the following way:
[0108] Obtain a historical user behavior information sequence, wherein the historical user behavior information sequence includes historical user identity information and user behavior information associated with the historical user identity information, determine the risk level according to the user behavior information in the historical user behavior information sequence, and build a deep learning model according to the risk level; build a training set and a validation set according to the historical user behavior information sequence, train the deep learning model according to the training set, detect the prediction accuracy of the deep learning model according to the validation set, iteratively update the deep learning model using a forward algorithm and a backward algorithm until the prediction accuracy of the deep learning model reaches a preset standard, thereby obtaining a risk behavior identification model.
[0109] In one embodiment, the preprocessing module 401 is specifically used for:
[0110] Clean the original user data;
[0111] Perform missing value analysis on the cleaned original user data and fill in the missing values based on the analysis results;
[0112] The data format of the original user data after filling in the missing values is unified to obtain the user behavior data.
[0113] In one embodiment, the user behavior information includes: behavior type, behavior attribute and behavior content;
[0114] The association module 402 is specifically used for:
[0115] The original user behavior information is classified according to the behavior type, behavior attribute and behavior content to obtain the user behavior information.
[0116] In one embodiment, the association module 402 is specifically used for:
[0117] Set a unique identity for each user;
[0118] Based on the unique identity, the user behavior information of the user is associated with the unique identity.
[0119] In one embodiment, the model building module 405 is specifically used to:
[0120] Get the preset risk level standard,
[0121] Determine the risk level corresponding to the user behavior information according to the user behavior information in the historical user behavior information sequence and the risk level standard, wherein the risk level corresponds to a plurality of user behavior information;
[0122] A hidden Markov model is constructed based on the risk level corresponding to the user behavior information.
[0123] In one embodiment, the model building module 405 is specifically used to:
[0124] Calculate the forward probability of the user behavior information sequence through the forward algorithm, calculate the backward probability of the user behavior information sequence through the backward algorithm, and calculate the expectation of the forward probability and the backward probability;
[0125] According to the expectation of the forward probability and the backward probability, the expected value of the transition probability and the emission probability is calculated, wherein the transition probability represents the probability of the user behavior information being transferred from one risk level to another risk level, and the emission probability represents the probability of each risk level generating an observed behavior, wherein the observed behavior represents the collected user behavior;
[0126] The deep learning model is iteratively updated based on the expected values of the transition probability and the emission probability.
[0127] In one embodiment, a model evaluation module is further included, which is specifically used to:
[0128] The risk behavior identification model was evaluated through cross-validation;
[0129] Based on the evaluation results, suggestions for model modification are made.
[0130] Based on the above invention concept, Figure 5 As shown, the present invention also proposes a computer device 500, including a memory 510, a processor 520, and a computer program 530 stored in the memory 510 and executable on the processor 520, wherein the processor 520 implements the aforementioned risk behavior identification method when executing the computer program 530.
[0131] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned risk behavior identification method is implemented.
[0132] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the above-mentioned risk behavior identification method is implemented.
[0133] In summary, in the embodiment of the present invention, the acquired original user behavior data is preprocessed to obtain user behavior data, wherein the user behavior data includes user identity information and original user behavior information; user behavior information is determined based on the original user behavior information, and the user identity information and the user behavior information are associated; a user behavior information sequence is constructed in chronological order based on the user identity information and the user behavior information associated with the user identity information; the user behavior information sequence is input into the constructed risk behavior identification model to obtain the probability that the corresponding user is at each level of risk, and the risk behavior identification model is used to predict the risk level corresponding to the user behavior information sequence based on the user behavior information sequence; wherein , a risk behavior identification model is constructed in the following manner: obtaining a historical user behavior information sequence, the historical user behavior information sequence includes historical user identity information and user behavior information associated with the historical user identity information, determining the risk level according to the user behavior information in the historical user behavior information sequence, and constructing a deep learning model according to the risk level; constructing a training set and a validation set according to the historical user behavior information sequence, training the deep learning model according to the training set, detecting the prediction accuracy of the deep learning model according to the validation set, iteratively updating the deep learning model using a forward algorithm and a backward algorithm until the prediction accuracy of the deep learning model reaches a preset standard, and obtaining a risk behavior identification model. In this way, by constructing a user behavior sequence, a deep learning model, a training model, and an application model to evaluate the probability of user behavior data being at each risk level, potential risk behaviors can be effectively identified, and customer behavior data of different scales and types can be adapted, with high flexibility and versatility.
[0134] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0135] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0136] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0138] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for identifying risky behaviors, It is characterized in that include: Preprocessing the acquired original user behavior data to obtain user behavior data, wherein the user behavior data includes user identity information and original user behavior information; Determine user behavior information based on original user behavior information, and associate user identity information with user behavior information; Constructing a user behavior information sequence in chronological order according to the user identity information and the user behavior information associated with the user identity information; Inputting the user behavior information sequence into the constructed risk behavior identification model to obtain the probability that the corresponding user is at each level of risk, wherein the risk behavior identification model is used to predict the risk level corresponding to the user behavior information sequence based on the user behavior information sequence; Among them, the risk behavior identification model is constructed in the following way: Acquire a historical user behavior information sequence, wherein the historical user behavior information sequence includes historical user identity information and user behavior information associated with the historical user identity information, determine a risk level according to the user behavior information in the historical user behavior information sequence, and construct a deep learning model according to the risk level; A training set and a validation set are constructed based on the historical user behavior information sequence. The deep learning model is trained based on the training set. The prediction accuracy of the deep learning model is tested based on the validation set. The deep learning model is iteratively updated using the forward algorithm and the backward algorithm until the prediction accuracy of the deep learning model reaches the preset standard, thereby obtaining a risk behavior identification model.
2. The method according to claim 1, It is characterized in that Preprocess the acquired original user behavior data to obtain user behavior data, including: Clean the original user data; Perform missing value analysis on the cleaned original user data and fill in the missing values based on the analysis results; The data format of the original user data after filling in the missing values is unified to obtain the user behavior data.
3. The method according to claim 1, It is characterized in that User behavior information includes: behavior type, behavior attributes and behavior content; Determine user behavior information based on original user behavior information, including: The original user behavior information is classified according to the behavior type, behavior attribute and behavior content to obtain the user behavior information.
4. The method according to claim 1, It is characterized in that Associating user identity information with user behavior information, including: Set a unique identity for each user; Based on the unique identity, the user behavior information of the user is associated with the unique identity.
5. The method according to claim 1, It is characterized in that Determine the risk level based on the user behavior information in the historical user behavior information sequence, and build a deep learning model based on the risk level, including: Get the preset risk level standard, Determine the risk level corresponding to the user behavior information according to the user behavior information in the historical user behavior information sequence and the risk level standard, wherein the risk level corresponds to a plurality of user behavior information; A hidden Markov model is constructed based on the risk level corresponding to the user behavior information.
6. The method according to claim 1, It is characterized in that The deep learning model is iteratively updated using forward and backward algorithms, including: Calculate the forward probability of the user behavior information sequence through the forward algorithm, calculate the backward probability of the user behavior information sequence through the backward algorithm, and calculate the expectation of the forward probability and the backward probability; According to the expectation of the forward probability and the backward probability, the expected value of the transition probability and the emission probability is calculated, wherein the transition probability represents the probability of the user behavior information being transferred from one risk level to another risk level, and the emission probability represents the probability of each risk level generating an observed behavior, wherein the observed behavior represents the collected user behavior; The deep learning model is iteratively updated based on the expected values of the transition probability and the emission probability.
7. The method according to claim 1, It is characterized in that Also includes: The risk behavior identification model was evaluated through cross-validation; Based on the evaluation results, suggestions for model modification are made.
8. A risk behavior identification device, It is characterized in that include: A preprocessing module, used to preprocess the acquired original user behavior data to obtain user behavior data, wherein the user behavior data includes user identity information and original user behavior information; An association module, used to determine user behavior information based on original user behavior information, and to associate user identity information with user behavior information; A sequence building module, used to build a user behavior information sequence in chronological order according to the user identity information and the user behavior information associated with the user identity information; A risk identification module is used to input the user behavior information sequence into a constructed risk behavior identification model to obtain the probability that the corresponding user is at each level of risk. The risk behavior identification model is used to predict the risk level corresponding to the user behavior information sequence based on the user behavior information sequence; It also includes a model building module, which is specifically used to build a risk behavior identification model in the following way: Obtain a historical user behavior information sequence, wherein the historical user behavior information sequence includes historical user identity information and user behavior information associated with the historical user identity information, determine the risk level according to the user behavior information in the historical user behavior information sequence, and build a deep learning model according to the risk level; build a training set and a validation set according to the historical user behavior information sequence, train the deep learning model according to the training set, detect the prediction accuracy of the deep learning model according to the validation set, iteratively update the deep learning model using a forward algorithm and a backward algorithm until the prediction accuracy of the deep learning model reaches a preset standard, thereby obtaining a risk behavior identification model.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
E-commerce platform risk management system based on behavior analysis
CN119721729A
Identity authentication risk identification method and device for power transaction platform, medium and equipment
CN120875879A
Information security risk behavior identification method and system based on big data
CN121502756A
