Object representation extraction and model training method, device, equipment, medium and product

By weighting the calculation of ID representation vectors and static representation vectors in low-frequency links, the problem of insufficient representation accuracy of low-frequency links is solved, and the accuracy of route recommendation is improved. Especially for high-frequency objects, the proportion of ID representation vectors is enhanced. The negative impact of poorly learned ID representation vectors is reduced.

CN118734028APending Publication Date: 2024-10-01ALIBABA (CHINA) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310353802.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the representation accuracy of low-frequency links is low, resulting in insufficient accuracy of route recommendation, mainly due to the lack of sufficient data for learning the representation of low-frequency links.

Method used

Through the preset ID representation extraction model and static representation extraction model, the ID representation vector and static representation vector are extracted from the object's identity ID and static attribute data, and weighted calculations are performed based on the historical frequency of occurrence to form a comprehensive representation vector to improve Characterization accuracy.

Benefits of technology

It improves the representation accuracy of low-frequency links, reduces the noise introduced by static representation vectors, and enhances the accuracy of route recommendation. Especially for high-frequency objects, it enhances the proportion of ID representation vectors and reduces poorly learned IDs. Characterize the negative effects of vectors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734028A_ABST
    Figure CN118734028A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an object representation extraction and model training method and device, equipment, a medium and a product, and the method comprises the steps: extracting an ID representation vector of an object from an ID of the object through a preset ID representation extraction model; extracting a static representation vector of the object from the static attribute data of the object through a preset static representation extraction model; through a preset probability model, according to the static attribute data and the historical occurrence frequency of the object, an ID representation probability value and / or a static representation probability value of the object are / is determined, and the sum of the ID representation probability value and the static representation probability value is 1; and performing weighted calculation on the ID representation vector and the static representation vector of the object by using the ID representation probability value and / or the static representation probability value of the object in the splicing layer to obtain a comprehensive representation vector of the object. According to the technical scheme, the comprehensive representation vector capable of more accurately describing the object features can be extracted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of map data processing, and in particular to an object representation extraction and model training method, device, equipment, medium, and product. Background Art

[0002] With the rapid development of Internet technology and positioning technology, the route recommendation function of electronic maps has been increasingly applied to people's travel life. The key to route recommendation is to have an accurate understanding of the route. At present, in order to alleviate the problem of poor route representation caused by incorrect data or incomplete features of road link (the smallest unit of road in map data), link ID embedding (representation) is introduced. Link ID representation is obtained by the representation extraction model through learning the traffic data of the link in the historical period. Since a large number of links have only a few users in the historical period, these links appear less frequently in the data learned by the model. The representation extraction model does not have sufficient data to learn the representation of these low-frequency links. Therefore, how to solve the problem of the accuracy of the representation of low-frequency links has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] In order to solve the problems in the related art, the embodiments of the present disclosure provide an object representation extraction and model training method, device, equipment, medium, and product.

[0004] In a first aspect, an object representation extraction method is provided in an embodiment of the present disclosure.

[0005] Specifically, the object representation extraction method includes:

[0006] Extracting an ID representation vector of the object from the identity ID of the object through a preset ID representation extraction model;

[0007] Extracting a static representation vector of the object from the static attribute data of the object by using a preset static representation extraction model;

[0008] Determine the ID characterization probability value and / or the static characterization probability value of the object according to the static attribute data and the historical occurrence frequency of the object through a preset probability model, wherein the sum of the ID characterization probability value and the static characterization probability value is 1;

[0009] At the splicing layer, the ID characterization probability value and / or the static characterization probability value of the object are used to perform weighted calculation on the ID characterization vector and the static characterization vector of the object to obtain a comprehensive characterization vector of the object.

[0010] In a second aspect, an embodiment of the present disclosure provides an object representation extraction model training method, comprising:

[0011] Acquire sample data, where the sample data includes an identification ID, static attribute data, historical occurrence frequency, and historical task results of the sample object;

[0012] Based on the sample data, the initial task model is trained, and the parameters in the initial task model are adjusted until the accuracy of the prediction result of the task model reaches a preset threshold compared with the historical task result, so as to obtain a trained task model, wherein the task model includes an object representation extraction model and a task result prediction model;

[0013] Among them, the object representation extraction model includes an ID representation extraction model, a static representation extraction model, a probability model and a splicing layer. The ID representation extraction model is used to extract the corresponding ID representation vector from the ID of the object, and the static representation extraction model is used to extract the static representation vector of the object from the static attribute data of the object. The input of the gated network model is the static attribute data and historical occurrence frequency of the object, and the output is the ID representation probability value and / or static representation probability value of the object. The splicing layer is used to perform weighted calculation on the ID representation vector and the static representation vector of the object according to the ID representation probability value and / or static representation probability value of the object to obtain the comprehensive representation vector of the object; the input of the task result prediction model is the comprehensive representation vector of the object, and the output is the predicted task result.

