Reference location recommendation method, device, equipment and storage medium
The vector generation model is used to construct the correlation between areas of different spatial scales and pick-up locations, which solves the problem of inaccuracy in pick-up location recommendations caused by uneven distribution of car orders, and achieves more accurate pick-up location recommendations.
Patent Information
- Application Number
- CN202011012047.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-22
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-09-22
AI Technical Summary
In the existing online car-hailing scenario, the accuracy of users' recommended pick-up locations is low, mainly due to the uneven distribution of car orders, and the statistical characteristics of historical car orders cannot fully reflect the relationship between users and pick-up locations.
Using a vector generation model, the association between areas of multiple spatial sizes and reference points is used as training samples to construct a vector representation, calculate the similarity between the current location and the reference location, and recommend the most relevant boarding location.
It improves the accuracy of pick-up location recommendations, can better characterize the relationship between user preferences and geographical areas, and provides more accurate pick-up location recommendations.
Smart Images

Figure CN112182431B
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a reference location recommendation method, device, equipment and storage medium. Background Art
[0002] In the existing online car-hailing scenarios, it is necessary to recommend pick-up locations to users based on the car orders placed by users. Among them, recommending pick-up locations to users is generally achieved through a sorting model. Among them, the establishment of the sorting model mainly relies on the statistical characteristics of historical car orders, such as order popularity, pick-up popularity, etc. However, for different geographical areas, the distribution of car orders is uneven, and the statistical characteristics cannot fully reflect the correlation and correspondence between users in the order-issuing area and the pick-up locations, which leads to low accuracy of the pick-up locations recommended to users. Summary of the invention
[0003] In order to solve the above problems, the present application provides a reference location recommendation method, device, equipment and storage medium, aiming to improve the accuracy of the boarding locations recommended to users.
[0004] In a first aspect of an embodiment of the present application, a reference location recommendation method is provided, the method comprising:
[0005] Obtaining a reference location acquisition request initiated by a target user terminal, wherein the reference location acquisition request carries a current location of the target user terminal;
[0006] Determining a plurality of target reference locations within a preset range from the current location;
[0007] Inputting the identifier of the target area to which the current position belongs and the identifiers of each of the multiple target reference locations into a pre-trained vector generation model to obtain a vector representation of the target area to which the current position belongs and a vector representation of each of the multiple target reference locations; wherein the vector generation model is obtained by training a preset model using the association relationship between regions of various sizes and each reference point as training samples;
[0008] Determining a reference location to be recommended according to similarities between the vector representation of the target area to which the current location belongs and the vector representations of each of the plurality of target reference locations;
[0009] The reference location to be recommended is pushed to the target user terminal.
[0010] Optionally, the method further comprises:
[0011] Obtaining a plurality of historical records, each of which includes a historical location of a user terminal and a corresponding historical reference location;
[0012] Determine the regions of various sizes to which each historical location belongs;
[0013] According to the multiple historical records, a weight network corresponding to each size is constructed with regions of the size and reference points as nodes, wherein the weight of an edge in the weight network represents the degree of association between two nodes connected by the edge;
[0014] Generate training samples based on weight networks corresponding to various sizes;
[0015] The preset model is trained using the training samples to obtain the vector generation model.
[0016] Optionally, training samples are generated according to weight networks corresponding to various sizes, including:
[0017] According to the weight network corresponding to each size, a walking sequence starting from any node is obtained;
[0018] For each walking sequence, positive sample pairs and negative sample pairs are generated according to the number of hops between nodes;
[0019] Each positive sample pair and each negative sample generated based on the nodes corresponding to the mutually overlapping regions are divided into a group of training samples to obtain multiple groups of training samples.
[0020] Optionally, the method further comprises:
[0021] Obtaining multiple newly added records, each newly added record including an actual location of a user terminal and a corresponding actual reference location;
[0022] Generating new training samples according to the multiple new records;
[0023] According to the newly added training samples, the vector generation model is updated;
[0024] The identifier of the target area to which the current position belongs and the identifiers of each of the multiple target reference locations are input into the updated vector generation model to obtain an updated vector representation of the target area to which the current position belongs and an updated vector representation of each of the multiple target reference locations.
[0025] Optionally, the reference location acquisition request is a boarding point acquisition request; pushing the reference location to be recommended to the target user terminal includes:
[0026] The reference location to be recommended is pushed to the target user terminal as a boarding point to be recommended, and prompt information is sent to the target user terminal to prompt the user of the target user terminal to travel to the boarding point to be recommended.
[0027] According to a second aspect of an embodiment of the present application, a reference location recommendation device is provided, including:
[0028] A request acquisition module, used to obtain a reference location acquisition request initiated by a target user terminal, wherein the reference location acquisition request carries a current location of the target user terminal;
[0029] A first determination module, used to determine a plurality of target reference locations within a preset range from the current location;
[0030] an acquisition module, used to input the identifier of the target area to which the current position belongs and the identifiers of each of the multiple target reference locations into a pre-trained vector generation model, to obtain a vector representation of the target area to which the current position belongs and a vector representation of each of the multiple target reference locations; wherein the vector generation model is obtained by training a preset model using the association relationship between regions of various sizes and each reference point as a training sample;
[0031] A second determination module, configured to determine a reference location to be recommended based on similarities between the vector representation of the target area to which the current location belongs and the vector representations of each of the plurality of target reference locations;
[0032] A sending module is used to push the reference location to be recommended to the target user terminal.
[0033] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when executed by the processor, the reference location recommendation method as described in the first aspect is implemented.
[0034] According to a fourth aspect of an embodiment of the present application, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor, the operations performed by the reference location recommendation method described in any one of the first aspects above can be performed.
[0035] By adopting the technical solution of the embodiment of the present application, a request for obtaining a reference location carrying the current location of the target user terminal initiated by the target user terminal can be obtained, and multiple target reference locations within a preset range from the current location can be determined; and the identifier of the target area to which the current location belongs and the identifiers of each of the multiple target reference locations are input into a pre-trained vector generation model to obtain a vector representation of the target area to which the current location belongs and a vector representation of each of the multiple target reference locations; and then, based on the similarity between the vector representation of the target area to which the current location belongs and the vector representation of each of the multiple target reference locations, the reference location to be recommended is determined.
[0036] Since the vector generation model is obtained by training the preset model with the association between regions of various sizes and various reference points as training samples, the vector generation model can effectively construct the association between target regions of different spatial scales and reference locations, for example, effectively depicting the association between geographic regions of large, medium and small spatial scales and reference locations. Furthermore, based on the vector representation of the target region generated by the vector generation model and the vector representations of multiple target reference locations, the degree of association between the target region to which the current location belongs and each reference location can be fully depicted, thereby improving the accuracy of recommending reference locations to users in the target region. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0038] Figure 1 is a flowchart of the steps of a training vector generation model shown in one embodiment of the present application;
[0039] Figure 2 is a schematic diagram of a region division according to an embodiment of the present application;
[0040] Figure 3 is a schematic diagram of a weight network obtained in one size according to an embodiment of the present application;
[0041] Figure 4 It is a schematic diagram of a walk sequence corresponding to a weighted network shown in an embodiment of the present application;
[0042] Figure 5 is a flowchart of steps for updating a vector generation model shown in an embodiment of the present application;
[0043] Figure 6 is a flowchart of the steps of a reference location recommendation method according to an embodiment of the present application;
[0044] Figure 7 It is a structural diagram of a reference location recommendation device in one embodiment of the present application. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0047] In the related art, the recommended pick-up locations for users generally rely on the statistical characteristics of historical car orders, such as order popularity, pick-up popularity, etc. However, when using this method, on the one hand, due to the uneven distribution of car orders for different geographical areas, it is impossible to fully reflect the relationship between the distance between the order issuance area and the pick-up point and the walking cost of the passengers. On the other hand, when considering the statistical characteristics of historical car orders, statistics are not performed from multiple spatial scales, but rather from a single spatial scale, which is prone to characterization deviations. Therefore, the above two reasons lead to the inaccuracy of the pick-up locations recommended to users in the related art.
[0048] In the actual taxi-hailing scenario, the recommendation of the boarding location is less affected by the crowd portrait (i.e., the crowd's preferences), but is greatly affected by the geographical portrait. Based on this, in order to improve the accuracy of the boarding location recommended to users, the inventor proposed the following technical concept: According to historical orders, a graph network link relationship between order-issuing areas and boarding locations of various scales is constructed, and a sequence set obtained by walking multiple graph networks is integrated to establish an association relationship between order-issuing areas and boarding locations of various scales. After that, based on the established association relationship, the degree of association between the current order-issuing area of the currently received car order and the surrounding boarding locations can be determined, and then the boarding location with a higher degree of association with the current order-issuing area can be determined according to the degree of association.
[0049] By adopting the technical concept of this application, the relationship between user preferences and geographical areas can be better characterized, so as to recommend more accurate boarding locations to users.
[0050] In the embodiment of the present application, the boarding location may also be referred to as a reference location, and the current order issuing area may also be referred to as a target area.
[0051] First, in order to improve the intelligence of determining the boarding location in the present application and improve the generalization ability of the method described in the present application, a graph network link relationship between the order issuance area and the boarding point can be constructed at multiple spatial scales based on historical orders, and a sequence set obtained by multiple graph network walks can be fused; based on the skip-gram method, the walk sequences at multiple scales are jointly trained to train a vector generation model, which can characterize the vector representation of the current order issuance area and the association relationship between multiple boarding locations through vector representation.
[0052] Reference Figure 1 As shown, a flow chart of the steps of training vector generation model in an embodiment of the present application is shown, such as Figure 1 As shown, the specific training process is as follows:
[0053] Step S101: obtaining a plurality of historical records, each of which includes a historical location of a user terminal and a corresponding historical reference location.
[0054] In this embodiment, the historical records can be obtained by the server, and the multiple historical records can be records of the user's use of the car in a certain period of time before the current time. Each historical record can include the historical location and historical reference location of the user's order. The historical location refers to the geographical location of the user when the order is issued, and the historical reference location can refer to the recommended pick-up location for the user.
[0055] In an embodiment of the present application, the historical location of the user's order placement can be used to help determine the area where the user terminal was located at the time, and the historical reference location can be used to associate with the area where the user was located at the time.
[0056] Step S102: Determine the regions of various sizes to which each historical position belongs.
[0057] In this embodiment, the multiple sizes can be pre-set to sizes different from each other, so that for each historical position, the historical position can be classified into areas of different sizes.
[0058] In practice, the same region can be divided according to a plurality of pre-set sizes, so as to obtain regions obtained under the division of a plurality of different sizes. Among them, the division of a region at a plurality of scales can be performed by using geohash.
[0059] For example, refer to Figure 2 As shown, a schematic diagram of regional division is shown. Figure 2For a region A (which may refer to a city or a province), the region A may be divided into different sizes in advance. Thus, for a historical location H, the historical location H may be located in the region A1 divided according to the small size, and also in the region A2 divided according to the medium size, and also in the region A3 divided according to the large size.
[0060] After obtaining the areas of different sizes to which each historical location belongs, it is convenient to subsequently depict the correlation between geographical areas of different sizes and the boarding locations.
[0061] Step S103: Based on the multiple historical records, a weight network corresponding to each size is constructed with regions of the size and historical reference points as nodes, wherein the weight of an edge in the weight network represents the degree of association between two nodes connected by the edge.
[0062] In this embodiment, a node in the weighted network can be connected to other adjacent nodes, and the edge formed by the connection can have a weight, and the weight can represent the degree of association between the two adjacent nodes connected, that is, the degree of association can refer to the degree of association between historical reference locations. For example, if the probability of users in the same area getting on the bus at the two nodes is not much different, the higher the degree of association between the two nodes can be.
[0063] In a specific implementation, for an area of a certain size, one can walk from one historical reference location to another historical reference location, and when walking to another historical reference location, the connection line (i.e., edge) formed by the two will carry a weight, thereby obtaining a weighted network composed of multiple historical reference locations. As described above, the weight represents the degree of association between the two, wherein, in one example, the weight can be determined based on the number of connections between the two historical reference locations in the historical records.
[0064] In this embodiment, the number of constructed weighted networks is consistent with the number of types of sizes used. For example, if three sizes are used to divide the geography, there are three weighted networks, which are weighted walking networks between historical reference locations under geographical area divisions of different sizes.
[0065] like Figure 3 , a schematic diagram of a weight network obtained according to one of the dimensions is shown. Wherein, V represents any historical reference location.
[0066] Step S104: Generate training samples according to the weight networks corresponding to the various sizes.
[0067] In this embodiment, after obtaining multiple weight networks, for each weight network, a corresponding walk sequence can be obtained according to the Node2Vec method, thereby obtaining walk sequences corresponding to each of the multiple weight networks, and then based on the skipgram method, positive and negative sample pairs can be generated for the walk sequences List_1, List_2, and List_3 respectively.
[0068] In one example, in a specific implementation, a walking sequence starting from any node can be obtained according to the weight network corresponding to each size; for each walking sequence, positive sample pairs and negative sample pairs are generated according to the number of hops between nodes; each positive sample pair and each negative sample generated based on the nodes corresponding to the overlapping areas are divided into a group of training samples to obtain multiple groups of training samples.
[0069] In this example, the number of hops between nodes can reflect whether the nodes are adjacent nodes. For example, if node 1 is separated from node 2 by 1 hop, then node 1 and node 2 are adjacent nodes. If node 1 is separated from node 2 by 2 hops, then node 1 and node 2 are non-adjacent nodes. Among them, a positive sample pair refers to a sample pair consisting of two adjacent nodes, and a negative sample pair refers to a sample pair consisting of two non-adjacent nodes. Overlapping areas refer to areas where areas of different sizes overlap. In this way, by dividing the positive sample pairs and negative sample pairs generated by the nodes corresponding to the overlapping areas into a group of training samples, the association between areas of different sizes and each historical reference node is characterized. In this way, the model training is performed based on the association between areas of different sizes and each historical reference node as training samples.
[0070] Each positive sample pair and each negative sample pair include a node identifier and a region identifier. The node identifier may be a node ID, specifically an ID of a reference location, and the region identifier may be an ID of the region.
[0071] In this embodiment, refer to Figure 4 As shown, a schematic diagram of the walk sequence corresponding to one of the weighted networks is shown. Figure 4 The "v" in the above formula represents the jump node, where Figure 4 The figure shows the walk sequence diagrams corresponding to the weighted networks of four sizes. The circle in the figure indicates a node and the arrow indicates the jump order.
[0072] Step S105: using the training samples to train the preset model to obtain the vector generation model.
[0073] In this embodiment, since multiple sets of training samples are obtained, the preset model can be trained using the multiple sets of training samples, wherein the preset model can be used to output vector representations corresponding to each region and vector representations of each historical reference location based on the input multiple sets of training samples. The preset model can be a skip-gram model.
[0074] In this embodiment, since the multiple groups of training samples are based on samples generated in regions of different scales, when training the preset model, a joint training method can be used to learn node embeddings.
[0075] In one example, as the number of car orders placed by users increases, training samples can be generated based on the newly added car orders, and the vector generation model can be continuously updated, thereby improving the accuracy of the vector representation of each reference location generated by the vector generation model, thereby further improving the accuracy of the recommended boarding locations for users.
[0076] Specifically, refer to Figure 5 As shown, a flowchart of the steps of updating the vector generation model is shown, which may specifically include the following steps:
[0077] Step S201: obtaining a plurality of newly added records, each of which includes an actual location of a user terminal and a corresponding actual reference location.
[0078] In this implementation, the newly added record may refer to the car use record corresponding to the car use order newly received by the server after the training of the vector generation model is completed. Similarly, each newly added record may include an actual location of a user terminal and an actual reference location. The actual location may be the location of the user terminal when sending the car use order.
[0079] Step S202: Generate new training samples according to the multiple new records.
[0080] In this implementation, the process of generating new training samples may be: based on the areas of various sizes to which each actual location in the multiple new records belongs, a new weighted network corresponding to the size is constructed with the areas of each size and each actual reference location as nodes, wherein the weight of the edge in the new weighted network represents the degree of association between the two nodes connected by the edge; and then, new training samples are generated based on the new weighted networks corresponding to each of the multiple sizes.
[0081] The process of constructing the newly added weight network is similar to the process of step S103. For relevant parts, please refer to the description of step S103. The process of generating the newly added training samples is similar to the process of step S104. For relevant parts, please refer to the description of step S104.
[0082] Step S203: updating the vector generation model according to the newly added training samples.
[0083] In this embodiment, updating the vector generation model may refer to: re-training the vector generation model with newly added training samples, thereby obtaining a trained vector generation model, that is, an updated vector generation model.
[0084] As the number of training samples increases, the model training effect becomes better and can better reflect the timeliness of the geographical features between the geographical area and the reference location, the updated vector generation model can more accurately output the vector representation of the reference location and the vector representation of the area.
[0085] According to the above steps, after the vector generation model is trained, the vector generation model can construct the association between the order issuance areas and the boarding locations of different spatial scales, so that when a new car order is generated, the vector generation model can output the vector representation of the target area and the vector representations of multiple target reference locations. Then, based on the vector representation of the target area and the vector representations of multiple target reference locations, the boarding location recommended to the target user can be determined.
[0086] Reference Figure 6 As shown, a flowchart of a reference location recommendation method according to an embodiment of the present application is shown. Figure 6 As shown, the following steps may be specifically included:
[0087] Step S301: obtaining a reference location acquisition request initiated by a target user terminal, wherein the reference location acquisition request carries the current location of the target user terminal.
[0088] In this embodiment, the reference location acquisition request may be a request issued by a user when a car is needed, and the reference location acquisition request may carry the current location of the target user terminal.
[0089] Step S302: Determine a plurality of target reference locations within a preset range from the current location.
[0090] Generally speaking, a plurality of target reference locations are stored near the current location of the user terminal, and the target reference location may refer to a location near the target user that can be used as a boarding location. In this embodiment, the preset range may be preset based on experience or demand, for example, if it is set to 1 kilometer, then the reference location within a radius of less than 1 kilometer from the current location of the target user may be determined as the target reference location.
[0091] Step S303: Input the identifier of the target area to which the current position belongs and the identifiers of each of the multiple target reference locations into a pre-trained vector generation model to obtain a vector representation of the target area to which the current position belongs and a vector representation of each of the multiple target reference locations.
[0092] The vector generation model is obtained by training a preset model using the association between regions of various sizes and various reference locations as training samples.
[0093] In this embodiment, the target area to which the current position belongs can be determined. Since it is necessary to recommend a boarding point to the user based on the user's current position, in order to improve the accuracy of recommending boarding points to the user and reduce the cost of boarding, the area divided by the minimum size can be used as the basis, and the area to which the current position belongs in each area divided by the minimum size can be determined as the target area. The identifier of the target area can refer to the ID of the target area, and the identifier of the target reference location can also be the ID of the target reference location. In specific implementation, the identifier of the target area to which the current position belongs and the identifiers of each of the multiple target reference locations can be input into a pre-trained vector generation model, thereby obtaining a vector representation of the target area to which the current position belongs and a vector representation of each of the multiple target reference locations.
[0094] Step S304: Determine a reference location to be recommended based on similarities between the vector representation of the target area to which the current location belongs and the vector representations of each of the plurality of target reference locations.
[0095] In this embodiment, since the vector representation of the target area to which the current position belongs and the vector representations of the multiple target reference locations are obtained, the similarities between the vector representation of the target area and the multiple target reference locations can be calculated respectively.
[0096] Among them, the similarity can reflect the degree of association between the target area to which the current location belongs and the target reference location, or, it can be understood as reflecting the boarding cost between the target area to which the current location belongs and the target reference location. The higher the similarity, the higher the degree of association between the target area and the target reference location, and the smaller the boarding cost. The corresponding target reference location is the reference location that users in the target area are more likely to choose.
[0097] Thus, the target reference location with the highest similarity or a similarity higher than a preset similarity can be determined as the reference location to be recommended that can be recommended to the target user.
[0098] It should be noted that, in the embodiment of the present application, new training samples will be generated according to multiple new records during the practice process, and then the vector generation model will be updated using the new training samples. Therefore, when the vector representation of the target area to which the current position belongs and the vector representations of each of the multiple target reference locations are obtained, the identifier of the target area to which the current position belongs and the identifier of each of the multiple target reference locations can be input into the updated vector generation model, thereby obtaining the updated vector representation of the target area to which the current position belongs and the updated vector representation of each of the multiple target reference locations. Then, according to the similarity between the updated vector representation of the target area to which the current position belongs and the updated vector representation of each of the multiple target reference locations, the reference location to be recommended is determined.
[0099] Step S305: Pushing the reference location to be recommended to the target user terminal.
[0100] In this embodiment, the determined reference location to be recommended can be pushed to the target user terminal. When there are multiple reference locations to be recommended, all of them can be recommended to the user, or the reference location to be recommended that is closest to the current location of the target user or has the highest similarity with the target area can be pushed to the target user terminal.
[0101] Among them, in one example, the reference location acquisition request is a boarding point acquisition request. When the reference location to be recommended is pushed to the target user terminal, the reference location to be recommended can be pushed to the target user terminal as the boarding point to be recommended, and a prompt message is sent to the target user terminal to prompt the user of the target user terminal to travel to the boarding point to be recommended.
[0102] The boarding point acquisition request may refer to a boarding point recommendation request issued by a user when he needs to use a car. For example, the target user needs the platform to recommend a suitable boarding point to him. In this case, the reference location to be recommended may be the boarding point to be recommended. When the boarding point to be recommended is pushed to the target user terminal, prompt information may be sent to the target user terminal at the same time. The prompt information may be information prompting the user of the target user terminal to go to the boarding point to be recommended.
[0103] In one example, the prompt information may include route information from the current location of the target user terminal to the recommended boarding point, so that the user of the target user terminal can be helped to travel to the recommended boarding point according to the route information. In another example, the prompt information may include a real-life image of the recommended boarding point, so that the user of the target user terminal can be helped to accurately locate the recommended boarding point based on the real-life image. Of course, in another example, the prompt information may include the above-mentioned route information and a real-life image of the recommended boarding point.
[0104] The technical solution of this application has the following advantages:
[0105] First, based on historical orders, a graph network link relationship between order issuance areas and boarding locations of various scales is constructed, and a sequence set obtained by walking multiple graph networks is integrated to establish an association relationship between order issuance areas and boarding locations of various scales. Afterwards, based on the established association relationship, the similarity between the current order issuance area of the currently received car order and the surrounding boarding locations can be determined, thereby accurately depicting the relationship between the user's order issuance area and the boarding location, thereby obtaining a more accurate boarding location.
[0106] Second, by training a vector generation model to depict the vector representation of the current order area and the vector representation of each of the multiple pick-up locations, the efficiency of the present application in determining the precise pick-up location can be improved. In addition, in the process of using the vector generation model, the vector generation model can be continuously updated as the number of orders increases, thereby further improving the accuracy of the pick-up location recommendation.
[0107] Based on the same inventive concept as the above embodiment, Figure 7 FIG. 1 is a block diagram showing a structure of a reference location recommendation device according to the present embodiment. The device may specifically include the following modules:
[0108] A request acquisition module 701 is used to obtain a reference location acquisition request initiated by a target user terminal, wherein the reference location acquisition request carries the current location of the target user terminal;
[0109] A first determination module 702 is used to determine a plurality of target reference locations within a preset range from the current location;
[0110] The obtaining module 703 is used to input the identifier of the target area to which the current position belongs and the identifiers of each of the multiple target reference locations into a pre-trained vector generation model to obtain a vector representation of the target area to which the current position belongs and a vector representation of each of the multiple target reference locations; wherein the vector generation model is obtained by training a preset model using the association relationship between regions of various sizes and each reference point as a training sample;
[0111] A second determination module 704 is used to determine a reference location to be recommended according to similarities between the vector representation of the target area to which the current location belongs and the vector representations of the plurality of target reference locations;
[0112] The sending module 705 is used to push the reference location to be recommended to the target user terminal.
[0113] Optionally, the device may further include the following modules:
[0114] A historical record acquisition module, used to acquire multiple historical records, each of which includes a historical location of a user terminal and a corresponding historical reference location;
[0115] A third determination module is used to determine the regions of various sizes to which each historical location belongs;
[0116] A network construction module, for constructing a weight network corresponding to each size based on the plurality of historical records and taking the regions of each size and each reference point as nodes, wherein the weight of an edge in the weight network represents the degree of association between two nodes connected by the edge;
[0117] A sample generation module is used to generate training samples according to weight networks corresponding to various sizes;
[0118] The training module is used to train the preset model using the training samples to obtain the vector generation model.
[0119] Optionally, the sample generation module may specifically include the following units:
[0120] A sequence obtaining unit is used to obtain a walking sequence starting from any node according to the weight network corresponding to each size;
[0121] A positive and negative sample generation unit is used to generate positive sample pairs and negative sample pairs for each walking sequence according to the number of hops between nodes;
[0122] The sample forming unit is used to divide each positive sample pair and each negative sample generated based on the nodes corresponding to the mutually overlapping regions into a group of training samples to obtain multiple groups of training samples.
[0123] Optionally, the device may further include the following modules:
[0124] A newly added record acquisition module, used to obtain multiple newly added records, each of which contains an actual location of a user terminal and a corresponding actual reference location;
[0125] A new sample generation module, used to generate new training samples according to the multiple new records;
[0126] An updating module, used for updating the vector generation model according to the newly added training samples;
[0127] An input module is used to input the identifier of the target area to which the current position belongs and the identifiers of each of the multiple target reference locations into the updated vector generation model to obtain an updated vector representation of the target area to which the current position belongs and an updated vector representation of each of the multiple target reference locations.
[0128] Optionally, the reference location acquisition request is a boarding point acquisition request; the sending module can be specifically used to push the reference location to be recommended as the boarding point to be recommended to the target user terminal, and send prompt information to the target user terminal to prompt the user of the target user terminal to travel to the boarding point to be recommended.
[0129] It should be noted that the device embodiment is similar to the method embodiment, so the description is relatively simple, and the relevant parts can be referred to the method embodiment.
[0130] An embodiment of the present application also provides an electronic device that can be used to execute the video stream processing method, and may include a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to execute the reference location recommendation method.
[0131] An embodiment of the present application also provides a non-temporary computer-readable storage medium. When instructions in the storage medium are executed by a processor, the processor is enabled to perform an operation to implement the reference location recommendation method described above in the present application.
[0132] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0133] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0134] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.
[0135] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0136] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0137] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0138] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0139] The above is a detailed introduction to a reference location recommendation method, device, equipment and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A reference location recommendation method, characterized in that: The method comprises: Obtaining a reference location acquisition request initiated by a target user terminal, wherein the reference location acquisition request carries a current location of the target user terminal; Determining a plurality of target reference locations within a preset range from the current location; Inputting the identifier of the target area to which the current position belongs and the identifiers of each of the multiple target reference locations into a pre-trained vector generation model, obtaining a vector representation of the target area to which the current position belongs and a vector representation of each of the multiple target reference locations; wherein the vector generation model is obtained by training a preset model using the association relationship between areas of various sizes and each reference location as a training sample; wherein the association relationship represents the weight carried by the connection line formed by the two when walking from one reference location to another reference location under each size of the area, and the weight is determined based on the number of connections between the two reference locations; Determining a reference location to be recommended according to similarities between the vector representation of the target area to which the current location belongs and the vector representations of each of the plurality of target reference locations; The reference location to be recommended is pushed to the target user terminal.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining a plurality of historical records, each of which includes a historical location of a user terminal and a corresponding historical reference location; Determine the regions of various sizes to which each historical location belongs; According to the multiple historical records, a weight network corresponding to each size is constructed with regions of the size and each historical reference point as nodes, wherein the weight of an edge in the weight network represents the degree of association between two nodes connected by the edge; Generate training samples based on weight networks corresponding to various sizes; The preset model is trained using the training samples to obtain the vector generation model.
3. The method according to claim 2, characterized in that Generate training samples based on weight networks corresponding to various sizes, including: According to the weight network corresponding to each size, a walking sequence starting from any node is obtained; For each walking sequence, positive sample pairs and negative sample pairs are generated according to the number of hops between nodes; Each positive sample pair and each negative sample generated based on the nodes corresponding to the mutually overlapping regions are divided into a group of training samples to obtain multiple groups of training samples.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Obtaining multiple newly added records, each newly added record including an actual location of a user terminal and a corresponding actual reference location; Generating new training samples according to the multiple new records; According to the newly added training samples, the vector generation model is updated; The identifier of the target area to which the current position belongs and the identifiers of each of the multiple target reference locations are input into the updated vector generation model to obtain an updated vector representation of the target area to which the current position belongs and an updated vector representation of each of the multiple target reference locations.
5. The method according to any one of claims 1 to 3, characterized in that: The reference location acquisition request is a boarding point acquisition request; Pushing the reference location to be recommended to the target user terminal includes: The reference location to be recommended is pushed to the target user terminal as a boarding point to be recommended, and prompt information is sent to the target user terminal to prompt the user of the target user terminal to travel to the boarding point to be recommended.
6. A reference location recommendation device, characterized in that: The device comprises: A request acquisition module, used to obtain a reference location acquisition request initiated by a target user terminal, wherein the reference location acquisition request carries a current location of the target user terminal; A first determination module, used to determine a plurality of target reference locations within a preset range from the current location; an acquisition module, for inputting the identifier of the target area to which the current position belongs and the identifiers of each of the multiple target reference locations into a pre-trained vector generation model, to obtain a vector representation of the target area to which the current position belongs and a vector representation of each of the multiple target reference locations; wherein the vector generation model is obtained by training a preset model using the association relationship between areas of various sizes and each reference point as a training sample; wherein the association relationship represents the weight carried by the connection line formed by the two when walking from one reference location to another reference location under each size of the area, and the weight is determined based on the number of connections between the two reference locations; A second determination module, configured to determine a reference location to be recommended based on similarities between the vector representation of the target area to which the current location belongs and the vector representations of each of the plurality of target reference locations; A sending module is used to push the reference location to be recommended to the target user terminal.
7. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the method, the method for recommending reference locations according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium, characterized in that: The computer program stored therein enables the processor to execute the reference location recommendation method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Digital work recommendation method and device, equipment and storage medium
CN110276014A
Personalized tourism place recommendation method based on multi-level visual similarity of geographically labeled photos
CN111159543A
Recommendation method and device, electronic equipment and storage medium
CN111353106A
Position recommendation method and device, electronic equipment and readable storage medium
CN111428158A
Boarding point recommendation method, device and apparatus, and storage medium
CN111652676A
