Resource request method, device, equipment and storage medium

By using historical request information and neural network models, the abnormality of the resource requester is automatically identified, which solves the problem of low manual identification efficiency and improves the efficiency of automatic allocation of resource requests.

CN118055133BActive Publication Date: 2024-08-27BAIRONG ZHIXIN (BEIJING) TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410121722.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-29
Publication Date
2024-08-27
Estimated Expiration
2044-01-29

AI Technical Summary

Technical Problem

When faced with a large number of resource request businesses, the method of manually identifying abnormal resource requesters puts great work pressure on business personnel, and relies on the experience of business personnel, so the identification efficiency is low.

Method used

By obtaining the historical request information of the resource requester, the request results are predicted, and the degree of abnormality is identified based on the request results and basic information, and adaptive resources are automatically allocated. Specific methods include constructing feature matrices and vectors, inputting them into pre-trained neural network models for calculation, and combining multi-layer feedforward neural networks and lightweight gradient boosting models to identify the degree of anomalies.

Benefits of technology

It improves the accuracy of identifying the abnormality level of the resource requester, reduces the work pressure of business personnel, improves the identification efficiency, and realizes automated resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118055133B
    Figure CN118055133B
Patent Text Reader

Abstract

This specification relates to the field of computer technology, and in particular to a resource request method, apparatus, device and storage medium. The resource request method includes receiving a resource application request sent by a resource requester to a first resource storage party, wherein the resource application request is used to request a first resource, obtaining historical request information of the resource requester requesting a second resource from a second resource storage party; predicting the request result of the second resource based on the historical request information; determining the abnormality degree of the resource requester based on the request result and the basic information of the resource requester, so as to allocate resources adapted to the abnormality degree to the resource requester when the abnormality degree is lower than a preset threshold. Through the embodiments of this specification, the problem that the method of manually identifying abnormalities in the prior art will cause great work pressure to business personnel, and this method needs to rely on the experience of business personnel and has low identification efficiency is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present specification relates to the field of computer technology, and in particular to a resource request method, device, equipment and storage medium. Background Art

[0002] Resources refer to the use of Internet technology, information technology, etc. to transform real resources into resources that can be disseminated through the Internet, or to edit real resources into information resources that can flow freely. Common resources currently include video resources, software resources, tutorial resources, etc. Resources are provided by resource providers, who store them in the servers of resource storage parties. Resource requesters can request resources from the resource storage parties through the Internet.

[0003] In the scenario where a resource requester requests resources from a resource storage party that stores the resources through the Internet, it is often the case that some resource requesters fail to use the resources properly due to abnormal operations (such as illegal operations, idle resources), such as low utilization, improper use, etc. Therefore, it is usually necessary to identify the abnormalities of the resource requester during the resource request process and predict whether appropriate resources can be allocated to the resource requester.

[0004] However, currently, business personnel are required to identify whether there are any abnormalities in the resource requester and predict whether resources can be allocated to the resource requester. This will cause great work pressure on business personnel when faced with a large number of resource request businesses. In addition, this method relies on the experience of business personnel and has low identification efficiency.

[0005] There is an urgent need for a resource request method to solve the problem that when faced with a large number of resource request businesses, the method of manually identifying anomalies will cause great work pressure on business personnel, and this method needs to rely on the experience of business personnel and has low identification efficiency. Summary of the invention

[0006] To solve the problems existing in the prior art, the embodiments of this specification provide a resource request method, apparatus, device and storage medium, which use the request-related data of the resource requester's historical resource requests to predict the request result of the resource requester, and identify the degree of abnormality of the resource requester based on the request result and the relevant information of the resource requester, so as to allocate appropriate resources to the resource requester based on the degree of abnormality.

[0007] In order to solve any of the above technical problems, the specific technical solutions of this specification are as follows:

[0008] The embodiment of this specification provides a resource request method, including:

[0009] Receiving a resource application request sent by a resource requesting party to a first resource storing party, wherein the resource application request is used to request a first resource;

[0010] Acquire historical request information of the resource requester requesting the second resource from the second resource storage party, the historical request information including: first data in a first predetermined time period before a time to be predicted, second data in a second predetermined time period after the time to be predicted, and abnormal parameters of the resource requester at the time to be predicted;

[0011] Predicting a request result of the second resource at the time to be predicted according to the historical request information;

[0012] The abnormality degree of the resource requester is identified according to the request result and basic information of the resource requester, and when the abnormality degree is lower than a preset threshold, resources adapted to the abnormality degree are allocated to the resource requester.

[0013] Furthermore, the historical request information includes request information of the resource requester requesting the second resource from the second resource storage party at multiple consecutive historical moments, the first data includes the request information corresponding to multiple consecutive historical moments within the first predetermined time period, the second data includes the request information corresponding to multiple consecutive historical moments within the second predetermined time period, and the request result is whether the request for the second resource is successful at each historical moment.

[0014] Furthermore, the to-be-predicted moment is each historical moment at which the resource requesting party requests the second resource from the second resource storing party;

[0015] Predicting the request result of the second resource at the time to be predicted according to the historical request information:

[0016] Constructing a first feature matrix corresponding to each to-be-predicted moment according to the request information in the first predetermined time period corresponding to each to-be-predicted moment;

[0017] Constructing a second feature matrix corresponding to each to-be-predicted moment according to the request information in the second predetermined time period corresponding to each to-be-predicted moment;

[0018] The first feature matrix and the second feature matrix corresponding to each time to be predicted are respectively input into a pre-trained request result prediction model for calculation to obtain the request result corresponding to each time to be predicted.

[0019] Further, the first characteristic matrix includes first characteristic elements corresponding to each first historical moment in the first predetermined period, and the first characteristic elements include the number of requests in multiple time windows corresponding to the first historical moment, and the abnormal parameters of the resource requester at the moment to be predicted;

[0020] The second characteristic matrix includes second characteristic elements corresponding to each second historical moment within the second predetermined time period, and the second characteristic elements include the number of requests within multiple time windows corresponding to the second historical moment, and the abnormal parameters of the resource requester at the moment to be predicted.

[0021] Furthermore, in the case where multiple categories of second resource storage parties are included, the first characteristic element also includes a first total number of requests within multiple time windows corresponding to the first historical moment, and the first total number of requests is the sum of the number of requests for the second resource made by the resource requesting party to each category of second resource storage parties within the multiple time windows corresponding to the first historical moment;

[0022] The second characteristic element also includes the second total number of requests within multiple time windows corresponding to the second historical moment, and the second total number of requests is the sum of the number of requests made by the resource requester to each category of second resource storage for the second resource within the multiple time windows corresponding to the second historical moment.