[0014] In a third aspect, an embodiment of the present disclosure provides an object recommendation method, wherein a comprehensive representation vector of the object is obtained by any method described in the first aspect, and the method includes:

[0015] Obtaining a comprehensive representation vector of the object;

[0016] The comprehensive representation vector of the object is input into the object recommendation model, and the object recommendation model is executed to obtain the recommended object output by the object recommendation model.

[0017] In a fourth aspect, an embodiment of the present disclosure provides an object representation extraction device, including:

[0018] An ID representation extraction module is configured to extract an ID representation vector of the object from the ID of the object through a preset ID representation extraction model;

[0019] A static representation extraction module, configured to extract a static representation vector of the object from the static attribute data of the object by using a preset static representation extraction model;

[0020] A probability acquisition module is configured to determine an ID characterization probability value and / or a static characterization probability value of the object according to the static attribute data and the historical occurrence frequency of the object through a preset probability model, wherein the sum of the ID characterization probability value and the static characterization probability value is 1;

[0021] The splicing module is configured to perform weighted calculation on the ID representation vector and the static representation vector of the object using the ID representation probability value and / or the static representation probability value of the object at the splicing layer to obtain a comprehensive representation vector of the object.

[0022] In a fifth aspect, an embodiment of the present disclosure provides an object representation extraction model training device, wherein the device includes:

[0023] A sample acquisition module is configured to acquire sample data, wherein the sample data includes an identification ID, static attribute data, historical occurrence frequency, and historical task results of the sample object;

[0024] A training module is configured to train an initial task model based on the sample data, adjust parameters in the initial task model until the accuracy of the prediction result of the task model compared with the historical task result reaches a preset threshold, and obtain a trained task model, wherein the task model includes an object representation extraction model and a task result prediction model;

[0025] Among them, the object representation extraction model includes an ID representation extraction model, a static representation extraction model, a probability model and a splicing layer. The ID representation extraction model is used to extract the corresponding ID representation vector from the ID of the object, and the static representation extraction model is used to extract the static representation vector of the object from the static attribute data of the object. The input of the gated network model is the static attribute data and historical occurrence frequency of the object, and the output is the ID representation probability value and / or static representation probability value of the object. The splicing layer is used to perform weighted calculation on the ID representation vector and the static representation vector of the object according to the ID representation probability value and / or static representation probability value of the object to obtain the comprehensive representation vector of the object; the input of the task result prediction model is the comprehensive representation vector of the object, and the output is the predicted task result.

[0026] In a sixth aspect, an embodiment of the present disclosure provides an object recommendation device, wherein the comprehensive representation vector of the object is obtained by the method described in the first aspect, and the device includes:

[0027] A representation vector acquisition module, configured to acquire a comprehensive representation vector of the object;

[0028] The recommendation module is configured to input the comprehensive representation vector of the object into the object recommendation model, execute the object recommendation model, and obtain the recommended object output by the object recommendation model.

[0029] In a seventh aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer instructions, and wherein the one or more computer instructions are executed by the processor to implement a method as described in any one of the first aspects.

[0030] In an eighth aspect, an embodiment of the present disclosure provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, a method as described in any one of the first aspects is implemented.

[0031] In a ninth aspect, a computer program product is provided in an embodiment of the present disclosure, comprising computer instructions, which, when executed by a processor, implement the method steps as described in any one of the first aspects.

[0032] In the tenth aspect, a navigation method is provided in an embodiment of the present disclosure, wherein a navigation route calculated at least based on a starting point, an end point and road conditions is obtained based on an electronic map, and navigation guidance is performed based on the navigation route, wherein the navigation route is a route recommended by the object recommendation method described in the third aspect, and the object includes a road segment link.

[0033] According to the technical solution provided by the embodiment of the present disclosure, the ID representation vector of the object is extracted from the identity ID of the object through a pre-set ID representation extraction model, and the static representation vector of the object is extracted from the static attribute data of the object through a pre-set static representation extraction model; then, the ID representation probability value and the static representation probability value of the object are determined according to the static attribute data and the historical frequency of occurrence of the object through a pre-set probability model, so that the ID representation probability value and the static representation probability value of the object can be used to perform weighted calculation on the ID representation vector and the static representation vector of the object to obtain the comprehensive representation vector of the object. In this way, for high-frequency objects with better ID representation vectors, the proportion of ID representation vectors in the comprehensive representation vector of high-frequency objects can be made higher, reducing the noise that may be caused by the introduction of static representation vectors; for low-frequency objects with poor ID representation vectors, the proportion of static representation vectors in the comprehensive representation vector of the low-frequency objects can be made higher, reducing the negative impact caused by poorly learned ID representation vectors; in this way, a comprehensive representation vector that can more accurately describe the characteristics of the object can be obtained.

[0034] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:

[0036] Figure 1 A flowchart showing an object representation extraction method according to an embodiment of the present disclosure is shown;

[0037] Figure 2 A schematic diagram of an extraction process of object representation according to an embodiment of the present disclosure is shown;

