Virtual resource pushing method and device, computer device and storage medium
By combining users' geographic text messages and location information, and matching and updating the target geographic text information set, the problem of inaccurate push and poor timeliness caused by ignoring regional factors in existing technologies is solved, and more efficient virtual resource push is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA LIFE INSURANCE CO LTD
- Filing Date
- 2024-01-03
- Publication Date
- 2026-05-08
AI Technical Summary
Existing push notification technologies ignore regional factors, resulting in low accuracy and poor timeliness, making it difficult to identify potential users.
By obtaining the user's current geographic text message, and combining it with query keyword information and location information, the system matches the target geographic text information set from multiple candidate geographic text information sets, updates the data, and obtains a matching set of virtual resources for push notifications.
It improves the accuracy and timeliness of virtual resource delivery, enabling it to better attract and tap into potential users.
Smart Images

Figure CN118094024B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of message push technology, and in particular to a virtual resource push method, apparatus, computer equipment, storage medium and computer program product. Background Technology
[0002] With the development of push notification technology, the publish-subscribe model has emerged. The publish-subscribe model pushes new information matching the keywords entered by the user, without actively pushing historical information. While focusing only on the individual user, it ignores the important influencing factor of region. However, the purchase of resources by users is closely related to their region. Users in the same region are more likely to purchase similar resources. Therefore, relying solely on subscribed keywords to complete message push is not accurate enough, making it difficult to attract and tap potential users, resulting in a low conversion rate.
[0003] Secondly, the traditional method for processing user-entered keywords is offline clustering, which involves accumulating a large amount of user data and then clustering the users at a fixed time, such as updating the clusters daily. However, the computational cost of clustering a large number of users each time is enormous; moreover, the number of users is constantly increasing, and the newest users cannot be immediately assigned to a cluster and cannot be immediately used by the push service, resulting in very poor clustering timeliness.
[0004] Therefore, existing push notification technologies ignore regional factors and have poor timeliness, making it difficult to discover potential users. Summary of the Invention
[0005] Therefore, it is necessary to provide a virtual resource push method, apparatus, computer equipment, computer-readable storage medium, and computer program product to address the aforementioned technical problems.
[0006] Firstly, this application provides a method for pushing virtual resources, including:
[0007] Get the current geographic text message initiated by the user of the virtual resource to be pushed; the current geographic text message contains the query keywords sent by the user to describe the virtual resource, as well as the user's current location information;
[0008] Based on query keyword information and current location information, the target geographic text information set that matches the current geographic text message is obtained from multiple pre-set candidate geographic text information sets, and the target geographic text information set is updated using the current geographic text message;
[0009] If the number of target geographic text information contained in the updated target geographic text information set is greater than the preset number, obtain a virtual resource set that matches the updated target geographic text information set.
[0010] The virtual resources contained in the virtual resource set are pushed to the target user; the target user is the user who sent the target geographic text information.
[0011] In one embodiment, based on query keyword information and current location information, a target geographic text information set matching the current geographic text message is obtained from a pre-set set of multiple candidate geographic text information sets, and the target geographic text information set is updated using the current geographic text message, including:
[0012] Based on the query keyword information, obtain the first text similarity between the current geographic text information and each set of candidate geographic text information;
[0013] From the candidate geographic text information set whose first text similarity is greater than a preset first text similarity threshold, obtain the target geographic text information set with the highest first text similarity to the current geographic text message, and add the current geographic text message to the target geographic text information set based on the current location information.
[0014] In one embodiment, the process involves obtaining a target geographic text information set with the highest first text similarity to the current geographic text message from a set of candidate geographic text information with a first text similarity greater than a preset first text similarity threshold, and adding the current geographic text message to the target geographic text information set based on the current location information, including:
[0015] If the geographic location represented by the current location information belongs to the sub-region to which all target geographic text information in the target geographic text information set belongs, the current geographic text message is added to the target geographic text information set to form a new target geographic text information set.
[0016] If the geographic location represented by the current location information belongs only to the sub-region to which some of the target geographic text information in the target geographic text information set belongs, the current geographic text information and some of the target geographic text information are merged to form a new target geographic text information set.
[0017] In an exemplary embodiment, when the similarity of each of the first texts is less than a preset first text similarity threshold, a corresponding set of geographic text information is created based on the current geographic text message.
[0018] In one embodiment, obtaining a set of virtual resources that matches the updated set of target geographic text information includes:
[0019] Obtain a pre-built set of virtual resources;
[0020] Obtain the query keyword information contained in the current geographic text message and the second text similarity with the resource description information corresponding to each virtual resource set. If the second text similarity is greater than the preset second text similarity threshold, the virtual resource set is used as the virtual resource set that matches the target geographic text information set.
[0021] In one embodiment, prior to obtaining the pre-built set of virtual resources, the method further includes:
[0022] Obtain candidate virtual resources, as well as description information of each resource associated with the candidate virtual resources;
[0023] For each resource description, obtain the candidate virtual resources associated with each resource description and construct a set of virtual resources corresponding to each resource description.
[0024] In one exemplary embodiment, when an update to the resource description information used to describe the virtual resource is detected, the updated resource description information is obtained.
[0025] For each updated resource description information, obtain the text similarity between each resource description information and each geographic text information contained in the candidate geographic text information set, and obtain geographic text information that is similar to each resource description information text based on the text similarity.
[0026] The similar geographic text information is divided according to the region represented by the geographic text information to obtain the updated candidate geographic text information set.
[0027] Secondly, this application also provides a virtual resource push device, comprising:
[0028] The message acquisition module is used to acquire the current geographic text message initiated by the user of the virtual resource to be pushed; the current geographic text message includes the query keyword information sent by the user to describe the virtual resource, and the user's current location information;
[0029] The target information set acquisition module is used to acquire, based on the query keyword information and the current location information, a target geographic text information set that matches the current geographic text message from a set of multiple pre-set candidate geographic text information sets, and update the target geographic text information set using the current geographic text message;
[0030] The virtual resource set acquisition module is used to acquire a virtual resource set that matches the updated target geographic text information set when the number of target geographic text information contained in the updated target geographic text information set is greater than a preset number.
[0031] The virtual resource push module is used to push the virtual resources contained in the virtual resource set to the target user; the target user is the user who sent the target geographic text information.
[0032] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0033] Get the current geographic text message initiated by the user of the virtual resource to be pushed; the current geographic text message contains the query keywords sent by the user to describe the virtual resource, as well as the user's current location information;
[0034] Based on query keyword information and current location information, the target geographic text information set that matches the current geographic text message is obtained from multiple pre-set candidate geographic text information sets, and the target geographic text information set is updated using the current geographic text message;
[0035] If the number of target geographic text information contained in the updated target geographic text information set is greater than the preset number, obtain a virtual resource set that matches the updated target geographic text information set.
[0036] The virtual resources contained in the virtual resource set are pushed to the target user; the target user is the user who sent the target geographic text information.
[0037] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0038] Get the current geographic text message initiated by the user of the virtual resource to be pushed; the current geographic text message contains the query keywords sent by the user to describe the virtual resource, as well as the user's current location information;
[0039] Based on query keyword information and current location information, the target geographic text information set that matches the current geographic text message is obtained from multiple pre-set candidate geographic text information sets, and the target geographic text information set is updated using the current geographic text message;
[0040] If the number of target geographic text information contained in the updated target geographic text information set is greater than the preset number, obtain a virtual resource set that matches the updated target geographic text information set.
[0041] The virtual resources contained in the virtual resource set are pushed to the target user; the target user is the user who sent the target geographic text information.
[0042] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0043] Get the current geographic text message initiated by the user of the virtual resource to be pushed; the current geographic text message contains the query keywords sent by the user to describe the virtual resource, as well as the user's current location information;
[0044] Based on query keyword information and current location information, the target geographic text information set that matches the current geographic text message is obtained from multiple pre-set candidate geographic text information sets, and the target geographic text information set is updated using the current geographic text message;
[0045] If the number of target geographic text information contained in the updated target geographic text information set is greater than the preset number, obtain a virtual resource set that matches the updated target geographic text information set.
[0046] The virtual resources contained in the virtual resource set are pushed to the target user; the target user is the user who sent the target geographic text information.
[0047] The aforementioned virtual resource push method, apparatus, computer equipment, storage medium, and computer program product acquire the current geographic text message initiated by the user to whom the virtual resource is to be pushed. Based on the query keywords and current location information of the user describing the virtual resource contained in the current geographic text message, a target geographic text information set matching the current geographic text message is obtained from multiple pre-set candidate text information sets. This target geographic text information set is then updated using this message. If the number of information contained in the updated target geographic text information set is greater than a preset number, a virtual resource set matching the updated target geographic text information set is acquired. The virtual resources contained in the virtual resource set are then pushed to the target user who sent the message in the target geographic text information set. By acquiring the current geographic text message of the user to be pushed, calculating similarity, determining and updating the target geographic text information set, and then determining the target virtual resource set, the target virtual resources in the set are pushed to the user who sent the message in the target geographic text information set. This approach considers regional influence factors and improves timeliness. By analyzing similarity, virtual resources are recommended to users who previously sent messages, thereby attracting and mining potential users. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 This is an application environment diagram of a virtual resource push method in one embodiment;
[0050] Figure 2 This is a flowchart illustrating a virtual resource push method in one embodiment;
[0051] Figure 3 This is a flowchart illustrating the process of obtaining a target information set in one embodiment;
[0052] Figure 4 This is a schematic diagram of the process for updating the target information set in one embodiment;
[0053] Figure 5 This is a flowchart illustrating the virtual resource push method in another embodiment;
[0054] Figure 6 This is a structural block diagram of a virtual resource push device in one embodiment;
[0055] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0056] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0057] The virtual resource push method provided in this application embodiment can be applied to, for example, Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on a cloud or other network server. Server 104 obtains the current geographic text message initiated by the user to be pushed virtual resources, and based on the query keyword information and current location information contained therein, retrieves the matching target geographic text information set from multiple pre-set candidate geographic text information sets and updates it. If the updated target geographic text information set contains more target geographic text information than a preset number, a matching virtual resource set is determined, and the virtual resources contained therein are pushed to the user who sent the target geographic text information. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server or a server cluster composed of multiple servers.
[0058] In one exemplary embodiment, such as Figure 2 As shown, a virtual resource push method is provided, which is applied to... Figure 1 Taking server 104 as an example, the explanation includes the following steps S201 to S204. Wherein:
[0059] Step S201: Obtain the current geographic text message initiated by the user of the virtual resource to be pushed; the current geographic text message contains the query keywords sent by the user to describe the virtual resource, as well as the user's current location information.
[0060] Virtual resources can be understood as resources that do not exist in a physical form but can be created, stored, traded, and utilized in a digital environment. These resources can be digital products, services, technologies, information, etc., such as virtual currencies, virtual goods, and virtual reality content. The current geographic text message can be understood as the latest virtual resource query keyword information initiated by the user to be pushed virtual resources, and also includes the user's current location coordinates. Here, it can be explained that the geographic text message initiated by the user can be understood as a message stream, referring to the continuous, real-time messages sent by the user. This can be multiple messages sent by one user or multiple users. It continuously updates and changes over time, with the current geographic text message being the latest message in this stream.
[0061] Optionally, server 104 obtains the current geographic text message initiated by the user of the virtual resource to be pushed from terminal 102 through the communication network. This current geographic text message is the latest one initiated by the user at the current moment. Therefore, obtaining the latest current geographic text message lays the data foundation for ensuring the timeliness of subsequent virtual resource pushes.
[0062] Step S202: Based on the query keyword information and the current location information, obtain the target geographic text information set that matches the current geographic text message from a set of multiple pre-set candidate geographic text information sets, and update the target geographic text information set using the current geographic text message.
[0063] The pre-set multiple candidate geographic text information sets can be understood as geographic text information sets that already exist in the data storage system of the current server 104. If there is no geographic text information set initially, then the current geographic text message is used as the first geographic text information set. Then, the similarity between the current geographic text message and the set is compared to determine whether to add it to the first geographic text information set or to create a new one. The same logic applies to other current geographic text messages. When the geographic text information contained in the multiple geographic text information sets reaches a certain number, the pre-set multiple candidate geographic text information sets can be used as parameters for virtual resource push.
[0064] For example, based on the query keyword information and current location information of the user to be pushed virtual resource, the target geographic text information set that matches the current geographic text message is obtained from multiple candidate geographic text information sets pre-set in the data storage system, and the target geographic text information set is updated using the current geographic text message.
[0065] By matching with the previously preset set of candidate geographic text information, the target set of geographic text information that matches the current geographic text message is found and updated accordingly. The target set of geographic text information includes geographic text information initiated by other users, which uncovers potential users who may have the intention to purchase virtual resources.
[0066] Step S203: If the number of target geographic text information contained in the updated target geographic text information set is greater than the preset number, obtain a virtual resource set that matches the updated target geographic text information set.
[0067] The preset quantity can be understood as a preset quantity threshold σ. A quantity greater than the quantity threshold σ means that the updated target geographic text information set has reached the requirement to proceed to the next step of obtaining the virtual resource set.
[0068] For example, when the number of target geographic text messages in the updated target geographic text information set exceeds a preset threshold σ, a set of virtual resources matching the updated target geographic text information set is obtained. By setting a threshold σ, on the one hand, matching virtual resources can be selectively obtained when the number of resources exceeds a certain threshold, thereby improving the efficiency of resource management; on the other hand, if the number of messages in the set is considered sufficient, it indicates that the messages are sufficiently similar and the set is sufficiently representative, which is conducive to improving the accuracy of push notifications.
[0069] Step S204: Push the virtual resources contained in the virtual resource set to the target user; the target user is the user who sent the target geographic text information.
[0070] In the aforementioned virtual resource push method, the current geographic text message initiated by the user to whom the virtual resource is to be pushed is obtained. Based on the query keywords and current location information of the user describing the virtual resource contained in the current geographic text message, a target geographic text information set matching the current geographic text message is obtained from multiple pre-set candidate text information sets. This target geographic text information set is then updated using this message. If the number of information contained in the updated target geographic text information set is greater than a preset number, a virtual resource set matching the updated target geographic text information set is obtained. The virtual resources contained in the virtual resource set are then pushed to the target user who sent the message in the target geographic text information set. By obtaining the current geographic text message of the user to be pushed, calculating similarity, determining and updating the target geographic text information set, and then determining the target virtual resource set, the target virtual resources in the set are pushed to the user who sent the message in the target geographic text information set. This method considers regional influence factors and improves timeliness. By analyzing similarity to recommend virtual resources to users who previously sent messages, the goal of discovering potential users is achieved.
[0071] In one exemplary embodiment, such as Figure 3 As shown, based on query keyword information and current location information, a target geographic text information set matching the current geographic text message is obtained from multiple pre-set candidate geographic text information sets, and the target geographic text information set is updated using the current geographic text message, including steps S301 to S302. Wherein:
[0072] Step S301: Based on the query keyword information, obtain the first text similarity between the current geographic text information and each set of candidate geographic text information.
[0073] The first text similarity can be understood as the degree of similarity between the query keyword information of the current geographic text information and the query keyword information of each candidate geographic text information set.
[0074] Step S302: Obtain the target geographic text information set with the highest first text similarity to the current geographic text message from the candidate geographic text information set whose first text similarity is greater than the preset first text similarity threshold, and add the current geographic text message to the target geographic text information set based on the current location information.
[0075] The first text similarity threshold can be understood as threshold θ, which is a pre-set similarity value.
[0076] For example, based on the first text similarity calculated in step S301, the first text similarity is compared with a preset first text similarity threshold to retain a set of candidate geographic text information that is greater than the first text similarity threshold. Then, the set with the highest first text similarity is selected from these candidate geographic text information sets for further processing, and added to the current target geographic text information set based on the current location information.
[0077] First, a preliminary screening is performed using a first text similarity threshold, retaining a set of candidate geographic text information that is greater than the first text similarity threshold. Then, the set of candidate geographic text information with the highest first text similarity is selected as the target geographic text information set, narrowing the selection range and reducing the workload. Finally, the current geographic text message is incorporated into the target geographic text information set that matches it based on the current location information, thus completing the update. The addition of the target geographic text information set to the current geographic text message ensures the timeliness of the information.
[0078] In one embodiment, such as Figure 4 As shown, the process involves obtaining the target geographic text information set with the highest first text similarity to the current geographic text message from the candidate geographic text information set whose first text similarity is greater than a preset first text similarity threshold, and adding the current geographic text message to the target geographic text information set based on the current location information, including steps S401 to S402, wherein:
[0079] Step S401: If the geographic location represented by the current location information belongs to the sub-region to which all target geographic text information in the target geographic text information set belongs, the current geographic text message is added to the target geographic text information set to form a new target geographic text information set.
[0080] Step S402: If the geographic location represented by the current location information belongs only to the sub-region to which some of the target geographic text information in the target geographic text information set belongs, the current geographic text information and some of the target geographic text information are merged to form a new target geographic text information set.
[0081] The same region can be understood as dividing a two-dimensional space into four quadrants. Each quadrant can only hold a certain number of geographic text information. The geographic text information contained in the original geographic text information set is distributed in these quadrants. If the number of messages in a certain quadrant is greater than the number that can be held, then the quadrant is further divided into four sub-quadrants until the number of messages in each quadrant is less than or equal to the number that can be held. Then, the data located in a quadrant have the same parent node in the quadtree, that is, they belong to the same sub-region. This is the spatial condition for judging the similarity between the current geographic text message and the geographic text information set.
[0082] In this embodiment, after selecting the target geographic text information set to which the current geographic text information should be added, it compares whether the geographic location represented by the current location information belongs to the sub-region to which all geographic text information contained in the target geographic text information set belongs. If they are the same, the current geographic text information is directly added to the current set to form a new target geographic text information set. Secondly, if the geographic location represented by the current location information belongs only to the sub-region to which some geographic text information contained in the target geographic text information set belongs, the current geographic text information is merged with the partial geographic text information to form a new target geographic text information set. By focusing on both the geographic location represented by the current location information and the sub-region to which the geographic text information contained in the target geographic text information set belongs, and comprehensively considering the influence of regional factors, the accuracy of virtual resource push is improved, thereby increasing the user conversion success rate.
[0083] In one embodiment, when the similarity of each of the first texts is less than a preset first text similarity threshold, a corresponding set of geographic text information is created based on the current geographic text message.
[0084] For example, when the calculated similarity of multiple first texts is less than the preset first text similarity threshold, a corresponding set of geographic text information is created based on the current geographic text message. This increases the number of geographic text information sets of more types, expands the scope of similarity calculation, improves the accuracy of matching, and thus enhances the success rate of virtual resource push.
[0085] In an exemplary embodiment, obtaining a virtual resource set that matches the updated target geographic text information set includes: obtaining a pre-constructed virtual resource set; obtaining the second text similarity between the query keyword information contained in the current geographic text message and the resource description information corresponding to each virtual resource set; and if the second text similarity is greater than a preset second text similarity threshold, using the virtual resource set as the virtual resource set that matches the target geographic text information set.
[0086] Among them, the virtual resource set can be understood as multiple virtual resource sets obtained by dividing the existing virtual resources that can be pushed in the current system according to certain grouping rules; the preset second text similarity threshold can be understood as threshold α, which sets the judgment condition for determining whether the virtual resource set can match the target geographic text information set; the resource description information can be understood as a series of words describing the characteristics of virtual resources such as effects and costs. Through this description information, users can more accurately find virtual resources associated with the description information.
[0087] Optionally, the virtual resource set stored in the data storage system is obtained, and the second text similarity is calculated based on the query keyword information contained in the current geographic text message and the resource description information corresponding to each virtual resource set. When the second text similarity is greater than the preset second text similarity threshold, the current virtual resource set is determined to be the virtual resource set that matches the target geographic text information set.
[0088] By using the current geographic text message as a representative of the target geographic text information set in which it resides, and performing the second text similarity calculation in parallel with each virtual resource set, the computational cost of similarity calculation is greatly reduced, and the matching efficiency is improved.
[0089] In one embodiment, before obtaining the pre-built set of virtual resources, the method further includes: obtaining candidate virtual resources and resource description information associated with each candidate virtual resource; obtaining candidate virtual resources associated with each resource description information for each resource description information; and constructing a set of virtual resources corresponding to each resource description information using the candidate virtual resources associated with the resource description information.
[0090] For example, resource description information associated with candidate resources and candidate virtual resources is obtained. For each resource description, candidate virtual resources associated with these descriptions are obtained. By dividing the candidate virtual resources associated with the resource description information, virtual resources with similar resource description information are grouped together. This facilitates unified push notifications after matching with the corresponding target geographic text information set, greatly improving the push success rate.
[0091] In one embodiment, the method further includes: when an update is detected in the resource description information used to describe the virtual resource, obtaining the updated resource description information;
[0092] For each updated resource description information, obtain the text similarity between each resource description information and each geographic text information contained in the candidate geographic text information set, and obtain geographic text information that is similar to each resource description information text based on the text similarity.
[0093] The similar geographic text information is divided according to the region represented by the geographic text information to obtain the updated candidate geographic text information set.
[0094] Optionally, when the resource description information of the virtual resource described by the user is updated, the update can be an increase or a decrease. It is necessary to re-acquire the updated resource description information, and for the updated resource description information, calculate the text similarity between each resource description information and each geographic text information contained in the candidate geographic text information set. Based on the text similarity, aggregate the geographic text information that is similar to each resource description information text, and divide the aggregated similar geographic text information according to the region represented by the geographic text information to obtain the updated candidate geographic text information set.
[0095] Here's a concrete example: Geographic text information originally within the same set might branch out into new categories. For instance, if resource query keywords initially only had two types—high-risk and low-risk—medium-risk keywords might be reclassified into either high-risk or low-risk categories. However, if descriptions of medium-risk resources appear, it's known that the virtual resource query keywords and virtual resource descriptions are largely similar. Therefore, the geographic text information in the candidate set is re-divided and recombined to generate an updated, more accurate set. This significantly improves the accuracy of the geographic text information set, thereby enhancing the user experience and increasing the accuracy of virtual resource recommendations.
[0096] In one exemplary embodiment, a virtual resource push method is provided, such as... Figure 5 As shown, the following is a practical application scenario of the virtual resource push method (insurance products can be understood as a type of virtual resource, m) n For a user initiating a current geographic text message to be recommended virtual resources, the current message cluster set C can be understood as a pre-set set of multiple candidate geographic text information sets, the threshold θ can be understood as a preset first text similarity threshold, and the message cluster mc can be understood as the currently existing set of geographic text information. max This can be understood as the relationship between m and message clustering in message clustering (MC). n The set of messages with the highest text similarity, where the threshold σ can be understood as a preset mc max The threshold for the amount of information contained therein, where threshold α can be understood as a preset second text similarity threshold, and product group pc can be understood as a virtual resource set, includes:
[0097] 1. During the initialization phase, the administrator writes the insurance product ID (Identification) or description information (keywords) of product-related messages into the product database.
[0098] 2. The real-time computing platform receives geographic text information streams from customer queries, where m n This is the latest information, including the search keywords and the user's current coordinates.
[0099] 3. Perform online clustering of geographic text information streams through a real-time computing platform. The specific steps are as follows:
[0100] a) Parallel computation of the latest message m using a real-time computing platform n Similarity to each cluster in the current message cluster set C:
[0101] b) First, calculate text similarity and compare m... n The text similarity with each cluster is calculated if at least one cluster is similar to m. n If the text similarity is greater than the threshold θ, then find the text with the same similarity as m. n message clustering with the highest text similarity mc max ;
[0102] c) Then m n The included coordinate information is inserted into the quadtree maintained in memory, and the quadtree is updated if m n With mc max If all messages in the same location have the same parent node, then m is considered to be m. n message clustering Minecraft max Similarly, m n Add MC max If m n Only with mc max If some messages in the middle have the same parent node at their coordinates, then m n Messages with the same parent node form a new cluster, the original mc max Split into two clusters, m n The added portion is recorded as the new MC. max Then update the cluster set C;
[0103] d) If m n If the text similarity with any cluster is less than the threshold θ, then use m. n Create a new cluster and update the cluster set C.
[0104] 4. Create an inverted index in memory based on the information in the product database, using the product keyword as the key and the product ID as the value. Each key-value pair represents a product group (pc), and each product group contains one or more insurance products.
[0105] 5. Calculate clustering mc maxIf the number of messages exceeds a threshold σ, a matching degree is calculated with each product group; otherwise, steps 2-4 are continued until the number of messages exceeds the threshold. The matching degree is calculated using the updated mc. max message m n Representing this cluster, m n The text messages are compared with the keywords of each product group in parallel on the real-time computing platform. If the similarity is greater than the threshold α, the product group is considered to be matched with the message cluster.
[0106] 6. Return the product group that matches the updated message cluster and push it to the users in the message cluster who sent the message.
[0107] 7. When an insurance company registers the latest product or product-related information descriptions (keywords) with the product database, all current clusters are updated based on the keywords. Steps 5-6 are repeated to improve clustering accuracy.
[0108] Compared with the prior art, this application has the following advantages:
[0109] 1) The geographic text information set combines the query keywords used by the user to describe the virtual resource and the current location information, making the push of virtual resources more accurate.
[0110] 2) Multiple candidate geographic text information sets can be updated online in real time based on the current geographic text message, which meets the timeliness requirement of virtual resource push.
[0111] 3) If new location information or new query keywords used to describe virtual resources appear, the previous candidate geographic text information will be reclassified to obtain a more refined set of candidate geographic text information, which can discover new user interests and make more accurate virtual resource recommendations.
[0112] 4) Parallel text similarity calculation is performed between the current geographic text message and multiple candidate geographic text information sets and multiple virtual resource sets, resulting in faster calculation speed and less resource consumption.
[0113] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0114] Based on the same inventive concept, this application also provides a virtual resource push device for implementing the virtual resource push method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more virtual resource push device embodiments provided below can be found in the limitations of the virtual resource push method described above, and will not be repeated here.
[0115] In one exemplary embodiment, such as Figure 6 As shown, a virtual resource push device is provided, including: a message acquisition module 601, a target information set acquisition module 602, a virtual resource set acquisition module 603, and a virtual resource push module 604, wherein:
[0116] The message acquisition module 601 is used to acquire the current geographic text message initiated by the user of the virtual resource to be pushed; the current geographic text message includes the query keyword information sent by the user to describe the virtual resource, as well as the user's current location information;
[0117] The target information set acquisition module 602 is used to acquire the target geographic text information set that matches the current geographic text message from a set of multiple pre-set candidate geographic text information sets based on query keyword information and current location information, and to update the target geographic text information set using the current geographic text message.
[0118] The virtual resource set acquisition module 603 is used to acquire a virtual resource set that matches the updated target geographic text information set when the number of target geographic text information contained in the updated target geographic text information set is greater than a preset number.
[0119] The virtual resource push module 604 is used to push the virtual resources contained in the virtual resource set to the target user; the target user is the user who sent the target geographic text information.
[0120] In one embodiment, the target information set acquisition module 602 further includes: a first text similarity acquisition module and a target information set update module, wherein:
[0121] The first text similarity acquisition module is used to obtain the first text similarity between the current geographic text information and each set of candidate geographic text information based on the query keyword information.
[0122] The target information set update module is used to obtain the target geographic text information set with the highest first text similarity to the current geographic text message from the candidate geographic text information set whose first text similarity is greater than the preset first text similarity threshold, add the current geographic text message to the target geographic text information set based on the current location information, and add the current geographic text message to the target geographic text information set.
[0123] In one embodiment, the target information set update module is specifically used to add the current geographic text message to the target geographic text information set to form a new target geographic text information set if the geographic location represented by the current location information belongs to the sub-region to which all target geographic text information contained in the target geographic text information set belongs; if the geographic location represented by the current location information belongs only to the sub-region to which some target geographic text information contained in the target geographic text information set belongs, the current geographic text information and some target geographic text information are merged to form a new target geographic text information set.
[0124] In one embodiment, the target information set acquisition module 602 is further configured to create a corresponding geographic text information set based on the current geographic text message when the similarity of each of the first texts is less than a preset first text similarity threshold.
[0125] In an exemplary embodiment, the virtual resource set acquisition module 603 is specifically used to acquire a pre-constructed virtual resource set; acquire the query keyword information contained in the current geographic text message and the second text similarity between it and the resource description information corresponding to each virtual resource set; and if the second text similarity is greater than a preset second text similarity threshold, use the virtual resource set as the virtual resource set that matches the target geographic text information set.
[0126] In one embodiment, the virtual resource push device is further configured to acquire candidate virtual resources and various resource description information associated with the candidate virtual resources; for each resource description information, acquire the candidate virtual resources associated with each resource description information, and construct a set of virtual resources corresponding to each resource description information using the candidate virtual resources associated with the resource description information.
[0127] In one embodiment, the virtual resource push device is further configured to obtain the updated resource description information when it is detected that the resource description information used to describe the virtual resource has been updated;
[0128] For each updated resource description information, obtain the text similarity between each resource description information and each geographic text information contained in the candidate geographic text information set, and obtain geographic text information that is similar to each resource description information text based on the text similarity.
[0129] The similar geographic text information is divided according to the region represented by the geographic text information to obtain the updated candidate geographic text information set.
[0130] Each module in the aforementioned virtual resource push device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0131] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores virtual resource data, geographic text message data, query keyword information data, current location information data, and candidate geographic text information sets. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a virtual resource push method.
[0132] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0133] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the virtual resource push method of the above embodiment.
[0134] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the virtual resource push method of the above embodiment.
[0135] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the virtual resource push method of the above embodiment.
[0136] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0137] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0138] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0139] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for pushing virtual resources, characterized in that, The method includes: Obtain the current geographic text message initiated by the user of the virtual resource to be pushed; the current geographic text message includes the query keyword information sent by the user to describe the virtual resource, and the user's current location information; Based on the query keyword information and the current location information, from a set of multiple pre-set candidate geographic text information sets, a set of target geographic text information matching the current geographic text message is obtained. If the geographic location represented by the current location information belongs to the sub-region to which all target geographic text information in the target geographic text information set belongs, the current geographic text message is added to the target geographic text information set. If the geographic location represented by the current location information belongs to the sub-region to which only some target geographic text information in the target geographic text information set belongs, the current geographic text information and the partial target geographic text information are merged. If the number of target geographic text information contained in the updated target geographic text information set is greater than a preset number, obtain a virtual resource set that matches the updated target geographic text information set; The virtual resources contained in the virtual resource set are pushed to the target user; the target user is the user who sent the target geographic text information.
2. The method according to claim 1, characterized in that, The step of obtaining a target geographic text information set matching the current geographic text message from a pre-set set of multiple candidate geographic text information sets based on the query keyword information and the current location information, and updating the target geographic text information set using the current geographic text message, includes: Based on the query keyword information, obtain the first text similarity between the current geographic text information and each of the candidate geographic text information sets; From the candidate geographic text information set whose first text similarity is greater than a preset first text similarity threshold, obtain the target geographic text information set with the highest first text similarity to the current geographic text message, and add the current geographic text message to the target geographic text information set based on the current location information.
3. The method according to claim 2, characterized in that, The method further includes: If the similarity of each of the first texts is less than the preset first text similarity threshold, a corresponding set of geographic text information is created based on the current geographic text message.
4. The method according to claim 1, characterized in that, The acquisition of a virtual resource set that matches the updated target geographic text information set includes: Obtain a pre-built set of virtual resources; Obtain the query keyword information contained in the current geographic text message and the second text similarity with the resource description information corresponding to each virtual resource set. If the second text similarity is greater than a preset second text similarity threshold, the virtual resource set is used as the virtual resource set that matches the target geographic text information set.
5. The method according to claim 4, characterized in that, Before obtaining the pre-built set of virtual resources, the process also includes: Obtain candidate virtual resources, as well as description information of each resource associated with the candidate virtual resources; For each of the resource description information, candidate virtual resources associated with each of the resource description information are obtained. Using the candidate virtual resources associated with the resource description information, a set of virtual resources corresponding to each of the resource description information is constructed.
6. The method according to claim 1, characterized in that, The method further includes: If an update to the resource description information used to describe a virtual resource is detected, the updated resource description information is obtained. For each of the updated resource description information, the text similarity between each of the resource description information and each of the geographic text information contained in the candidate geographic text information set is obtained, and geographic text information similar to each of the resource description information is obtained based on the text similarity. The similar geographic text information is divided according to the region represented by the geographic text information to obtain an updated set of candidate geographic text information.
7. A virtual resource push device, characterized in that, The device includes: The message acquisition module is used to acquire the current geographic text message initiated by the user of the virtual resource to be pushed; the current geographic text message includes the query keyword information sent by the user to describe the virtual resource, and the user's current location information; The target information set acquisition module is used to acquire a target geographic text information set that matches the current geographic text message from a set of multiple pre-set candidate geographic text information sets based on the query keyword information and the current location information. If the geographic location represented by the current location information belongs to the sub-region to which all the target geographic text information in the target geographic text information set belongs, the current geographic text message is added to the target geographic text information set. If the geographic location represented by the current location information belongs to the sub-region to which only some of the target geographic text information in the target geographic text information set belongs, the current geographic text information is merged with the partial target geographic text information. The virtual resource set acquisition module is used to acquire a virtual resource set that matches the updated target geographic text information set when the number of target geographic text information contained in the updated target geographic text information set is greater than a preset number. The virtual resource push module is used to push the virtual resources contained in the virtual resource set to the target user; the target user is the user who sent the target geographic text information.
8. The apparatus according to claim 7, characterized in that, The target information set acquisition module further includes: The first text similarity acquisition module is used to acquire the first text similarity between the current geographic text information and each set of candidate geographic text information based on the query keyword information; The target information set update module is used to obtain the target geographic text information set with the highest first text similarity to the current geographic text message from the candidate geographic text information set whose first text similarity is greater than a preset first text similarity threshold, and to add the current geographic text message to the target geographic text information set based on the current location information.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Message pushing method and device based on intelligent information recommendation in cloud network convergence environment
CN111651681A
Data query method and device and storage medium
CN115080590A