[0023] Furthermore, in the case where multiple second resource storage parties are included, the first characteristic element also includes a first number of resource storage parties within multiple time windows corresponding to the first historical moment, wherein when the resource requester requests a second resource of a specified category within multiple time windows corresponding to the first historical moment, the number of second resource storage parties where the second resource of the specified category is located is the first number of resource storage parties, and the specified category is the category of the first resource;

[0024] The second characteristic element also includes the second number of resource storage parties within multiple time windows corresponding to the second historical moment, wherein when the resource requester requests the second resource of the specified category within the multiple time windows corresponding to the second historical moment, the total number of second resource storage parties where the second resources of the specified category are located is the second number of resource storage parties.

[0025] Furthermore, the first feature matrix and the second feature matrix are input into a pre-trained request result prediction model for calculation, and the request result corresponding to the time to be predicted is obtained, including:

[0026] Performing feature extraction on the first feature matrix and the second feature matrix to obtain a first feature vector and a second feature vector;

[0027] fusing the first eigenvector and the second eigenvector;

[0028] Input the fusion result into the multi-layer feedforward neural network for calculation;

[0029] The output result of the multi-layer feedforward neural network is calculated through an activation function to obtain the requested result.

[0030] Furthermore, the step of training the request result prediction model includes:

[0031] Constructing a first feature matrix and a second feature matrix corresponding to each training historical moment according to historical request information corresponding to a plurality of consecutive training historical moments;

[0032] The first feature matrix and the second feature matrix corresponding to each training historical moment and the historical request results corresponding to the training historical moment are input into the neural network model for iterative training to obtain the request result prediction model.

[0033] Furthermore, the basic information of the resource requester includes abnormal parameters and historical behavior data of the resource requester.

[0034] Furthermore, identifying the abnormality degree of the resource requester according to the request result and the basic information of the resource requester further includes:

[0035] Performing structured processing on the request results corresponding to each time to be predicted, the abnormal parameters of the resource requester and the historical behavior data to construct a resource requester feature vector;

[0036] The resource requester feature vector is input into a pre-trained anomaly recognition model for calculation to determine the degree of anomaly of the resource requester.

[0037] Furthermore, the step of training the anomaly recognition model includes:

[0038] Constructing a training feature vector for each historical resource requester according to the request result, resource requester abnormal parameters and historical behavior data of each historical resource requester;

[0039] constructing a training feature matrix based on training feature vectors of multiple historical resource requesters;

[0040] The training feature matrix and the abnormality degree corresponding to each historical resource requester in the training feature matrix are input into a lightweight gradient boosting model for training to obtain the abnormality recognition model.

[0041] On the other hand, the embodiment of this specification also provides a resource request device, including:

[0042] A resource application request receiving unit, configured to receive a resource application request sent by a resource requesting party to a first resource storage party, wherein the resource application request is used to request a first resource;

[0043] A historical request information acquisition unit, configured to acquire historical request information of the resource requesting party requesting the second resource from the second resource storage party, the historical request information comprising: first data in a first predetermined period before a time to be predicted, second data in a second predetermined period after the time to be predicted, and abnormal parameters of the resource requesting party at the time to be predicted;

[0044] A request result prediction unit, configured to predict a request result of the second resource at the time to be predicted according to the historical request information;

[0045] The abnormality degree identification unit identifies the abnormality degree of the resource requester according to the request result and basic information of the resource requester, and allocates resources adapted to the abnormality degree to the resource requester when the abnormality degree is lower than a preset threshold.

[0046] On the other hand, an embodiment of the present specification further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.

[0047] On the other hand, an embodiment of the present specification further provides a computer-readable medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0048] Using the embodiments of this specification, considering that the request result of the resource requester requesting resources from the second resource storage party can more directly indicate the abnormality of the resource requester, the embodiments of this specification determine the abnormality of the resource requester according to the predicted request result of the second resource storage party and the basic information of the resource requester, thereby improving the accuracy of identifying the abnormality of the resource requester. When the resource requester requests resources, the embodiments of this specification obtain the historical request information of the resources requested to be stored by the resource requester from the second resource storage party, and predict the request result of the resource requester requesting resources from the second resource storage party based on the historical request information, thereby determining the abnormality of the resource requester according to the predicted request result and the basic information of the resource requester, so as to allocate resources adapted to the abnormality when the abnormality is lower than the preset threshold to the resource requester. It solves the problem that the method of manually identifying abnormalities in the prior art will cause great work pressure to business personnel, and this method needs to rely on the experience of business personnel and has low recognition efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of this specification 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 this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 It is a schematic diagram of a system for implementing a resource request method according to an embodiment of this specification;

[0051] Figure 2 The figure is a schematic diagram of a process of a resource request method according to an embodiment of the present specification;

[0052] Figure 3 The figure is a schematic diagram of a process of calculating the request result of the second resource according to the historical request information in an embodiment of this specification;

[0053] Figure 4 The figure shows a flow chart of inputting the first feature matrix and the second feature matrix into a pre-trained request result prediction model for calculation to obtain the request result corresponding to the time to be predicted in the embodiment of this specification;

[0054] Figure 5 It is a schematic diagram of the process of calculating the request result of the long short-term memory recursive neural network in the embodiment of this specification;

[0055] Figure 6 The figure is a schematic diagram of the process of training the request result prediction model in the embodiment of this specification;

[0056] Figure 7 It is a flow chart of identifying the abnormality degree of the resource requester according to the request result and the basic information of the resource requester in the embodiment of this specification;

[0057] Figure 8 The figure is a schematic diagram of the process of training the abnormality recognition model in the embodiment of this specification;

[0058] Fig. 9 The figure is a schematic diagram of the process of training the overall abnormality recognition model in the embodiment of this specification;

[0059] Fig.10 The figure shows a schematic diagram of the structure of a resource request device according to an embodiment of the present specification;

[0060] Fig.11 The figure shows a detailed structural diagram of a resource request device according to an embodiment of the present specification;

[0061] Fig.12 The figure shows a schematic diagram of the structure of a computer device according to an embodiment of the present specification.

[0062]

Description of the accompanying drawings

[0063] 101. Resource requester;

[0064] 102. Resource storage party;

[0065] 103. Resource providers;

[0066] 1001. Resource application request receiving unit;

[0067] 1002. a historical request information acquiring unit;

[0068] 1003. Request result prediction unit;

[0069] 10031, first feature matrix construction module;

[0070] 10032, second characteristic matrix construction module;

[0071] 10033. Prediction model calculation module;

