Patent text recommendation method, system and equipment based on large language model and medium

By combining the SERNIE model and the knowledge base, the similarity of patent technical issues is calculated, and the document vector hypothesis method is used to solve the problem of insufficient semantic capture in patent recommendation, improve the accuracy and relevance of the recommendation results, and fill in the large gaps in the patent field. Gaps in language model applications.

CN118626631APending Publication Date: 2024-09-10SHANDONG NORMAL UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410793914.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively capture the subtle semantics of patent texts in patent recommendation, resulting in inaccurate recommendation results, and the lack of large language models for the patent field limits the application potential of LLM.

Method used

Adopt a hybrid method, combine the SERNIE model with the knowledge base, use a large language generation model to generate relevant technical questions and hypothetical answers, calculate the similarity of patented technical questions through the ERNIE model, and introduce the document vector hypothesis method to filter the recommendation results and improve the recommendation Accuracy and relevance.

Benefits of technology

It enhances the performance of the patented recommendation system, improves the accuracy and relevance of recommendation results, alleviates the hallucination problem of LLM, and provides heuristic solutions based on huge databases to meet the innovation needs of engineers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626631A
    Figure CN118626631A
Patent Text Reader

Abstract

The invention discloses a patent text recommendation method, system and device based on a large language model and a medium, and the method comprises the steps: carrying out the semantic search of each technical problem in a technical problem set in a pre-constructed patent-technical problem database, and obtaining N patents with the highest similarity; taking N * (K + 1) patents as a candidate patent data set; each candidate patent in the candidate patent data set has query similarity; inputting the target technical problem into the large language model to obtain a hypothesis answer; vectorizing the hypothesis answer to obtain a hypothesis answer vector; calculating the comparison similarity of each candidate patent; summing the query similarity and the comparison similarity of each candidate patent to obtain the total similarity of each candidate patent; and sorting the total similarities of the candidate patents according to a sequence from large to small, and outputting a plurality of patents which are sorted in the front as recommendation results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of patent text recommendation technology, and in particular to a patent text recommendation method, system, device and medium based on a large language model. Background Art

[0002] Patents always contain cutting-edge knowledge in a wide range of fields. In addition, this knowledge is invaluable because it can effectively solve current engineering challenges by providing innovative solutions from various fields. Therefore, recommending patents that meet the needs of engineers has become an important task. To solve this problem, traditional research can be divided into researching keyword-based and content-based recommendation methods. Keyword-based methods automatically extract keyword terms from patents and recommend them based on the semantic similarity of patent searches. Content-based patent recommendations often utilize various machine learning and deep learning models. However, considering the length of patent texts, the complexity of sentences, and the rich technical terms, keyword-based research methods are not enough to capture the subtle semantics of patent texts, often resulting in mismatched recommendations. Compared with the above methods, content-based deep learning research methods utilize the power of deep learning models. In patent recommendations, word embeddings generated by deep learning can quickly calculate semantic relevance in texts, thereby improving the accuracy and efficiency of recommendations.

[0003] LLMs have recently attracted widespread attention due to their remarkable capabilities. However, the application of LLMs in patent recommendation remains largely unexplored. In addition, some studies restrict LLMs to the role of encoders that generate embeddings, underutilizing their full potential for generating natural language. LLMs face challenges related to hallucinations, which sometimes cause the responses they generate to be inaccurate. To fill this gap, vertical-specific LLMs have been developed, such as BloombergGPT and FinGPT in the financial consulting field, BenTsao and PaLM in the medical and health field, and ChatLaw in the legal services field. In contrast, there is currently no similar LLM dedicated to the patent field. Summary of the invention

