A patent semantic retrieval method and device based on knowledge graph

Through the knowledge graph and attention mechanism, combined with the user's level of interest, the problem of semantic retrieval results deviating from the intention in the existing technology is solved, efficient and accurate patent retrieval is achieved, and the user experience is improved.

CN118364058BActive Publication Date: 2024-09-06CHINA AUTOMOBILE INTELLECTUAL PROPERTY (GUANGZHOU) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410782588.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-06
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

The semantic search results of existing patent databases often deviate from the actual intentions of users, resulting in too much noise. Users need to read and identify them one by one, resulting in low retrieval efficiency.

Method used

A patented semantic retrieval method based on knowledge graph is used to obtain user input sentences, construct triples and map them into vectors. The attention mechanism and knowledge aggregation layer are used to combine the user's interest level and fuse feature vectors to improve retrieval accuracy.

Benefits of technology

It achieves deep semantic analysis and enhances the relevance and accuracy of search results. Users can obtain highly matching patents with fewer searches, improving search efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364058B
    Figure CN118364058B
Patent Text Reader

Abstract

The present invention relates to the field of data retrieval technology, and discloses a patent semantic retrieval method and device based on knowledge graph. The method obtains a sentence input by a user; determines at least one triple related to the sentence according to the entity in the sentence and the pre-constructed knowledge graph; for multiple tail entity vectors of the same head entity vector, the head entity vector is noticed to each tail entity vector by using the attention mechanism to obtain the first feature vector of each tail entity; the first feature vector is corrected to a second feature vector according to the user's interest in each tail entity; the semantic retrieval result is obtained according to the fusion feature vector, the feature vector of the sentence and the feature vector of each patent in the patent library, and the patent result of the semantic retrieval is comprehensively determined by the knowledge graph and the user's interest in the tail entity, which can accurately capture the user's intention and improve the retrieval efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data retrieval technology, and in particular to a patent semantic retrieval method and device based on knowledge graph. Background Art

[0002] Patent database is a large-scale patent information service system based on the Internet or local area network. Patent database is a large-scale patent information service system based on the Internet or local area network. It is based on the Internet and realizes various patent retrieval, analysis and services. It has retrieval and analysis functions as well as retrieval fields and methods.

[0003] The current patent database provides a variety of search methods, among which semantic search is a new feature introduced in recent years. Semantic search can capture the real intention behind the sentence entered by the user and use it to search, so as to more accurately return the search results that best meet the user's needs. However, the semantic search results of many patent databases now often deviate from the user's actual intention, resulting in a lot of noise, and users need to read them one by one to identify them.

[0004] In view of this, the present invention is proposed. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a patent semantic retrieval method and device based on knowledge graph, which comprehensively determines the patent results of semantic retrieval through knowledge graph and the user's interest in tail entities, can accurately capture the user's intention and improve retrieval efficiency.

[0006] In a first aspect, an embodiment of the present invention provides a patent semantic retrieval method based on a knowledge graph, the method comprising:

[0007] Get the statement entered by the user;

[0008] According to the entities in the sentence and the pre-built knowledge graph, at least one triple related to the sentence is determined and the triple is mapped into a vector; the triple includes a head entity, a relationship and a tail entity, and the entity in the sentence is used as the head entity;

[0009] For multiple tail entity vectors of the same head entity vector, the head entity vector is noted on each tail entity vector by using an attention mechanism to obtain a first feature vector of each tail entity; the first feature vector is corrected into a second feature vector according to the user interest level of each tail entity;

[0010] The same head entity vector and the corresponding multiple second feature vectors are fused through the knowledge aggregation layer to obtain a fused feature vector;

[0011] A semantic search result is obtained according to the fused feature vector, the feature vector of the sentence and the feature vector of each patent in the patent library, and the semantic search result includes information of at least one patent.

[0012] In a second aspect, an embodiment of the present invention provides an electronic device, including:

[0013] at least one processor, and a memory communicatively coupled to at least one of the processors;

[0014] Among them, the memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute any one of the patent semantic retrieval methods based on the knowledge graph.

[0015] The embodiments of the present invention have the following technical effects:

[0016] 1. The present invention introduces the knowledge graph, thereby utilizing the entity connection relationship in the knowledge graph to expand the original sentence, thereby achieving deep semantic analysis and retrieval.

[0017] 2. The present invention utilizes the attention mechanism to pay attention to the head entity vector on each tail entity vector to obtain the first feature vector of each tail entity, thereby deepening the association between each tail entity and the head entity, so that the feature vector with higher correlation is used in subsequent vector processing and retrieval, which is conducive to extracting patents with stronger correlation with the original sentence.

[0018] 3. Based on the attention mechanism, the present invention modifies the first feature vector into the second feature vector according to the user's interest level in each tail entity, thereby using the user's interest level to modify the association relationship between the tail entity and the head entity, so that the feature vector of the association relationship is biased towards the user's interest level, and then patents that are associated with the original sentence and that the user is interested in can be retrieved subsequently.

[0019] 4. By fusing the same head entity vector and the corresponding multiple second feature vectors through the knowledge aggregation layer, a fused feature vector is obtained, which realizes the fusion of the original sentence and the extended semantic understanding. Subsequently, the semantic search results are obtained based on the fused feature vector, the feature vector of the sentence and the feature vector in the patent library, that is, the matching patents are determined by combining the original sentence, the extension of the original sentence + the fused feature vector, which improves the accuracy of patent search and enables users to obtain highly matching patents with fewer searches, thereby improving the efficiency of search. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 A flowchart of a patent semantic retrieval method based on a knowledge graph provided in an embodiment of the present invention;

[0022] Figure 2 A schematic diagram of the structure of a knowledge graph provided by an embodiment of the present invention;

[0023] Figure 3 A schematic diagram of the structure of a semantic retrieval model provided by an embodiment of the present invention;

[0024] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0026] The patent semantic search method based on knowledge graph provided in the embodiment of the present invention is applicable to the situation where a search is performed on a search platform of a patent database based on a sentence input by a user and the retrieved patent information is fed back to the user. The method can be executed by an electronic device.

[0027] Embodiment 1

[0028] Figure 1 is a flow chart of a patent semantic retrieval method based on knowledge graph provided by an embodiment of the present invention. Figure 1 , the method specifically comprises:

[0029] S110: Obtain the sentence input by the user.

[0030] The search platform can be a website, terminal application, etc. The search platform provides an input box, in which the user can enter the sentence to be searched and click the search button, such as entering "patents for identification through artificial olfactory technology" or "improving the efficiency of water pumps and reducing energy consumption."

[0031] For the convenience of description and distinction, the sentence here can be the original sentence. This embodiment does not limit the language type of the original sentence, which can be Chinese, English, Japanese, etc. The search platform can automatically translate the sentence into the language corresponding to the selected patent library and search in the selected patent library. For example, if the user selects the Japanese patent library, the sentence expressed in Chinese entered by the user is translated into Japanese for subsequent processing.

[0032] S120. According to the entities in the sentence and a pre-constructed knowledge graph, determine at least one triple related to the sentence and map the triple into a vector.

[0033] The sentence is analyzed to obtain nouns, verbs or adjectives therein as entities. For example, "artificial olfactory technology" and "identification" are extracted from "patents for identification by artificial olfactory technology". Optionally, a dictionary including a large number of entities is pre-built and compared word by word with the sentence to extract appropriate entities.

[0034] The knowledge graph consists of multiple interconnected nodes, each node uniquely represents an entity, and the edges between nodes represent the relationship between entities. Figure 2 , machine learning, gas sensor array and other entities as nodes, components, principles, etc. that represent the relationship / attribute between entities as edges. In this embodiment, the entity extracted from the sentence is taken as the head entity, so that the tail entity and edge connected to the head entity can be obtained in the knowledge graph. For example, "artificial olfactory technology" is connected to the tail entities "bionics" and "chemical analysis method", and the relationship is "classification". In this way, at least one triple can be obtained according to each head entity: "artificial olfactory technology-classification-bionics" and "artificial olfactory technology-classification-chemical analysis method". When multiple entities are extracted from the sentence, more triplets will be determined in combination with the knowledge graph.