[0072] 100331, feature extraction submodule;

[0073] 100332, feature fusion submodule;

[0074] 100333, feedforward neural network calculation submodule;

[0075] 100334, activation function calculation submodule;

[0076] 100335, prediction model training submodule;

[0077] 1004. Abnormality degree identification unit;

[0078] 10041, feature vector construction module;

[0079] 10042. Abnormal identification model calculation module;

[0080] 10043. Anomaly recognition model training module;

[0081] 1202. Computer equipment;

[0082] 1204. Processing equipment;

[0083] 1206. Storage resources;

[0084] 1208, driving mechanism;

[0085] 1210, input / output module;

[0086] 1212. Input device;

[0087] 1214. Output device;

[0088] 1216. Presentation equipment;

[0089] 1218. Graphical user interface;

[0090] 1220, network interface;

[0091] 1222, communication link;

[0092] 1224. Communication bus. DETAILED DESCRIPTION

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

[0094] It should be noted that the terms "first", "second", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this specification described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0095] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0096] like Figure 1The diagram shows a system diagram for implementing a resource request method according to an embodiment of the present specification, which may include: a resource requester 101, a resource storage 102, and a resource provider 103, wherein the resource requester 101 is an electronic device (such as a computer, a handheld terminal, etc.) corresponding to a user requesting resources, the resource provider 103 is an electronic device corresponding to a user providing resources, the resource storage 102 is a server storing resources, and a computer program of the resource request method according to an embodiment of the present specification is deployed on the resource storage 102. In the embodiment of the present specification, the electronic device corresponding to the user requesting resources refers to a device used by the user requesting resources, such as a device that has logged into a user account requesting resources, and similarly, the resource provider 103 refers to a device used by the user providing resources. The resource requester 101 and the resource storage 102, as well as the resource provider 103 and the resource storage 102, may communicate through a network, and the network may include a local area network (LAN), a wide area network (WAN), the Internet, or a combination thereof, and is connected to a website, a user device (such as a computing device), and a backend system. The resource provider 103 provides resources to the resource storage 102, and the resource storage 102 provides the resources of the resource provider 103 to the resource requester 101. Optionally, the processor in the resource storage 102 may be a node of a cloud computing system (not shown in the figure), or each processor may be a separate cloud computing system, including multiple computers interconnected by a network and working as a distributed processing system.

[0097] In addition, it should be noted that Figure 1What is shown is only one application environment provided by the present disclosure. In actual applications, other application scenarios may also be included, such as bad information filtering scenarios. Bad information may include junk text messages, junk advertisements, illegal information, fraudulent information, etc. Specifically, the information sender is used as the resource requester, and multiple information receivers are used as resource storage parties. The information sent by the information sender to the information receiver is used as a resource application request to send the information to the information receiver, and the historical information data sent by the information sender to other information receivers is obtained. The historical information data includes the number of information sending times and the filtering weight of the information sender (corresponding to the abnormal parameters of the resource requester); the filtering results of the information sent by the information sender to other information receivers are predicted based on the historical information data; finally, the abnormal degree of the information sender is identified based on the filtering results and the basic information of the information sender, so as to filter the information adapted to the abnormal degree when the abnormal degree is lower than the preset threshold. For example, for a predicted moment, if the number of messages sent by the information sender that an information receiver receives before the predicted moment matches the number of messages after the predicted moment, it can be predicted that the information receiver did not filter the information sent by the information sender at the predicted moment; conversely, if the number of messages sent by the information sender that an information receiver receives before the predicted moment is much greater than the number of messages after the predicted moment, it can be predicted that the information receiver filtered the information sent by the information sender at the predicted moment.

[0098] When the resource storage party 102 provides resources to the resource requester 101, in order to avoid the resource requester 101 from not using the resources properly due to abnormal operations (such as illegal operations, idle resources), etc., it is necessary to identify the abnormalities of the resource requester 101 before providing resources to the resource requester 101, and predict whether suitable resources can be allocated to the resource requester 101.

[0099] However, it is usually the business personnel of the resource storage party 102 who identify the abnormality of the resource requester 101. This abnormality identification method needs to rely on the business experience of the business personnel, the identification process is highly subjective, and the efficiency is low.

[0100] In order to solve the problems existing in the prior art, an embodiment of the present specification provides a resource request method, which uses the request-related data of the resource requester's historical resource requests to predict the request result of the resource requester, and identifies the degree of abnormality of the resource requester based on the request result and relevant information of the resource requester. Figure 2The figure shows a flow chart of a resource request method according to an embodiment of the present specification. This figure describes the process of identifying the abnormality of the resource requester, but it may include more or fewer operation steps based on conventional or non-creative work. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When the system or device product is executed in practice, it can be executed in the order or in parallel according to the method shown in the embodiment or the accompanying drawings. Specifically, Figure 2 As shown, the method may include:

[0101] Step 201: receiving a resource application request sent by a resource requester to a first resource storage party, wherein the resource application request is used to request a first resource;

[0102] Step 202: Acquire historical request information of the resource requester requesting the second resource from the second resource storage party, the historical request information including: first data in a first predetermined period before the time to be predicted, second data in a second predetermined period after the time to be predicted, and abnormal parameters of the resource requester at the time to be predicted;

[0103] Step 203: predicting the request result of the second resource at the time to be predicted according to the historical request information;

[0104] Step 204: Identify the abnormality level of the resource requester according to the request result and basic information of the resource requester, and allocate resources adapted to the abnormality level to the resource requester when the abnormality level is lower than a preset threshold.

[0105] Using the embodiments of this specification, considering that the request result of the resource requester requesting resources from the second resource storage party can more directly indicate the abnormality of the resource requester, the embodiments of this specification determine the abnormality of the resource requester according to the predicted request result of the second resource storage party and the basic information of the resource requester, thereby improving the accuracy of identifying the abnormality of the resource requester. When the resource requester requests resources, the embodiments of this specification obtain the historical request information of the resources requested to be stored by the resource requester from the second resource storage party, and predict the request result of the resource requester requesting resources from the second resource storage party based on the historical request information, thereby determining the abnormality of the resource requester according to the predicted request result and the basic information of the resource requester, so as to allocate resources adapted to the abnormality when the abnormality is lower than the preset threshold to the resource requester. It solves the problem that the method of manually identifying abnormalities in the prior art will cause great work pressure to business personnel, and this method needs to rely on the experience of business personnel and has low recognition efficiency.

