

技术领域technical field
本申请涉及计算机设备技术领域,尤其是涉及到一种资源发放方法、装置、存储介质和计算机设备。The present application relates to the technical field of computer equipment, and in particular to a method, device, storage medium and computer equipment for resource distribution.
背景技术Background technique
随着电子商务的不断发展,电子商务在用户的日常生活中占据越来越重要的地位。优惠券作为智能营销的一种有效手段,能够在激活和提升用户潜在下单需求的同时为平台引进新用户。相关技术中,通常采用网络模型进行优惠券的匹配,但在训练网络模型时常常需要大量的样本数据作为支撑。若样本数据较少,将大大降低网络模型的准确度,不利于精确地按需发放优惠券。With the continuous development of e-commerce, e-commerce occupies an increasingly important position in users' daily life. As an effective means of intelligent marketing, coupons can introduce new users to the platform while activating and enhancing users' potential order needs. In related technologies, a network model is usually used to match coupons, but a large amount of sample data is often required as support when training the network model. If the sample data is small, the accuracy of the network model will be greatly reduced, which is not conducive to accurately issuing coupons on demand.
发明内容Contents of the invention
有鉴于此,本申请提供了一种资源发放方法、装置、存储介质和计算机设备,通过用户特征和资源特征的相似度对比,将资源精准发到需求的用户手中,从而提高资源利用率和转化率。In view of this, this application provides a resource distribution method, device, storage medium and computer equipment, through the comparison of the similarity between user characteristics and resource characteristics, resources can be accurately distributed to users who need them, thereby improving resource utilization and conversion Rate.
根据本申请的一个方面,提供了一种资源发放方法,包括:According to one aspect of the present application, a resource distribution method is provided, including:
获取资源核销用户和预设资源;Obtain resource write-off users and preset resources;
比对资源核销用户和目标用户的用户特征,确定资源核销用户和目标用户之间的第一相似度;Comparing the user characteristics of the resource write-off user and the target user, and determining the first similarity between the resource write-off user and the target user;
比对预设资源和第一用户对应的历史资源的资源特征,确定预设资源和历史资源之间的第二相似度,第一用户为第一相似度大于或等于第一预设相似度的资源核销用户;Comparing the resource characteristics of the preset resource and the historical resource corresponding to the first user, and determining the second similarity between the preset resource and the historical resource, the first user is a user whose first similarity is greater than or equal to the first preset similarity Resource write-off users;
根据第一相似度和第二相似度,确定目标用户相对于预设资源核销概率;According to the first similarity degree and the second similarity degree, determine the write-off probability of the target user relative to the preset resource;
按照资源核销概率,将预设资源发放至目标用户。According to the resource write-off probability, the preset resources are distributed to the target users.
可选地,根据第一相似度和第二相似度,确定目标用户相对于预设资源核销概率,具体包括:Optionally, according to the first similarity and the second similarity, determining the write-off probability of the target user relative to the preset resource specifically includes:
若第二相似度大于或等于第二预设相似度,将第二相似度对应的历史资源确定为第一资源;If the second similarity is greater than or equal to the second preset similarity, determining the historical resource corresponding to the second similarity as the first resource;
若历史资源包括第一资源,将历史资源对应的第一用户确定为第二用户;If the historical resource includes the first resource, determining the first user corresponding to the historical resource as the second user;
根据第二用户对应的第一相似度和第二用户对应第一资源的第二相似度,计算资源核销概率。The resource write-off probability is calculated according to the first similarity degree corresponding to the second user and the second similarity degree corresponding to the first resource by the second user.
可选地,根据第二用户对应的第一相似度和第二用户对应第一资源的第二相似度,计算资源核销概率,具体包括:Optionally, calculating the resource write-off probability according to the first similarity corresponding to the second user and the second similarity corresponding to the first resource by the second user, specifically includes:
计算第二用户对应的第一相似度与第二用户对应第一资源的第二相似度的乘积;calculating the product of the first similarity degree corresponding to the second user and the second similarity degree corresponding to the first resource by the second user;
根据第二用户的数量计算乘积的均值作为资源核销概率。The mean value of the product is calculated according to the quantity of the second users as the resource write-off probability.
可选地,按照资源核销概率,将所述预设资源发放至目标用户,具体包括:Optionally, according to the resource write-off probability, the preset resource is released to the target user, specifically including:
若资源核销概率大于预设核销概率,将资源核销概率对应的预设资源发放至目标用户。If the resource write-off probability is greater than the preset write-off probability, the preset resource corresponding to the resource write-off probability is issued to the target user.
可选地,资源发放方法还包括:Optionally, the resource distribution method further includes:
若预设资源成功发放至目标用户,输出预设资源的发放提示信息。If the preset resource is successfully distributed to the target user, output a prompt message for the distribution of the preset resource.
根据本申请的另一方面,提供了一种资源发放装置,包括:According to another aspect of the present application, a device for issuing resources is provided, including:
获取模块,用于获取资源核销用户和预设资源;Acquisition module, used to obtain resource write-off users and preset resources;
确定模块,用于比对资源核销用户和目标用户的用户特征,确定资源核销用户和目标用户之间的第一相似度;以及,比对预设资源和第一用户对应的历史资源的资源特征,确定预设资源和历史资源之间的第二相似度,第一用户为第一相似度大于或等于第一预设相似度的资源核销用户;以及,根据第一相似度和第二相似度,确定目标用户相对于预设资源核销概率;The determination module is used to compare the user characteristics of the resource write-off user and the target user, and determine the first similarity between the resource write-off user and the target user; and compare the default resource and the historical resource corresponding to the first user. Resource characteristics, determining the second similarity between the preset resource and the historical resource, the first user is a resource verification user whose first similarity is greater than or equal to the first preset similarity; and, according to the first similarity and the second 2. Similarity, to determine the write-off probability of the target user relative to the preset resource;
资源配置模块,用于按照资源核销概率,将预设资源发放至目标用户。The resource configuration module is configured to distribute preset resources to target users according to the resource write-off probability.
可选地,确定模块,具体用于若第二相似度大于或等于第二预设相似度,将第二相似度对应的历史资源确定为第一资源;若历史资源包括第一资源,将历史资源对应的第一用户确定为第二用户;根据第二用户对应的第一相似度和第二用户对应第一资源的第二相似度,计算资源核销概率。Optionally, the determining module is specifically configured to determine the historical resource corresponding to the second similarity as the first resource if the second similarity is greater than or equal to the second preset similarity; if the historical resource includes the first resource, the historical resource The first user corresponding to the resource is determined as the second user; and the resource write-off probability is calculated according to the first similarity degree corresponding to the second user and the second similarity degree corresponding to the first resource by the second user.
可选地,确定模块,具体用于计算第二用户对应的第一相似度与第二用户对应第一资源的第二相似度的乘积;根据第二用户的数量计算乘积的均值作为资源核销概率。Optionally, the determining module is specifically configured to calculate the product of the first similarity corresponding to the second user and the second similarity corresponding to the first resource of the second user; calculate the mean value of the product according to the number of second users as the resource write-off probability.
可选地,资源配置模块,具体用于若资源核销概率大于预设核销概率,将资源核销概率对应的预设资源发放至目标用户。Optionally, the resource configuration module is specifically configured to distribute the preset resource corresponding to the resource write-off probability to the target user if the resource write-off probability is greater than the preset write-off probability.
可选地,资源发放装置还包括:Optionally, the resource distribution device also includes:
提示模块,用于若预设资源成功发放至目标用户,输出预设资源的发放提示信息。The prompting module is configured to output the prompt information of the preset resource distribution if the preset resource is successfully distributed to the target user.
根据本申请再一个方面,提供了可读存储介质,其上存储有程序或指令,程序或指令被处理器执行时实现上述资源发放方法的步骤。According to still another aspect of the present application, a readable storage medium is provided, on which programs or instructions are stored, and when the programs or instructions are executed by a processor, the steps of the above method for resource allocation are implemented.
根据本申请又一个方面,提供了一种计算机设备,包括存储介质、处理器及存储在存储介质上并可在处理器上运行的计算机程序,处理器执行程序时实现上述资源发放方法的步骤。According to yet another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and operable on the processor. When the processor executes the program, the steps of the above resource allocation method are implemented.
借由上述技术方案,首先获取存在资源核销操作的资源核销用户和平台预备向用户发放的预设资源。通过比对资源核销用户和符合资源发放条件的目标用户的用户特征之间的差异,确定资源核销用户和目标用户之间的第一相似度,并从资源核销用户中筛选出第一相似度大于或等于第一预设相似度的第一用户,从而利用第一相似度确定可能与目标用户具有相似资源使用偏好的用户。再比对预设资源和第一用户曾经使用的历史资源的资源特征,确定预设资源和历史资源之间的第二相似度,从而利用第二相似度确定预设资源中可能符合第一用户偏好的资源。由此,根据第二用户的第一相似度和第二相似度,可确定目标用户对不同预设资源的资源核销概率。最后,按照资源核销概率按需将预设资源发放至目标用户。从而无需网络模型训练即可实现自动化的资源动态分配,即使在样本数据量较少的情况下,仍然能够精准地将资源发放至更需要的目标用户手中,在保证了资源发放的客观性与公平性的同时,使目标用户能够获得更符合自身需求的资源,不仅提高了资源的使用效果,有利于提升成交总额,还能够为用户提供适宜的优惠政策,提升用户购物体验,有助于增强用户忠诚度。With the above technical solution, first obtain the resource write-off users who have resource write-off operations and the preset resources that the platform is going to issue to the users. By comparing the difference between the user characteristics of the resource write-off user and the target user who meets the resource release conditions, determine the first similarity between the resource write-off user and the target user, and filter out the first one from the resource write-off users. The first user whose similarity is greater than or equal to the first preset similarity is used to determine users who may have similar resource usage preferences to the target user by using the first similarity. Then compare the resource characteristics of the preset resources and the historical resources used by the first user to determine the second similarity between the preset resources and the historical resources, so as to use the second similarity to determine that the preset resources may match the first user preferred resource. Thus, according to the first similarity degree and the second similarity degree of the second user, the resource write-off probability of the target user for different preset resources can be determined. Finally, according to the resource write-off probability, the preset resources are released to the target users on demand. In this way, automatic dynamic allocation of resources can be realized without network model training. Even in the case of a small amount of sample data, resources can still be accurately distributed to target users who need them more, ensuring the objectivity and fairness of resource distribution At the same time, it enables target users to obtain resources that are more in line with their own needs, which not only improves the use effect of resources and helps increase the total turnover, but also provides users with appropriate preferential policies, improves user shopping experience, and helps enhance user experience. loyalty.
上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。The above description is only an overview of the technical solution of the present application. In order to better understand the technical means of the present application, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present application more obvious and understandable , the following specifically cites the specific implementation manner of the present application.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:
图1示出了本申请实施例提供的资源发放方法的流程示意图;FIG. 1 shows a schematic flowchart of a method for issuing resources provided by an embodiment of the present application;
图2示出了本申请实施例提供的资源发放装置的结构框图。FIG. 2 shows a structural block diagram of a device for issuing resources provided by an embodiment of the present application.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present application will be described in detail with reference to the drawings and embodiments. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本申请的限制。Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present application, and are not construed as limiting the present application.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“相接”到另一元件时,它可以直接连接或相接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“相接”可以包括无线连接或无线稠接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the specification of the present application refers to the presence of said features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "connected" to another element, it can be directly connected or connected to the other element or intervening elements may also be present. In addition, "connection" or "connection" as used herein may include wireless connection or wireless bonding. The expression "and/or" used herein includes all or any elements and all combinations of one or more associated listed items.
现在,将参照附图更详细地描述根据本申请的示例性实施例。然而,这些示例性实施例可以多种不同的形式来实施,并且不应当被解释为只限于这里所阐述的实施例。应当理解的是,提供这些实施例是为了使得本申请的公开彻底且完整,并且将这些示例性实施例的构思充分传达给本领域普通技术人员。Now, exemplary embodiments according to the present application will be described in more detail with reference to the accompanying drawings. These example embodiments may, however, be embodied in many different forms and should not be construed as limited to only the embodiments set forth herein. It should be understood that these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of these exemplary embodiments to those of ordinary skill in the art.
在本实施例中提供了一种资源发放方法,如图1所示,该方法包括:In this embodiment, a resource distribution method is provided, as shown in FIG. 1, the method includes:
步骤101,获取资源核销用户和预设资源;
其中,资源核销用户为存在资源核销操作,也即曾经使用资源进行抵扣消费的用户。预设资源为平台可向用户发放的资源,预设资源可以是优惠券、代币、红包等。Among them, the resource write-off user is a user who has a resource write-off operation, that is, a user who has used resources to deduct consumption. The default resources are the resources that the platform can distribute to users. The default resources can be coupons, tokens, red envelopes, etc.
步骤102,比对资源核销用户和目标用户的用户特征,确定资源核销用户和目标用户之间的第一相似度;
具体地,用户特征包括:用户消费能力等级、价格敏感度、忠诚度、资源需求强度、场景偏好特征、用户行为特征、资源偏好特征等。Specifically, user characteristics include: user consumption ability level, price sensitivity, loyalty, resource demand intensity, scene preference characteristics, user behavior characteristics, resource preference characteristics, etc.
值得一提的是,目标用户表示可分配资源的用户。在将目标用户的属性特征输入资源分配模型之前,可通过预设条件对平台注册的所有用户进行筛选,从而确定可分配资源的目标用户。例如,将存在购买记录的用户作为目标用户,或者处于登陆状态的用户作为目标用户。通过用户筛选不仅减少了模型数据处理的数据量,降低系统运行压力,而且避免将资源分配给无需资源的用户,有助于更合理的分配资源。It is worth mentioning that target users represent users who can allocate resources. Before inputting the attributes and characteristics of target users into the resource allocation model, all users registered on the platform can be screened through preset conditions, so as to determine the target users who can allocate resources. For example, a user with a purchase record is taken as a target user, or a user who is in a login state is taken as a target user. Filtering by users not only reduces the amount of data processed by model data, reduces the pressure on system operation, but also avoids allocating resources to users who do not need resources, which helps to allocate resources more reasonably.
步骤103,比对预设资源和第一用户对应的历史资源的资源特征,确定预设资源和历史资源之间的第二相似度;
其中,第一用户为第一相似度大于或等于第一预设相似度的资源核销用户,第一预设相似度可根据业务需求的精确度及收益目标合理设置,例如,80%、95%等。Among them, the first user is a resource verification user whose first similarity is greater than or equal to the first preset similarity. The first preset similarity can be reasonably set according to the accuracy of business requirements and revenue goals, for example, 80%, 95% %wait.
具体地,资源特征包括:资源类型、资源数量、资源门槛、资源额度、资源折扣、资源有效期等,资源可以是优惠券、代币、红包等。例如,资源特征为满100减30的优惠券或者100000的代币。Specifically, resource characteristics include: resource type, resource quantity, resource threshold, resource quota, resource discount, resource validity period, etc. Resources can be coupons, tokens, red envelopes, etc. For example, the resource feature is a coupon of 100 minus 30 or a token of 100,000.
在该实施例中,通过比对资源核销用户和符合资源发放条件的目标用户的用户特征之间的差异,确定资源核销用户和目标用户之间的第一相似度,并从资源核销用户中筛选出第一相似度大于或等于第一预设相似度的第一用户,从而利用第一相似度确定可能与目标用户具有相似资源使用偏好的用户。再比对预设资源和第一用户曾经使用的历史资源的资源特征,确定预设资源和历史资源之间的第二相似度,从而利用第二相似度确定预设资源中可能符合第一用户偏好的资源。从而能够利用第一相似度和第二用户对应第一资源的第二相似度对目标用户可能需要的资源进行匹配,以便于后续进行精准的资源发放。In this embodiment, by comparing the difference between the user characteristics of the resource cancellation user and the target user who meets the resource issuance conditions, the first similarity between the resource cancellation user and the target user is determined, and the resource cancellation The first users whose first similarity is greater than or equal to the first preset similarity are screened out from the users, so as to determine users who may have similar resource usage preferences to the target user by using the first similarity. Then compare the resource characteristics of the preset resources and the historical resources used by the first user to determine the second similarity between the preset resources and the historical resources, so as to use the second similarity to determine that the preset resources may match the first user preferred resource. Therefore, the first similarity and the second similarity of the second user corresponding to the first resource can be used to match the resources that the target user may need, so as to facilitate subsequent accurate resource distribution.
步骤104,根据第一相似度和第二相似度,确定目标用户相对于预设资源核销概率;
在该实施例中,在确定第一相似度和第二用户对应第一资源的第二相似度之后,以第一相似度和第二相似度为依据,即可确定出目标用户对不同预设资源的资源核销概率。从而通过资源核销概率分析出不同目标用户对不同资源的需求度,以便于后续通过资源核销概率将对应的预设资源有针对性的分发给不同的目标用户。由此,即使在样本数据量较少的情况下,仍然能够精准地将资源发放至更需要的目标用户手中,达到自动化资源动态分配的目的,提升了提高资源的转化率。In this embodiment, after determining the first similarity and the second similarity of the second user corresponding to the first resource, based on the first similarity and the second similarity, it can be determined that the target user has different preset The resource write-off probability of the resource. Therefore, the demand degree of different target users for different resources is analyzed through the resource write-off probability, so that the corresponding preset resources can be distributed to different target users in a targeted manner through the resource write-off probability. As a result, even when the amount of sample data is small, resources can still be accurately distributed to target users who need more, achieving the purpose of automatic resource dynamic allocation and improving the conversion rate of resources.
在实际应用场景中,步骤104,也即根据第一相似度和第二相似度,确定目标用户相对于预设资源核销概率,具体包括:In an actual application scenario,
步骤104-1,若第二相似度大于或等于第二预设相似度,将第二相似度对应的历史资源确定为第一资源;Step 104-1, if the second similarity is greater than or equal to the second preset similarity, determine the historical resource corresponding to the second similarity as the first resource;
其中,第二预设相似度可根据业务需求的精确度及收益目标合理设置,例如,85%、90%等。Wherein, the second preset similarity degree can be reasonably set according to the accuracy of the business requirement and the profit target, for example, 85%, 90% and so on.
步骤104-2,若历史资源包括第一资源,将历史资源对应的第一用户确定为第二用户;Step 104-2, if the historical resource includes the first resource, determine the first user corresponding to the historical resource as the second user;
步骤104-3,根据第二用户对应的第一相似度和第二用户对应第一资源的第二相似度,计算资源核销概率。Step 104-3, calculating the resource write-off probability according to the first similarity degree corresponding to the second user and the second similarity degree corresponding to the first resource by the second user.
在该实施例中,比对第二相似度和第二预设相似度之间的大小关系,当第二相似度大于或等于第二预设相似度,将第二相似度对应的历史资源作为符合平台方优惠策略的第一资源。并将历史核销过第一资源的第一用户记作第二用户,以从众多第一用户中筛选出曾经使用过与预设资源相似的第一资源的第二用户。根据第二用户与目标用户的第一相似度以及该第二用户对应的第一资源与预设资源的第二相似度,可确定目标用户对备不同预设资源的资源核销概率。以便于后续通过资源核销概率将对应的预设资源有针对性的分发给不同的目标用户。那么,在样本数据量较少的情况下,仍然能够精准地将资源发放至更需要的目标用户手中,达到自动化资源动态分配的目的,进而提升了提高资源的转化率。In this embodiment, the size relationship between the second similarity and the second preset similarity is compared, and when the second similarity is greater than or equal to the second preset similarity, the historical resource corresponding to the second similarity is used as The first resource that conforms to the platform's preferential strategy. And record the first user who has canceled the first resource in the history as the second user, so as to screen out the second user who has used the first resource similar to the preset resource from among the many first users. According to the first similarity between the second user and the target user and the second similarity between the first resource corresponding to the second user and the preset resource, the resource write-off probability of different preset resources prepared by the target user can be determined. In order to facilitate the subsequent targeted distribution of corresponding preset resources to different target users through the resource write-off probability. Then, in the case of a small amount of sample data, resources can still be accurately distributed to target users who need more, so as to achieve the purpose of automatic resource dynamic allocation, thereby improving the conversion rate of resources.
进一步地,作为上述实施例具体实施方式的细化和扩展,为了完整说明本实施例的具体实施过程,步骤104-3,具体包括:计算第二用户对应的第一相似度与第二用户对应第一资源的第二相似度的乘积;根据第二用户的数量计算乘积的均值作为资源核销概率。Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully describe the specific implementation process of this embodiment, step 104-3 specifically includes: calculating the first similarity corresponding to the second user and corresponding to the second user The product of the second similarity of the first resource; calculating the mean value of the product according to the quantity of the second users as the resource write-off probability.
在该实施例中,筛选出第一相似度符合第一预设相似度条件,且历史资源包含第一资源的第二用户后,将第二用户和第二用户对应的第一资源作为数据集。由此,任一目标用户对于预设资源的核销概率可抽象为数据集中全部第二用户的第一相似度与该第二用户的第一资源对应第二相似度的乘积的算术平均。In this embodiment, after filtering out that the first similarity meets the first preset similarity condition, and the historical resource contains the second user of the first resource, the second user and the first resource corresponding to the second user are used as a data set . Thus, the cancellation probability of any target user for a preset resource can be abstracted as the arithmetic mean of the product of the first similarity of all second users in the data set and the second similarity of the second user's corresponding first resource.
以筛选出n个第二用户为例,则计算资源核销概率采用如下公式:Taking the selection of n second users as an example, the following formula is used to calculate the resource write-off probability:
式中,表示资源核销概率,qc表示第c个第二用户的第一相似度,pc表示第c个第二用户的第一资源对应的第二相似度,(1≤c≤n)。In the formula, Indicates the resource write-off probability, qc indicates the first similarity degree of the c-th second user, pc indicates the second similarity degree corresponding to the first resource of the c-th second user, (1≤c≤n).
例如,预设资源为满100减50的优惠券。通过用户特征比对从资源核销用户中筛选出与目标用户W相似的用户A、用户B和用户C。其中,用户A曾经核销过满100减50的优惠券、满300减100的优惠券,用户B使用过5元红包,用户C核销过满100减40的优惠券、满100减50的优惠券。通过比对可以将满100减50的优惠券作为第一资源。此时,用户A和用户C被记作第二用户。参照上述公式可以计算出目标用户W相对于预设资源的资源核销概率For example, the default resource is a coupon for spending 100 minus 50. User A, user B, and user C who are similar to the target user W are screened out from the resource write-off users through user feature comparison. Among them, user A has written off coupons of 100 minus 50 and 300 minus 100, user B has used 5 yuan red envelopes, and user C has canceled coupons of 100 minus 40 and 100 minus 50 coupon. Through comparison, you can use the coupon of 100 minus 50 as the first resource. At this time, user A and user C are counted as the second users. With reference to the above formula, the resource write-off probability of the target user W relative to the preset resource can be calculated
步骤105,按照资源核销概率,将所述预设资源发放至目标用户。
本申请实施例提出的资源发放方法,首先获取存在资源核销操作的资源核销用户和平台预备向用户发放的预设资源。通过比对资源核销用户和符合资源发放条件的目标用户的用户特征之间的差异,确定资源核销用户和目标用户之间的第一相似度,并从资源核销用户中筛选出第一相似度大于或等于第一预设相似度的第一用户,从而利用第一相似度确定可能与目标用户具有相似资源使用偏好的用户。再比对预设资源和第一用户曾经使用的历史资源的资源特征,确定预设资源和历史资源之间的第二相似度,从而利用第二相似度确定预设资源中可能符合第一用户偏好的资源。由此,根据第二用户的第一相似度和第二用户对应第一资源的第二相似度,可确定目标用户对不同预设资源的资源核销概率。最后,按照资源核销概率按需将预设资源发放至目标用户。从而无需网络模型训练即可实现自动化的资源动态分配,即使在样本数据量较少的情况下,仍然能够精准地将资源发放至更需要的目标用户手中,在保证了资源发放的客观性与公平性的同时,使目标用户能够获得更符合自身需求的资源,不仅提高了资源的使用效果,有利于提升成交总额,还能够为用户提供适宜的优惠政策,提升用户购物体验,有助于增强用户忠诚度。The resource distribution method proposed in the embodiment of this application first obtains the resource write-off users who have resource write-off operations and the preset resources that the platform intends to release to the users. By comparing the difference between the user characteristics of the resource write-off user and the target user who meets the resource release conditions, determine the first similarity between the resource write-off user and the target user, and filter out the first one from the resource write-off users. The first user whose similarity is greater than or equal to the first preset similarity is used to determine users who may have similar resource usage preferences to the target user by using the first similarity. Then compare the resource characteristics of the preset resources and the historical resources used by the first user to determine the second similarity between the preset resources and the historical resources, so as to use the second similarity to determine that the preset resources may match the first user preferred resource. Thus, according to the first similarity degree of the second user and the second similarity degree of the second user corresponding to the first resource, the resource write-off probability of the target user for different preset resources can be determined. Finally, according to the resource write-off probability, the preset resources are released to the target users on demand. In this way, automatic dynamic allocation of resources can be realized without network model training. Even in the case of a small amount of sample data, resources can still be accurately distributed to target users who need them more, ensuring the objectivity and fairness of resource distribution At the same time, it enables target users to obtain resources that are more in line with their own needs, which not only improves the use effect of resources and helps increase the total turnover, but also provides users with appropriate preferential policies, improves user shopping experience, and helps enhance user experience. loyalty.
具体举例来说,(1)以历史7日内核销优惠券用户作为候选集用户(资源核销用户),分别对每个待发券用户(目标用户)与候选集进行相似度计算,找出每一个待发券用户对应的大于第一预设相似度的相似用户(第一预设相似度的设定取决于模型精准度的业务需求)。For example, (1) take the user who has canceled coupons within the past 7 days as the candidate set user (resource cancellation user), and calculates the similarity between each coupon user (target user) to be issued and the candidate set to find out Each user to be issued coupons corresponds to similar users greater than the first preset similarity (the setting of the first preset similarity depends on the business requirements of model accuracy).
(2)每一个待发券用户对应的相似用户的历史核销券(历史资源)形成优惠券候选集,每一张待发放优惠券与优惠券候选集进行相似度计算(优惠券特征包括类型、门槛、额度、折扣、有效期等),找出大于第二预设相似度的相似优惠券(第二预设相似度的设定取决于模型精准度的业务需求)。(2) The historical verification coupons (historical resources) of similar users corresponding to each coupon user to be issued form a coupon candidate set, and each coupon to be issued is calculated with the coupon candidate set (coupon features include type , threshold, quota, discount, validity period, etc.), find similar coupons that are greater than the second preset similarity (the setting of the second preset similarity depends on the business requirements of model accuracy).
(3)针对任意一张待发送优惠券i,对任一待发券用户j而言,基于步骤(1)和步骤(2)筛选用户相似度(第一相似度)符合第一预设相似度,且优惠券相似度(第二相似度)符合第二预设相似度的部分k,则任一待发券用户j对于待发优惠券i的核销概率可抽象为数据集k中全部用户的用户相似度×该用户核销优惠券的优惠券相似度的算术平均。(3) For any coupon i to be sent, for any coupon user j to be sent, based on step (1) and step (2), the user similarity (first similarity) meets the first preset similarity degree, and the coupon similarity (second similarity) conforms to the second preset similarity part k, then the verification probability of any coupon user j to be issued for the coupon i to be issued can be abstracted as all The user similarity of the user × the arithmetic mean of the coupon similarity of the coupon canceled by the user.
在实际应用场景中,步骤105,也即按照资源核销概率,将所述预设资源发放至目标用户,具体包括:In an actual application scenario,
步骤105-1,若资源核销概率大于预设核销概率,将资源核销概率对应的预设资源发放至目标用户。Step 105-1, if the resource write-off probability is greater than the preset write-off probability, distribute the preset resource corresponding to the resource write-off probability to the target user.
在该实施例中,通过资源核销概率确定目标用户与该预设资源之间的匹配度,资源核销概率越大,匹配度较高。由此,若资源核销概率大于预设核销概率,说明目标用户对该预设资源的需求较大,可将预设资源分发给该目标用户。从而能够为目标用户发放更适合自身使用的资源,实现优惠券的个性化、精细化分配,有助于提升优惠券的转化率和用户忠诚度,不仅节省了用户的购物资金,有助于提高用户粘性,而且提升了平台的收益。In this embodiment, the matching degree between the target user and the preset resource is determined through the resource write-off probability, and the greater the resource write-off probability, the higher the matching degree. Therefore, if the resource write-off probability is greater than the preset write-off probability, it means that the target user has a greater demand for the preset resource, and the preset resource can be distributed to the target user. In this way, it is possible to distribute more suitable resources for target users, realize the personalized and refined distribution of coupons, and help to improve the conversion rate of coupons and user loyalty, which not only saves users' shopping funds, but also helps to improve User stickiness, and increase the revenue of the platform.
进一步地,作为上述实施例具体实施方式的细化和扩展,为了完整说明本实施例的具体实施过程,步骤105之后,资源发放方法还包括:若预设资源成功发放至目标用户,输出预设资源的发放提示信息。Further, as a refinement and extension of the specific implementation of the above-mentioned embodiment, in order to fully describe the specific implementation process of this embodiment, after
在该实施例中,在执行预设资源的发放操作后,检测预设资源是否成功发放至目标用户。当预设资源成功发放至目标用户,输出预设资源的发放提示信息。不仅使用户能够及时获知有新的资源发放,提升用户对资源的使用便利性,而且能够提醒用户及时使用资源,提升了资源被使用的可能性,有助于为目标用户节省资金。In this embodiment, after the operation of releasing the preset resource is performed, it is detected whether the preset resource is successfully distributed to the target user. When the preset resource is successfully distributed to the target user, a prompt message for the distribution of the preset resource is output. Not only can users be notified of new resource releases in a timely manner, improving the convenience of users in using resources, but also reminding users to use resources in a timely manner, increasing the possibility of resources being used, and helping to save money for target users.
进一步地,如图2所示,作为上述资源发放方法的具体实现,本申请实施例提供了一种资源发放装置200,该资源发放装置200包括:获取模块201、确定模块202以及资源配置模块203。Further, as shown in FIG. 2 , as a specific implementation of the resource distribution method above, the embodiment of the present application provides a
其中,获取模块201,用于获取资源核销用户和预设资源;Among them, the acquiring
确定模块202,用于比对资源核销用户和目标用户的用户特征,确定资源核销用户和目标用户之间的第一相似度;以及,比对预设资源和第一用户对应的历史资源的资源特征,确定预设资源和历史资源之间的第二相似度,第一用户为第一相似度大于或等于第一预设相似度的资源核销用户;以及,根据第一相似度和第二相似度,确定目标用户相对于预设资源核销概率;The
资源配置模块203,用于按照资源核销概率,将所述预设资源发放至目标用户。The
在该实施例中,首先获取存在资源核销操作的资源核销用户和平台预备向用户发放的预设资源。通过比对资源核销用户和符合资源发放条件的目标用户的用户特征之间的差异,确定资源核销用户和目标用户之间的第一相似度,并从资源核销用户中筛选出第一相似度大于或等于第一预设相似度的第一用户,从而利用第一相似度确定可能与目标用户具有相似资源使用偏好的用户。再比对预设资源和第一用户曾经使用的历史资源的资源特征,确定预设资源和历史资源之间的第二相似度,从而利用第二相似度确定预设资源中可能符合第一用户偏好的资源。由此,根据第二用户的第一相似度和第二相似度,可确定目标用户对不同预设资源的资源核销概率。最后,按照资源核销概率按需将预设资源发放至目标用户。从而无需网络模型训练即可实现自动化的资源动态分配,即使在样本数据量较少的情况下,仍然能够精准地将资源发放至更需要的目标用户手中,在保证了资源发放的客观性与公平性的同时,使目标用户能够获得更符合自身需求的资源,不仅提高了资源的使用效果,有利于提升成交总额,还能够为用户提供适宜的优惠政策,提升用户购物体验,有助于增强用户忠诚度。In this embodiment, the resource write-off users who have resource write-off operations and the preset resources that the platform prepares to issue to users are acquired first. By comparing the difference between the user characteristics of the resource write-off user and the target user who meets the resource release conditions, determine the first similarity between the resource write-off user and the target user, and filter out the first one from the resource write-off users. The first user whose similarity is greater than or equal to the first preset similarity is used to determine users who may have similar resource usage preferences to the target user by using the first similarity. Then compare the resource characteristics of the preset resources and the historical resources used by the first user to determine the second similarity between the preset resources and the historical resources, so as to use the second similarity to determine that the preset resources may match the first user preferred resource. Thus, according to the first similarity degree and the second similarity degree of the second user, the resource write-off probability of the target user for different preset resources can be determined. Finally, according to the resource write-off probability, the preset resources are released to the target users on demand. In this way, automatic dynamic allocation of resources can be realized without network model training. Even in the case of a small amount of sample data, resources can still be accurately distributed to target users who need them more, ensuring the objectivity and fairness of resource distribution At the same time, it enables target users to obtain resources that are more in line with their own needs, which not only improves the use effect of resources and helps increase the total turnover, but also provides users with appropriate preferential policies, improves user shopping experience, and helps enhance user experience. loyalty.
进一步地,确定模块202,具体用于若第二相似度大于或等于第二预设相似度,将第二相似度对应的历史资源确定为第一资源;若历史资源包括第一资源,将历史资源对应的第一用户确定为第二用户;根据第二用户对应的第一相似度和第二用户对应第一资源的第二相似度,计算资源核销概率。Further, the determining
进一步地,确定模块202,具体用于计算第二用户对应的第一相似度与第二用户对应第一资源的第二相似度的乘积;根据第二用户的数量计算乘积的均值作为资源核销概率。Further, the determining
进一步地,资源配置模块203,具体用于若资源核销概率大于预设核销概率,将资源核销概率对应的预设资源发放至目标用户。Further, the
进一步地,资源发放装置200还包括:提示模块(图中未示出),提示模块用于若预设资源成功发放至目标用户,输出预设资源的发放提示信息。Further, the
关于资源发放装置的具体限定可以参见上文中对于资源发放方法的限定,在此不再赘述。上述资源发放装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitations of the resource distribution device, refer to the above-mentioned definition of the resource distribution method, which will not be repeated here. Each module in the above-mentioned resource distribution device may be fully or partially realized by software, hardware or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
基于上述如图1所示方法,相应的,本申请实施例还提供了一种可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述如图1所示的资源发放方法。Based on the above method as shown in Figure 1, correspondingly, the embodiment of the present application also provides a readable storage medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned resource distribution as shown in Figure 1 is realized method.
基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施场景所述的方法。Based on this understanding, the technical solution of the present application can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.), including several The instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in various implementation scenarios of the present application.
基于上述如图1所示的方法,以及图2所示的虚拟装置实施例,为了实现上述目的,本申请实施例还提供了一种计算机设备,具体可以为个人计算机、服务器、网络设备等,该计算机设备包括存储介质和处理器;存储介质,用于存储计算机程序;处理器,用于执行计算机程序以实现上述如图1所示的资源发放方法。Based on the method shown in Figure 1 and the embodiment of the virtual device shown in Figure 2, in order to achieve the above purpose, the embodiment of the present application also provides a computer device, which may be a personal computer, a server, a network device, etc. The computer device includes a storage medium and a processor; the storage medium is used to store a computer program; and the processor is used to execute the computer program to implement the resource provisioning method as shown in FIG. 1 .
可选地,该计算机设备还可以包括用户接口、网络接口、摄像头、射频(RadioFrequency,RF)电路,传感器、音频电路、WI-FI模块等等。用户接口可以包括显示屏(Display)、输入单元比如键盘(Keyboard)等,可选用户接口还可以包括USB接口、读卡器接口等。网络接口可选的可以包括标准的有线接口、无线接口(如蓝牙接口、WI-FI接口)等。Optionally, the computer device may further include a user interface, a network interface, a camera, a radio frequency (Radio Frequency, RF) circuit, a sensor, an audio circuit, a WI-FI module, and the like. The user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the like, and optional user interfaces may also include a USB interface, a card reader interface, and the like. Optionally, the network interface may include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface) and the like.
本领域技术人员可以理解,本实施例提供的一种计算机设备结构并不构成对该计算机设备的限定,可以包括更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of a computer device provided in this embodiment is not limited to the computer device, and may include more or less components, or combine some components, or arrange different components.
存储介质中还可以包括操作系统、网络通信模块。操作系统是管理和保存计算机设备硬件和软件资源的程序,支持信息处理程序以及其它软件和/或程序的运行。网络通信模块用于实现存储介质内部各组件之间的通信,以及与该实体设备中其它硬件和软件之间通信。The storage medium may also include an operating system and a network communication module. An operating system is a program that manages and maintains the hardware and software resources of a computer device, and supports the operation of information processing programs and other software and/or programs. The network communication module is used to realize the communication between various components inside the storage medium, and communicate with other hardware and software in the physical device.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可以借助软件加必要的通用硬件平台的方式来实现,也可以通过硬件实现获取资源核销用户和预设资源;比对资源核销用户和目标用户的用户特征,确定资源核销用户和目标用户之间的第一相似度;比对预设资源和第一用户对应的历史资源的资源特征,确定预设资源和历史资源之间的第二相似度,第一用户为第一相似度大于或等于第一预设相似度的资源核销用户;根据第一相似度和第二相似度,确定目标用户相对于预设资源核销概率;按照资源核销概率,将所述预设资源发放至目标用户。本申请实施例无需网络模型训练即可实现自动化的资源动态分配,即使在样本数据量较少的情况下,仍然能够精准地将资源发放至更需要的目标用户手中,在保证了资源发放的客观性与公平性的同时,使目标用户能够获得更符合自身需求的资源,不仅提高了资源的使用效果,有利于提升成交总额,还能够为用户提供适宜的优惠政策,提升用户购物体验,有助于增强用户忠诚度。Through the description of the above embodiments, those skilled in the art can clearly understand that this application can be realized by means of software plus necessary general-purpose hardware platform, and can also be realized through hardware to obtain resource write-off users and preset resources; For the user features of the resource write-off user and the target user, determine the first similarity between the resource write-off user and the target user; compare the resource features of the preset resource and the historical resource corresponding to the first user, and determine the preset resource and the target user. The second similarity between historical resources, the first user is a resource verification user whose first similarity is greater than or equal to the first preset similarity; according to the first similarity and second similarity, determine the target user relative to the preset Set a resource write-off probability; distribute the preset resource to the target user according to the resource write-off probability. The embodiment of the present application can realize automatic dynamic allocation of resources without network model training. Even in the case of a small amount of sample data, resources can still be accurately distributed to more-needed target users, ensuring the objectiveness of resource distribution. At the same time, it enables target users to obtain resources that are more in line with their own needs, which not only improves the use effect of resources, but also helps to increase the total turnover. It can also provide users with appropriate preferential policies and improve user shopping experience, which helps to enhance user loyalty.
本领域技术人员可以理解附图只是一个优选实施场景的示意图,附图中的模块或流程并不一定是实施本申请所必须的。本领域技术人员可以理解实施场景中的装置中的模块可以按照实施场景描述进行分布于实施场景的装置中,也可以进行相应变化位于不同于本实施场景的一个或多个装置中。上述实施场景的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the accompanying drawing is only a schematic diagram of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art can understand that the modules in the devices in the implementation scenario can be distributed among the devices in the implementation scenario according to the description of the implementation scenario, or can be located in one or more devices different from the implementation scenario according to corresponding changes. The modules of the above implementation scenarios can be combined into one module, or can be further split into multiple sub-modules.
上述本申请序号仅仅为了描述,不代表实施场景的优劣。以上公开的仅为本申请的几个具体实施场景,但是,本申请并非局限于此,任何本领域的技术人员能思之的变化都应落入本申请的保护范围。The serial numbers of the above application are for description only, and do not represent the pros and cons of the implementation scenarios. The above disclosures are only several specific implementation scenarios of the present application, but the present application is not limited thereto, and any changes conceivable by those skilled in the art shall fall within the protection scope of the present application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211660096.5ACN116227826A (en) | 2022-12-23 | 2022-12-23 | Resource distribution method, device, storage medium and computer equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211660096.5ACN116227826A (en) | 2022-12-23 | 2022-12-23 | Resource distribution method, device, storage medium and computer equipment |
| Publication Number | Publication Date |
|---|---|
| CN116227826Atrue CN116227826A (en) | 2023-06-06 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211660096.5APendingCN116227826A (en) | 2022-12-23 | 2022-12-23 | Resource distribution method, device, storage medium and computer equipment |
| Country | Link |
|---|---|
| CN (1) | CN116227826A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118967219A (en)* | 2024-07-05 | 2024-11-15 | 深圳市灵智数字科技有限公司 | Coupon push method, device, electronic device and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110851729A (en)* | 2019-11-19 | 2020-02-28 | 深圳前海微众银行股份有限公司 | Resource information recommendation method, apparatus, device and computer storage medium |
| CN112685648A (en)* | 2021-01-21 | 2021-04-20 | 深圳市欢太科技有限公司 | Resource recommendation method, electronic device and computer-readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110851729A (en)* | 2019-11-19 | 2020-02-28 | 深圳前海微众银行股份有限公司 | Resource information recommendation method, apparatus, device and computer storage medium |
| CN112685648A (en)* | 2021-01-21 | 2021-04-20 | 深圳市欢太科技有限公司 | Resource recommendation method, electronic device and computer-readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118967219A (en)* | 2024-07-05 | 2024-11-15 | 深圳市灵智数字科技有限公司 | Coupon push method, device, electronic device and storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| US10972867B2 (en) | Location based discovery of real-time merchant device activity | |
| US10825009B2 (en) | Payment additional service information processing method and electronic device for supporting the same | |
| CN107644354A (en) | A kind of bonusing method, server, system and computer-readable recording medium | |
| US20170300904A1 (en) | Electronic device and payment method using the same | |
| WO2017219774A1 (en) | Multi-account supporting electronic payment method | |
| JP6898670B2 (en) | Information system, card device, terminal device, server device, credit card information processing device, support method, information processing method, credit card information processing method, and program | |
| US11282061B2 (en) | Electronic device and payment method using same | |
| WO2017186086A1 (en) | Information recommendation method, terminal, server, and computer storage medium | |
| WO2019218755A1 (en) | Coupon threshold computing method and apparatus | |
| CN116227827A (en) | Resource allocation method, device, storage medium and computer equipment | |
| WO2017059788A1 (en) | Information recommendation method, device and system | |
| CN112035717A (en) | Information processing method, device, equipment and storage medium | |
| CN116227826A (en) | Resource distribution method, device, storage medium and computer equipment | |
| US20170372313A1 (en) | Electronic device and system for payment | |
| CN116228309A (en) | Virtual resource issuing method, terminal, server and storage medium | |
| CN114936893A (en) | Rights and interests information display method and device, storage medium and computer equipment | |
| CN110378735B (en) | Resource information management system and method | |
| CN114004662B (en) | Resource verification and cancellation method and device, storage medium and computing equipment | |
| TWI811698B (en) | Payment system, information provision method and program | |
| CN109714381B (en) | Consumption tracking based information pushing method, equipment, storage medium and device | |
| CN114022174A (en) | Credential issuance method and device, storage medium, and computer equipment | |
| WO2017185211A1 (en) | User expense data processing method and server | |
| CN114331701A (en) | A transaction information-based financing management method and related device | |
| CN107450921B (en) | Application program deleting method and device, computer device and readable storage medium | |
| CN106296234B (en) | Network data processing method and system, server and application terminal |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right | Effective date of registration:20240410 Address after:Room 2101, Block B, Platinum Plaza, 5-15 Wenling Road, Laoshan District, Qingdao City, Shandong Province, 266100 Applicant after:Shandong Energy Chain Holding Co.,Ltd. Country or region after:China Address before:Room A221, floor 2, building 4, yard 1, yaojiayuan South Road, Chaoyang District, Beijing 100123 Applicant before:CHEZHUBANG (BEIJING) TECHNOLOGY Co.,Ltd. Country or region before:China | |
| TA01 | Transfer of patent application right |