[0038] Figure 3 A flowchart showing an object representation extraction model training method according to an embodiment of the present disclosure is shown;

[0039] Figure 4 A schematic diagram showing the structure of a task model according to an embodiment of the present disclosure is shown;

[0040] Figure 5 A flowchart showing an object recommendation method according to an embodiment of the present disclosure is shown;

[0041] Figure 6 A schematic diagram showing an application scenario of route recommendation according to an embodiment of the present disclosure;

[0042] Figure 7 A structural block diagram of an object representation extraction device according to an embodiment of the present disclosure is shown;

[0043] Figure 8 A structural block diagram of an object representation extraction model training device according to an embodiment of the present disclosure is shown;

[0044] Fig. 9 A structural block diagram of an object recommendation device according to an embodiment of the present disclosure is shown;

[0045] Fig.10 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;

[0046] Fig.11 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0047] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.

[0048] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.

[0049] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0050] In the present disclosure, the acquisition of user information or user data is an operation authorized and confirmed by the user, or actively selected by the user.

[0051] As mentioned above, with the rapid development of Internet technology and positioning technology, the route recommendation function of electronic maps has been increasingly applied to people's travel life. The key to route recommendation is to have an accurate understanding of the route. At present, in order to alleviate the problem of poor route representation caused by link (the smallest unit of road in map data) data errors or incomplete features, link ID embedding (representation) is introduced. Link ID representation is obtained by the representation extraction model through learning the traffic data of the link in the historical period. Since a large number of links have only a few users in the historical period, these links appear less frequently in the model learning data. The representation extraction model does not have sufficient data to learn the representation of these low-frequency links. Therefore, how to solve the problem of the accuracy of the representation of low-frequency links has become a technical problem that needs to be solved urgently.

[0052] The present disclosure provides an object representation extraction method, which can increase the static representation vector corresponding to the static attribute data of the object, splice the static representation vector of the object with the ID representation vector of the object to form a comprehensive representation vector of the object, and during the splicing, the weights of the static representation vector and the ID representation vector in the spliced ​​comprehensive representation vector can be determined according to the static attribute data and the historical occurrence frequency of the object; in this way, for high-frequency link objects whose ID representation vectors are learned better, the proportion of the ID representation vector in the comprehensive representation vector of the high-frequency link object can be made higher, reducing the noise that may be caused by the introduction of the static representation vector; for low-frequency link objects whose ID representation vectors are not learned well, the proportion of the static representation vector in the comprehensive representation vector of the low-frequency link object can be made higher, reducing the negative impact caused by the poorly learned ID representation vector; in this way, a comprehensive representation vector that can more accurately describe the object characteristics can be obtained.

[0053] Figure 1 FIG. 1 is a flowchart of an object representation extraction method according to an embodiment of the present disclosure. Figure 1As shown, the object representation extraction method includes the following steps S101-S104:

[0054] In step S101, an ID representation vector of the object is extracted from the ID of the object by using a preset ID representation extraction model;

[0055] In step S102, a static representation vector of the object is extracted from the static attribute data of the object by using a preset static representation extraction model;

[0056] In step S103, the ID characterization probability value and / or the static characterization probability value of the object are determined according to the static attribute data and the historical occurrence frequency of the object through a preset probability model, wherein the sum of the ID characterization probability value and the static characterization probability value is 1;

[0057] In step S104, the ID representation probability value and / or the static representation probability value of the object are used to perform weighted calculation on the ID representation vector and the static representation vector of the object at the concatenation layer to obtain a comprehensive representation vector of the object.

[0058] In a possible implementation, the object representation extraction method is applicable to a computer, computing device, server, server cluster, or other device capable of performing object representation extraction.

[0059] In a possible implementation, the object refers to any object whose features need to be extracted. For example, the object may be a link, which refers to the smallest unit of a road in map data, namely a section of road, which may be called a road segment; or, the object may also be a commodity.

[0060] In a possible implementation, the ID (Identity Document) of the object may be unique identification information of the object. For example, the ID of the object may be the number of the object. For example, when the object is a link, the ID of the object is the link ID, that is, the link number.

[0061] In one possible implementation, the static attribute data of the object refers to data used to describe the inherent attributes of the object. For example, when the object is a link, the static attribute data of the object may be attribute data such as the length, width, number of lanes, road type (such as expressways, Class N highways, etc.) of the link; when the object is a commodity, the static attribute data of the object may be attribute data such as the type, brand, price, etc. of the commodity.

[0062] In a possible implementation, the historical occurrence frequency of the object refers to the number of times the object appears in the sample data when the sample data is used to train the ID representation extraction model.

[0063] In one possible implementation, Figure 2 The schematic diagram of the object representation extraction process according to the embodiment of the present disclosure is shown. The ID representation extraction model refers to a pre-trained model that can extract the ID representation vector of the object from the identity ID of the object, such as Figure 2 As shown, the input of the ID representation extraction model 201 is the ID of the object, and the output is the ID representation vector of the object. For example, the ID representation extraction model 201 can be a single hash embedding (representation), multi-hash composite embedding, and other network models that can convert ID into embedding. It should be noted here that embedding is a common technology in the field of NLP (Natural Language Processing), which can convert high-dimensional sparse vectors into low-dimensional dense vectors.