[0106] It should be noted that the resource request method described in the embodiment of this specification can be applied to the field of big data, using a neural network model to analyze the historical request data of the resource requester, mining the intrinsic correlation between the historical request data and the abnormality degree of the resource requester, identifying the abnormality degree of the resource requester, and allocating resources adapted to the abnormality degree to the resource requester when the abnormality degree is lower than a preset threshold. This method is used to replace the method of manually identifying whether the resource requester has an abnormality and predicting whether resources can be allocated to the resource requester in the prior art, thereby reducing the work pressure of business personnel. The resource request method of the embodiment of this specification can be deployed on multiple parallel processing systems, so as to perform parallel identification of the abnormality degrees of multiple resource requesters, thereby improving the identification efficiency.

[0107] In an embodiment of the present specification, the historical request information includes the number of requests made by the resource requester to the second resource storage for resources. In one embodiment, the number of requests is provided by the resource requester after authorization by the resource requester. In another embodiment, after the second resource storage is authorized by the resource provider, the number of requests is summarized and provided to the resource provider on a regular basis, and after both the resource provider and the resource requester authorize, the request is provided to the resource requester. The specific content of the authorization may include: the historical request information is only used to predict the request result of the second resource and cannot be used for other matters, so as to avoid the abuse of resources, ensure the reasonable use of the resources of the resource provider, and safeguard the public interest.

[0108] Therefore, the request volume of the resource provider can be analyzed to obtain the number of requests made by the resource requester to the second resource storage party for resources.

[0109] Then the number of requests is calculated to obtain the request result of the resource requester requesting the second resource from the second resource storage party. For example, if the request is approved, the number of requests of the resource requester may decrease, and if the request is not approved, the number of requests may increase. Therefore, the number of requests and the request frequency can be judged to determine the request result.

[0110] It should be noted that the information, data, and signals involved in the embodiments of this specification are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data comply with relevant laws, regulations, and standards.

[0111] According to one embodiment of the present specification, the historical request information includes request information of the resource requester requesting the second resource from the second resource storage party at multiple consecutive historical moments, the first data includes the request information corresponding to multiple consecutive historical moments within the first predetermined time period, the second data includes the request information corresponding to multiple consecutive historical moments within the second predetermined time period, and the request result is whether the request for the second resource is successful at each historical moment.

[0112] In the embodiment of the present specification, the multiple consecutive historical moments may be multiple consecutive historical times, such as every day, etc. The historical request information includes request information of the resource requester requesting the second resource from the second resource storage party every day within the past month.

[0113] This embodiment of the present description predicts the request result at a certain moment based on the change or difference between the number of requests before a certain moment and the number of requests after a certain moment. In one embodiment, if the second resource request is approved, the number of requests of the resource requester after obtaining the request result will be reduced. If the request is not approved, the number of requests of the resource requester after obtaining the request result may remain unchanged or increase.

[0114] Based on this principle, the time to be predicted in the embodiment of this specification is each historical time when the resource requesting party requests the second resource from the second resource storage party. In order to predict the request result at a certain time in the historical period, the number of requests at multiple consecutive times before the predicted time and the number of requests at multiple consecutive times after the predicted time are analyzed to determine whether the number of requests at multiple consecutive times after the predicted time is lower than the number of requests at multiple consecutive times before the predicted time. If so, the predicted request result is that the request is passed.

[0115] In the embodiments of this specification, there may be a situation where the request result at a certain moment in the historical period is not passed, but the number of requests after that moment is also reduced or reset to zero. Therefore, in order to improve the accuracy of predicting request results, according to an embodiment of this specification, a machine learning model is trained to learn the request rules, and then the trained machine learning model is used to predict the request results. Specifically, Figure 3 As shown, predicting the request result of the second resource at the time to be predicted according to the historical request information includes:

[0116] Step 301: constructing a first feature matrix corresponding to each to-be-predicted moment according to the request information in the first predetermined time period corresponding to each to-be-predicted moment;

[0117] Step 302: constructing a second feature matrix corresponding to each to-be-predicted moment according to the request information in the second predetermined time period corresponding to each to-be-predicted moment;

[0118] Step 303: respectively input the first feature matrix and the second feature matrix corresponding to each time to be predicted into a pre-trained request result prediction model for calculation to obtain the request result corresponding to each time to be predicted.

[0119] In the embodiment of the present specification, each historical moment when the resource requesting party requests the second resource from the second resource storage party is firstly taken as a time to be predicted, and then the request result of each time to be predicted is predicted. Specifically, a first feature matrix is ​​constructed based on the request information in a first predetermined period before a time to be predicted, and a second feature matrix is ​​constructed based on the request information in a second predetermined period after the time to be predicted. The first feature matrix and the second feature matrix are input into the trained request result model for calculation to obtain the request result of the time to be predicted.

[0120] It can be understood that the embodiment of this specification uses the moment of predicting the request result (such as the moment to be predicted) as the moment division point, and inputs the request information before the moment division point and the request information after the division point into the trained machine learning model. The machine learning model analyzes the pattern of the request information before and after the division point, thereby predicting whether the request is successful at the moment corresponding to the division point.

[0121] Specifically, the first characteristic matrix includes first characteristic elements corresponding to each first historical moment in the first predetermined period, and the first characteristic elements include the number of requests in multiple time windows corresponding to the first historical moment, and the abnormal parameter of the resource requester at the moment to be predicted;

[0122] The second characteristic matrix includes second characteristic elements corresponding to each second historical moment within the second predetermined time period, and the second characteristic elements include the number of requests within multiple time windows corresponding to the second historical moment, and the abnormal parameters of the resource requester at the moment to be predicted.

[0123] In the embodiments of the present specification, the abnormal parameters of the resource requester can be set by the second resource storage party, and its type can be a numerical type, and provided to the resource provider, so the abnormal parameters of the resource requester can be obtained from the resource provider. The abnormal parameters indicate the possibility of the resource requester abnormally operating the resource. The lower the abnormal parameters, the smaller the possibility of the resource requester abnormally operating the resource, and the higher the abnormal parameters, the greater the possibility of the resource requester abnormally operating the resource. Abnormal operations include illegal operations, idle resources, etc., resulting in unreasonable use of resources, such as low utilization, improper use, etc. It should be understood that the correlation between the abnormal parameters and the possibility of the resource requester abnormally operating the resource is set according to actual needs. For example, in other embodiments, the abnormal parameters are inversely correlated with the possibility of the resource requester abnormally operating the resource.

[0124] Therefore, the embodiment of this specification uses both the number of requests and the abnormal parameters as feature elements and constructs a feature matrix which is input into the trained request result prediction model for calculation.

[0125] For example, the characteristic element X i The structure can be as follows:

[0126] X i =[

[0127] The number of requests made by the resource requester in the past day at time i,

[0128] The number of requests made by the resource requester in the past three days at time i,

[0129] The number of requests made by the resource requester in the past five days at time i,

[0130] The number of requests made by the resource requester in the past 7 days at time i,

[0131] …

[0132] Abnormal parameters of the resource requester at time i]

[0133] Where i represents a historical moment in the first predetermined period, X i It indicates the first characteristic element corresponding to the historical moment i. It should be noted that the size of the time window can be set according to actual needs, and this specification embodiment does not limit it.

[0134] Then the first characteristic element X corresponding to each historical moment i in the first predetermined period is i For example, the first predetermined period is 28 days before the time to be predicted, and the historical time is based on each day. The first characteristic matrix X of the time to be predicted t is constructed t-before =[X t-28 ,X t-27 ,...,X t-1 ].

[0135] The construction method of the second feature matrix at the time t to be predicted is similar to the construction method of the first feature matrix, which will not be repeated here. t-after =[X t+1 ,X t+2 ,...,X t+7 ].

[0136] In an embodiment of the present specification, more data may be added to the first feature matrix and the second feature matrix to adapt to different prediction situations. According to an embodiment of the present specification, in the case of multiple categories of second resource storage parties, the first feature element also includes a first total number of requests within multiple time windows corresponding to the first historical moment, and the first total number of requests is the sum of the number of requests for the second resource by the resource request party to each category of second resource storage parties within the multiple time windows corresponding to the first historical moment;

[0137] The second characteristic element also includes the second total number of requests within multiple time windows corresponding to the second historical moment, and the second total number of requests is the sum of the number of requests made by the resource requester to each category of second resource storage for the second resource within the multiple time windows corresponding to the second historical moment.

[0138] In an embodiment of the present specification, the category of the second resource storage party may be a security level, etc. For example, multiple second resource storage parties are classified according to the anti-cheating security level of the second resource storage party, and the number of times the resource request party requests resources from different categories at each historical moment is counted to obtain the total number of requests for each category, and the total number of requests for each category is added to the above-mentioned first characteristic element or the second characteristic element, thereby constructing a feature matrix including the total number of requests for resources from second resource storage parties of different categories in the resource request direction, and the feature matrix is ​​input into a pre-trained request result prediction model for calculation.

[0139] It can be understood that after adding the total number of requests from second resource storage parties of each category to the first characteristic element and the second characteristic element, the category of the second resource storage party can be considered when predicting the request result. For example, the security level of the second resource storage party. If the total number of resource requests from the resource requesting party to the second resource storage party with a low security level far exceeds the total number of resource requests from the second resource storage party with a high security level, the resource requesting party may be trying to evade security verification of the resource storage party. Therefore, it can be inferred that the resource requesting party is abnormal.

[0140] It should be noted that, in addition to classifying the second resource storage parties according to the security level, the second resource storage parties may also be classified according to other information, and the embodiments of this specification do not limit this.

[0141] According to another embodiment of the present specification, in the case where multiple second resource storages are included, the first characteristic element further includes a first number of resource storages within multiple time windows corresponding to a first historical moment, wherein when the resource requester requests a second resource of a specified category within multiple time windows corresponding to the first historical moment, the number of second resource storages where the second resource of the specified category is located is the first number of resource storages, and the specified category is the category of the first resource;

[0142] The second characteristic element also includes the second number of resource storage parties within multiple time windows corresponding to the second historical moment, wherein when the resource requester requests the second resource of the specified category within the multiple time windows corresponding to the second historical moment, the total number of second resource storage parties where the second resources of the specified category are located is the second number of resource storage parties.

[0143] It can be understood that the embodiments of the present specification can also identify the abnormality degree of the resource requester according to the category of the resource requested by the resource requester, that is, when generating the first characteristic element or the second characteristic element, the corresponding number of resource storage parties of the second resource of the same category as the first resource requested by the resource requester is added, and similarly based on the change in the number of resource storage parties requested before and after the predicted time, it is judged whether the request is passed at the predicted time. For example, if the category of the first resource requested by the resource requester is A, then the request result of the resource requester requesting the second resource storage party for the second resource of the same category A is predicted. If the predicted request result is passed, it indicates that the resource requester does not have the possibility of abnormal operation on the first resource of category A. Conversely, if the predicted request result is not passed, it indicates that the resource requester has the possibility of abnormal operation on the first resource of category A, that is, the resource storage party has an abnormality.

[0144] It can be understood that by identifying the abnormality level of the resource requester according to the category of the resource requested by the resource requester, the abnormality level of the resource requester can be refined to be suitable for different application scenarios, thereby enhancing the accuracy and flexibility of identifying the abnormality level of the resource requester, and avoiding the resource requester from affecting the requests for other categories of resources due to the failure of the request for one category of resources, thereby reducing the accuracy of identifying the abnormality of the resource requester.

[0145] In the embodiments of this specification, the resources stored by the first resource storage party and the second resource storage party, resource categories, etc. can be the same or different, and the data in the first characteristic element and the second characteristic element can be adjusted according to actual needs. In addition, the resource provider can also include multiple ones, as long as the request is initiated by the same resource requester.

[0146] According to one embodiment of this specification, Figure 4As shown, the first feature matrix and the second feature matrix are input into a pre-trained request result prediction model for calculation, and the request result corresponding to the time to be predicted is obtained, including:

[0147] Step 401: extracting features from the first feature matrix and the second feature matrix to obtain a first feature vector and a second feature vector;

[0148] Step 402: fusing the first feature vector and the second feature vector;

[0149] Step 403: input the fusion result into a multi-layer feedforward neural network for calculation;

[0150] Step 404: Calculate the output result of the multi-layer feedforward neural network through an activation function to obtain the requested result.

[0151] Specifically, Figure 5 As shown, firstly, the long short-term memory recurrent neural network (LSTM) is used to transform the first feature matrix X t-before and the second feature matrix X t-after Perform feature extraction and obtain the first feature vector P before and the second eigenvector P after , then the first eigenvector P before and the second eigenvector P after The data are fused and input into a multi-layer feedforward neural network for calculation. Finally, the Sigmoid activation function is used to calculate the output of the multi-layer feedforward neural network to obtain the result of whether the request is passed.

[0152] In the embodiments of this specification, Figure 6 As shown, the steps of training the request result prediction model include:

[0153] Step 601: constructing a first feature matrix and a second feature matrix corresponding to each training historical moment according to historical request information corresponding to a plurality of consecutive training historical moments;