[0004] In order to address the deficiencies of the prior art, the present invention provides a patent text recommendation method, system, device and medium based on a large language model; a hybrid method combining the SERNIE model with knowledge is proposed to improve the basic response of LLM reliability and factual accuracy, thereby alleviating the hallucination problem. In the present invention, the present invention uses LLM to generate relevant technical problems and hypothetical solutions, which can enhance the recommendation results. Because compared with BERT, the large language model (LLM) has shown stronger capabilities in natural language processing (NLP), it can enhance the performance of the patent recommendation system. By combining an external knowledge base, an information retrieval model, and a large language generation model, fast and accurate patent recommendations are achieved.

[0005] On the one hand, a patent text recommendation method based on a large language model is provided, including:

[0006] Obtain the target technical problem; based on the large language model, expand the target technical problem to obtain K technical problems, aggregate the K technical problems with the target technical problem to obtain K+1 technical problems; and use the K+1 technical problems as a technical problem set;

[0007] In the pre-constructed patent-technical problem database, a semantic search is performed for each technical problem in the technical problem set to obtain the N patents with the highest similarity; then, N×(K+1) patents are searched for K+1 technical problems; the N×(K+1) patents are used as the candidate patent data set; each candidate patent in the candidate patent data set is set with a query similarity; the query similarity refers to the similarity between the technical problem of the candidate patent text and each technical problem in the technical problem set;

[0008] Vectorize the N×(K+1) patent technical issues in the candidate patent data set to obtain N×(K+1) candidate patent technical issue vectors; input the target technical issue into the large language model to obtain a hypothetical answer; vectorize the hypothetical answer to obtain a hypothetical answer vector; calculate the comparative similarity of each candidate patent, where the comparative similarity refers to the comparative similarity between the technical issue vector of each candidate patent and the hypothetical answer vector; sum the query similarity and the comparative similarity of each candidate patent to obtain the total similarity of each candidate patent;

[0009] The total similarity of each candidate patent is sorted in descending order, and the top ranked patents are output as recommendation results.

[0010] On the other hand, a patent text recommendation system based on a large language model is provided, including:

[0011] An expansion module is configured to: obtain a target technical problem; based on a large language model, expand the target technical problem to obtain K technical problems, aggregate the K technical problems with the target technical problem to obtain K+1 technical problems; and use the K+1 technical problems as a technical problem set;

[0012] The query similarity calculation module is configured to: perform semantic search for each technical problem in the technical problem set in a pre-built patent-technical problem database to obtain N patents with the highest similarity; then, search for N×(K+1) patents for K+1 technical problems; use the N×(K+1) patents as a candidate patent data set; each candidate patent in the candidate patent data set is set with a query similarity; the query similarity refers to the similarity between the technical problem of the candidate patent text and each technical problem in the technical problem set;

[0013] A comparative similarity calculation module is configured to: vectorize N×(K+1) patent technical issues in the candidate patent data set to obtain N×(K+1) candidate patent technical issue vectors; input the target technical issue into the large language model to obtain a hypothetical answer; vectorize the hypothetical answer to obtain a hypothetical answer vector; calculate the comparative similarity of each candidate patent, wherein the comparative similarity refers to the comparative similarity between the technical issue vector of each candidate patent and the hypothetical answer vector; sum the query similarity and the comparative similarity of each candidate patent to obtain the total similarity of each candidate patent;

[0014] The output module is configured to sort the total similarity of each candidate patent from large to small, and output several patents with the highest ranking as recommendation results.

[0015] On the other hand, there is also provided an electronic device, comprising:

[0016] a memory for non-transitory storage of computer-readable instructions; and

[0017] a processor for executing the computer readable instructions,

[0018] When the computer-readable instructions are executed by the processor, the method described in the first aspect is executed.

[0019] On the other hand, a storage medium is provided, which non-temporarily stores computer-readable instructions, wherein when the non-temporary computer-readable instructions are executed by a computer, the instructions of the method described in the first aspect are executed.

[0020] On the other hand, a computer program product is provided, comprising a computer program, wherein the computer program is used to implement the method described in the first aspect when running on one or more processors.

[0021] The above technical solution has the following advantages or beneficial effects:

[0022] An ERNIE model was trained to calculate the similarity between patent technical issues while ensuring accuracy and time efficiency.