[0064] In a possible implementation, the static representation extraction model may be a pre-trained model capable of extracting a static representation vector of an object from static attribute data of the object, such as Figure 2 As shown, the input of the static representation extraction model 202 is the static attribute data of the object, and the output of the static representation extraction model 202 is the static representation vector of the object. For example, the static representation extraction model can be a model such as DNN (Deep Neural Networks).

[0065] In one possible implementation, the probability model is a pre-trained model, such as Figure 2 As shown, the input of the probability model 203 is the static attribute data and historical occurrence frequency of the object, and the output of the probability model 203 is the ID characterization probability value and / or the static characterization probability value of the object, and the sum of the ID characterization probability value and the static characterization probability value of the object is 1; the probability model can determine the ID characterization probability value and / or the static characterization probability value of the object based on the static attribute data and historical occurrence frequency of the object. If the historical occurrence frequency is higher and the static attribute data is more inaccurate, the obtained ID characterization probability value of the object will be higher; if the historical occurrence frequency is lower and the static attribute data is more accurate, the obtained static characterization probability value of the object will be higher.

[0066] In a possible implementation, the output of the probability model may be an ID characterization probability value of the object, or a static characterization probability value, or an ID characterization probability value and a static characterization probability value of the object. Regardless of the probability value output by the probability model, the ID characterization probability value and the static characterization probability value of the object can be calculated based on the condition that the sum of the ID characterization probability value and the static characterization probability value of the object is 1, and then the ID characterization vector and the static characterization vector of the object are weightedly calculated at the splicing layer 204 to obtain a comprehensive characterization vector of the object. For example, assuming that the probability value of the ID characterization vector E1 of the object is P, the probability value of the static characterization vector E2 of the object is 1-P, and the comprehensive characterization vector of the object is E1*P+E2*(1-P).

[0067] This embodiment can extract the ID representation vector of the object from the identity ID of the object through a pre-set ID representation extraction model, and extract the static representation vector of the object from the static attribute data of the object through a pre-set static representation extraction model; then determine the ID representation probability value and static representation probability value of the object according to the static attribute data and historical frequency of occurrence of the object through a pre-set probability model, so that the ID representation probability value and static representation probability value of the object can be used to perform weighted calculation on the ID representation vector and static representation vector of the object to obtain a comprehensive representation vector of the object. In this way, for high-frequency objects with better ID representation vectors, the proportion of ID representation vectors in the comprehensive representation vector of high-frequency objects can be made higher, reducing the noise that may be caused by the introduction of static representation vectors; for low-frequency objects with poor ID representation vectors, the proportion of static representation vectors in the comprehensive representation vector of the low-frequency objects can be made higher, reducing the negative impact caused by poorly learned ID representation vectors; in this way, a comprehensive representation vector that can more accurately describe the characteristics of the object can be obtained.

[0068] In a possible implementation, Figure 2 As shown, the probability model 203 and the splicing layer 204 are modules in the gated network model.

[0069] In this implementation, the gated network model uses a gated mechanism to control how much information in the ID representation vector is stored in the comprehensive representation vector, and how much information in the static representation vector needs to be stored in the comprehensive representation vector. The gated network model includes a probability model and a splicing layer. The probability model outputs the ID representation probability value and / or the static representation probability value of the object to the splicing layer. The splicing layer performs weighted calculation on the ID representation vector and the static representation vector of the object according to the probability value output by it to obtain the comprehensive representation vector of the object.

[0070] In a possible implementation, when the static representation extraction model is a graph representation network model, extracting the static representation vector of the object from the static attribute data of the object by using the preset static representation extraction model includes:

[0071] The static attribute data of the object and the static attribute data of other objects associated with the object are input into the preset static representation extraction model, and the static representation extraction model is executed to obtain a static representation vector of the object output by the static representation extraction model.

[0072] In this embodiment, if the static representation extraction model is a graph representation network model, the input of the graph representation network model is the static attribute data of the object and the static attribute data of other objects associated with the object, and graph data can be constructed based on the input. The vertices of the graph in the graph data are the static attribute data of each object, and the edges of the graph are the association relationships between the static attribute data of the object and the associated objects. After the graph data is constructed, the graph representation network model can extract the static representation vector of the object from the graph data.

[0073] Figure 3 FIG. 1 is a flowchart of an object representation extraction model training method according to an embodiment of the present disclosure. Figure 3 As shown, the object representation extraction model training method includes the following steps S301-S302:

[0074] In step S301, sample data is obtained, where the sample data includes the identification ID, static attribute data, historical occurrence frequency and historical task results of the sample object;