[0035] It should be noted that in order to improve the accuracy of the search, the present embodiment pre-builds knowledge graphs in different technical fields. Before clicking the search button, the user needs to select a technical field, such as the solid-state battery field, the suspension field, or the technical field represented by the CPC / IPC classification number, so as to match the entities in the sentence in the knowledge graph of the selected technical field.

[0036] These triplets are in character form. To perform deep learning, the characters need to be mapped into vectors in space, which can be uniquely represented by a row vector composed of multiple numbers. Optionally, the triples are input into the pre-trained first embedding layer (first embedding layer) and mapped into vectors. The first embedding layer is constructed using the TransR algorithm, which represents entities and relationships in different semantic spaces bridged by relationship-specific matrices. Each triple is converted into a high-dimensional numerical matrix. The principle is to make the sum of the vectors of the head entity and the relationship infinitely close to the tail entity vector. In other words, in space, the head entity vector + the vector of the relationship ≈ the tail entity vector. The first embedding layer needs to be pre-trained separately. During the training process, any triple is input, and the head entity vector, the vector of the relationship, and the tail entity vector are output. The parameters of the first embedding layer are updated so that the sum of the vectors of the head entity and the relationship is infinitely close to the tail entity vector.

[0037] S130. For multiple tail entity vectors of the same head entity vector, use an attention mechanism to pay attention to the head entity vector on each tail entity vector to obtain a first feature vector of each tail entity; and modify the first feature vector to a second feature vector according to the user's interest level in each tail entity.

[0038] The attention mechanism originates from the study of human vision. It simulates the behavior of humans selectively focusing on part of the information when processing a large amount of information. In the field of artificial intelligence, the attention mechanism is mainly used to help the model selectively focus on important information when processing a large amount of data, thereby improving the performance and efficiency of the model. This mechanism mainly involves two aspects: deciding which part of the input needs to be paid attention to, and allocating limited information processing resources to the important part. This embodiment uses the attention mechanism to decide to pay attention to the tail entity, and assigns the semantics of the head entity to the tail entity, that is, using the head entity to obtain the weighted value of each tail entity vector and generate the first eigenvector. In this way, each head entity can obtain the corresponding first eigenvector.

[0039] In a specific implementation, multiple tail entity vectors of the same head entity vector are constructed into an ego network; each ego network is passed through a knowledge attention embedding propagation layer, and the first feature vector of each tail entity in each ego network is output. The final embedding is represented as e Nh , is the weighted value of the tail entity vector. Among them, the weight is obtained by the attention mechanism of the head entity and the tail entity. It can be seen that the weight of the first feature vector is obtained based on the association relationship between the head entity and the tail entity, so that the feature vector with higher association is used in subsequent vector processing and retrieval, which is conducive to extracting patents with stronger association with the original sentence.

[0040] Preferably, this embodiment takes into account the user's interest in the tail entity based on the first feature vector, thereby highlighting the entity that the user is interested in and weakening the entity that the user is not interested in. Specifically, patent combinations with different interest levels are determined based on the user's historical browsing behavior; tail entities with different interest levels are determined from each patent combination, and the correction parameters of the corresponding tail entities are determined based on the interest level.

[0041] Among them, the user's historical browsing behavior includes the user's browsing behavior within the set time before this moment, to ensure that the user's search needs have not changed. For example, within 3 minutes before the current moment, the opening behavior of the patent, the browsing time, the marking behavior of whether the patent is of interest, the downloading behavior, etc. For patents opened by the user, patents with a browsing time exceeding the first set value, and patents marked as interested or downloaded, a patent combination with a high degree of interest can be constructed; patents with a browsing time exceeding the second set value but not exceeding the first set value can be constructed as a patent combination with a general degree of interest; patents marked as not interested can be constructed as patents of no interest. The first set value is greater than the second set value. Of course, these are some optional implementation methods of "determining patent combinations with different degrees of interest based on user historical browsing behavior", the purpose of which is to identify which entities are of interest and which entities are not interested based on user historical behavior.

[0042] For each patent portfolio, the target entity is extracted from the designated fragments of the patent portfolio (including title, abstract, claims, instructions, etc.); based on the target entity (as the head entity) and the knowledge graph, the tail entity corresponding to the patent portfolio is determined. Specifically, a dictionary including a large number of entities is used to select the target entity (as the head entity) that exceeds the set frequency of occurrence, and then the tail entity corresponding to the target entity is determined based on the aforementioned knowledge graph, and the tail entity is mapped into a vector, so as to obtain tail entity vectors with different degrees of interest.