[0023] The BART model is used to summarize patent technical issues, avoiding information loss caused by truncation and shortening. At the same time, a patent technical issue database containing more than 89,000 items is constructed as a patent database for the recommended patents of this invention.

[0024] The database, LLM and ERNIE are combined to build a complete patent recommendation framework, which can provide engineers with heuristic solutions to technical problems based on a huge database. In addition, the document vector hypothesis method is introduced to filter the recommendation results and improve the accuracy and relevance of the system recommendation results. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0026] Figure 1 is a flow chart of the method of embodiment 1;

[0027] Figure 2 Schematic diagram of the internal structure of the twin ERNIE model of Example 1. DETAILED DESCRIPTION

[0028] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0029] Terminology explanation:

[0030] The ERNIE model refers to the ERNIE model released by Baidu, and its Chinese name is Wenxin Big Model. The model was introduced in the paper "Ernie: Enhanced representation through knowledge integration" by Sun et al. The Wenxin Big Model ERNIE is an industrial-level knowledge enhancement big model released by Baidu, covering NLP big models and cross-modal big models.

[0031] BART model refers to the bart-large-cnn model released by Facebook. The BART model was pre-trained on English and fine-tuned on CNN Daily Mail. The model was introduced in the paper "BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension" by Lewis et al.

[0032] LLM stands for Large Language Model (LLM). A Large Language Model (LLM) is a computational model known for its ability to achieve general language generation and other natural language processing tasks such as classification. LLM can be used for text generation, a type of generative AI that takes input text and repeatedly predicts the next token or word.

[0033] Embodiment 1

[0034] This embodiment provides a patent text recommendation method based on a large language model;

[0035] like Figure 1 As shown, the patent text recommendation method based on the large language model includes:

[0036] S101: Obtain target technical issues; based on the large language model, expand the target technical issues to obtain K technical issues, aggregate the K technical issues and the target technical issues to obtain K+1 technical issues; and use the K+1 technical issues as a technical issue set;

[0037] S102: In the pre-constructed patent-technical problem database, a semantic search is performed for each technical problem in the technical problem set to obtain N patents with the highest similarity; then, N×(K+1) patents are searched for K+1 technical problems; the N×(K+1) patents are used as a candidate patent data set; each candidate patent in the candidate patent data set is set with a query similarity; the query similarity refers to the similarity between the technical problem in the candidate patent text and each technical problem in the technical problem set;

[0038] S103: vectorize the N×(K+1) patent technical issues in the candidate patent data set to obtain N×(K+1) candidate patent technical issue vectors; input the target technical issue into the large language model to obtain a hypothetical answer; vectorize the hypothetical answer to obtain a hypothetical answer vector; calculate the comparative similarity of each candidate patent, wherein the comparative similarity refers to the comparative similarity between the technical issue vector of each candidate patent and the hypothetical answer vector; sum the query similarity and the comparative similarity of each candidate patent to obtain the total similarity of each candidate patent;

[0039] S104: Sort the total similarity of each candidate patent in descending order, and output the top ranked patents as recommendation results.

[0040] Furthermore, the S101: obtains the target technical problem, wherein the target technical problem is collected in two ways, the first is the technical problem directly raised by the user; the second is that the user provides the patent application number of interest, and the patent text is downloaded according to the patent application number, and the technical problem of the patent text is extracted from the downloaded patent text through a large language model.

[0041] Furthermore, in S101: based on the large language model, the target technical problem is expanded to obtain K related technical problems, the target technical problem is input into the large language model, and the large language model expands K technical problems similar to the target technical problem.

[0042] Furthermore, the S102: performing semantic search for each technical question in the technical question set in a pre-built patent-technical question database to obtain N patents with the highest similarity includes: performing semantic search using the trained twin ERNIE model;