[0075] In step S302, the initial task model is trained based on the sample data, and the parameters in the initial task model are adjusted until the accuracy of the prediction result of the task model reaches a preset threshold compared with the historical task result, so as to obtain a trained task model, which includes an object representation extraction model and a task result prediction model.

[0076] In a possible implementation, the object representation extraction model training method is applicable to a computer, computing device, server, server cluster, or other device that can perform object representation extraction model training.

[0077] In a possible implementation, the object refers to any object whose features need to be extracted, for example, the object may be a link, which refers to the smallest unit of a road in map data, i.e., a section of road, which may be called a road section; or the object may be a commodity. The sample object refers to an object collected when training the task model.

[0078] In a possible implementation, the ID (Identity Document) of the sample object may be unique identification information of the sample object. For example, the ID of the sample object may be the number of the object. For example, when the sample object is a link, the ID of the sample object is a link ID, that is, a link number.

[0079] In one possible implementation, the static attribute data of the sample object refers to data used to describe the inherent attributes of the sample object. For example, when the sample object is a link, the static attribute data of the sample object may be attribute data such as the length, width, number of lanes, road type (such as expressways, Class N highways, etc.) of the link; when the sample object is a commodity, the static attribute data of the sample object may be attribute data such as the type, brand, price, etc. of the commodity.

[0080] In a possible implementation manner, the historical occurrence frequency of the sample object refers to the number of occurrences of the sample object in the sample data.

[0081] In a possible implementation, the object representation extraction model extracts the representation vector of the object in order to complete a downstream task, and the historical task result refers to the actual task result corresponding to the downstream task within a historical period. For example, when the object is a link, the downstream task may be a route recommendation task, and the historical task result may be a historical actual route.

[0082] In one possible implementation, the initial task model can be trained based on the above-mentioned sample data, and the parameters in the initial task model can be continuously adjusted until the prediction results of the adjusted task model reach a preset threshold in accuracy compared with the historical task results, so that a trained task model can be obtained.

[0083] In one possible implementation, Figure 4 A schematic diagram showing the structure of a task model according to an embodiment of the present disclosure is shown as follows: Figure 4As shown, the task model 400 includes an ID representation extraction model 401, a static representation extraction model 402, a probability model 403, a splicing layer 404 and a task result prediction model 405; wherein, the ID representation extraction model 401, the static representation extraction model 402, the probability model 403 and the splicing layer 404 form an object representation extraction model, the ID representation extraction model 401 is used to extract the ID representation vector of the object from the ID of the object, that is, the input of the ID representation extraction model 401 is the ID of the object, and the output is the ID representation vector of the object; the static representation extraction model 402 is used to extract the static representation vector of the object from the static attribute data of the object, that is, the input of the static representation extraction model 402 is the static attribute data of the object, and the output is the static representation vector of the object. The input of the probability model 403 is the static attribute data and historical occurrence frequency of the object, and the output is the ID representation probability value and / or the static representation probability value of the object. The splicing layer 404 is used to perform weighted calculation on the ID representation vector and the static representation vector of the object according to the ID representation probability value and / or the static representation probability value of the object to obtain the comprehensive representation vector of the object; the input of the task result prediction model 405 is the comprehensive representation of the object, and the output is the predicted task result.

[0084] In a possible implementation, the ID representation extraction model can be a single hash embedding, multi-hash composite embedding or other network models that can convert an ID into an embedding. The static representation extraction model can be a DNN (Deep Neural Networks), a graph representation network model or other model. If the static representation extraction model is a graph representation network model, the input of the graph representation network model is the static attribute data of the object and the static attribute data of other objects associated with the object, and the output is the static representation vector of the object. At this time, the sample data used for training also includes the static attribute data of other objects associated with the sample object. The probability model and the splicing layer are modules in the gated network model.

[0085] This embodiment can obtain an object representation extraction model through sample data training, the ID representation extraction model in the object representation extraction model can extract the ID representation vector of the object from the object's identity ID, the static representation extraction model can extract the static representation vector of the object from the static attribute data of the object, the probability model can determine the ID representation probability value and / or the static representation probability value of the object according to the static attribute data and the historical frequency of occurrence of the object, and the splicing layer can use the ID representation probability value and / or the static representation probability value of the object to perform weighted calculation on the ID representation vector and the static representation vector of the object to obtain the comprehensive representation vector of the object. In this way, for high-frequency objects with better ID representation vectors, the object representation extraction model can make the proportion of ID representation vectors in the comprehensive representation vector of high-frequency objects higher, reducing the noise that may be caused by the introduction of static representation vectors, and for low-frequency objects with poor ID representation vectors, the object representation extraction model can make the proportion of static representation vectors in the comprehensive representation vector of the low-frequency objects higher, reducing the negative impact caused by poorly learned ID representation vectors; in this way, the object representation extraction model obtained by training using this embodiment can extract a comprehensive representation vector that can more accurately describe the characteristics of the object.