[0043] If the degree of interest is higher, it means that the tail entity is needed by the user, and its vector should enter the subsequent processing process more, then the correction parameter is positive, and the larger the value is; if the degree of uninterest is higher, it means that the tail entity is not needed by the user, and its vector should be reversed to weaken the impact on subsequent fusion, that is, the correction parameter is negative, and the larger the data is.

[0044] Then, the first feature vector of the tail entity hit in the ego network is corrected to a second feature vector according to the correction parameter. That is, the correction parameters of M tail entities are determined based on each patent combination, and there are N tail entity vectors in the ego network, then the M tail entity vectors and the N tail entity vectors are intersected to obtain the hit tail entity. The first feature vector of the hit tail entity is multiplied by the correction parameter to obtain the second feature vector.

[0045] S140 , fusing the same head entity vector and the corresponding multiple second feature vectors through a knowledge aggregation layer to obtain a fused feature vector.

[0046] The knowledge aggregation layer is used to perform weighted summation on the multiple second feature vectors of the same head entity vector and its connected multiple tail entities to obtain a fused feature vector. The weights of the knowledge aggregation layer need to be trained.

[0047] Furthermore, when there are multiple head entities, after fusing the same head entity, the fused feature vectors of different head entities may be weightedly summed again.

[0048] S150. Obtain semantic search results based on the fused feature vector, the feature vector of the sentence, and the feature vector of each patent in the patent library, wherein the semantic search results include information of at least one patent.

[0049] The fused feature vector in this step is the vector obtained in S140, which will not be described again here.

[0050] The feature vector of a sentence needs to be obtained by feature representation of the sentence. Specifically, the sentence is input into the second embedding layer (second embedding layer) and the first bidirectional long short-term memory network (first biLSTM) to obtain the feature vector of the sentence.

[0051] Each patent in the patent library also needs to be characterized. The specified fragments of each patent in the patent library (including title, abstract, claims, instructions, etc.) are characterized to obtain the feature vector of each patent. Specifically, the specified fragments of each patent in the patent library are input into the third embedding layer (third embedding layer) and the second bidirectional long short-term memory network (second biLSTM) to obtain the feature vector of each patent. Among them, unlike the first embedding layer, the second embedding layer and the third embedding layer are constructed using Word2vec to extract the word features in sentences and patents. The front and back features of word features can be learned through biLSTM.

[0052] Among them, Word2vec is a group of related models used to generate word vectors. These models are shallow, two-layer neural networks that are trained to reconstruct linguistic word texts. The network is represented by words and needs to guess the input words in adjacent positions. Under the assumption of the bag-of-words model in Word2vec, the order of words is not important. After training, the Word2vec model can be used to map each word to a vector that can be used to represent the relationship between words. The vector is the hidden layer of the neural network.

[0053] It can be seen that the feature vector of the sentence and the feature vector of the patent are obtained based on the sentence / patent itself, without considering the deep semantics, but focusing on the features themselves. This embodiment combines the fusion feature vector considering the deep semantics and the features of the sentence itself to retrieve suitable patents.

[0054] In a specific implementation, the fused feature vector and the feature vector of each patent are input into a first attention network (first attention) to obtain a first feature vector to be connected; the feature vector of each patent and the feature vector of the sentence are input into a second attention network (second attention) to obtain a second feature vector to be connected; the first feature vector to be connected and the second feature vector to be connected are passed through a fully connected layer and a classification layer (softmax layer) to obtain the similarity between the sentence and each patent;