[0154] In this step, the historical request information corresponding to a large number of resource requesters at multiple consecutive training historical moments is processed, and a first feature matrix and a second feature matrix corresponding to a large number of resource requesters at each training historical moment are constructed as a training feature data set. Among them, the unit of the training historical moment can be "day", and multiple consecutive historical moments can be consecutive "days" in the past (for example, the past 28 consecutive days, that is, the past 1st day to the past 28 days), and the historical request information of "every day" (including the number of requests, etc.) is processed to construct the first feature matrix and the second feature matrix corresponding to "every day". It can be understood that each training historical moment in the continuous training historical moments is used as an embodiment of this specification. Figure 3The time to be predicted in the embodiment of this specification is used Figure 3 The method described constructs the first feature matrix X at each training history moment t-before and the second feature matrix X t-after .

[0155] Step 602: Input the first feature matrix and the second feature matrix corresponding to each training historical moment and the historical request results corresponding to the training historical moment into the neural network model for iterative training to obtain the request result prediction model.

[0156] In this step, the training feature data set is first annotated using the known request results at each training historical moment; then the input batch_size is set to the number of resource requesters of the training feature data set; in order to ensure that the first feature vector P before and the second eigenvector P after They can be spliced ​​and fused, and the output dimensions of the two long short-term memory recurrent neural networks (LSTM) are set to the same value output_size; because this is a binary classification problem (the request result is binary classification data, pass or fail), the loss function of the model is the cross entropy loss function; there is no optimal solution for the number of memory units, epochs, output_size and other parameters used by the long short-term memory recurrent neural network (LSTM) model and the multi-layer feedforward neural network model, so grid search or other parameter tuning methods are used to tune the parameters to approach the optimal performance of the model.

[0157] It should be noted that the iterative training process is a well-known technology for training neural network models in the art and will not be described in detail here.

[0158] In order to obtain the request results of a resource requester at multiple times, it is only necessary to perform the following steps at each time according to the embodiments of this specification. Figure 3-Figure 4 The calculation can be performed by following the steps.

[0159] After obtaining the request results of the resource requester requesting the second resource from the second resource storage party at multiple historical moments, the abnormality degree of the resource requester is identified according to the request results and basic information of the resource requester.

[0160] Specifically, the basic information of the resource requester includes abnormal parameters and historical behavior data of the resource requester.

[0161] Abnormal parameters of resource requesters. Abnormal parameters indicate the possibility of abnormal resource operation by resource requesters. The lower the abnormal parameters, the lower the possibility of abnormal resource operation by resource requesters. The higher the abnormal parameters, the greater the possibility of abnormal resource operation by resource requesters. Abnormal operations include illegal operations, idle resources, etc., which result in unreasonable use of resources, such as low utilization and improper use. Historical behavior data may include the operation behavior of resource requesters on the requested resources, such as whether there is abnormal operation behavior.

[0162] According to one embodiment of this specification, Figure 7 As shown, identifying the abnormality degree of the resource requester according to the request result and the basic information of the resource requester further includes:

[0163] Step 701: Performing structured processing on the request results corresponding to each time to be predicted, the abnormal parameters of the resource requester and the historical behavior data to construct a resource requester feature vector;

[0164] Step 702: Input the resource requester feature vector into a pre-trained anomaly recognition model for calculation to determine the degree of anomaly of the resource requester.

[0165] In the embodiment of this specification, the historical behavior data includes the historical operation behavior of the resource requester on the second resource, such as embedding, updating, etc. First, the request results corresponding to each time to be predicted, the abnormal parameters of the resource requester, and the historical behavior data are structured to generate a form (digital form) that can be recognized by a computer, and then a resource requester feature vector is constructed. The constructed resource requester feature vector is input into a pre-trained abnormal recognition model for calculation to determine the abnormal degree of the resource requester.

[0166] It can be understood that the anomaly identification model is essentially also a classification model, which calculates the classification result (anomaly level) of the resource requester feature vector, so that the first resource storage party can determine whether to provide the stored first resource to the resource requester according to the classification result.

[0167] Optionally, for example, if the abnormality level is at a low level, the corresponding allocation result is no allocation or allocation of a first predetermined proportion of the requested amount of resources;

[0168] When the abnormality level is at a medium level, the corresponding allocation result is to allocate resources of the second predetermined proportion of the requested amount;

[0169] When the abnormality degree is high, the corresponding allocation result is a third predetermined proportion of the allocation request amount;

[0170] Among them, the first predetermined ratio is less than the second predetermined ratio and less than the third predetermined ratio.

[0171] Specifically, Figure 8 As shown, the steps of training the anomaly recognition model include:

[0172] Step 801: constructing a training feature vector for each historical resource requester according to the request result, resource requester abnormal parameters and historical behavior data of each historical resource requester;

[0173] Step 802: constructing a training feature matrix according to the training feature vectors of multiple historical resource requesters;

[0174] Step 803: input the training feature matrix and the abnormality degree corresponding to each historical resource requester in the training feature matrix into a lightweight gradient boosting model for training to obtain the abnormality recognition model.

[0175] In the embodiments of this specification, the lightweight gradient boosting model (LGBM) is a machine learning algorithm based on the gradient enhanced decision tree algorithm, which significantly improves the speed and accuracy of training and reasoning through efficient histogram optimization technology and hierarchical learning strategies. The lightweight gradient boosting model (LGBM) algorithm has a wide range of applications in the field of risk control. The lightweight gradient boosting model (LGBM) algorithm can be used for anomaly identification, fraud detection, and other scenarios. In addition, the lightweight gradient boosting model (LGBM) algorithm can also perform real-time predictions, which can help resource storage parties quickly identify the degree of anomalies and take measures. The steps of training the lightweight gradient boosting model (LGBM) are well-known techniques in the art and will not be repeated here.

[0176] It can be understood that the embodiment of this specification identifies the abnormality of the resource requester through a machine learning model, which includes a request result prediction model for predicting the request result of the resource requester requesting resources from the second resource storage party at a historical moment and an abnormality recognition model for identifying the abnormality of the resource requester. The step diagram of the training of the embodiment of this specification can be as follows: Fig. 9 As shown:

[0177] Step 901: inputting the number of historical requests and abnormal parameters from a resource requesting party to a second resource storage party for resources;

[0178] Step 902: training a neural network model;

[0179] Step 903: Obtain the historical request results of the resource requester;

[0180] Step 904: Train a lightweight gradient boosting model using basic information of the resource requester and historical request results;

[0181] Step 905: The lightweight gradient boosting model outputs the abnormality level of the resource requester.