[0086] Figure 5 FIG. 1 is a flowchart of an object recommendation method according to an embodiment of the present disclosure. Figure 5 As shown, the object table recommendation method includes the following steps S501-S502:

[0087] In step S501, a comprehensive representation vector of the object is obtained;

[0088] In step S502, the comprehensive representation vector of the object is input into the object recommendation model, and the object recommendation model is executed to obtain the recommended object output by the object recommendation model.

[0089] In a possible implementation, the object recommendation method is applicable to a computer, computing device, server, server cluster, or other device capable of executing object recommendation.

[0090] In a possible implementation manner, the comprehensive representation vector of the object may be extracted by the object representation extraction method in the above implementation manner.

[0091] In a possible implementation, the object recommendation model is a trained model, the input is the comprehensive representation vector of the object, and the output is the recommended object. For example, assuming that the object is a link, the object recommendation model is used to recommend routes, and its input is the comprehensive representation vector of the link, and the output is the recommended route, which is composed of continuous links. Since the extracted comprehensive representation vector of the link can more accurately describe the link characteristics, it can recommend more reasonable recommended routes to users, which has obvious benefits in the indicator of the actual coverage rate of the first route. It should be noted here that the actual coverage rate of the first route indicates the ratio of the distance of the overlapping part between the first route in the recommended route and the route actually walked by the user to the distance of the actual route. The larger the value of the actual coverage rate of the first route, the better the recommended route.

[0092] This embodiment can use the extracted comprehensive representation vector of the object to recommend the object. Since the extracted comprehensive representation vector can describe the object characteristics more accurately, more reasonable recommended objects can be recommended to the user.

[0093] The disclosed embodiment also discloses a navigation service, wherein a navigation route is recommended based on the above-mentioned object recommendation method, and a navigation guidance service of a corresponding scene is provided to the carrier, wherein the corresponding scene is a combination of one or more of AR navigation, elevated navigation, or main and auxiliary road navigation.

[0094] The disclosed embodiment also discloses a navigation method, wherein a navigation route calculated at least based on a starting point, an end point and road conditions is obtained based on an electronic map, and navigation guidance is performed based on the navigation route, wherein the electronic map is a route recommended based on any one of the above-mentioned object recommendation methods, and the object includes a road segment link.

[0095] Figure 6 FIG. 1 is a schematic diagram showing an application scenario of route recommendation according to an embodiment of the present disclosure. Figure 6 As shown, the model training server 601 can use the object representation extraction model training method mentioned above to train an object representation extraction model with the object being link, and send the trained object representation extraction model to the navigation server 602. The navigation server can use the object representation extraction method mentioned above to obtain a comprehensive representation vector of the object using the object representation extraction model, and use the object recommendation method mentioned above to provide route recommendation and other services to the location service terminal 603 based on the comprehensive representation vector of the object.

[0096] For example, the above object representation extraction model includes Figure 2 The three sub-modules shown are: ID representation extraction model, static representation extraction model, and gated network model.

[0097] Figure 2When the object shown is a link, the input of the ID representation extraction model is the link ID, and the output is the link ID representation vector. The ID representation extraction model can be a single hash embedding, multi-hash composite embedding, or other network models that can convert ID into embedding. The input of the static representation extraction model is the static attribute data of the link, and the output is the static representation vector of the link. The static representation extraction model can be a DNN, a graph representation network, or the like. If it is a graph representation network, the input is the static attribute data of the current link and its neighboring links. The gating network includes a probability model and a concatenation layer. A probability value P can be learned through the probability model first. The input of the probability model is the static attribute data and historical occurrence frequency of the link. The probability P can represent the probability that the gating network model selects the ID representation vector, and 1-P represents the probability that the gating network model selects the static representation vector. The probabilities are multiplied by the corresponding vectors to obtain the weighted average comprehensive representation vector.

[0098] This object representation extraction model can be applied to extract the comprehensive representation vector of the link in any route. It can also be applied to extract the comprehensive representation vector of other objects, such as the comprehensive representation vector of goods, etc.

[0099] This implementation method can use a gated network model to autonomously distinguish between high-frequency and low-frequency links. The gated network model can use a probability model to determine whether a link belongs to high frequency or low frequency, so that the proportion of the ID representation vector in the comprehensive representation vector of the high-frequency object is higher, and the noise that may be caused by the introduction of the static representation vector is reduced. For low-frequency objects whose ID representation vectors are not learned well, the proportion of the static representation vector in the comprehensive representation vector of the low-frequency object can be made higher, reducing the negative impact of the poorly learned ID representation vector; in this way, a comprehensive representation vector that can more accurately describe the characteristics of the object can be obtained, and then when making route recommendations, the extracted comprehensive representation vector of the link can be used to have an accurate understanding of the link in the route, and a more reasonable recommended route can be recommended to the user.

[0100] Figure 7 FIG. 1 is a block diagram showing a structure of an object representation extraction device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 7 As shown, the object representation extraction device includes:

[0101] The ID representation extraction module 701 is configured to extract the ID representation vector of the object from the ID of the object by using a preset ID representation extraction model;