[0055] In this embodiment, the fused feature vector is noticed on the feature vector of a patent through the first attention network to obtain the first feature vector to be connected of the patent; if the fused feature vector is close to the feature vector of the patent, the first feature vector to be connected is equivalent to strengthening the feature vector of the patent; otherwise, if the fused feature vector is not close to the feature vector of the patent, the first feature vector to be connected is equivalent to weakening the feature vector of the patent. Similarly, in this embodiment, the feature vector of the sentence is noticed on the feature vector of a patent through the second attention network to obtain the second feature vector to be connected of the patent; if the feature vector of the sentence is close to the feature vector of the patent, the second feature vector to be connected is equivalent to strengthening the feature vector of the patent; otherwise, if the feature vector of the sentence is not close to the feature vector of the patent, the second feature vector to be connected is equivalent to weakening the feature vector of the patent. The first feature vector to be connected and the second feature vector to be connected are connected through the fully connected layer, and the deep semantics of the sentence and the matching of the sentence itself with the patent are integrated. Then the connected features are input into the softmax layer for classification of similarity and confidence.

[0056] Then, the semantic search results are summarized according to the degree of similarity (i.e., the similarity confidence output by the softmax layer). If the similarity confidence is greater than the set value, such as 90%, it is summarized into the search results, and the name, abstract and other information of the patent are displayed on the page of the search platform for users to preview.

[0057] The embodiments of the present invention have the following technical effects:

[0058] 1. The present invention introduces the knowledge graph, thereby utilizing the entity connection relationship in the knowledge graph to expand the original sentence, thereby achieving deep semantic analysis and retrieval.

[0059] 2. The present invention utilizes the attention mechanism to pay attention to the head entity vector on each tail entity vector to obtain the first feature vector of each tail entity, thereby deepening the association between each tail entity and the head entity, so that the feature vector with higher correlation is used in subsequent vector processing and retrieval, which is conducive to extracting patents with stronger correlation with the original sentence.

[0060] 3. Based on the attention mechanism, the present invention modifies the first feature vector into the second feature vector according to the user's interest level in each tail entity, thereby using the user's interest level to modify the association relationship between the tail entity and the head entity, so that the feature vector of the association relationship is biased towards the user's interest level, and then patents that are associated with the original sentence and that the user is interested in can be retrieved subsequently.

[0061] 4. By fusing the same head entity vector and the corresponding multiple second feature vectors through the knowledge aggregation layer, a fused feature vector is obtained, which realizes the fusion of the original sentence and the extended semantic understanding. Subsequently, the semantic search results are obtained based on the fused feature vector, the feature vector of the sentence and the feature vector in the patent library, that is, the matching patents are determined by combining the original sentence, the extension of the original sentence + the fused feature vector, which improves the accuracy of patent search and enables users to obtain highly matching patents with fewer searches, thereby improving the efficiency of search.

[0062] Embodiment 2

[0063] Based on the above embodiments, this embodiment provides the architecture of a large semantic retrieval model and a training method.

[0064] Figure 3 A schematic diagram of the structure of a large semantic retrieval model provided in an embodiment of the present invention.

[0065] Get the sentence query1 input by the user, perform entity recognition on query1 and input it into the knowledge graph for matching to obtain triples. The triples pass through the first embedding layer, the knowledge attention embedding propagation layer, and the knowledge aggregation layer to obtain the fused feature vector queryvec2, which is the extended semantic feature obtained by querying the knowledge graph.

[0066] The text content of query1 passes through the second embedding layer and the first biLSTM layer to represent the semantic feature queryvec1 of query1.

[0067] Each specified fragment of the patent text (including title, abstract, claims, instructions, etc.) is segmented, and then the features of all segmentations are expressed through the third embedding layer and the second biLSTM layer. Specifically, the features of each segmentation are weighted and summed, and the weights are determined according to the importance of each specified fragment of the patent text.

[0068] Input queryvec2 and textvec into the first attention, so that the output first feature vector to be connected focuses on the patent text features that are highly relevant to the quey1 text after the knowledge graph expansion; input queryvec1 and textvec into the second attention, so that the output second feature vector to be connected focuses on the patent text features that are highly relevant to the quey1 text;

[0069] The role of the first / second attention is to use queryvec2 / queryvec1 as the key and the feature textvec of each word segment of the patent text as the value, calculate the weight of the feature textvec of each text segment, and then use the calculated weight to weight textvec to obtain the weighted feature vector.

[0070] The first feature vector to be connected and the second feature vector to be connected are passed through the fully connected layer and the classification layer to obtain the similarity between query1 and the patent.