[0182] Based on the same inventive concept, the embodiment of this specification also provides a resource request device, such as Fig.10 As shown, including:

[0183] A resource application request receiving unit 1001 is configured to receive a resource application request sent by a resource requesting party to a first resource storage party, wherein the resource application request is used to request a first resource;

[0184] A historical request information acquisition unit 1002 is used to acquire historical request information of the resource requesting party requesting the second resource from the second resource storage party, wherein the historical request information includes: first data in a first predetermined period before the time to be predicted, second data in a second predetermined period after the time to be predicted, and abnormal parameters of the resource requesting party at the time to be predicted;

[0185] A request result prediction unit 1003, configured to predict a request result of the second resource at the time to be predicted according to the historical request information;

[0186] The abnormality level identification unit 1004 identifies the abnormality level of the resource requester according to the request result and basic information of the resource requester, and allocates resources adapted to the abnormality level to the resource requester when the abnormality level is lower than a preset threshold.

[0187] According to one embodiment of this specification, Fig.11 The detailed structure diagram of the resource request device according to the embodiment of this specification is shown, wherein the request result prediction unit 1003 includes:

[0188] A first feature matrix construction module 10031 is used to respectively construct a first feature matrix corresponding to each to-be-predicted moment according to the request information in the first predetermined period corresponding to each to-be-predicted moment, wherein the to-be-predicted moment is each historical moment when the resource requesting party requests the second resource storing party for the second resource;

[0189] A second feature matrix construction module 10032, configured to respectively construct a second feature matrix corresponding to each to-be-predicted moment according to the request information in the second predetermined time period corresponding to each to-be-predicted moment;

[0190] The prediction model calculation module 10033 is used to input the first feature matrix and the second feature matrix corresponding to each time to be predicted into the pre-trained request result prediction model for calculation to obtain the request result corresponding to each time to be predicted.

[0191] The prediction model calculation module 10033 includes:

[0192] A feature extraction submodule 100331 is used to extract features from the first feature matrix and the second feature matrix to obtain a first feature vector and a second feature vector;

[0193] A feature fusion submodule 100332 is used to fuse the first feature vector and the second feature vector;

[0194] A feedforward neural network calculation submodule 100333 is used to input the fusion result into a multi-layer feedforward neural network for calculation;

[0195] The activation function calculation submodule 100334 is used to calculate the output result of the multi-layer feedforward neural network through the activation function to obtain the requested result.

[0196] According to one embodiment of the present specification, the prediction model calculation module 10033 also includes a prediction model training submodule 100335, which is used to construct a first feature matrix and a second feature matrix corresponding to each training historical moment based on historical request information corresponding to multiple consecutive training historical moments; the first feature matrix and the second feature matrix corresponding to each training historical moment and the historical request results corresponding to the training historical moments are input into the neural network model for iterative training to obtain the request result prediction model.

[0197] The abnormality degree identification unit 1004 includes:

[0198] The feature vector construction module 10041 is used to perform structured processing on the request results, resource requester abnormal parameters and historical behavior data corresponding to each time to be predicted, and construct a resource requester feature vector;

[0199] The abnormality identification model calculation module 10042 is used to input the resource requester feature vector into a pre-trained abnormality identification model for calculation to determine the abnormality degree of the resource requester.

[0200] The abnormality degree identification unit 1004 also includes an abnormality identification model training module 10043, which is used to construct a training feature vector for each historical resource requester according to the request result, abnormal parameters of the resource requester and historical behavior data of each historical resource requester; construct a training feature matrix according to the training feature vectors of multiple historical resource requesters; input the training feature matrix and the abnormality degree corresponding to each historical resource requester in the training feature matrix into a lightweight gradient boosting model for training to obtain the abnormality identification model.

[0201] The beneficial effects obtained by the above-mentioned device are consistent with the beneficial effects obtained by the above-mentioned method, and will not be described in detail in the embodiments of this specification.

[0202] like Fig.12The structure diagram of the computer device of the embodiment of this specification is shown. The apparatus in this specification can be the computer device in this embodiment, and the method in this specification is executed. The computer device 1202 may include one or more processing devices 1204, such as one or more central processing units (CPUs), and each processing unit may implement one or more hardware threads. The computer device 1202 may also include any storage resource 1206, which is used to store any kind of information such as code, settings, data, etc. Non-limiting, for example, the storage resource 1206 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any storage resource can use any technology to store information. Further, any storage resource can provide volatile or non-volatile retention of information. Further, any storage resource can represent a fixed or removable component of the computer device 1202. In one case, when the processing device 1204 executes an associated instruction stored in any storage resource or a combination of storage resources, the computer device 1202 can perform any operation of the associated instruction. The computer device 1202 also includes one or more drive mechanisms 1208 for interacting with any storage resources, such as a hard disk drive mechanism, an optical disk drive mechanism, etc.

[0203] The computer device 1202 may also include an input / output module 1210 (I / O) for receiving various inputs (via input devices 1212) and for providing various outputs (via output devices 1214). A specific output mechanism may include a presentation device 1216 and an associated graphical user interface (GUI) 1218. In other embodiments, the input / output module 1210 (I / O), input device 1212, and output device 1214 may not be included, and the computer device 1202 may be used as a computer device in a network. The computer device 1202 may also include one or more network interfaces 1220 for exchanging data with other devices via one or more communication links 1222. One or more communication buses 1224 couple the components described above together.

[0204] The communication link 1222 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 1222 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.

[0205] The embodiments of the present specification also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0206] The embodiments of the present specification also provide a computer-readable instruction, wherein when a processor executes the instruction, the program therein causes the processor to execute the above method.

[0207] It should be understood that in the various embodiments of this specification, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this specification.

[0208] It should also be understood that in the embodiments of this specification, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this specification generally indicates that the associated objects before and after are in an "or" relationship.

[0209] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this specification can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel 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 specification.

[0210] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0211] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.

[0212] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of this specification.

[0213] In addition, each functional unit in each embodiment of this specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0214] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this specification is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0215] Specific embodiments are used in this specification to illustrate the principles and implementation methods of this specification. The description of the above embodiments is only used to help understand the methods and core ideas of this specification. At the same time, for those skilled in the art, according to the ideas of this specification, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this specification.

Claims