[0043] The trained twin ERNIE model includes: a first ERNIE model and a second ERNIE model in parallel; the first ERNIE model is used to input each technical problem in a technical problem set, and the second ERNIE model is used to input the technical problem of each patent in a patent-technical problem database; the output end of the first ERNIE model is connected to the input end of the first mean pooling layer, the output end of the second ERNIE model is connected to the input end of the second mean pooling layer, the output end of the first mean pooling layer and the output end of the second mean pooling layer are both connected to the input end of a cosine similarity calculation unit, and the output end of the cosine similarity calculation unit outputs a similarity calculation result.

[0044] Furthermore, the training process of the trained twin ERNIE model includes:

[0045] Constructing a training set, wherein the training set is two texts with known similarity calculation results;

[0046] The training set is input into the twin ERNIE model and the twin ERNIE model is trained. When the total loss function value of the twin ERNIE model no longer decreases or the number of iterations exceeds the set number, the training is stopped to obtain the trained twin ERNIE model.

[0047] The twin ERNIE model has a neural network structure as follows: Figure 2 As shown. In order to improve the accuracy of sentence vectorization representation and the speed of sentence pair similarity calculation, the Siamese network architecture is used to integrate two ERNIE models. SERNIE is the full name of Siamese ERNIE network, where Siamese is translated as twins, twins, conjoined, etc. The two ERNIE models contained in the SERNIE model have the same structure and weights, which simplifies the training process. The training uses the Sentences Involving Compositional Knowledge (SICK) dataset. The "relatedness score" in the SICK dataset is divided by 5 and the value is retained to two decimal places as the true value of sentence pair similarity during training in this article. During training, cosine similarity is used to calculate the predicted similarity values ​​between sentence pairs. The cosine similarity calculation formula is:

[0048]

[0049] Among them, pred i Represents the cosine similarity value of sentence vectors u and v, that is, the predicted value of the model. At the same time, the mean square error loss function is used to define the loss function of SERNIE, as shown below:

[0050]

[0051] After training, the F1 value of the SERNIE model on a patent text similarity dataset surpassed the BERT model by 5.2% and the ERNIE model by 3.2%. This proves that the training process has significantly improved SERNIE, thereby enhancing the vectorized representation of patent texts. In addition, the twin neural network structure can vectorize two sentences in parallel, which improves the calculation speed compared to the neural network structure that can only vectorize one sentence at a time.

[0052] It should be understood that a large language model (LLM) is a natural language processing model based on deep learning technology, which learns the laws and knowledge of language through training with a large amount of text data, so as to generate natural and fluent text. Large language model, such as ChatGPT.

[0053] For example, based on the acquired technical problems, several related questions are generated. For example, an engineer asks: "How to accurately control the flight attitude of a drone under complex weather conditions." Then the system generates:

[0054] How to design a flight control system that can adapt to the dynamic changes of UAVs under complex meteorological conditions.

[0055] Which advanced sensor technologies can help drones maintain a stable flight attitude in bad weather?

[0056] How to use machine learning and artificial intelligence algorithms to predict and adapt to the impact of complex weather conditions on drone flight performance.

[0057] In icing and strong wind conditions, how should the UAV's flight control strategy be adjusted to ensure safe and precise flight.

[0058] How to test and improve UAV flight control methods in complex weather conditions through flight simulation and experimental verification.

[0059] How do flight control strategies differ under complex weather conditions for different types of UAVs (such as fixed-wing and rotary-wing UAVs)?

[0060] How to combine the structural design and flight control system of UAV to improve its flight stability and reliability in adverse weather conditions.

[0061] Under complex weather conditions, how to effectively plan and navigate the trajectory of UAVs to avoid potential dangers and obstacles.

[0062] Which existing flight control theories and methods can be used to improve the flight performance of UAVs under complex weather conditions.

[0063] How to optimize the flight control of UAVs in complex weather conditions through real-time data transmission and collaboration with ground control stations.