[0102] A static representation extraction module 702 is configured to extract a static representation vector of the object from the static attribute data of the object by using a preset static representation extraction model;

[0103] The probability acquisition module 703 is configured to determine the ID characterization probability value and / or the static characterization probability value of the object according to the static attribute data and the historical occurrence frequency of the object through a preset probability model, wherein the sum of the ID characterization probability value and the static characterization probability value is 1;

[0104] The splicing module 704 is configured to perform weighted calculation on the ID representation vector and the static representation vector of the object using the ID representation probability value and / or the static representation probability value of the object at the splicing layer to obtain a comprehensive representation vector of the object.

[0105] In a possible implementation, the object includes a link or a commodity.

[0106] In a possible implementation, the probability model and the concatenation layer are modules in a gated network model.

[0107] In a possible implementation, when the static representation extraction model is a graph representation network model, the static representation extraction module 702 is configured as follows:

[0108] The static attribute data of the object and the static attribute data of other objects associated with the object are input into the preset static representation extraction model, and the static representation extraction model is executed to obtain a static representation vector of the object output by the static representation extraction model.

[0109] Figure 8 The structure block diagram of the object representation extraction model training device according to the embodiment of the present disclosure is shown. The device can be implemented as part or all of the electronic device through software, hardware or a combination of both. Figure 8 As shown, the object representation extraction model training device includes:

[0110] The sample acquisition module 801 is configured to acquire sample data, wherein the sample data includes an identification ID, static attribute data, historical occurrence frequency, and historical task results of the sample object;

[0111] A training module 802 is configured to train the initial task model based on the sample data, adjust the parameters in the initial task model until the accuracy of the prediction result of the task model compared with the historical task result reaches a preset threshold, and obtain a trained task model, wherein the task model includes an object representation extraction model and a task result prediction model;

[0112] Among them, the object representation extraction model includes an ID representation extraction model, a static representation extraction model, a probability model and a splicing layer. The ID representation extraction model is used to extract the corresponding ID representation vector from the ID of the object, and the static representation extraction model is used to extract the static representation vector of the object from the static attribute data of the object. The input of the gated network model is the static attribute data and historical occurrence frequency of the object, and the output is the ID representation probability value and / or static representation probability value of the object. The splicing layer is used to perform weighted calculation on the ID representation vector and the static representation vector of the object according to the ID representation probability value and / or static representation probability value of the object to obtain the comprehensive representation vector of the object; the input of the task result prediction model is the comprehensive representation vector of the object, and the output is the predicted task result.

[0113] Fig. 9 FIG. 1 is a block diagram showing a structure of an object recommendation device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Fig. 9 As shown, the object recommendation device includes:

[0114] The representation vector acquisition module 901 is configured to acquire a comprehensive representation vector of the object; the comprehensive representation vector of the object is extracted by the above-mentioned object representation extraction method;

[0115] The recommendation module 902 is configured to input the comprehensive representation vector of the object into the object recommendation model, execute the object recommendation model, and obtain the recommended object output by the object recommendation model.

[0116] The technical terms and technical features mentioned in the implementation manner of this device are the same or similar. For the explanation and description of the technical terms and technical features involved in this device, reference may be made to the explanation and description of the implementation manner of the above-mentioned method, which will not be repeated here.

[0117] The present disclosure also discloses an electronic device, Fig.10 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0118] like Fig.10 As shown, the electronic device 1000 includes a memory 1001 and a processor 1002, wherein the memory 1001 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 1002 to implement the method according to an embodiment of the present disclosure.

[0119] Fig.11 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown.

[0120] like Fig.11 As shown, the computer system 1100 includes a processing unit 1101, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage part 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the computer system 1100 are also stored. The processing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0121] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. The drive 1110 is also connected to the I / O interface 1105 as needed. Removable media 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive 1110 as needed, so that the computer program read therefrom is installed into the storage section 1108 as needed. Among them, the processing unit 1101 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.

[0122] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes computer instructions, and the computer instructions are executed by a processor to implement the method steps described above. In such an embodiment, the computer program product can be downloaded and installed from a network through the communication part 1109, and / or installed from a removable medium 1111.

[0123] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0124] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or programmable hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.

[0125] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the present disclosure.

[0126] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

Claims

1. A method for extracting object representations, include: Extracting an ID representation vector of the object from the ID of the object by using a preset ID representation extraction model; Extracting a static representation vector of the object from the static attribute data of the object by using a preset static representation extraction model; Determine the ID characterization probability value and / or the static characterization probability value of the object according to the static attribute data and the historical occurrence frequency of the object through a preset probability model, wherein the sum of the ID characterization probability value and the static characterization probability value is 1; At the splicing layer, the ID characterization probability value and / or the static characterization probability value of the object are used to perform weighted calculation on the ID characterization vector and the static characterization vector of the object to obtain a comprehensive characterization vector of the object.

2. The method according to claim 1, in, The object includes a link or a commodity.