[0071] exist Figure 3 Based on the model architecture shown, the knowledge graph and the first embedding layer are pre-built and do not need to be trained, while the remaining networks / layers all need to be trained as a whole. Specifically, training samples are collected, and the training samples include sentence samples, patent positive samples that are similar to the sentence samples, and patent negative samples that are not similar to the sentence samples; according to the training samples, the knowledge aggregation layer, the knowledge attention embedding propagation layer, the second embedding layer, the first bidirectional long short-term memory network, the third embedding layer, the second bidirectional long short-term memory network, the first attention network, the second attention network, the fully connected layer and the classification layer are trained.

[0072] Patent positive samples are patents that are similar to sentence samples, and patent negative samples are patents that are not similar to sentence samples. Positive and negative samples can train the parameters in the large model from two directions to make the model converge as quickly as possible. Patent positive and negative samples can be determined through manual annotation.

[0073] Preferably, due to the huge number of patents in the patent library, it is impossible to rely solely on manpower to collect positive and negative samples. This embodiment can also analyze sentence samples based on the term frequency-inverse text frequency index (TF-IDF) and the word vector model (Word2vec) to obtain word vectors. Extract text vectors for the specified fragments (abstract, claims, and instructions) of any patent; specifically, the weighted sum of the extracted text vectors is obtained according to the importance of each specified fragment to obtain the final text vector, for example, the weight of the abstract is 4, the weight of the claims is 3, and the weight of the instructions is 2.

[0074] Calculate the similarity between the word vector and the text vector, for example, calculate the cosine distance between the two vectors. When the similarity is greater than a threshold (for example, 90%), the patent is considered a positive sample. Correspondingly, when the similarity is less than another threshold (for example, 10%), the patent is considered a negative sample.

[0075] It should be noted that patent samples with similarities / dissimilarities to sentence samples are collected during the model training phase. Most of these patent samples contain extended semantics of sentence samples. For example, the sentence sample "Patents related to the reliability of suspension" is found to be a positive sample through text vector similarity comparison. "Chassis" appears in the title of CN117207994A, which is also the tail entity of the head entity "suspension" in the knowledge graph. Therefore, the positive and negative samples obtained based on the similarity comparison can be used to train the semantic retrieval model provided by the embodiment of the present invention. In order to make up for the problem of insufficient extended semantics, it can be supplemented by manually annotating positive and negative patent samples.

[0076] Embodiment 3

[0077] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, this embodiment provides an electronic device, including: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor, so that at least one processor can execute the above-mentioned patent semantic retrieval method based on knowledge graph. At least one processor in the electronic device can execute the above-mentioned method, and thus has at least the same advantages as the above-mentioned method.

[0078] Optionally, the electronic device also includes interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on a memory to display graphical information of a GUI (Graphical User Interface) on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors can be used together with multiple memories, and / or multiple buses can be used together with multiple memories. Similarly, multiple electronic devices can be connected (for example, as a server array, a group of blade servers, or a multi-processor system), and each device provides some necessary operations. Figure 4 A processor 301 is taken as an example.

[0079] The memory 302, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the patent semantic retrieval method based on the knowledge graph in the embodiment of the present invention. The processor 301 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 302, that is, realizing the above-mentioned patent semantic retrieval method based on the knowledge graph.

[0080] The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 302 may further include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0081] The electronic device may further include: an input device 303 and an output device 304. The processor 301, the memory 302, the input device 303 and the output device 304 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0082] The input device 303 can receive input digital or character information, and the output device 304 can include a display device, an auxiliary lighting device (e.g., LED), and a tactile feedback device (e.g., a vibration motor), etc. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device can be a touch screen.

[0083] It should be noted that the terms used in the present invention are only for describing specific embodiments, rather than limiting the scope of the present application. As shown in the present specification, unless the context clearly indicates an exception, the words "one", "a", "a kind of" and / or "the" do not specifically refer to the singular, but may also include the plural. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the presence of other identical elements in the process, method or device including the elements.

[0084] It should also be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", etc. should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.

Claims