[0064] Exemplarily, the patent application number entered by the engineer is first obtained from the front end, and then the system searches the website for the patent number based on the patent application number. If the patent is found, the patent is downloaded. The patent is then processed in blocks, specifically dividing the text into blocks of 2,000 characters according to the character count. The reason for this is that some LLMs do not have the ability to read very long texts, nor do they have the ability to remember very long text conversations, which enhances the applicability of the present invention. Therefore, truncating the text is one of the effective methods for processing conversations based on text that exceeds the text. The system then calls the LLM to summarize the technical problems of the patent text, thereby realizing the function of obtaining technical problems based on the patent application number.

[0065] Furthermore, the pre-constructed patent-technical problem database includes: patent application number, patent name and patent technical problem description.

[0066] For example, in the process of constructing the patent-technical problem database, the duplicate data in the original data set is first deleted, and then the XML tags therein are deleted. These tags are format tags for storing XML files and are of no use in showing the tag content to engineers. For example, the tag " <p id="p-0009"num="0008">". In addition, the annotation contents in the original data set are deleted. These annotation contents are enclosed in parentheses. Their contents are secondary, but the contents are too long, which is not conducive to users' quick understanding of the patent content.

[0067] The processed patent technical problem data set is input into the BART model one by one. The length of each data in the original data set is 0-5000 characters, and the length after processing is 30-300 characters. There are more than 89,000 patent technical problem data in this data set.

[0068] Furthermore, the S102: in the pre-built patent-technical problem database, a semantic search is performed for each technical problem to obtain N patents with the highest similarity, including:

[0069] The trained twin ERNIE model is used to perform semantic search for each technical issue to obtain the N patents with the highest similarity. During the semantic retrieval process, the technical issues of the candidate patent text and each technical issue in the technical issue set are simultaneously input into the trained twin ERNIE model to obtain the similarity between the technical issues of the candidate patent text and each technical issue in the technical issue set.

[0070] It should be understood that based on the constructed patent technical problem database, this embodiment uses the trained twin ERNIE model to query the database according to each technical problem and find out the N patents with the highest cosine similarity. Assuming that K related questions are generated, plus the original questions asked by the engineer, there are a total of K+1 questions that need to be queried. After the query, there are a total of N*(K+1) candidate patents. For all candidate patents, the attribute "query similarity" is assigned.

[0071] First, the ERNIE model is trained using the SICK dataset. Experimental results show that its performance is better than the BERT model. The ERNIE model is then called to calculate the cosine similarity between each piece of data and all technical issues in the database. The N pieces of data with the highest cosine similarity are selected as candidate patents.

[0072] Further, S103: vectorize the N×(K+1) patent technical issues in the candidate patent data set to obtain N×(K+1) candidate patent technical issue vectors; input the target technical issue into the large language model to obtain a hypothetical answer; vectorize the hypothetical answer to obtain a hypothetical answer vector; wherein the vectorization process is implemented through the BART model.

[0073] Further, S103: calculating the comparative similarity of each candidate patent, wherein the comparative similarity refers to the comparative similarity between the technical question vector and the hypothetical answer vector of each candidate patent; specifically including:

[0074] The technical question vector and hypothetical answer vector of each candidate patent are input into the trained twin ERNIE model to obtain the comparative similarity between the technical question vector and the hypothetical answer vector of each candidate patent.

[0075] Furthermore, the method further includes: firstly putting the technical question into a preset prompt template, and then sending the constructed prompt statement and the technical question to the LLM to generate a technical hypothesis answer for the question.

[0076] Since LLMs can sometimes hallucinate, this answer may contain incorrect details.

[0077] Then all the candidate patent technical issues found are vectorized, and the hypothetical answers generated by LLM are vectorized, and similarity cosine comparisons are performed one by one.

[0078] Therefore, each candidate patent has a new attribute "comparative similarity", whose value is the cosine similarity calculated in this step.

[0079] Then, the obtained "query similarity" is added to the "comparison similarity" to obtain the "total similarity calculation value".

[0080] At the same time, all patents with duplicate patent application numbers in the candidate patents are removed.

