Resource allocation method, apparatus and electronic device
By determining resource sensitivity based on object attributes and historical matching information, and adjusting resource allocation strategies, the problem of low resource utilization was solved, and more efficient resource allocation was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2026-03-20
AI Technical Summary
Different objects have different needs and usage patterns for resources, resulting in low resource utilization and waste when resources are allocated using the same allocation strategy.
Based on the target object's object attributes and historical matching information, determine its sensitivity information to the first type of resources, and match the corresponding resource allocation strategy based on the sensitivity information to allocate the first type of resources to the object.
This improves resource utilization by allocating resources related to the sensitive information of objects to meet their needs and reduce resource waste.
Smart Images

Figure CN119782609B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present disclosure relate to the technical field of computer, and particularly, to a resource allocation method and device and electronic equipment. BACKGROUND
[0002] In order to facilitate the use of resources by users, various resources can be allocated to users. When allocating various resources to multiple objects, resources can be allocated to different objects according to the same allocation strategy.
[0003] However, different objects have different needs for resources and different use of resources. Some users are allocated resources but do not use the resources, resulting in ineffective use of resources. Therefore, allocating different objects according to the same allocation strategy can result in low resource utilization and resource waste. SUMMARY
[0004] Embodiments of the present disclosure provide a resource allocation method, device and electronic equipment.
[0005] In a first aspect, embodiments of the present disclosure provide a resource allocation method, comprising: determining first sensitive information of a target object to a first type of resource according to an object attribute of the target object and historical matching information of the target object and the first type of resource; wherein the target object is allocated a second type of resource associated with the first type of resource when use of the target object to the first type of resource meets a first preset condition; the historical matching information comprises first type of information historically allocated to the target object, historical use information of the target object to the first type of resource, and information of the target object being historically allocated a second type of resource due to use of the first type of resource; the first sensitive information indicates whether the target object is sensitive to the first type of resource in a scenario of allocating a second type of resource to the target object based on use of the first type of resource; and allocating the first type of resource to the target object according to a resource allocation strategy matched with the first sensitive information.
[0006] In a second aspect, the embodiments of the present disclosure provide a resource allocation apparatus, comprising: a determination unit configured to determine first sensitive information of a target object to a first type of resource according to object attributes of the target object and historical matching information of the target object to the first type of resource; wherein the target object is allocated a second type of resource associated with the first type of resource when use of the target object to the first type of resource meets a first preset condition; the historical matching information comprises first type of information historically allocated to the target object, use information of the target object to the first type of resource, and information of the second type of resource historically allocated to the target object due to use of the first type of resource; the first sensitive information indicates whether the target object is sensitive to the first type of resource in a scenario of allocating the second type of resource to the target object based on use of the first type of resource; and an allocation unit configured to allocate the first type of resource to the target object according to a resource allocation strategy matched with the first sensitive information.
[0007] In a third aspect, the embodiments of the present disclosure provide an electronic device, comprising: a processor and a memory.
[0008] The memory stores computer-executable instructions.
[0009] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method of the first aspect and various possible designs of the first aspect.
[0010] In a fourth aspect, the embodiments of the present disclosure provide a computer-readable storage medium, which stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method of the first aspect and various possible designs of the first aspect is implemented.
[0011] In a fifth aspect, the embodiments of the present disclosure provide a computer program product, comprising a computer program, and when a processor executes the computer program, the method of the first aspect and various possible designs of the first aspect is implemented.
[0012] The resource allocation method, device and electronic equipment provided by the embodiment determine first sensitive information of a target object to a first type of resource according to an object attribute of the target object and historical matching information of the target object and the first type of resource, wherein when use of the target object to the first type of resource meets a first preset condition, a second type of resource associated with the first type of resource is allocated to the target object; the historical matching information includes historical first type of information allocated to the target object, historical use information of the target object to the first type of resource, and information of historical second type of resource allocated to the target object due to use of the first type of resource; the first sensitive information indicates whether the target object is sensitive to the first type of resource in a scenario of allocating the second type of resource to the target object based on use of the first type of resource; and the target object is allocated the first type of resource according to a resource allocation strategy matched with the first sensitive information, so that the first type of resource is allocated to the target object based on sensitive information of the target object to the first type of resource. Since the first type of resource allocated to the target object is related to the sensitive information of the target object to the first type of resource, the target object has a certain demand for the allocated first type of resource, which improves the problem of waste of resources allocated to the target object and improves resource utilization. BRIEF DESCRIPTION OF DRAWINGS
[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the present disclosure, and other drawings can also be obtained by those skilled in the art without creative labor.
[0014] Figure 1 The schematic flowchart of the resource allocation method provided by the embodiment of the present disclosure Figure 1
[0015] Figure 2 The schematic flowchart of the resource allocation method provided by the embodiment of the present disclosure Figure 2
[0016] Figure 3 The schematic flowchart of the resource allocation method provided by the embodiment of the present disclosure Figure 2
[0017] Figure 4 The schematic structural diagram of the resource allocation device provided by the embodiment of the present disclosure
[0018] Figure 5 The structural schematic diagram of the electronic equipment provided by the embodiment of the present disclosure DETAILED DESCRIPTION
[0019] In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are some but not all of the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present disclosure.
[0020] It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the type of information involved in the present disclosure, the use range, the use scenario and the like should be informed to the user and the authorization of the user should be obtained through appropriate means according to relevant laws and regulations.
[0021] For example, in response to receiving the active request of the user, the prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will need to obtain and use the user information. Thus, the user can autonomously select whether to provide the information to the software or hardware such as the electronic device, the application program, the server or the storage medium performing the operation of the technical solutions of the present disclosure according to the prompt information.
[0022] As an optional but non-limiting implementation manner, in response to receiving the active request of the user, the manner of sending the prompt information to the user may, for example, be a pop-up window manner, and the prompt information may, for example, be presented in the form of text in the pop-up window. In addition, the pop-up window may, for example, carry a selection control for the user to select "agree" or "disagree" to provide the information to the electronic device.
[0023] It can be understood that the above notification and obtaining of the authorization of the user are only illustrative, and do not limit the implementation manners of the present disclosure, and other manners meeting the relevant laws and regulations can also be applied to the implementation manners of the present disclosure.
[0024] It can be understood that the data involved in the present technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the relevant laws and regulations and the relevant provisions.
[0025] In order to facilitate the object to use the resource, the resource can be allocated to different objects. The resource can be allocated to one or more objects according to the same resource allocation strategy. The resource here may, for example, include a content service type resource, a product introduction type resource, a product introduction type resource associated with other resources, and the like. The above product may, for example, include an entity product and / or a virtual product.
[0026] Different objects are allocated resources according to the same resource allocation strategy, so that different objects obtain the same resources. However, because different objects have different demands for resources and different uses of resources, some objects may not use the allocated resources or only use a small amount of resources, resulting in low resource utilization and resource waste. Resource waste includes waste of allocated resources and waste of transmission resources due to transmission of allocated resources.
[0027] To improve the above problems, the scheme provided by the present disclosure determines the sensitive information of an object to a first type of resource in a scenario where the use of the first type of resource is allocated a second type of resource according to the object attribute of the object and the historical matching information of the object to the first type of resource, and allocates the first type of resource to the object according to a resource allocation strategy matched with the above sensitive information, so that the first type of resource allocated to the object is related to the sensitive information of the object to the first type of resource, that is, the object has a certain demand for the first type of resource, which can improve resource utilization and help to improve the problem of resource waste.
[0028] Please refer to Figure 1 , Figure 1 The schematic flow of the resource allocation method provided by the present disclosure Figure 1 ; as Figure 1 shown, the method comprises the following steps:
[0029] S101: determining first sensitive information of a target object to a first type of resource according to an object attribute of the target object and historical matching information of the target object to the first type of resource; wherein the use of the first type of resource by the target object meets a first preset condition, and the target object is allocated a second type of resource associated with the first type of resource; the historical matching information includes information of the first type of resource historically allocated to the target object, use information of the first type of resource, and information of the second type of resource historically allocated to the target object due to the use of the first type of resource; the first sensitive information indicates whether the target object is sensitive to the first type of resource in a scenario where the second type of resource is allocated to the target object based on the use of the first type of resource.
[0030] The subject of the resource allocation method (such as a server or a terminal device) can obtain the object attribute of the target object and the historical matching information of the target object to the first type of resource, and then determine the first sensitive information of the target object to the first type of resource according to the object attribute information and the above historical matching information.
[0031] The target object can be any one of a plurality of objects to which the resource is to be allocated. The object attribute can include, for example, an object identifier, an object category, a location of the object, and the like. The historical matching information includes information of a first type of resource historically allocated to the target object, usage information of the first type of resource by the target object, information of a second type of resource historically allocated to the target object due to usage of the first type of resource, and the like. In addition, the information of the first type of resource historically allocated to the target object includes a number of times of allocation of the first type of resource to the target object in the past; and the usage information of the first type of resource can include, for example, a usage duration, a number of times of usage, and the like.
[0032] The information of the second type of resource historically allocated to the target object due to usage of the first type of resource includes a number of times of allocation of the second type of resource, a usage duration of the first type of resource when the second type of resource is allocated, and information of a number of the second type of resource allocated each time.
[0033] In the embodiment, usage of the first type of resource by the object can be allocated the second type of resource.
[0034] The first sensitive information can be determined according to the object attribute of the target object and the historical matching information of the target object and the first type of resource. The first sensitive information indicates whether the target object is sensitive to the first type of resource in a scenario of allocating the second type of resource to the target object based on usage of the first type of resource. The first sensitive information indicates that the target object is sensitive to the first type of resource, or that the target object is not sensitive to the first type of resource.
[0035] If the first sensitive information indicates that the target object is sensitive to the first type of resource, that is, the target object needs more of the first type of resource, or needs more of the second type of resource associated with the first type of resource.
[0036] The above-mentioned target object is not sensitive to the first type of resource, indicating that the target object needs less of the first type of resource, or needs less of the second type of resource associated with the first type of resource.
[0037] The above-mentioned first type of resource can be regarded as a resource associated with the second type of resource. The above-mentioned first type of resource can include product information. The second type of resource can include, for example, a benefit type of resource, a currency type of resource, and the like.
[0038] The above-mentioned first preset condition can include, for example, a usage duration greater than a preset duration threshold.
[0039] The object can realize usage of the first type of resource by displaying the first type of resource.
[0040] In some application scenarios, the above-mentioned first type of resource can be allocated to the target object in association with a content resource. For example, the above-mentioned first type of resource can be displayed in a process of displaying the content resource. In the above-mentioned display process, the above-mentioned first type of resource can also be prohibited from being displayed.
[0041] S102: allocate the first type of resource to the target object based on the allocation policy matched with the first sensitive information.
[0042] Specifically, the step S102 includes one or more of the following:
[0043] If the first sensitive information indicates that the target object is sensitive to the first type of resource, the first type of resource is allocated to the target object according to the first allocation policy, wherein the first allocation policy indicates to increase the number of the second type of resource associated with the first type of resource, or to increase the allocation amount or frequency of the first type of resource allocated to the target object.
[0044] If the first sensitive information indicates that the target object is not sensitive to the first type of resource, the first type of resource is allocated to the target object according to the second allocation policy, wherein the second allocation policy indicates to reduce the allocation amount or frequency of the first type of resource allocated to the target object.
[0045] In some application scenarios, the first sensitive information indicates that the target object is sensitive to the first type of resource, which represents that the target object needs more first type of resource or more second type of resource associated with the first type of resource. The above allocation policy may, for example, include more second type of resource associated with the first type of resource allocated to the target object. The allocation amount of the first type of resource allocated to the target object may also be increased, for example, the number of the first type of resource allocated is increased, or the size of a single first type of resource is increased (for example, if it is a product introduction video, the video can be longer). The frequency of allocating the first type of resource to the target object may also be increased. So that the target object is allocated more first type of resource.
[0046] In some application scenarios, the first sensitive information indicates that the target object is not sensitive to the first type of resource, which represents that the target object needs less first type of resource or less second type of resource associated with the first type of resource. The above allocation policy may, for example, include reducing the allocation amount of the first type of resource allocated to the target object, and may also reduce the frequency of allocating the first type of resource to the target object.
[0047] In this embodiment, the first sensitive information of the object to the first type of resource is determined according to the object attribute of the object and the historical matching information of the object and the first type of resource, and the first type of resource is allocated to the target object according to the resource allocation policy matched with the first sensitive information. Since the first type of resource allocated to the object is related to the sensitive information of the object to the first type of resource, the object has a certain demand for the allocated first type of resource, which improves the problem of waste of resources allocated to the object and can improve the resource utilization rate.
[0048] For reference Figure 2 , Figure 2 The resource allocation method provided by the embodiments of the present disclosure has the advantages of Figure 2 .Figure 2 As shown, in addition to including the same step S102 as Figure 1 The method includes the following steps in addition to the same step S204 as
[0049] S201: inputting the object attribute of the target object and the historical matching information of the target object and the first type of resource into the pre-trained sensitivity recognition model to obtain the second sensitive information of the target object to the first type of resource.
[0050] The historical matching information includes information of the first type of resource to which the target object has been historically assigned, historical use information of the first type of resource, and information of the second type of resource to which the target object has been historically assigned due to use of the first type of resource.
[0051] In this embodiment, the sensitivity information of the target object to the first type of resource can be determined based on the object attribute of the target object and the historical matching information of the target object and the first type of resource, the sensitivity information output by the sensitivity recognition model, and the sensitivity information determined by clustering a plurality of objects.
[0052] Specifically, the object attribute of the target object and the historical matching information can be input into the sensitivity recognition model. The sensitivity recognition model can determine the second sensitive information of the target object to the first type of resource according to the object attribute of the target object and the historical matching information of the target object and the first type of resource input into the sensitivity recognition model.
[0053] The second sensitive information indicates that the target object is sensitive to the first type of resource, or indicates that the target object is not sensitive to the first type of resource.
[0054] The sensitivity recognition model can be various classification models, such as a logistic regression model, a support vector machine model, a decision tree model, a naive Bayes model, etc.
[0055] S202: clustering a plurality of objects including the target object according to the respective object attributes and historical matching information to the first type of resource; determining the third sensitive information of the target object to the first type of resource according to the obtained clustering result; wherein the plurality of objects include objects sensitive to the first type of resource, objects not sensitive to the first type of resource, and objects not determined to be sensitive to the first type of resource.
[0056] The target object can be an object not determined to be sensitive to the first type of resource.
[0057] For each of the plurality of objects, the object attribute of the object and the historical matching information of the object to the first type of resource can be encoded according to a preset encoding rule to obtain an encoding result of each object. For example, the object attribute and the historical matching information of the object to the first type of resource can be encoded using a One-Hot encoding mode to obtain the encoding result of each object.
[0058] Various clustering methods can be used to cluster the plurality of objects according to the respective encoding results of the plurality of objects. The clustering methods can include, for example, a K-means clustering algorithm, hierarchical clustering, and the like.
[0059] In some embodiments, the step S202 includes the following sub-steps:
[0060] First, a target clustering result in which the target object is located is obtained from the clustering results obtained by clustering the plurality of objects.
[0061] By clustering the plurality of objects according to the object attribute and the historical matching information of the object to the first type of resource, a plurality of clustering results can be obtained. The clustering result in which the target object is located is taken as the target clustering result.
[0062] Second, according to the distribution of the objects sensitive to the first type of resource and the objects not sensitive to the first type of resource in the target clustering result, third sensitivity information of the target object to the first type of resource is determined.
[0063] The target clustering result includes one or more objects sensitive to the first type of resource, one or more objects not sensitive to the first type of resource, and objects whose sensitivity to the first type of resource is not determined. Among them, the objects whose sensitivity to the first type of resource is not determined include the target object.
[0064] The third sensitivity information of the target object to the first type of resource can be determined according to the distribution of the objects sensitive to the first type of resource and the objects not sensitive to the first type of resource in the target clustering result.
[0065] Specifically, if the number of objects sensitive to the first type of resource in the target clustering result is greater than or equal to the number of objects not sensitive to the first type of resource, third sensitivity information indicating that the target object is sensitive to the first type of resource is generated.
[0066] If the number of objects sensitive to the first type of resource in the target clustering result is less than the number of objects not sensitive to the first type of resource, third sensitivity information indicating that the target object is not sensitive to the first type of resource is generated.
[0067] In addition, the second confidence corresponding to the third sensitive information can be determined according to the distribution of the first type of resource sensitive objects and the first type of resource insensitive objects in the target clustering result.
[0068] For example, in the target clustering result A1, the total number of objects is 100, the number of objects sensitive to the first type of resource is 51, the number of objects insensitive to the first type of resource is 20, and the number of objects whose sensitivity to the first type of resource is unknown is 29. In the clustering result A1, the number of objects sensitive to the first type of resource (51) is greater than the number of objects insensitive to the first type of resource (20), and it is determined that the third sensitive information indicates that the target object (the 29 objects whose sensitivity to the first type of resource is unknown include the target object) is sensitive to the first type of resource, and the second confidence corresponding to the third sensitive information is 51 / 100 = 0.51.
[0069] For another example, in the clustering result A2 in which the target object is located, the total number of objects is 100, the number of objects sensitive to the first type of resource is 30, the number of objects insensitive to the first type of resource is 50, and the number of objects whose sensitivity to the first type of resource is unknown is 20. The third sensitive information corresponding to the target object (the 20 objects whose sensitivity to the first type of resource is unknown include the target object) indicates that the target object is insensitive to the first type of resource, and the second confidence corresponding to the third sensitive information is 50 / 100 = 0.5.
[0070] In these embodiments, different objects with similar object attributes and / or similar historical matching information with the first type of resource are likely to have the same sensitivity to the first type of resource. Therefore, the third sensitive information of the target object can be determined according to the distribution of the first type of resource sensitive objects and the first type of resource insensitive objects in the target clustering result, so as to determine whether the target object is sensitive to the first type of resource through the clustering result to which the target object belongs, and the third sensitive information obtained can have a certain accuracy.
[0071] S203: determining the first sensitive information according to the second sensitive information and the third sensitive information.
[0072] The second sensitive information and the third sensitive information can be fused to obtain the first sensitive information.
[0073] In some embodiments, the sensitivity identification model also outputs a first confidence corresponding to the second sensitive information, and determining the third sensitive information of the target object to the first type of resource according to the distribution of the first type of resource sensitive objects and the first type of resource insensitive objects in the target clustering result further includes: determining a second confidence of the third sensitive information according to the distribution.
[0074] The step S203 includes:
[0075] If the second sensitive information and the third sensitive information are the same, the second sensitive information is taken as the first sensitive information; and the first confidence degree of the second sensitive information and the second confidence degree of the third sensitive information are fused, and the target confidence degree obtained by the fusion is taken as the confidence degree of the first sensitive information.
[0076] If the second sensitive information and the third sensitive information are not the same, the target confidence degree is determined according to the size of the first confidence degree and the second confidence degree; and the second sensitive information or the third sensitive information corresponding to the target confidence degree is taken as the first sensitive information.
[0077] Here, the second sensitive information is the same as the third sensitive information, including that the second sensitive information and the third sensitive information both indicate that the target object is sensitive to the first type of resource, or the second sensitive information and the third sensitive information both indicate that the target object is not sensitive to the first type of resource.
[0078] In some application scenarios, the second sensitive information is the same as the third sensitive information, and the first confidence degree and the second confidence degree can be fused according to a preset confidence degree fusion algorithm. The target confidence degree obtained by fusing the first confidence degree and the second confidence degree can be greater than the first confidence degree and the second confidence degree.
[0079] By fusing the first confidence degree and the second confidence degree, the target confidence degree obtained is greater than the first confidence degree and the second confidence degree. That is, if the second sensitive information and the third sensitive information are the same, the second sensitive information and the third sensitive information determined by different ways mutually confirm the sensitive information of the target object to the first type of resource, and the sensitive information of the target object to the first type of resource is more credible. In the case that the second sensitive information and the third sensitive information are the same, the confidence degree of the sensitive information of the target object to the first type of resource is changed by fusing the confidence degrees, so that the target confidence degree matches the real scene.
[0080] In some application scenarios, the second sensitive information and the third sensitive information are different, and a confidence degree with a larger value can be determined from the first confidence degree and the second confidence degree as the target confidence degree. One of the second sensitive information and the third sensitive information corresponding to the target confidence degree is taken as the first sensitive information. In these application scenarios, one of the second sensitive information and the third sensitive information corresponding to the confidence degree is taken as the first sensitive information, which can make the determined first sensitive information have a higher credibility.
[0081] S204: allocating the first type of resource to the target object based on the allocation strategy matched with the first sensitive information.
[0082] Specifically, the step S204 includes one or more of the following:
[0083] If the first sensitive information indicates that the target object is sensitive to the first type of resource, the first type of resource is allocated to the target object according to a first allocation strategy; wherein the first allocation strategy indicates to increase the number of the second type of resource associated with the first type of resource, or to increase the allocation amount or frequency of the first type of resource allocated to the target object.
[0084] Or, if the first sensitive information indicates that the target object is not sensitive to the first type of resource, the first type of resource is allocated to the target object according to a second allocation strategy, and the second allocation strategy indicates to reduce the allocation amount or frequency of the first type of resource allocated to the target object.
[0085] For the target object sensitive to the first type of resource, the first type of resource associated with more second type of resource is allocated to the target object by using the first allocation strategy, and the target object can obtain more second type of resource if using the first type of resource. Therefore, the frequency of using the first type of resource by the target object will also increase, which can improve the utilization rate of the first type of resource. In addition, when the target object is sensitive to the first type of resource, more first type of resource is needed, or more second type of resource associated with the first type of resource is needed, therefore, increasing the number of the second type of resource associated with the first type of resource, or increasing the allocation amount or frequency of the first type of resource allocated to the target object, can better meet the object demand.
[0086] If the first sensitive information indicates that the target object is not sensitive to the first type of resource, the first type of resource is allocated to the target object according to a second allocation strategy, wherein the second allocation strategy indicates to reduce the allocation amount or frequency of the first type of resource allocated to the target object, which can improve the resource utilization rate. In addition, when the target object is not sensitive to the first type of resource, less first type of resource is needed, or less second type of resource associated with the first type of resource is needed, therefore, reducing the allocation amount or frequency of the first type of resource allocated to the target object can better meet the object demand, and also save resources.
[0087] Figure 3 A principle flow chart of the resource allocation method provided by the embodiments of the present disclosure is shown in FIG. 1. Figure 3 As shown in FIG. 1, the execution subject determines the sensitivity label of each object in the plurality of objects according to the historical use information of the object to the first type of resource 31. The sensitivity label includes sensitive to the first type of resource, or not sensitive to the first type of resource, or unable to determine whether sensitive to the first type of resource.
[0088] The object whose sensitivity to the first type of resource is not determined is taken as a target object, and the object attribute of the target object and the historical matching information of the target object and the first type of resource are input into the pre-trained sensitivity identification model, and the second sensitivity information 32 of the target object is output by the sensitivity identification model. The sensitivity identification model also outputs the first confidence corresponding to the second sensitivity information.
[0089] For a plurality of objects with the above sensitivity labels, the plurality of objects are clustered according to the object attributes of the plurality of objects and the historical matching information of each object and the first type of resource, and n clustering results are obtained. For each clustering result, according to the distribution of objects with labels sensitive to the first type of resource and objects with labels not sensitive to the first type of resource in the clustering result, the third sensitivity information of the objects in the clustering result whose sensitivity to the first type of resource is not determined is determined, and the second confidence corresponding to the third sensitivity information is determined.
[0090] For each target object whose sensitivity to the first type of resource is not determined, the first sensitivity information 34 can be determined according to the second sensitivity information and the third sensitivity information of the target object. In addition, the target confidence of the first sensitivity information can also be determined according to the first confidence of the second sensitivity information and the second confidence of the third sensitivity information.
[0091] The first type of resource is allocated to the target object using the push strategy corresponding to the first sensitivity information.
[0092] In this embodiment, it is described that the sensitivity identification model is used to process the object attribute of the target object and the use information of the first type of resource to obtain the second sensitivity information, and a plurality of objects including the target object are clustered according to the object attribute of each object and the use information of the first type of resource to obtain a plurality of clustering results, the third sensitivity information of the target object is determined according to the distribution of objects sensitive to the first type of resource and objects not sensitive to the first type of resource in the target clustering result including the target object, and the first sensitivity information of the target object is determined according to the second sensitivity information and the third sensitivity information. The above content combines different data processing methods to determine the final first sensitivity information of the target object, which helps to improve the accuracy of determining the first sensitivity information of the target object, can improve the utilization rate of the first type of resource allocated to the target object by the first sensitivity information, and is conducive to better meeting the needs of the object.
[0093] In some optional implementations of the embodiment, the method further comprises:
[0094] First, the object attributes of a plurality of objects and the historical matching information of the objects and the first type of resource are obtained, and the sensitivity labels of the plurality of objects are determined according to the object attributes and the historical matching information. The sensitivity label indicates that the object is sensitive to the first type of resource or not sensitive to the first type of resource.
[0095] Specifically, for each object, the sensitivity label of the object is determined according to the object attribute of the object and the historical matching information of the object and the first type of resource.
[0096] Secondly, the object attribute of the plurality of objects sensitive to the first type of resource and the historical matching information of the plurality of objects and the first type of resource are used to form positive training data according to the sensitivity label; the object attribute of the plurality of objects not sensitive to the first type of resource and the historical matching information of the plurality of objects and the first type of resource are used to form negative training data according to the sensitivity label. The plurality of positive training data and the plurality of negative training data are used to form a training data set.
[0097] Finally, the sensitivity identification model is trained using the training data set to obtain a trained sensitivity identification model.
[0098] In some embodiments of the embodiment, the plurality of objects respectively have respective sensitivity labels, and the sensitivity label of each object includes one of the following: a first label sensitive to the first type of resource, a second label not sensitive to the first type of resource, and a third label not determined whether sensitive to the first type of resource; for any first object in the plurality of objects, the sensitivity label of the first object is determined based on the following steps:
[0099] First, the first allocation number of the first object in a preset time period is obtained, the first statistical number determined according to the number of the second type of resource associated with each time the first type of resource is allocated, the first use number of the first object in the preset time period, the second statistical number determined according to the number of the second type of resource allocated due to each time the first type of resource is used, and the use duration of the first type of resource.
[0100] Secondly, according to one or more of the first allocation number, the first statistical number, the first use number, the second statistical number and the use duration, and the threshold value corresponding to each of the one or more, the sensitivity label of the first object is determined, wherein,
[0101] The threshold value corresponding to the first allocation number is determined based on the respective first allocation numbers of the plurality of objects; the threshold value corresponding to the first statistical number is determined based on the respective first statistical numbers of the plurality of objects; the threshold value corresponding to the first use number is determined according to the respective first use numbers of the plurality of objects; the threshold value corresponding to the second statistical number is determined according to the respective second statistical numbers of the plurality of objects; and the threshold value corresponding to the use duration is determined by the use duration of the first type of resource by the plurality of objects in the preset time period.
[0102] In determining the sensitivity label of any one first object, the above-mentioned first allocation times, first statistical quantity, first use times, second statistical quantity and use duration and other parameters of multiple dimensions are referred to. Thus, the accuracy of determining the sensitivity label of the first object from the information of the multiple dimensions is higher. Training the sensitivity recognition model based on the training data obtained based on the object attributes and the use information of the objects on the first type of resources with the above-mentioned sensitivity labels helps to improve the accuracy of the prediction of the sensitivity recognition model trained.
[0103] Corresponding to the above Figures 1-2 The resource allocation method of the embodiment shown in the figure, Figure 3 An illustrative structural block diagram of a resource allocation apparatus provided by the embodiment of the present disclosure is shown. For ease of illustration, only parts related to the embodiment of the present disclosure are shown. Referring to Figure 4 , the apparatus 40 comprises a determination unit 401 and an allocation unit 402. Wherein,
[0104] The determination unit 401 is configured to determine first sensitive information of a target object on a first type of resource according to object attributes of the target object and historical matching information of the target object on the first type of resource; wherein, when use of the target object on the first type of resource meets a first preset condition, the target object is allocated a second type of resource associated with the first type of resource; the historical matching information comprises historical first type of information of the target object, historical use information of the target object on the first type of resource, and information of historical second type of resource allocated to the target object due to use of the first type of resource; the first sensitive information indicates whether the target object is sensitive to the first type of resource in a scenario of allocating the second type of resource to the target object based on use of the first type of resource;
[0105] The allocation unit 402 is configured to allocate the first type of resource to the target object according to a resource allocation strategy matched with the first sensitive information.
[0106] In some embodiments, the first sensitive information of the first type of resource indicates that the target object is sensitive to the first type of resource or is not sensitive to the first type of resource.
[0107] In some embodiments, the determination unit 401 is further configured to:
[0108] input the object attributes and the historical matching information into a pre-trained sensitivity recognition model to obtain second sensitive information of the target object on the first type of resource;
[0109] cluster a plurality of objects including the target object according to respective object attributes and historical matching information; determine third sensitive information of the target object on the first type of resource according to the obtained clustering result; wherein, the plurality of objects comprise objects sensitive to the first type of resource, objects not sensitive to the first type of resource, and objects not determined to be sensitive or not sensitive to the first type of resource.
[0110] determine the first sensitive information according to the second sensitive information and the third sensitive information.
[0111] In some embodiments, the determining unit 401 is further configured to:
[0112] obtain a target clustering result in which the target object is located from clustering results of clustering the plurality of objects;
[0113] determine third sensitive information of the target object on the first type of resource according to a distribution of the objects sensitive to the first type of resource and the objects not sensitive to the first type of resource in the target clustering result.
[0114] In some embodiments, the determining unit 401 is further configured to:
[0115] if the number of the objects sensitive to the first type of resource is greater than or equal to the number of the objects not sensitive to the first type of resource in the target clustering result, generate third sensitive information indicating that the target object is sensitive to the first type of resource;
[0116] if the number of the objects sensitive to the first type of resource is less than the number of the objects not sensitive to the first type of resource in the target clustering result, generate third sensitive information indicating that the target object is not sensitive to the first type of resource.
[0117] In some embodiments, the sensitivity identification model also outputs a second confidence degree corresponding to the second sensitive information; the determining unit 401 is further configured to determine a second confidence degree of the third sensitive information according to the distribution of the objects sensitive to the first type of resource and the objects not sensitive to the first type of resource in the target clustering result; and the determining unit 401 is further configured to:
[0118] if the second sensitive information and the third sensitive information are the same, take the second sensitive information as the first sensitive information; and fuse the first confidence degree of the second sensitive information and the second confidence degree of the third sensitive information, and take a target confidence degree obtained by the fusion as a confidence degree of the first sensitive information;
[0119] if the second sensitive information and the third sensitive information are not the same, determine a target confidence degree according to the size of the first confidence degree and the second confidence degree; and take the second sensitive information or the third sensitive information corresponding to the target confidence degree as the first sensitive information.
[0120] In some embodiments, the plurality of objects respectively have sensitivity labels, and the sensitivity label of each object includes one of the following: a first label indicating that the object is sensitive to the first type of resource, a second label indicating that the object is not sensitive to the first type of resource, and a third label indicating that whether the object is sensitive to the first type of resource is not determined.
[0121] The apparatus 40 further comprises a label determining unit (not shown in the figure), for any first object in the plurality of objects, the label determining unit is configured to determine a sensitivity label of the first object based on the following steps:
[0122] obtaining a first allocation number of the first object being allocated the first type of resource within a preset time period, a first statistical number determined according to a number of the second type of resource associated with each time of being allocated the first type of resource, a first use number of the first object to the first type of resource within the preset time period, a second statistical number determined according to a number of the second type of resource allocated due to each time of use of the first type of resource, and a use duration of the first type of resource;
[0123] determining the label of the first object according to one or more of the first allocation number, the first statistical number, the first use number, the second statistical number and the use duration, and a threshold value corresponding to the one or more, respectively, wherein,
[0124] the threshold value corresponding to the first allocation number is determined based on the first allocation number corresponding to the plurality of objects respectively; the threshold value corresponding to the first statistical number is determined based on the first statistical number corresponding to the plurality of objects respectively; the threshold value corresponding to the first use number is determined according to the first use number corresponding to the plurality of objects respectively; the threshold value corresponding to the second statistical number is determined according to the second statistical number corresponding to the plurality of objects respectively; and the threshold value corresponding to the use duration is determined by the use duration of the first type of resource within the preset time period by the plurality of objects.
[0125] In some embodiments, the allocation unit 402 is further configured to allocate the first type of resource to the target object based on one or more of the following:
[0126] if the first sensitive information indicates that the target object is sensitive to the first type of resource, the first type of resource is allocated to the target object according to a first allocation strategy; wherein the first allocation strategy indicates to increase the number of the second type of resource associated with the first type of resource, or to increase the allocation amount or frequency of the first type of resource allocated to the target object;
[0127] or, if the first sensitive information indicates that the target object is not sensitive to the first type of resource, the first type of resource is allocated to the target object according to a second allocation strategy, and the second allocation strategy indicates to reduce the allocation amount or frequency of the first type of resource allocated to the target object.
[0128] In order to implement the above-mentioned embodiments, the embodiments of the present disclosure further provide an electronic device.
[0129] Reference Figure 5The diagram illustrates a structural schematic of an electronic device 500 suitable for implementing embodiments of the present disclosure. The electronic device 500 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), tablet computers, portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0130] like Figure 5 As shown, the electronic device 500 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0131] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 5 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0132] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program comprising program code for performing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
[0133] It should be noted that the computer readable medium described above in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination thereof. The computer readable storage medium may, for example, be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer readable storage medium can be any tangible medium that contains or stores a program (computer executable instructions) that can be used by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, the computer readable signal medium can include a data signal carried in a baseband or as part of a carrier wave, in which the computer readable program code is carried. Such a propagated data signal can take any of a variety of forms, including but not limited to electro-magnetic, optical, or any suitable combination thereof. The computer readable signal medium can also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to wire, cable, RF (radio frequency), etc., or any suitable combination of the above.
[0134] The computer readable medium described above can be included in the electronic device described above; or can exist separately from the electronic device and be not assembled into the electronic device.
[0135] The computer readable medium described above carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the embodiments described above.
[0136] Computer program code for carrying out operations of the present disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0137] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a procedure, or a part of code, which comprises one or more executable instructions for implementing the specific logical functions specified for the block. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may
[0138] The units described in the embodiments of the present disclosure can be implemented by software, or by hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.
[0139] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
[0140] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include a lined- up electrical connection, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0141] The above description is only preferred embodiments of the present disclosure and the explanation of the applied technical principles. It should be understood by those skilled in the art that the disclosure range involved in the present disclosure is not limited to the technical solutions formed by the specific combinations of the above technical features, and also covers other technical solutions formed by any combination of the above technical features or equivalent features without departing from the above disclosed concept. For example, the technical solutions formed by replacing the above features with the technical features disclosed in the present disclosure (but not limited to) having similar functions.
[0142] In addition, although each operation is described in a particular order, this should not be understood as requiring the operations to be performed in the specific order shown or in a sequential order. In certain circumstances, multitasking and parallel processing can be advantageous. Similarly, although several implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments can also be combined in a single embodiment. Conversely, various features described in the context of a single embodiment can also be separated and implemented in multiple embodiments.
[0143] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
1. A resource allocation method, comprising: The object attributes of the target object and the historical matching information between the target object and the first type of resource are input into a pre-trained sensitivity recognition model to obtain the second sensitivity information of the target object to the first type of resource. Based on their respective object attributes and the historical matching information, multiple objects, including the target object, are clustered; based on the clustering results, the third sensitivity information of the target object to the first type of resource is determined; wherein, the multiple objects include objects sensitive to the first type of resource, objects insensitive to the first type of resource, and objects whose sensitivity to the first type of resource is not determined; Based on the second sensitive information and the third sensitive information, a first sensitive information about the target object regarding the first type of resource is determined; wherein, when the target object's use of the first type of resource meets a first preset condition, a second type of resource associated with the first type of resource is allocated to the target object; the historical matching information includes information about the first type of resource historically allocated to the target object, historical usage information of the first type of resource, and information about the second type of resource historically allocated due to the use of the first type of resource; the first sensitive information indicates whether the target object is sensitive to the first type of resource in a scenario where the second type of resource is allocated to the target object based on the use of the first type of resource; According to the resource allocation strategy that matches the first sensitive information, the first type of resources are allocated to the target object.
2. The method according to claim 1, wherein, The first sensitivity information of the first type of resource indicates that the target object is sensitive to the first type of resource or is not sensitive to the first type of resource.
3. The method according to claim 1, wherein, The step involves clustering multiple objects, including the target object, based on their respective object attributes and the historical matching information. Based on the obtained clustering results, the third sensitive information of the target object regarding the first type of resource is determined, including: Obtain the target cluster result of the target object from the clustering results obtained by clustering the multiple objects; Based on the distribution of objects sensitive to the first type of resource and objects insensitive to the first type of resource in the target clustering results, the third sensitivity information of the target object to the first type of resource is determined.
4. The method according to claim 3, wherein, The step of determining the third sensitivity information of the target object to the first type of resource based on the distribution of objects sensitive to the first type of resource and objects insensitive to the first type of resource in the target clustering results includes: If, in the target clustering result, the number of objects sensitive to the first type of resource is greater than or equal to the number of objects insensitive to the first type of resource, then third sensitive information indicating that the target object is sensitive to the first type of resource is generated; If the number of objects sensitive to the first type of resource in the target clustering result is less than the number of objects insensitive to the first type of resource, then third sensitive information indicating that the target object is insensitive to the first type of resource is generated.
5. The method according to claim 3, wherein, The sensitivity identification model also outputs a first confidence level corresponding to the second sensitivity information; the step of determining the third sensitivity information of the target object to the first type of resource based on the distribution of objects sensitive to the first type of resource and objects insensitive to the first type of resource in the target clustering result further includes: determining the second confidence level of the third sensitivity information based on the distribution; The step of determining the first sensitive information based on the second sensitive information and the third sensitive information includes: If the second sensitive information and the third sensitive information are the same, the second sensitive information is used as the first sensitive information; and the first confidence level of the second sensitive information and the second confidence level of the third sensitive information are fused, and the target confidence level obtained by fusion is used as the confidence level of the first sensitive information; If the second sensitive information and the third sensitive information are different, a target confidence level is determined based on the magnitude of the first confidence level and the second confidence level; the second sensitive information or the third sensitive information corresponding to the target confidence level is used as the first sensitive information.
6. The method according to claim 1, wherein, The plurality of objects each have a sensitivity label, and the sensitivity label of each object includes one of the following: a first label that is sensitive to the first type of resource, a second label that is not sensitive to the first type of resource, and a third label that is not determined to be sensitive to the first type of resource; For any first object among the plurality of objects, the method further includes determining a sensitivity label for the first object based on the following steps: obtaining a first allocation number of the first object to the first type of resource within a preset time period, a first statistical quantity determined based on the number of second type resources associated with each allocation of the first type of resource, a first usage number of the first object to the first type of resource within the preset time period, a second statistical quantity determined based on the number of second type resources allocated due to each usage of the first type of resource, and the usage duration of the first type of resource; The label of the first object is determined based on one or more of the following: the first allocation count, the first statistical count, the first usage count, the second statistical count, and the usage duration, as well as the threshold corresponding to each of the one or more of these factors. The threshold corresponding to the first allocation number is determined based on the first allocation number corresponding to each of the multiple objects; the threshold corresponding to the first statistical quantity is determined based on the first statistical quantity corresponding to each of the multiple objects; the threshold corresponding to the first usage number is determined based on the first usage number corresponding to each of the multiple objects; the threshold corresponding to the second statistical quantity is determined based on the second statistical quantity corresponding to each of the multiple objects; the threshold corresponding to the usage duration is determined by the usage duration of the first type of resource by multiple objects within the preset time period.
7. The method according to claim 1, wherein, The allocation of a first type of resource to the target object according to a resource allocation strategy matching the first sensitive information includes one or more of the following: If the first sensitive information indicates that the target object is sensitive to the first type of resource, the first type of resource is allocated to the target object according to the first allocation strategy; wherein, the first allocation strategy indicates increasing the number of second type resources associated with the first type of resource, or increasing the allocation amount or frequency of the first type of resource allocated to the target object; Alternatively, if the first sensitive information indicates that the target object is not sensitive to the first type of resource, the first type of resource is allocated to the target object according to the second allocation strategy, wherein the second allocation strategy indicates that the allocation amount or frequency of the first type of resource allocated to the target object is reduced.
8. A resource allocation apparatus, said resource allocation apparatus being used to implement the resource allocation method according to any one of claims 1-7, comprising: A determining unit is configured to determine first sensitivity information of the target object to the first type of resource based on the object attributes of the target object and historical matching information between the target object and the first type of resource; wherein, when the use of the first type of resource by the target object meets a first preset condition, a second type of resource associated with the first type of resource is allocated to the target object; the historical matching information includes information on the first type of resource that the target object was historically allocated, information on the historical use of the first type of resource, and information on the second type of resource that was historically allocated due to the use of the first type of resource; the first sensitivity information indicates whether the target object is sensitive to the first type of resource in a scenario where the second type of resource is allocated to the target object based on the use of the first type of resource; The allocation unit is used to allocate a first type of resource to the target object according to a resource allocation strategy that matches the first sensitive information.
9. An electronic device, wherein, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, wherein, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the method as described in any one of claims 1 to 7.
11. A computer program product comprising a computer program, wherein, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Virtual resource allocation method and device
CN113760521A