3. The method according to claim 1, in, The probability model and the concatenation layer are modules in a gated network model.

4. The method according to claim 1, in, When the static representation extraction model is a graph representation network model, extracting the static representation vector of the object from the static attribute data of the object by using the preset static representation extraction model includes: The static attribute data of the object and the static attribute data of other objects associated with the object are input into the preset static representation extraction model, and the static representation extraction model is executed to obtain a static representation vector of the object output by the static representation extraction model.

5. A method for training an object representation extraction model, in, The method comprises: Acquire sample data, where the sample data includes an identification ID, static attribute data, historical occurrence frequency, and historical task results of the sample object; Based on the sample data, the initial task model is trained, and the parameters in the initial task model are adjusted until the accuracy of the prediction result of the task model reaches a preset threshold compared with the historical task result, so as to obtain a trained task model, wherein the task model includes an object representation extraction model and a task result prediction model; Among them, the object representation extraction model includes an ID representation extraction model, a static representation extraction model, a probability model and a splicing layer. The ID representation extraction model is used to extract the corresponding ID representation vector from the ID of the object, and the static representation extraction model is used to extract the static representation vector of the object from the static attribute data of the object. The input of the probability model is the static attribute data and historical occurrence frequency of the object, and the output is the ID representation probability value and / or static representation probability value of the object. The splicing layer is used to perform weighted calculation on the ID representation vector and the static representation vector of the object according to the ID representation probability value and / or static representation probability value of the object to obtain the comprehensive representation vector of the object; the input of the task result prediction model is the comprehensive representation vector of the object, and the output is the predicted task result.

6. An object recommendation method, in, The comprehensive representation vector of the object is obtained by the method according to any one of claims 1 to 4, the method comprising: Obtaining a comprehensive representation vector of the object; The comprehensive representation vector of the object is input into the object recommendation model, and the object recommendation model is executed to obtain the recommended object output by the object recommendation model.

7. An object representation extraction device, include: An ID representation extraction module is configured to extract an ID representation vector of the object from the ID of the object through a preset ID representation extraction model; A static representation extraction module, configured to extract a static representation vector of the object from the static attribute data of the object by using a preset static representation extraction model; A probability acquisition module is configured to determine an ID characterization probability value and / or a static characterization probability value of the object according to the static attribute data and the historical occurrence frequency of the object through a preset probability model, wherein the sum of the ID characterization probability value and the static characterization probability value is 1; The splicing module is configured to perform weighted calculation on the ID representation vector and the static representation vector of the object using the ID representation probability value and / or the static representation probability value of the object at the splicing layer to obtain a comprehensive representation vector of the object.

8. An object representation extraction model training device, in, The device comprises: A sample acquisition module is configured to acquire sample data, wherein the sample data includes an identification ID, static attribute data, historical occurrence frequency, and historical task results of the sample object; A training module is configured to train an initial task model based on the sample data, adjust parameters in the initial task model until the accuracy of the prediction result of the task model compared with the historical task result reaches a preset threshold, and obtain a trained task model, wherein the task model includes an object representation extraction model and a task result prediction model; Among them, the object representation extraction model includes an ID representation extraction model, a static representation extraction model, a probability model and a splicing layer. The ID representation extraction model is used to extract the corresponding ID representation vector from the ID of the object, and the static representation extraction model is used to extract the static representation vector of the object from the static attribute data of the object. The input of the probability model is the static attribute data and historical occurrence frequency of the object, and the output is the ID representation probability value and / or static representation probability value of the object. The splicing layer is used to perform weighted calculation on the ID representation vector and the static representation vector of the object according to the ID representation probability value and / or static representation probability value of the object to obtain the comprehensive representation vector of the object; the input of the task result prediction model is the comprehensive representation vector of the object, and the output is the predicted task result.

9. An object recommendation device, in, The comprehensive representation vector of the object is obtained by the method according to any one of claims 1 to 4, and the device comprises: A representation vector acquisition module, configured to acquire a comprehensive representation vector of the object; The recommendation module is configured to input the comprehensive representation vector of the object into the object recommendation model, execute the object recommendation model, and obtain the recommended object output by the object recommendation model.

10. An electronic device comprising a memory and a processor; in, The memory is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor to implement the method steps described in any one of claims 1 to 6.

11. A computer-readable storage medium having computer instructions stored thereon, in, When the computer instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.

12. A computer program product, comprising computer instructions, which, when executed by a processor, implement the method steps of any one of claims 1 to 6.

13. A navigation method, in, A navigation route calculated based on at least a starting point, an end point and road conditions is obtained based on an electronic map, and navigation guidance is performed based on the navigation route, wherein the navigation route is a route recommended by the object recommendation method according to claim 6, and the object includes a road segment link.

Citation Information

Patent Citations

  • Article recommendation method and device, meta-network processing method and device, storage medium and equipment

    CN112102015A

  • Information recommendation model training method, information recommendation method, device and server

    CN114861049A