[0081] Finally, the "total similarity" is sorted in descending order, and the recommendation results are given through the front-end interface of this patented system.

[0082] In order to screen the N*(K+1) candidate patents generated, the present invention uses the HyDE method for screening. The specific operation is to first generate a prompt template using prompt engineering, then put the target technical problem into the prompt template and input LLM to obtain a hypothetical answer to the problem, which may contain incorrect information, but the present invention will use HyDE for screening.

[0083] The HyDE method is: embed the technical questions and hypothetical answers of N*(K+1) candidate patents into vectors, and compare the cosine similarity based on the trained twin ERNIE model. Finally, add the calculated cosine similarity value and the query cosine similarity value to get the total score of N*(K+1) candidate patents. Recommendations are made in descending order of the total score.

[0084] The present invention proposes a unified framework for patent recommendation, which integrates information retrieval models, external knowledge bases and text generation models to solve patent suggestions. Specifically, the framework compresses lengthy technical issues for clear elaboration and uses LLM to consider the full scope of patent content and refine patent technical issues. In addition, the present invention uses the trained twin ERNIE model to retrieve relevant patents based on the provided technical issues. In addition, the present invention also uses prompt engineering to generate multiple related questions from the technical problems found by engineers and further create corresponding hypothetical answers, thereby improving the recommendation results. A large number of experiments show that the SERNIE model outperforms other models in both SICK datasets and real-world datasets. Case studies involving drones further highlight its superior performance. Thus, it is possible to accurately recommend patents to engineers to help them acquire innovative knowledge in different patent fields. The innovative points of the present invention are summarized as follows:

[0085] The trained twin ERNIE model is used to measure the similarity of technical problem sentences. The present invention uses the ERNIE model to measure the similarity of technical problem sentences, thereby accurately quantifying and comparing the semantic similarity of patent technical problems, providing a more reliable basis for the patent recommendation system. Inspired by the continuous development of natural language processing technology, the present invention uses a deep learning-based method, and the language model based on the Transformer structure shows good performance in multiple natural language processing tasks.

[0086] A patent recommendation and analysis method based on deep learning model and large-scale pre-training model is proposed. The present invention uses the trained twin ERNIE model and LLM model to process and analyze the patent text, extracts technical problem sentences from it, and combines the constructed technical problem database to provide solid support for the patent recommendation system. This paper successfully applies the LLM model and HyDE document filtering technology to the patent recommendation task, which significantly improves the relevance of patent recommendations.

[0087] The BART model is used to summarize technical issues, which is better than the traditional truncation method. The present invention uses the BART model to summarize technical issues and extract sentences that can accurately express the patent concept, solving the problem of too long data. The traditional truncation method cannot fully retain key information, but the application of the BART model successfully overcomes this problem.

[0088] Embodiment 2

[0089] This embodiment provides a patent text recommendation system based on a large language model;

[0090] Patent text recommendation system based on large language model, including:

[0091] An expansion module is configured to: obtain a target technical problem; based on a large language model, expand the target technical problem to obtain K technical problems, aggregate the K technical problems with the target technical problem to obtain K+1 technical problems; and use the K+1 technical problems as a technical problem set;

[0092] The query similarity calculation module is configured to: perform semantic search for each technical problem in the technical problem set in a pre-built patent-technical problem database to obtain N patents with the highest similarity; then, search for N×(K+1) patents for K+1 technical problems; use the N×(K+1) patents as a candidate patent data set; each candidate patent in the candidate patent data set is set with a query similarity; the query similarity refers to the similarity between the technical problem of the candidate patent text and each technical problem in the technical problem set;

[0093] A comparative similarity calculation module is configured to: vectorize N×(K+1) patent technical issues in the candidate patent data set to obtain N×(K+1) candidate patent technical issue vectors; input the target technical issue into the large language model to obtain a hypothetical answer; vectorize the hypothetical answer to obtain a hypothetical answer vector; calculate the comparative similarity of each candidate patent, wherein the comparative similarity refers to the comparative similarity between the technical issue vector of each candidate patent and the hypothetical answer vector; sum the query similarity and the comparative similarity of each candidate patent to obtain the total similarity of each candidate patent;