1. A resource request method, It is characterized in that include: Receiving a resource application request sent by a resource requesting party to a first resource storing party, wherein the resource application request is used to request a first resource; Acquire historical request information of the resource requester requesting the second resource from the second resource storage party, the historical request information including: first data in a first predetermined time period before a time to be predicted, second data in a second predetermined time period after the time to be predicted, and abnormal parameters of the resource requester at the time to be predicted, the time to be predicted being each historical moment when the resource requester requested the second resource from the second resource storage party; Predicting a request result of the second resource at the time to be predicted according to the historical request information; The request result and basic information of the resource requester are input into a pre-trained anomaly recognition model for calculation, the degree of anomaly of the resource requester is identified, and when the degree of anomaly is lower than a preset threshold, resources adapted to the degree of anomaly are allocated to the resource requester.

2. The method according to claim 1, It is characterized in that The historical request information includes request information of the resource requester requesting the second resource from the second resource storage party at multiple consecutive historical moments, the first data includes the request information corresponding to multiple consecutive historical moments within the first predetermined time period, the second data includes the request information corresponding to multiple consecutive historical moments within the second predetermined time period, and the request result is whether the request for the second resource is successful at each historical moment.

3. The method according to claim 1 or 2, It is characterized in that Predicting the request result of the second resource at the to-be-predicted time according to the historical request information includes: Constructing a first feature matrix corresponding to each to-be-predicted moment according to the request information in the first predetermined time period corresponding to each to-be-predicted moment; Constructing a second feature matrix corresponding to each to-be-predicted moment according to the request information in the second predetermined time period corresponding to each to-be-predicted moment; The first feature matrix and the second feature matrix corresponding to each time to be predicted are respectively input into a pre-trained request result prediction model for calculation to obtain the request result corresponding to each time to be predicted.

4. The method according to claim 3, It is characterized in that The first characteristic matrix includes first characteristic elements corresponding to each first historical moment in the first predetermined period, the first characteristic elements including the number of requests in multiple time windows corresponding to the first historical moment, and the abnormal parameter of the resource requester at the moment to be predicted; The second characteristic matrix includes second characteristic elements corresponding to each second historical moment within the second predetermined time period, and the second characteristic elements include the number of requests within multiple time windows corresponding to the second historical moment, and the abnormal parameters of the resource requester at the moment to be predicted.

5. The method according to claim 4, It is characterized in that In the case of including multiple categories of second resource storage parties, the first characteristic element also includes a first total number of requests within multiple time windows corresponding to the first historical moment, where the first total number of requests is the sum of the number of requests for the second resource by the resource requesting party to each category of second resource storage parties within the multiple time windows corresponding to the first historical moment; The second characteristic element also includes the second total number of requests within multiple time windows corresponding to the second historical moment, and the second total number of requests is the sum of the number of requests made by the resource requester to each category of second resource storage for the second resource within the multiple time windows corresponding to the second historical moment.

6. The method according to claim 4, It is characterized in that In the case where multiple second resource storage parties are included, the first characteristic element also includes a first number of resource storage parties in multiple time windows corresponding to the first historical moment, wherein when the resource requester requests a second resource of a specified category in the multiple time windows corresponding to the first historical moment, the number of second resource storage parties where the second resource of the specified category is located is the first number of resource storage parties, and the specified category is the category of the first resource; The second characteristic element also includes the second number of resource storage parties within multiple time windows corresponding to the second historical moment, wherein when the resource requester requests the second resource of the specified category within the multiple time windows corresponding to the second historical moment, the total number of second resource storage parties where the second resources of the specified category are located is the second number of resource storage parties.

7. The method according to claim 3, It is characterized in that Inputting the first feature matrix and the second feature matrix into a pre-trained request result prediction model for calculation, and obtaining the request result corresponding to the time to be predicted includes: Performing feature extraction on the first feature matrix and the second feature matrix to obtain a first feature vector and a second feature vector; fusing the first eigenvector and the second eigenvector; Input the fusion result into the multi-layer feedforward neural network for calculation; The output result of the multi-layer feedforward neural network is calculated through an activation function to obtain the requested result.

8. The method according to claim 7, It is characterized in that The steps of training the request result prediction model include: Constructing a first feature matrix and a second feature matrix corresponding to each training historical moment according to historical request information corresponding to a plurality of consecutive training historical moments; The first feature matrix and the second feature matrix corresponding to each training historical moment and the historical request results corresponding to the training historical moment are input into the neural network model for iterative training to obtain the request result prediction model.

9. The method according to claim 1 or 2, It is characterized in that The basic information of the resource requester includes abnormal parameters and historical behavior data of the resource requester.

10. The method according to claim 9, It is characterized in that Inputting the request result and basic information of the resource requester into a pre-trained anomaly recognition model for calculation, and identifying the degree of anomaly of the resource requester further includes: Performing structured processing on the request results corresponding to each time to be predicted, the abnormal parameters of the resource requester and the historical behavior data to construct a resource requester feature vector; The resource requester feature vector is input into a pre-trained anomaly recognition model for calculation to determine the degree of anomaly of the resource requester.

11. The method according to claim 10, It is characterized in that The steps of training the anomaly recognition model include: Constructing a training feature vector for each historical resource requester according to the request result, resource requester abnormal parameters and historical behavior data of each historical resource requester; constructing a training feature matrix based on training feature vectors of multiple historical resource requesters; The training feature matrix and the abnormality degree corresponding to each historical resource requester in the training feature matrix are input into a lightweight gradient boosting model for training to obtain the abnormality recognition model.

12. A resource requesting device, It is characterized in that include: A resource application request receiving unit, configured to receive a resource application request sent by a resource requesting party to a first resource storage party, wherein the resource application request is used to request a first resource; a historical request information acquisition unit, configured to acquire historical request information of the resource requester requesting the second resource from the second resource storage party, the historical request information comprising: first data in a first predetermined time period before a time to be predicted, second data in a second predetermined time period after the time to be predicted, and abnormal parameters of the resource requester at the time to be predicted, the time to be predicted being each historical moment when the resource requester requested the second resource from the second resource storage party; A request result prediction unit, configured to predict a request result of the second resource at the time to be predicted based on the historical request information; The abnormality degree identification unit inputs the request result and basic information of the resource requester into a pre-trained abnormality identification model for calculation, identifies the abnormality degree of the resource requester, and allocates resources adapted to the abnormality degree to the resource requester when the abnormality degree is lower than a preset threshold.

13. 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 11 is implemented.

14. 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 11 is implemented.

Citation Information

Patent Citations

  • An Internet information resource allocation method and device

    CN109710410A

  • Risk user identification method, device and equipment, and storage medium

    CN111242419A

  • Risk user identification method and device and electronic equipment

    CN112348321A

  • Scheduling, distributing and combining method and system for physical resources in cloud scene

    CN113709241A

  • Network resource allocation method and system, storage medium and electronic equipment

    CN117201308A