1. A patent semantic retrieval method based on knowledge graph, It is characterized in that include: Get the statement entered by the user; According to the entities in the sentence and the pre-built knowledge graph, at least one triple related to the sentence is determined and the triple is mapped into a vector; the triple includes a head entity, a relationship and a tail entity, and the entity in the sentence is used as the head entity; For multiple tail entity vectors of the same head entity vector, the head entity vector is noted on each tail entity vector by using an attention mechanism to obtain a first feature vector of each tail entity; the first feature vector is corrected into a second feature vector according to the user interest level of each tail entity; The same head entity vector and the corresponding multiple second feature vectors are fused through the knowledge aggregation layer to obtain a fused feature vector; Obtaining a semantic search result according to the fused feature vector, the feature vector of the sentence, and the feature vector of each patent in the patent library, wherein the semantic search result includes information of at least one patent; Among them, for the multiple tail entity vectors of the same head entity vector, the head entity vector is noticed to each tail entity vector by using the attention mechanism to obtain the first feature vector of each tail entity, including: constructing the multiple tail entity vectors of the same head entity vector into an ego network; embedding each ego network into a knowledge attention propagation layer, and outputting the first feature vector of each tail entity in each ego network; The first feature vector is corrected into a second feature vector according to the user's interest level in each tail entity, including: determining patent combinations with different interest levels according to the user's historical browsing behavior; determining tail entities with different interest levels from each patent combination, and determining correction parameters of the corresponding tail entities according to the interest levels; and correcting the first feature vector that hits the tail entity in the ego network into a second feature vector according to the correction parameters.

2. The method according to claim 1, It is characterized in that The correction parameters of the corresponding tail entity are determined according to the degree of interest, including: If the degree of interest is higher, the correction parameter is positive and the value is larger; if the degree of disinterest is higher, the correction parameter is negative and the value is larger.

3. The method according to claim 1, It is characterized in that Identify tail entities of varying interest from each patent portfolio, including: extracting target entities from a specified segment of the patent portfolio; According to the target entity and the knowledge graph, a tail entity corresponding to the patent combination is determined.

4. The method according to claim 1, It is characterized in that According to the fused feature vector, the feature vector of the sentence and the feature vector of each patent in the patent library, a semantic search result is obtained, including: Performing feature representation on the sentence to obtain a feature vector of the sentence; Perform feature representation on the specified fragment of each patent in the patent database to obtain the feature vector of each patent; Inputting the fused feature vector and the feature vector of each patent into a first attention network to obtain a first feature vector to be connected; Inputting the feature vector of each patent and the feature vector of the sentence into the second attention network to obtain a second feature vector to be connected; Passing the first feature vector to be connected and the second feature vector to be connected through a fully connected layer and a classification layer to obtain the similarity between the sentence and each patent; The semantic search results are summarized according to the similarity levels.

5. The method according to claim 4, It is characterized in that Mapping the triplet into a vector includes: Input the triplet into a first embedding layer and map it into a vector; The sentence is characterized to obtain a feature vector of the sentence, including: Inputting the sentence into the second embedding layer and the first bidirectional long short-term memory network to obtain a feature vector of the sentence; The specified fragments of each patent in the patent database are characterized to obtain the feature vector of each patent, including: The specified fragment of each patent in the patent library is input into the third embedding layer and the second bidirectional long short-term memory network to obtain the feature vector of each patent.

6. The method according to claim 5, It is characterized in that Also include before the statement to get user input: Collecting training samples, wherein the training samples include sentence samples, patent positive samples similar to the sentence samples, and patent negative samples not similar to the sentence samples; The knowledge aggregation layer, the knowledge attention embedding propagation layer, the second embedding layer, the first bidirectional long short-term memory network, the third embedding layer, the second bidirectional long short-term memory network, the first attention network, the second attention network, the fully connected layer and the classification layer are trained according to the training samples.

7. The method according to claim 6, It is characterized in that Collect patent positive samples that are similar to the sentence samples, including: Analyze the sentence sample based on the word frequency-inverse text frequency index and the word vector model to obtain a word vector; Extract text vectors for a specified segment of any patent; The similarity between the word vector and the text vector is calculated, and when the similarity is greater than a threshold, the patent is taken as a positive sample.

8. An electronic device, It is characterized in that include: at least one processor, and a memory communicatively coupled to at least one of the processors; Wherein, the memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the patent semantic retrieval method based on the knowledge graph as described in any one of claims 1-7.