[0094] The output module is configured to sort the total similarity of each candidate patent from large to small, and output several patents with the highest ranking as recommendation results.

[0095] It should be noted that the above-mentioned extension module, query similarity calculation module, comparison similarity calculation module and output module correspond to steps S101 to S104 in Embodiment 1, and the examples and application scenarios implemented by the above-mentioned modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned Embodiment 1. It should be noted that the above-mentioned modules as part of the system can be executed in a computer system such as a set of computer executable instructions.

[0096] The description of each embodiment in the above embodiments has different emphases. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0097] The proposed system can be implemented in other ways. For example, the system embodiment described above is only illustrative, and the division of the modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.

[0098] Embodiment 3

[0099] This embodiment also provides an electronic device, including: one or more processors, one or more memories, and one or more computer programs; wherein the processor is connected to the memory, and the one or more computer programs are stored in the memory. When the electronic device is running, the processor executes the one or more computer programs stored in the memory so that the electronic device executes the method described in the above embodiment one.

[0100] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0101] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0102] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software.

[0103] The method in the first embodiment can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.

[0104] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0105] Embodiment 4

[0106] This embodiment further provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the method described in the first embodiment is completed.

[0107] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A patent text recommendation method based on a large language model, characterized in that: include: Get the target technical issues; Based on the large language model, the target technical problem is expanded to obtain K technical problems, and the K technical problems are aggregated with the target technical problems to obtain K+1 technical problems; the K+1 technical problems are taken as a technical problem set; In the pre-constructed patent-technical problem database, a semantic search is performed for each technical problem in the technical problem set to obtain the N patents with the highest similarity; then, N×(K+1) patents are searched for K+1 technical problems; the N×(K+1) patents are used as the candidate patent data set; each candidate patent in the candidate patent data set is set with a query similarity; the query similarity refers to the similarity between the technical problem of the candidate patent text and each technical problem in the technical problem set; Vectorize the N×(K+1) patent technical issues in the candidate patent data set to obtain N×(K+1) candidate patent technical issue vectors; input the target technical issue into the large language model to obtain a hypothetical answer; vectorize the hypothetical answer to obtain a hypothetical answer vector; calculate the comparative similarity of each candidate patent, where the comparative similarity refers to the comparative similarity between the technical issue vector of each candidate patent and the hypothetical answer vector; sum the query similarity and the comparative similarity of each candidate patent to obtain the total similarity of each candidate patent; The total similarity of each candidate patent is sorted in descending order, and the top ranked patents are output as recommendation results.

2. The patent text recommendation method based on a large language model as claimed in claim 1, characterized in that: Obtain target technical issues, wherein the target technical issues can be collected in two ways: the first is technical issues directly raised by users; the second is that users provide the patent application number of interest, and patent texts are downloaded based on the patent application number. From the downloaded patent texts, technical issues in the patent texts are extracted through a large language model.

3. The patent text recommendation method based on a large language model as claimed in claim 1, characterized in that In the pre-built patent-technical problem database, a semantic search is performed for each technical problem in the technical problem set to obtain the N patents with the highest similarity, including: semantic search using the trained twin ERNIE model; The trained twin ERNIE model includes: a first ERNIE model and a second ERNIE model in parallel; the first ERNIE model is used to input each technical problem in the technical problem set, and the second ERNIE model is used to input the technical problem of each patent in the patent-technical problem database; the output end of the first ERNIE model is connected to the input end of the first mean pooling layer, the output end of the second ERNIE model is connected to the input end of the second mean pooling layer, the output end of the first mean pooling layer and the output end of the second mean pooling layer are both connected to the input end of the cosine similarity calculation unit, and the output end of the cosine similarity calculation unit outputs the similarity calculation result; The training process of the trained twin ERNIE model includes: Constructing a training set, wherein the training set is two texts with known similarity calculation results; The training set is input into the twin ERNIE model and the twin ERNIE model is trained. When the total loss function value of the twin ERNIE model no longer decreases or the number of iterations exceeds the set number, the training is stopped to obtain the trained twin ERNIE model.

