CN111951008A - A risk prediction method, apparatus, electronic device and readable storage medium - Google Patents
A risk prediction method, apparatus, electronic device and readable storage medium Download PDFInfo
- Publication number
- CN111951008A CN111951008A CN202010710613.XA CN202010710613A CN111951008A CN 111951008 A CN111951008 A CN 111951008A CN 202010710613 A CN202010710613 A CN 202010710613A CN 111951008 A CN111951008 A CN 111951008A
- Authority
- CN
- China
- Prior art keywords
- risk prediction
- risk
- optimization algorithm
- neural network
- model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
- G06Q20/4016—Transaction verification involving fraud or risk level assessment in transaction processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/086—Learning methods using evolutionary algorithms, e.g. genetic algorithms or genetic programming
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Accounting & Taxation (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Biophysics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Biomedical Technology (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- Computer Security & Cryptography (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Physiology (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本申请涉及信息安全技术领域,尤其涉及一种风险预测方法、装置、电子设备和可读存储介质。The present application relates to the technical field of information security, and in particular, to a risk prediction method, apparatus, electronic device and readable storage medium.
背景技术Background technique
为了在激烈的竞争中拉取新用户,培养用户的消费习惯,各种类型的营销活动和补贴活动层出不穷,在为正常用户带来福利的同时,也催生了一批专注于营销活动的黑产用户,也就是所谓的“羊毛党”。目前在巨大的利益诱惑下,羊毛党薅羊毛的手法和技术升级速度越来越快,传统的基于专家规则的风控体系已经很难跟上薅羊毛手法的迭代,往往仅能在羊毛党已经获利后才能针对性地上线规则用于风控侦测。这样容易形成“薅羊毛获利-部署规则-薅羊毛变化手法两次获利-调整规则”的恶性循环,不能从根本上对薅羊毛的行为进行风险侦测和防范。现有技术中也有采用统计学方法或者神经网络发现恶意用户或者IP的方案,但是存在着识别网络黑产数据效率低、误报率高、漏报率高等缺点。In order to attract new users and cultivate users' consumption habits in the fierce competition, various types of marketing activities and subsidy activities are emerging one after another. While bringing benefits to normal users, they also spawned a group of black products that focus on marketing activities. Users, the so-called "wool party". At present, under the temptation of huge interests, the methods and technologies of the woolen party are getting faster and faster, and the traditional risk control system based on expert rules has been difficult to keep up with the iteration of the woolen method. Only after making a profit can targeted online rules be used for risk control detection. In this way, it is easy to form a vicious circle of "profit from scouring wool - deployment rules - profit from scouring wool changing methods twice - adjusting rules", and it is impossible to fundamentally detect and prevent the risk of scouring wool. In the prior art, there are also schemes of using statistical methods or neural networks to discover malicious users or IPs, but there are disadvantages such as low efficiency, high false positive rate, and high false negative rate in identifying network black production data.
发明内容SUMMARY OF THE INVENTION
本申请的目的旨在至少能解决上述的技术缺陷之一。本申请所采用的技术方案如下:The purpose of this application is to solve at least one of the above-mentioned technical defects. The technical scheme adopted in this application is as follows:
第一方面,本申请实施例提供一种风险预测方法,所述方法包括:In a first aspect, an embodiment of the present application provides a risk prediction method, the method includes:
采集目标用户交易信息;Collect transaction information of target users;
根据所述目标用户交易信息确定风险影响因子信息;Determine risk influencing factor information according to the target user transaction information;
将所述风险影响因子信息输入风险预测模型;其中所述风险预测模型为加载了群体智能优化算法的卷积神经网络模型;Inputting the risk influencing factor information into a risk prediction model; wherein the risk prediction model is a convolutional neural network model loaded with a swarm intelligence optimization algorithm;
风险预测模型输出风险预测结果,其中所述风险预测结果用于表征所述目标用户是否为风险用户。The risk prediction model outputs a risk prediction result, wherein the risk prediction result is used to characterize whether the target user is a risk user.
可选地,所述群体智能优化算法为鸟群优化算法。Optionally, the swarm intelligence optimization algorithm is a bird flock optimization algorithm.
可选地,所述风险预测模型的构建包括:Optionally, the construction of the risk prediction model includes:
将鸟群优化算法加载于所述卷积神经网络模型中,并根据鸟群优化算法确定所述卷积神经网络模型的参数;Loading the bird flock optimization algorithm into the convolutional neural network model, and determining the parameters of the convolutional neural network model according to the bird flock optimization algorithm;
获取样本交易信息对所述加载有鸟群优化算法的神经网络模型进行训练;Obtain sample transaction information to train the neural network model loaded with the bird flock optimization algorithm;
根据预设训练规则,将完成训练的加载有鸟群优化算法的神经网络模型确定为风险预测模型。According to the preset training rules, the trained neural network model loaded with the bird flock optimization algorithm is determined as the risk prediction model.
可选地,所述鸟群优化算法为增加了边界约束条件的鸟群优化算法。Optionally, the bird flock optimization algorithm is a bird flock optimization algorithm with boundary constraints added.
可选地,所述预设规则包括以下至少之一:Optionally, the preset rules include at least one of the following:
训练迭代次数达到预设阈值,则确定所述加载有鸟群优化算法的卷积神经网络模型为风险预测模型;When the number of training iterations reaches a preset threshold, it is determined that the convolutional neural network model loaded with the bird flock optimization algorithm is a risk prediction model;
或,or,
输入样本交易数据至加载有鸟群优化算法的卷积神经网络模型并迭代训练预定次数后计算样本适应度值;Input the sample transaction data to the convolutional neural network model loaded with the bird flock optimization algorithm and iteratively train a predetermined number of times to calculate the sample fitness value;
如果所述样本适应度值符合预设适应度值,则停止训练,确定所述加载有鸟群优化算法的卷积神经网络模型为风险预测模型。If the sample fitness value conforms to the preset fitness value, the training is stopped, and the convolutional neural network model loaded with the bird flock optimization algorithm is determined as a risk prediction model.
可选地,所述方法包括:实时采集目标用户交易数据。Optionally, the method includes: collecting target user transaction data in real time.
第二方面本发明实施例提供了一种风险预测装置,所述装置包括:采集模块、确定模块、输入模块、预测模块和存储模块,其中:Second aspect An embodiment of the present invention provides a risk prediction device, the device includes: a collection module, a determination module, an input module, a prediction module, and a storage module, wherein:
所述采集模块,用于采集目标用户交易信息;The collection module is used to collect target user transaction information;
所述确定模块,用于根据所述目标用户交易信息确定风险影响因子信息;The determining module is configured to determine risk influencing factor information according to the target user transaction information;
所述输入模块,用于将所述风险影响因子信息输入风险预测模型;the input module, configured to input the risk influencing factor information into a risk prediction model;
所述存储模块,用于存储风险预测模型,其中所述风险预测模型为加载了群体智能优化算法的卷积神经网络模型;The storage module is used to store a risk prediction model, wherein the risk prediction model is a convolutional neural network model loaded with a swarm intelligence optimization algorithm;
所述预测模块,用于控制风险预测模型输出风险预测结果,其中所述风险预测结果用于表征所述目标用户是否为风险用户。The prediction module is configured to control the risk prediction model to output a risk prediction result, wherein the risk prediction result is used to characterize whether the target user is a risk user.
可选地,所述群体智能优化算法为增加了边界约束条件的鸟群优化算法。Optionally, the swarm intelligence optimization algorithm is a bird swarm optimization algorithm with boundary constraints added.
可选地,所述装置还包括模型构建模块,其中所述模型构建模块用于:Optionally, the apparatus further includes a model building module, wherein the model building module is used for:
将鸟群优化算法加载于所述卷积神经网络模型中,并根据鸟群优化算法确定所述卷积神经网络模型的参数;Loading the bird flock optimization algorithm into the convolutional neural network model, and determining the parameters of the convolutional neural network model according to the bird flock optimization algorithm;
获取样本交易信息对所述加载有鸟群优化算法的神经网络模型进行训练;Obtain sample transaction information to train the neural network model loaded with the bird flock optimization algorithm;
根据预设训练规则,将完成训练的加载有鸟群优化算法的神经网络模型确定为风险预测模型。According to the preset training rules, the trained neural network model loaded with the bird flock optimization algorithm is determined as the risk prediction model.
可选地,所述采集模块还用于实时采集目标用户交易数据。Optionally, the collection module is further configured to collect transaction data of target users in real time.
第三方面,本发明实施例提供了一种电子设备,包括处理器和存储器;In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory;
所述存储器,用于存储操作指令;the memory for storing operation instructions;
所述处理器,用于通过调用所述操作指令,执行上述风险预测方法。The processor is configured to execute the above risk prediction method by invoking the operation instruction.
第四方面,一种计算机可读存储介质,所述存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述风险预测的方法。In a fourth aspect, a computer-readable storage medium is provided with a computer program stored thereon, and when the computer program is executed by a processor, the above-mentioned risk prediction method is implemented.
本申请实施例提供的技术方案带来的有益效果是:通过采集目标用户交易信息;根据所述目标用户交易信息确定风险影响因子信息;将所述风险影响因子信息输入风险预测模型;其中所述风险预测模型为加载了群体智能优化算法的卷积神经网络模型;风险预测模型输出风险预测结果,其中所述风险预测结果用于表征所述目标用户是否为风险用户。本申请实施例公开的风险预测方案使用改进鸟群优化算法的卷积神经网络模型对用户交易数据进行处理预测能够快速、高效、准确预测用户是否为风险用户,具有精确率高、误报率低、成本低的特点。避免风险用户,例如黑产用户,利用营销方案漏洞套利给商家或者客户带来不必要的损失,The beneficial effects brought by the technical solutions provided in the embodiments of the present application are: collecting target user transaction information; determining risk influencing factor information according to the target user transaction information; inputting the risk influencing factor information into a risk prediction model; wherein the The risk prediction model is a convolutional neural network model loaded with a swarm intelligence optimization algorithm; the risk prediction model outputs a risk prediction result, wherein the risk prediction result is used to characterize whether the target user is a risk user. The risk prediction scheme disclosed in the embodiment of the present application uses the convolutional neural network model of the improved bird flock optimization algorithm to process and predict user transaction data, which can quickly, efficiently and accurately predict whether a user is a risk user, and has the advantages of high accuracy and low false alarm rate. , the characteristics of low cost. Avoid risk users, such as black-produced users, who use marketing plan loopholes to arbitrage to bring unnecessary losses to merchants or customers,
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例描述中所需要使用的附图作简单地介绍。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments of the present application.
图1为本申请实施例提供的一种风险预测方法的流程示意图;1 is a schematic flowchart of a risk prediction method provided by an embodiment of the present application;
图2为本申请实施例提供的一种风险预测装置的结构示意图;FIG. 2 is a schematic structural diagram of a risk prediction device provided by an embodiment of the present application;
图3为本申请实施例提供的一种电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本发明的限制。The following describes in detail the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, but not to be construed as limiting the present invention.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。It will be understood by those skilled in the art that the singular forms "a", "an", "the" and "the" as used herein can include the plural forms as well, unless expressly stated otherwise. It should be further understood that the word "comprising" used in the specification of this application refers to the presence of stated features, integers, steps, operations, elements and/or components, but does not preclude the presence or addition of one or more other features, Integers, steps, operations, elements, components and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combination of one or more of the associated listed items.
本申请实施例涉及的风险预测技术,具体涉及为加载有鸟群优化算法的卷积神经网络模型进行风险预测的方案,可用于侦测黑产用户,为更清楚地介绍本申请实施例,下面介绍一些可能用于实施例的定义、概念或装置:The risk prediction technology involved in the embodiments of the present application, specifically relates to a scheme of risk prediction for a convolutional neural network model loaded with a bird flock optimization algorithm, which can be used to detect illegal users. In order to introduce the embodiments of the present application more clearly, the following To introduce some definitions, concepts or devices that may be used in the embodiments:
黑产数据:欺诈团伙所使用的账号、设备、手机号、位置等数据。Black-produced data: data such as account numbers, devices, mobile phone numbers, and locations used by fraudulent gangs.
黑产用户:以互联网为媒介,以网络技术为主要手段,为计算机信息系统安全和网络空间管理秩序带来重大威胁的黑色交易用户。Black trade users: Black trade users who take the Internet as the medium and network technology as the main means to bring major threats to the security of computer information systems and the order of cyberspace management.
虚假交易:买方与卖方未发生事实商品购买的商品购买行为。False transaction: The buyer and the seller do not have the actual purchase of goods.
薅羊毛:利用各种优惠活动获得利益。Pick up wool: Take advantage of various promotions to gain benefits.
鸟群优化算法,英文为Bird Swarm Algorithom,简称为BSA算法,是一种群体智能算法。Bird swarm optimization algorithm, English for Bird Swarm Algorithom, referred to as BSA algorithm, is a swarm intelligence algorithm.
卷积神经网络(Convolutional Neural Networks,CNN,下称CNN模型)是一类包含卷积计算且具有深度结构的前馈神经网络(Feedforward Neural Networks),是深度学习(deep learning)的代表算法之一。卷积神经网络具有表征学习(representationlearning)能力,能够按其阶层结构对输入信息进行平移不变分类(shift-invariantclassification)。Convolutional Neural Networks (CNN, hereinafter referred to as CNN model) is a kind of feedforward neural network (Feedforward Neural Networks) that includes convolution calculation and has a deep structure. It is one of the representative algorithms of deep learning. . Convolutional neural network has the ability of representation learning and can perform shift-invariant classification of input information according to its hierarchical structure.
下面将结合附图以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems will be described in detail below with specific embodiments in conjunction with the accompanying drawings. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
为使本申请的目的、技术方案和优点更加清楚,图1公开了本申请实施例提供的一种风险预测方法的流程图,如图1所示,所述风险预测方法包括:In order to make the purpose, technical solutions and advantages of the present application clearer, FIG. 1 discloses a flowchart of a risk prediction method provided by an embodiment of the present application. As shown in FIG. 1 , the risk prediction method includes:
S101、采集目标用户交易信息;S101. Collect target user transaction information;
S102、根据所述目标用户交易信息确定风险影响因子信息;S102, determining risk influencing factor information according to the target user transaction information;
S103、将所述风险影响因子信息输入风险预测模型;其中所述风险预测模型为加载了群体智能优化算法的卷积神经网络模型;S103, inputting the risk influencing factor information into a risk prediction model; wherein the risk prediction model is a convolutional neural network model loaded with a swarm intelligence optimization algorithm;
S104、风险预测模型输出风险预测结果,其中所述风险预测结果用于表征所述目标用户是否为风险用户。S104. The risk prediction model outputs a risk prediction result, wherein the risk prediction result is used to characterize whether the target user is a risk user.
在可选实施例中,所述群体智能优化算法可以为鸟群优化算法、集群优化算法、粒子群优化算法等其他智能优化算法。In an optional embodiment, the swarm intelligent optimization algorithm may be a bird swarm optimization algorithm, a cluster optimization algorithm, a particle swarm optimization algorithm and other intelligent optimization algorithms.
基于本实施例公开的风险预测方法主要是基于风险预测模型实现的,,因此在本实施例中前置性地介绍风险预测模型及其风险预测模型的构建。The risk prediction method disclosed in this embodiment is mainly implemented based on a risk prediction model. Therefore, the risk prediction model and the construction of the risk prediction model are preliminarily introduced in this embodiment.
在本申请实施例中,所述风险预测模式是加载了群体智能优化算法的卷积神经网络模型。可选地,当所述智能群体优化算法为鸟群优化算法时,构建风险预测模型方案包括:In the embodiment of the present application, the risk prediction mode is a convolutional neural network model loaded with a swarm intelligence optimization algorithm. Optionally, when the intelligent swarm optimization algorithm is a bird swarm optimization algorithm, the solution for constructing a risk prediction model includes:
步骤1、将鸟群优化算法加载于所述卷积神经网络模型中,并根据鸟群优化算法确定所述卷积神经网络模型的参数,即确定CNN模型的隐藏层参数。Step 1. Load the bird flock optimization algorithm into the convolutional neural network model, and determine the parameters of the convolutional neural network model according to the bird flock optimization algorithm, that is, determine the hidden layer parameters of the CNN model.
步骤2、获取样本交易信息对所述加载有鸟群优化算法的神经网络模型进行训练;样本交易信息是包括风险用户在内的多个用户的交易信息,从样本交易信息中提取其风险影响因子信息(也可以称之为特征值信息),计算风险影响因子的影响系数,并将风险影响因子输入加载有BSA算法的CNN模型进行训练。Step 2: Obtain sample transaction information to train the neural network model loaded with the bird flock optimization algorithm; the sample transaction information is transaction information of multiple users including risky users, and the risk influencing factors are extracted from the sample transaction information Information (also known as eigenvalue information), calculate the influence coefficient of the risk influencing factor, and input the risk influencing factor into the CNN model loaded with the BSA algorithm for training.
步骤3、根据预设训练规则,将完成训练的加载有鸟群优化算法的神经网络模型确定为风险预测模型:Step 3. Determine the trained neural network model loaded with the bird flock optimization algorithm as the risk prediction model according to the preset training rules:
在本步骤中预设训练规则可以设定为利用样本交易数据对加载有BSA算法的CNN模型进行训练迭代的次数达到预设阈值,例如训练迭代500此,则认为该模型达到了稳定的状态,即可确定所述加载有鸟群优化算法的卷积神经网络模型为风险预测模型;In this step, the preset training rule can be set to use the sample transaction data to train the CNN model loaded with the BSA algorithm when the number of iterations reaches a preset threshold. For example, if the training iteration is 500, it is considered that the model has reached a stable state. It can be determined that the convolutional neural network model loaded with the bird flock optimization algorithm is a risk prediction model;
可选地,所述预设训练规则也可以设定为以下规则:Optionally, the preset training rules can also be set to the following rules:
步骤3-1、输入样本交易数据至加载有鸟群优化算法的卷积神经网络模型并迭代训练预定次数后计算样本适应度值:根据十折交叉方法将样本交易数据分为10份,其中9份用作训练数据,1份用作验证数据,则利用上述10份训练数据分别对加载有BSA算法的CNN模型进行训练,前9份得到的结果作为训练结果与验证数据的验证结果进行比较,以对模型进行调整。训练过程为:将训练数据输入至加载有BSA算法的CNN模型中,迭代预定次数,例如迭代1次后,更新鸟群个体的位置信息,并对该模型隐藏层的参数进行调整,再启动迭代训练并计算鸟群个体的适应度值,更新当前最优适应度值和最优成绩。Step 3-1. Input the sample transaction data to the convolutional neural network model loaded with the bird flock optimization algorithm, and calculate the sample fitness value after iterative training for a predetermined number of times: divide the sample transaction data into 10 parts according to the ten-fold cross method, of which 9 The CNN model loaded with the BSA algorithm is trained by using the above 10 training data respectively, and the results obtained in the first 9 copies are used as the training results and the verification results of the verification data are compared. to adjust the model. The training process is as follows: input the training data into the CNN model loaded with the BSA algorithm, and iterate a predetermined number of times. For example, after one iteration, update the position information of the individual birds, adjust the parameters of the hidden layer of the model, and then start the iteration. Train and calculate the fitness value of individual birds, and update the current optimal fitness value and optimal performance.
步骤3-2、如果所述样本适应度值符合预设适应度值,则停止训练,确定所述加载有鸟群优化算法的卷积神经网络模型为风险预测模型:当步骤3-2中计算的最优适应度值符合预设适应度值,例如模型的验证结果精确率达到97%,模型的召回率,即查全率达到95%以上则认为该模型达到了稳定状态。Step 3-2, if the sample fitness value meets the preset fitness value, stop training, and determine that the convolutional neural network model loaded with the bird flock optimization algorithm is a risk prediction model: when calculating in step 3-2 The optimal fitness value of the model conforms to the preset fitness value. For example, if the accuracy rate of the verification result of the model reaches 97%, and the recall rate of the model, that is, the recall rate reaches more than 95%, the model is considered to have reached a stable state.
可选地的,当样本适应度值符合预设适应度值时,可以判断当前迭代次数是否达到了预定迭代次数,如果没有则再次进行迭代训练。Optionally, when the sample fitness value conforms to the preset fitness value, it may be determined whether the current number of iterations has reached the predetermined number of iterations, and if not, iterative training is performed again.
在本申请可选实施例中,所述鸟群优化算法为增加了边界约束条件的鸟群优化算法,从而提高解的质量和算法收敛速度,避免陷入局部最优。In an optional embodiment of the present application, the bird flock optimization algorithm is a bird flock optimization algorithm with boundary constraints added, thereby improving the quality of the solution and the algorithm convergence speed and avoiding falling into a local optimum.
下面对基于上述实施例构建的风险预测模型进行风险预测的基本实现流程进行说明:The basic implementation process of risk prediction based on the risk prediction model constructed in the above embodiment will be described below:
步骤1、实时采集目标用户交易报文;Step 1, collect target user transaction messages in real time;
步骤2、根据所述目标用户交易信息确定风险影响因子信息:对步骤1中实时采集的交易报文进行分类,提取风险影响因子并计算影响系数,所述风险影响因子包括但不限于:目标用户预定周期内登录次数、目标用户(或目标终端)注册账户个数、预定时间内发起向同一对象发起交易的次数,预定周期内交易金额超过预定上限的次数、目标用户最近交易位置信息、目标用户单个交易日的交易次数、最近预定期限内总交易次数、档次交易对象与历史对象、位置信息与手机银行签约商户是否异地等218个风险影响因子。Step 2. Determine the risk influencing factor information according to the target user transaction information: classify the transaction messages collected in real time in step 1, extract the risk influencing factor and calculate the influence coefficient, and the risk influencing factor includes but is not limited to: the target user The number of logins in the predetermined period, the number of registered accounts of the target user (or target terminal), the number of times the transaction is initiated to the same object within the predetermined period, the number of times the transaction amount exceeds the predetermined upper limit in the predetermined period, the target user's recent transaction location information, the target user There are 218 risk factors, such as the number of transactions on a single trading day, the total number of transactions in the most recent predetermined period, the level of transaction objects and historical objects, location information and whether the mobile banking contracted merchants are located in different places.
步骤3、将上述所有获取的风险影响因子信息输入风险预测模型;Step 3. Input all the obtained risk influencing factor information into the risk prediction model;
步骤4、风险预测模型输出风险预测结果,其中所述风险预测结果用于表征所述目标用户是否为风险用户。例如,当风险预测模型输出的预测结果为1时,则认为目标用户为风险用户,例如羊毛党,否则为非风险用户。Step 4: The risk prediction model outputs a risk prediction result, wherein the risk prediction result is used to characterize whether the target user is a risk user. For example, when the prediction result output by the risk prediction model is 1, the target user is considered to be a risk user, such as a wool party, otherwise it is a non-risk user.
步骤5、将对目标用户的风险预测结果发送至第三方平台等用户分析平台已展开下游应用。Step 5: Send the risk prediction result of the target user to a third-party platform and other user analysis platforms that have been deployed for downstream applications.
本申请实施例公开的基于加载有BSA算法的CNN模型的风险预测方案,能够快速、高效、准确预测用户是否为风险用户,还能有效溯源风险用户并进行处理,具有精确率高、误报率低、成本低的特点。The risk prediction scheme based on the CNN model loaded with the BSA algorithm disclosed in the embodiment of the present application can quickly, efficiently and accurately predict whether a user is a risk user, and can effectively trace the source of the risk user and process it, with high accuracy and false alarm rate. low cost and low cost.
图2示出了本申请实施例提供了一种风险预测装置,如图2所示,该装置主要可以包括:201采集模块、202确定模块、203输入模块、204存储模块205预测模块和,其中:FIG. 2 shows that an embodiment of the present application provides a risk prediction device. As shown in FIG. 2 , the device may mainly include: 201 a collection module, 202 a determination module, 203 an input module, 204 a storage module, 205 a prediction module and, wherein :
所述201采集模块,用于采集目标用户交易信息;The 201 collection module is used to collect target user transaction information;
所述202确定模块,用于根据所述目标用户交易信息确定风险影响因子信息;The 202 determination module is configured to determine risk impact factor information according to the target user transaction information;
所述203输入模块,用于将所述风险影响因子信息输入风险预测模型;The 203 input module is used to input the risk impact factor information into a risk prediction model;
所述204存储模块,用于存储风险预测模型,其中所述风险预测模型为加载了群体智能优化算法的卷积神经网络模型;The 204 storage module is used to store a risk prediction model, wherein the risk prediction model is a convolutional neural network model loaded with a swarm intelligence optimization algorithm;
所述205预测模块,用于控制风险预测模型输出风险预测结果,其中所述风险预测结果用于表征所述目标用户是否为风险用户。The prediction module 205 is configured to control the risk prediction model to output a risk prediction result, wherein the risk prediction result is used to characterize whether the target user is a risk user.
在可选实施例中,所述群体智能优化算法为增加了边界约束条件的鸟群优化算法。In an optional embodiment, the swarm intelligence optimization algorithm is a bird swarm optimization algorithm with boundary constraints added.
可选实施例中,所述装置还包括模型构建模块,其中所述模型构建模块用于:In an optional embodiment, the apparatus further includes a model building module, wherein the model building module is used for:
将鸟群优化算法加载于所述卷积神经网络模型中,并根据鸟群优化算法确定所述卷积神经网络模型的参数;Loading the bird flock optimization algorithm into the convolutional neural network model, and determining the parameters of the convolutional neural network model according to the bird flock optimization algorithm;
获取样本交易信息对所述加载有鸟群优化算法的神经网络模型进行训练;Obtain sample transaction information to train the neural network model loaded with the bird flock optimization algorithm;
根据预设训练规则,将完成训练的加载有鸟群优化算法的神经网络模型确定为风险预测模型。According to the preset training rules, the trained neural network model loaded with the bird flock optimization algorithm is determined as the risk prediction model.
可选实施例中,所述采集模块还用于实时采集目标用户交易数据In an optional embodiment, the collection module is also used to collect target user transaction data in real time.
可以理解的是,本实施例中的风险预测装置的上述各模块具有实现图1中所示的实施例中的方法相应步骤的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。上述模块可以是软件和/或硬件,上述各模块可以单独实现,也可以多个模块集成实现。对于上述各模块的功能描述具体可以参见图1中所示实施例中的方法的对应描述,在此不再赘述。It can be understood that, the above-mentioned modules of the risk prediction apparatus in this embodiment have the function of implementing the corresponding steps of the method in the embodiment shown in FIG. 1 . This function can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions. The above-mentioned modules may be software and/or hardware, and the above-mentioned modules may be implemented independently, or multiple modules may be integrated and implemented. For the functional description of the above modules, reference may be made to the corresponding description of the method in the embodiment shown in FIG. 1 , and details are not repeated here.
本申请实施例提供了一种电子设备,包括处理器和存储器;Embodiments of the present application provide an electronic device, including a processor and a memory;
存储器,用于存储操作指令;memory for storing operation instructions;
处理器,用于通过调用操作指令,执行本申请任一实施方式中所提供的风险预测方法。The processor is configured to execute the risk prediction method provided in any embodiment of the present application by invoking the operation instruction.
作为一个示例,图3示出了本申请实施例所适用的一种电子设备的结构示意图,如图3所示,该电子设备2000包括:处理器2001和存储器2003。其中,处理器2001和存储器2003相连,如通过总线2002相连。可选的,电子设备2000还可以包括收发器2004。需要说明的是,实际应用中收发器2004不限于一个,该电子设备2000的结构并不构成对本申请实施例的限定。As an example, FIG. 3 shows a schematic structural diagram of an electronic device to which an embodiment of the present application is applied. As shown in FIG. 3 , the
其中,处理器2001应用于本申请实施例中,用于实现上述方法实施例所示的方法。收发器2004可以包括接收机和发射机,收发器2004应用于本申请实施例中,用于执行时实现本申请实施例的电子设备与其他设备通信的功能。The
处理器2001可以是CPU(Central Processing Unit,中央处理器),通用处理器,DSP(Digital Signal Processor,数据信号处理器),ASIC(Application SpecificIntegrated Circuit,专用集成电路),FPGA(Field Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器2001也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。The
总线2002可包括一通路,在上述组件之间传送信息。总线2002可以是PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(ExtendedIndustry Standard Architecture,扩展工业标准结构)总线等。总线2002可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The
存储器2003可以是ROM(Read Only Memory,只读存储器)或可存储静态信息和指令的其他类型的静态存储设备,RAM(Random Access Memory,随机存取存储器)或者可存储信息和指令的其他类型的动态存储设备,也可以是EEPROM(Electrically ErasableProgrammable Read Only Memory,电可擦可编程只读存储器)、CD-ROM(Compact DiscRead Only Memory,只读光盘)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The
可选的,存储器2003用于存储执行本申请方案的应用程序代码,并由处理器2001来控制执行。处理器2001用于执行存储器2003中存储的应用程序代码,以实现本申请任一实施方式中所提供的风险预测方法。Optionally, the
本申请实施例提供的电子设备,适用于上述方法任一实施例,在此不再赘述。The electronic device provided in the embodiment of the present application is applicable to any embodiment of the foregoing method, and details are not described herein again.
本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该程序被处理器执行时实现上述方法实施例所示的风险预测方法。Embodiments of the present application provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the program is executed by a processor, the risk prediction method shown in the foregoing method embodiments is implemented.
本申请实施例提供的计算机可读存储介质,适用于上述方法任一实施例,在此不再赘述。The computer-readable storage medium provided by the embodiment of the present application is applicable to any embodiment of the foregoing method, and details are not described herein again.
本申请实施例提供的风险预测方案,通过采集目标用户交易信息;根据所述目标用户交易信息确定风险影响因子信息;将所述风险影响因子信息输入风险预测模型;其中所述风险预测模型为加载了群体智能优化算法的卷积神经网络模型;风险预测模型输出风险预测结果,其中所述风险预测结果用于表征所述目标用户是否为风险用户。本申请实施例公开的风险预测方案,使用改进鸟群优化算法的卷积神经网络模型对用户交易数据进行处理预测能够快速、高效、准确预测用户是否为风险用户,具有精确率高、误报率低、成本低的特点。避免风险用户,例如黑产用户,利用营销方案漏洞套利给商家或者客户带来不必要的损失。In the risk prediction scheme provided by the embodiment of the present application, the transaction information of the target user is collected; the risk influencing factor information is determined according to the transaction information of the target user; the risk influencing factor information is input into the risk prediction model; wherein the risk prediction model is loaded A convolutional neural network model based on a swarm intelligence optimization algorithm; the risk prediction model outputs a risk prediction result, wherein the risk prediction result is used to characterize whether the target user is a risk user. The risk prediction scheme disclosed in the embodiment of this application uses the convolutional neural network model of the improved bird flock optimization algorithm to process and predict user transaction data, which can quickly, efficiently and accurately predict whether the user is a risk user, and has a high accuracy rate and a false alarm rate. low cost and low cost. Avoid risky users, such as black-produced users, who use marketing plan loopholes to arbitrage to bring unnecessary losses to merchants or customers.
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of the accompanying drawings are sequentially shown in the order indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order and may be performed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution sequence is also It does not have to be performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of sub-steps or stages of other steps.
以上仅是本发明的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only some embodiments of the present invention. It should be pointed out that for those skilled in the art, some improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as It is the protection scope of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010710613.XA CN111951008A (en) | 2020-07-22 | 2020-07-22 | A risk prediction method, apparatus, electronic device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010710613.XA CN111951008A (en) | 2020-07-22 | 2020-07-22 | A risk prediction method, apparatus, electronic device and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111951008A true CN111951008A (en) | 2020-11-17 |
Family
ID=73341043
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010710613.XA Pending CN111951008A (en) | 2020-07-22 | 2020-07-22 | A risk prediction method, apparatus, electronic device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111951008A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112766975A (en) * | 2021-01-20 | 2021-05-07 | 中信银行股份有限公司 | Risk detection method and device, electronic equipment and readable storage medium |
CN113344453A (en) * | 2021-07-05 | 2021-09-03 | 湖南快乐阳光互动娱乐传媒有限公司 | Risk monitoring method, device, system, storage medium and equipment |
CN113420941A (en) * | 2021-07-16 | 2021-09-21 | 湖南快乐阳光互动娱乐传媒有限公司 | Risk prediction method and device for user behavior |
CN114118265A (en) * | 2021-11-24 | 2022-03-01 | 广州方硅信息技术有限公司 | Method for obtaining model, transaction behavior identification method, device and storage medium |
CN114881658A (en) * | 2022-05-10 | 2022-08-09 | 中国工商银行股份有限公司 | Transaction risk determination method and device, storage medium and electronic equipment |
-
2020
- 2020-07-22 CN CN202010710613.XA patent/CN111951008A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112766975A (en) * | 2021-01-20 | 2021-05-07 | 中信银行股份有限公司 | Risk detection method and device, electronic equipment and readable storage medium |
CN113344453A (en) * | 2021-07-05 | 2021-09-03 | 湖南快乐阳光互动娱乐传媒有限公司 | Risk monitoring method, device, system, storage medium and equipment |
CN113420941A (en) * | 2021-07-16 | 2021-09-21 | 湖南快乐阳光互动娱乐传媒有限公司 | Risk prediction method and device for user behavior |
CN114118265A (en) * | 2021-11-24 | 2022-03-01 | 广州方硅信息技术有限公司 | Method for obtaining model, transaction behavior identification method, device and storage medium |
CN114881658A (en) * | 2022-05-10 | 2022-08-09 | 中国工商银行股份有限公司 | Transaction risk determination method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102061987B1 (en) | Risk Assessment Method and System | |
CN111951008A (en) | A risk prediction method, apparatus, electronic device and readable storage medium | |
CN114187112B (en) | Training method of account risk model and determining method of risk user group | |
CN109558951B (en) | Method and device for detecting fraud account and storage medium thereof | |
CN107563757B (en) | Data risk identification method and device | |
TWI684151B (en) | Method and device for detecting illegal transaction | |
CN112580952A (en) | User behavior risk prediction method and device, electronic equipment and storage medium | |
TW201734893A (en) | Method and apparatus for acquiring score credit and outputting feature vector value | |
WO2022156701A1 (en) | Risk recognition and update of risk recognition system | |
CN111754241A (en) | A user behavior perception method, device, device and medium | |
CN116805245A (en) | Fraud detection method and system based on graph neural network and decoupling representation learning | |
CN114170002A (en) | Method and device for predicting access frequency | |
CN119272016A (en) | A method and system for identifying and cleaning abnormal data | |
CN118196567A (en) | Data evaluation method, device, equipment and storage medium based on large language model | |
CN117592096A (en) | Abnormal financial account detection method and device based on federal learning privacy protection | |
CN114841526A (en) | A high-risk user detection method, computing device and readable storage medium | |
CN114757757A (en) | Wind control method | |
CN114978474A (en) | A method and system for automatically disposing of user chat risk levels | |
CN112330373B (en) | User behavior analysis method, device and computer-readable storage medium | |
CN114581086A (en) | Phishing account detection method and system based on dynamic time sequence network | |
CN112446708B (en) | A method and device for identifying risk | |
CN116883151A (en) | Method and device for training user risk assessment system | |
CN116720009A (en) | Social robot detection method, device, equipment and storage medium | |
CN114626941A (en) | Credit default prediction method, credit default prediction device, terminal equipment and storage medium | |
CN113554099A (en) | Method and device for identifying abnormal commercial tenant |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20220907 Address after: 25 Financial Street, Xicheng District, Beijing 100033 Applicant after: CHINA CONSTRUCTION BANK Corp. Address before: 25 Financial Street, Xicheng District, Beijing 100033 Applicant before: CHINA CONSTRUCTION BANK Corp. Applicant before: Jianxin Financial Science and Technology Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201117 |