4. The patent text recommendation method based on a large language model as claimed in claim 1, characterized in that In the pre-built patent-technical problem database, a semantic search is performed for each technical problem in the technical problem set to obtain the N patents with the highest similarity, including: The trained twin ERNIE model is used to perform semantic search for each technical issue to obtain the N patents with the highest similarity. During the semantic retrieval process, the technical issues of the candidate patent text and each technical issue in the technical issue set are simultaneously input into the trained twin ERNIE model to obtain the similarity between the technical issues of the candidate patent text and each technical issue in the technical issue set.

5. The patent text recommendation method based on a large language model as claimed in claim 1, characterized in that: The N×(K+1) patent technical issues in the candidate patent data set are vectorized to obtain N×(K+1) candidate patent technical issue vectors; the target technical issue is input into the large language model to obtain a hypothetical answer; the hypothetical answer is vectorized to obtain a hypothetical answer vector; wherein the vectorization process is implemented through the BART model.

6. The patent text recommendation method based on a large language model as claimed in claim 1, characterized in that: Calculate the comparative similarity of each candidate patent, where the comparative similarity refers to the comparative similarity between the technical question vector and the hypothetical answer vector of each candidate patent; specifically, include: The technical question vector and hypothetical answer vector of each candidate patent are input into the trained twin ERNIE model to obtain the comparative similarity between the technical question vector and the hypothetical answer vector of each candidate patent.

7. A patent text recommendation system based on a large language model, characterized by including: An extension module configured to: obtain a target technical problem; Based on the large language model, the target technical problem is expanded to obtain K technical problems, and the K technical problems are aggregated with the target technical problems to obtain K+1 technical problems; the K+1 technical problems are taken as a technical problem set; The query similarity calculation module is configured to: perform semantic search for each technical problem in the technical problem set in a pre-built patent-technical problem database to obtain N patents with the highest similarity; then, search for N×(K+1) patents for K+1 technical problems; use the N×(K+1) patents as a candidate patent data set; each candidate patent in the candidate patent data set is set with a query similarity; the query similarity refers to the similarity between the technical problem of the candidate patent text and each technical problem in the technical problem set; A comparative similarity calculation module is configured to: vectorize N×(K+1) patent technical issues in the candidate patent data set to obtain N×(K+1) candidate patent technical issue vectors; input the target technical issue into the large language model to obtain a hypothetical answer; vectorize the hypothetical answer to obtain a hypothetical answer vector; calculate the comparative similarity of each candidate patent, wherein the comparative similarity refers to the comparative similarity between the technical issue vector of each candidate patent and the hypothetical answer vector; sum the query similarity and the comparative similarity of each candidate patent to obtain the total similarity of each candidate patent; The output module is configured to sort the total similarity of each candidate patent from large to small, and output several patents with the highest ranking as recommendation results.

8. An electronic device, comprising: a memory for non-transitory storage of computer readable instructions; as well as a processor for executing the computer readable instructions, Wherein, when the computer-readable instructions are executed by the processor, the method described in any one of claims 1 to 6 is executed.

9. A storage medium characterized by being non-temporary The computer-readable instructions are stored, wherein when the non-transitory computer-readable instructions are executed by a computer, the instructions of the method according to any one of claims 1 to 6 are executed.

10. A computer program product, characterized in that The invention comprises a computer program, which is used to implement the method according to any one of claims 1 to 6 when running on one or more processors.

Citation Information

Cited By

  • Response generation method and device, electronic equipment and storage medium

    CN120317382A

  • LLM-driven semantic association extension and structure completion patent recommendation method and system

    CN120541287A