Automatic patent classification method and device, terminal and storage medium
Through dependency syntax analysis and word embedding technology, patent documents are preprocessed and classified, and machine learning technology is used to predict flow categories, functional categories, and meta-functional categories. This solves the problem of limitations of automatic patent classification methods in the existing technology and achieves Comprehensive classification of patents and access to cross-domain information.
Patent Information
- Application Number
- CN202410779373.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Existing automatic patent classification methods cannot comprehensively classify patents and are limited to specific engineering fields, invention problem-solving theories or functional classifications, and cannot obtain cross-field patent information.
Use dependency syntax analysis and word embedding technology to preprocess patent documents to be classified, generate document representations, and use the trained flow classifier, function classifier, and meta-function classifier to predict flow categories, functional categories, and meta-functional categories. Achieve comprehensive classification of patents.
Through dependency syntax analysis and word embedding technology, it is possible to automatically identify the functional and meta-functional attributes of patent documents, achieve a comprehensive classification of cross-domain patents, and improve designers' ability to obtain cross-domain patent information.
Smart Images

Figure CN118796776A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of document processing technology, and in particular to a patent automatic classification method, device, terminal and storage medium. Background Art
[0002] As a product of innovative design, the technical information contained in patent documents can expand the knowledge space of designers and inspire them to create new products or technical systems. Automatic classification of patents can effectively mine useful information in patents, thereby promoting designers to reuse patent knowledge.
[0003] Existing automatic patent classification methods can be divided into three categories: patent classification methods based on engineering fields, patent classification methods based on invention problem solving theories, and patent classification methods based on functions. However, patent classification based on engineering fields can only support the acquisition of patents in specific engineering fields, patent classification methods based on invention problem solving theories can only acquire cross-domain patents related to invention principles, and patent classification methods based on functions can only acquire cross-domain patents related to functions. Therefore, existing automatic patent classification methods are very limited and cannot comprehensively classify patents.
[0004] Therefore, the prior art has defects and needs to be improved and developed. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a patent automatic classification method, device, terminal and storage medium in response to the above-mentioned defects of the prior art, aiming to solve the problem that the patent automatic classification method in the prior art is very limited and cannot comprehensively classify patents.
[0006] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0007] A patent automatic classification method, wherein the method comprises:
[0008] Perform dependency syntax analysis on the patent documents to be classified to obtain preprocessing information;
[0009] Embedding the preprocessed information into words to obtain document representation;
[0010] Based on the document representation and the trained flow classifier, function classifier and meta-function classifier, a flow category prediction result, a function category prediction result and a meta-function category prediction result are obtained.
[0011] In one implementation, the process of performing dependency syntax analysis on the patent document to be classified to obtain preprocessing information includes:
[0012] Analyze the part of speech of each word in each sentence of the patent document to be classified, and analyze the grammatical relationship between different words to obtain the analysis result corresponding to each sentence;
[0013] According to the analysis results, the noun object, the verb predicate and the verb pair maintaining the dependency relationship of each sentence are extracted to obtain preprocessing information.
[0014] In one implementation, word embedding is performed on the preprocessed information to obtain a document representation, including:
[0015] Performing semantic vector representation on each of the noun objects to obtain each noun vector, calculating the average value of each noun vector, and obtaining the noun vector representation of the patent document to be classified;
[0016] Performing semantic vector representation on each of the verb predicates to obtain each verb vector, calculating the average value of each verb vector, and obtaining the verb vector representation of the patent document to be classified;
[0017] Performing semantic vector representation on two verbs in a verb pair that maintains a dependency relationship to obtain a first verb vector and a second verb vector, taking the difference between the first verb vector and the second verb vector as a verb relationship vector, calculating the average value of each of the verb relationship vectors, and obtaining a verb relationship vector representation of the patent document to be classified;
[0018] The noun vector representation, the verb vector representation, and the verb relationship vector representation are saved as a document representation.
[0019] In one implementation, obtaining a flow category prediction result, a function category prediction result, and a meta-function category prediction result based on the document representation and the trained flow classifier, function classifier, and meta-function classifier includes:
[0020] Inputting the noun vector representation in the document representation into the trained stream classifier to obtain a stream category prediction result;
[0021] Inputting the verb vector representation in the document representation into a trained function classifier to obtain a function category prediction result;
[0022] The verb relationship vector representation in the document representation is input into a trained meta-function classifier to obtain a meta-function category prediction result.
[0023] In one implementation, before performing dependency syntax analysis on the patent document to be classified to obtain preprocessing information, the method further includes:
[0024] Extract the titles and abstracts of patents to be classified;
[0025] A period is added at the end of the title, and the title after the period and the abstract form a patent document to be classified.
[0026] In one implementation, the training steps of the flow classifier, the function classifier and the meta-function classifier include:
[0027] Obtaining a training patent document set, wherein the training patent document set includes a plurality of training patent documents and a flow term label, a function term label, and a meta-function term label corresponding to each training patent document;
[0028] Perform dependency syntactic analysis and word embedding processing on each of the training patent documents to obtain a training document representation, wherein the training document representation includes: a noun vector training representation, a verb vector training representation, and a verb relationship vector training representation;
[0029] Based on the noun vector training representation and the flow term label, training a pre-built initial flow classifier to obtain a trained flow classifier;
[0030] Based on the verb vector training representation and the functional term label, a pre-built initial functional classifier is trained to obtain a trained functional classifier;
[0031] Based on the verb relationship vector training representation and the meta-function term label, the pre-constructed initial meta-function classifier is trained to obtain a trained meta-function classifier.
[0032] In one implementation, performing dependency syntactic analysis and word embedding processing on each of the training patent documents to obtain a training document representation includes:
[0033] Analyzing the part of speech of each word in each sentence of each of the training patent documents, and analyzing the grammatical relationship between different words;
[0034] According to the part of speech of each word and the grammatical relationship between different words, the training data of the noun object, the training data of the verb predicate and the training data of the verb pair with dependency relationship are extracted from each sentence;
[0035] Performing semantic vector representation on each of the noun object training data to obtain each noun vector training data, calculating the average value of each noun vector training data, and obtaining the noun vector training representation of the patent document to be classified;
[0036] Performing semantic vector representation on each of the verb predicate training data to obtain each verb vector training data, calculating the average value of each verb vector training data, and obtaining the verb vector training representation of the patent document to be classified;
[0037] Perform semantic vector representation on two verbs in the training data of the verb pair that maintains the dependency relationship to obtain a third verb vector and a fourth verb vector, use the difference between the third verb vector and the fourth verb vector as verb relationship vector training data, calculate the average value of each of the verb relationship vector training data, and obtain the verb relationship vector training representation of the patent document to be classified.
[0038] The present invention also provides a patented automatic classification device, wherein the device comprises:
[0039] An analysis module is used to perform dependency syntax analysis on the patent documents to be classified to obtain preprocessing information;
[0040] A word embedding module, used to embed the preprocessed information into words to obtain document representation;
[0041] The classification module is used to obtain a flow category prediction result, a function category prediction result and a meta-function category prediction result based on the document representation and the trained flow classifier, function classifier and meta-function classifier.
[0042] The present invention also provides a terminal, which includes: a memory, a processor, and a patent automatic classification program stored in the memory and executable on the processor, wherein the patent automatic classification program implements the steps of the patent automatic classification method described above when executed by the processor.
[0043] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program can be executed to implement the steps of the patent automatic classification method as described above.
[0044] The present invention provides a patent automatic classification method, comprising: performing dependency syntactic analysis on patent documents to be classified to obtain preprocessing information; performing word embedding on the preprocessing information to obtain document representation; and obtaining flow category prediction results, function category prediction results, and meta-function category prediction results based on the document representation and trained flow classifiers, function classifiers, and meta-function classifiers. The present invention performs dependency syntactic analysis and word embedding on patent documents to be classified, and then uses machine learning technology to obtain flow category prediction results, function category prediction results, and meta-function category prediction results, thereby achieving comprehensive classification of patent documents to be classified, and solving the problem that the patent automatic classification method in the prior art is very limited and cannot comprehensively classify patents. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a flow chart of a preferred embodiment of the patent automatic classification method of the present invention;
[0046] Figure 2It is the classification system and design goal definition of the patented automatic classification method of the present invention;
[0047] Figure 3 It is a flowchart of patent automatic classification process based on function and meta-function of the patent automatic classification method of the present invention;
[0048] Figure 4 It is a functional principle block diagram of a preferred embodiment of the patented automatic classification device of the present invention;
[0049] Figure 5 It is a functional principle block diagram of a preferred embodiment of the terminal in the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0051] The existing automatic patent classification methods can be divided into three categories: patent classification methods based on the engineering field, patent classification methods based on the invention principle in the Theory of Inventive Problem Solving (TRIZ), and patent classification methods based on function.
[0052] For the patent classification method based on the engineering field, the patent is classified according to the engineering / technical field to which the patent describes the object. The current classification system used in the world is the International Patent Classification (IPC). About 95% of existing patents are classified according to the IPC. The IPC is a hierarchical classification system that covers 8 sections, 128 classes, 648 subclasses, about 7,200 groups, and about 72,000 subgroups, describing the field attribution of patents. For example, a three-stage classification method that combines vector space models and traditional machine learning automatically classifies patent documents into "subgroups" of the IPC. In response to the shortcomings of traditional machine learning methods, some methods integrate deep learning technologies such as word embedding, convolutional neural networks, and attention mechanisms, and consider features such as text word order and context to automatically classify Chinese patents into "sections" of the IPC. Some technologies have designed a patent classification method based on word embedding and convolutional neural networks to automatically classify English patent documents into "subclasses" of the IPC. Some automatic classification methods use latent Dirichlet allocation to characterize the subject of patent text as the input of support vector machine to classify patent documents into "sections", "classes", "subclasses", "groups" and "subgroups" of IPC. Some technologies propose classification methods based on deep learning transformers and graph embedding to realize automatic classification of patents according to IPC codes. Some technologies build an integrated machine learning classification framework to automatically classify patents into "subclasses" of IPC. Some technologies classify patents based on IPC, combining information gain and word frequency features and K nearest neighbor classifiers. Some technologies extract and train keyword dictionaries from information such as IPC of patents, and then automatically classify patents according to keyword groups. Some technologies propose a deep learning classification method based on dual-channel feature fusion to automatically classify patents according to the IPC system. Some technologies build a technical classification system similar to IPC and apply neural network classifiers to technically classify patents. Some technologies integrate phrase and context features and apply deep learning technologies such as convolutional neural networks, long short-term memory networks and attention mechanisms to automatically classify patent documents according to IPC. Some technologies combine patent feature graphs and neural network models to classify patent documents into the IPC hierarchy. Some technologies extract financial field classification labels from the patent's IPC and other information, and then automatically classify the patent text through a bidirectional encoder representation model from Transformer. Some technologies propose a patent classification method based on network representation learning and hierarchical label embedding, and automatically classify patents according to the CPC (Cooperative Patent Classification) classification system similar to IPC. From the perspective of product innovation, patent classification based on engineering / technical fields can only support the acquisition of patents in specific engineering fields, which will limit the divergent thinking of designers.In order to obtain innovative inspiration, designers need to learn from and draw analogies from cross-domain patent inventions from other fields, rather than just patent inventions in their own field.
[0053] For the patent classification method based on the inventive principle in the Theory of Inventive Problem Solving (TRIZ), the patents are classified according to the inventive principle in the Theory of Inventive Problem Solving (TRIZ). TRIZ theory summarizes and extracts 40 inventive principles that can be used to solve technical contradictions from a large number of patents. Classifying patents according to the TRIZ inventive principles can provide example references for abstract inventive principles, enabling designers or TRIZ users to convert inventive principles into special solutions more efficiently. Some technologies reclassify the 40 inventive principles into 22 groups as classification categories and automatically classify 674 patents. Some technologies select 10 inventive principles from TRIZ as classification categories and conduct automatic classification research on 293 patents. Some technologies propose a collaborative filtering method to automatically classify 2,868 patents based on the TRIZ inventive principle. Some technologies have proposed a multi-feature fusion Chinese patent classification method based on the TRIZ invention principle, using the ALBERT model, BiATextCNN model, BiGRU model and SelfAttention mechanism to obtain word vectors containing local key character information features and contextual deep semantic information feature sentence vectors, and fuse them to obtain a text vector representation of multi-feature representation. Finally, the Softmax classifier is used to classify patents according to the TRIZ invention principle. From the perspective of supporting product innovation, the patent classification method based on the TRIZ invention principle helps designers obtain cross-domain patents to inspire inspiration; however, from the patents classified by this method, only cross-domain patents related to the invention principle can be obtained, which can inspire designers to solve technical contradictions in products or systems, but it is difficult to effectively inspire designers to creatively realize the target functions and target meta-functions in product systems.
[0054] For the patent classification method based on function, patents are classified according to the functions realized by the objects described in the patents. Function is the basic feature of a product or technology, and the value of a patent is reflected in its originality in realizing a certain function. Classifying patents by function helps designers obtain various forms of realizing the target function from patents, thereby generating design ideas. Some technologies propose a method based on functional co-reference model, vector space model and machine learning for automatic functional classification of patents. Some technologies combine functional base, word frequency inverse document frequency and naive Bayes to automatically classify Chinese patents. Some technologies propose a new patent feature weight calculation method for patent classification based on functional base, which improves the functional classification effect of patents. From the perspective of supporting product innovation, the patent classification method based on function helps designers obtain cross-domain patent inventions, thereby stimulating design inspiration. However, from the patents classified by this method, only function-related cross-domain patents can be obtained, which can inspire designers to creatively realize the target function in the product system, but it is difficult to effectively inspire designers to creatively realize the target meta-function in the product system.
[0055] The present invention provides a patent automatic classification method based on functions and meta-functions. The classification system of the provided method combines meta-functions, functions and flow terms. Intelligent technologies such as dependency syntax analysis, information extraction, word embedding, and machine learning are used to achieve patent characterization and classification. Through the provided method, the function and meta-function attributes of patent documents can be automatically identified, thereby solving the problem of automatic patent classification based on functions and meta-functions, and enabling designers to effectively obtain cross-domain patent inventions associated with functions and meta-functions.
[0056] See also Figure 1 , Figure 1 This is a flow chart of the patent automatic classification method in the present invention. Figure 1 As shown, the patent automatic classification method described in the embodiment of the present invention includes:
[0057] Step S100: performing dependency syntax analysis on the patent document to be classified to obtain preprocessing information.
[0058] In the embodiment of the present application, the step S100 specifically includes:
[0059] Step S110, analyzing the part of speech of each word in each sentence of the patent document to be classified, and analyzing the grammatical relationship between different words, to obtain the analysis result corresponding to each sentence;
[0060] Step S120: extracting the noun object, verb predicate and verb pairs maintaining dependency relationships of each sentence according to the analysis results to obtain preprocessing information.
[0061] Specifically, in the Python environment, the dependency syntax analysis tool Standford CoreNLP is called to perform dependency syntax analysis on the patent documents to be classified. For each sentence in the patent document to be classified, the part of speech of each word (such as noun, verb, adjective, adverb, etc.) and the grammatical relationship between different words (such as subject-predicate relationship, verb-object relationship, subject-predicate-object relationship, appositive relationship, etc.) are analyzed. Through the object and verb extraction rules, the noun object and verb predicate are respectively extracted from the analyzed sentence. For each verb, find its direct connecting words in the dependency relationship, that is, its directly dependent words, and determine whether this dependency relationship is also a verb. If so, keep this pair of verbs. For the screened verb pairs, they are extracted as two verbs that maintain the dependency relationship.
[0062] The embodiments of the present application provide a basis for realizing automatic function and meta-function classification of patent texts through dependency syntax analysis and information extraction.
[0063] like Figure 1 As shown, the patent automatic classification method described in this embodiment also includes:
[0064] Step S200: embed the preprocessed information into words to obtain document representation.
[0065] In the embodiment of the present application, the step S200 specifically includes:
[0066] Step S210, performing semantic vector representation on each of the noun objects to obtain each noun vector, calculating the average value of each noun vector, and obtaining the noun vector representation of the patent document to be classified;
[0067] Step S220, performing semantic vector representation on each of the verb predicates to obtain each verb vector, calculating the average value of each verb vector, and obtaining the verb vector representation of the patent document to be classified;
[0068] Step S230, performing semantic vector representation on the two verbs in the verb pair maintaining the dependency relationship to obtain a first verb vector and a second verb vector, taking the difference between the first verb vector and the second verb vector as the verb relationship vector, calculating the average value of each of the verb relationship vectors, and obtaining the verb relationship vector representation of the patent document to be classified;
[0069] Step S240: Save the noun vector representation, the verb vector representation and the verb relationship vector representation as a document representation.
[0070] Specifically, the word embedding tool GloVe is used to perform a 300-dimensional semantic vector representation on the extracted noun objects, verb predicates, and verb pairs that maintain dependency relationships. The noun vectors are averaged to obtain the noun vector that represents the document. The verb vectors are averaged to obtain the verb vector that represents the document. The two verb vectors that represent the verb pairs that maintain dependency relationships are subtracted to obtain the verb relationship vector that represents the verb pairs that maintain dependency relationships, and then the verb relationship vectors are averaged to obtain the verb relationship vector that represents the document.
[0071] The embodiment of the present application provides a basis for realizing automatic function and meta-function classification of patent text by embedding words into preprocessed information.
[0072] like Figure 1 As shown, the patent automatic classification method described in this embodiment also includes:
[0073] Step S300: Based on the document representation and the trained flow classifier, function classifier and meta-function classifier, a flow category prediction result, a function category prediction result and a meta-function category prediction result are obtained.
[0074] Specifically, in the classifier application, the patent documents to be classified are preprocessed and vectorized as inputs to the trained flow, function and meta-function classifiers to predict the flow, function and meta-function term categories of the non-annotated patent documents. The function and flow term prediction results constitute the function classification results of the patent documents. The meta-function, function and flow term prediction results constitute the meta-function classification results of the patent documents.
[0075] The embodiments of the present application provide a basis for realizing automatic function and meta-function classification of patent texts by utilizing machine learning technology.
[0076] In the embodiment of the present application, the step S300 specifically includes:
[0077] Step S310: input the noun vector representation in the document representation into the trained flow classifier to obtain a flow category prediction result;
[0078] Step S320, inputting the verb vector representation in the document representation into the trained function classifier to obtain a function category prediction result;
[0079] Step S330: input the verb relationship vector representation in the document representation into the trained meta-function classifier to obtain a meta-function category prediction result.
[0080] The embodiments of the present application improve the comprehensiveness of patent classification by simultaneously predicting the flow category prediction results, function category prediction results and meta-function category prediction results of the patent documents to be classified, and solve the problem that the automatic patent classification method in the prior art is very limited and cannot comprehensively classify patents.
[0081] In one embodiment of the present application, the step S100 also includes: extracting the title and abstract of the patent to be classified; adding a period at the end of the title, and the title after the period is added and the abstract form the patent document to be classified.
[0082] Specifically, the embodiment of the present application adds a period at the end of the title and connects the abstract to form a text with a complete structure, which is the patent document. In this way, the embodiment of the present application can greatly reduce the workload and improve the classification efficiency by extracting the title and abstract of the patent to be classified.
[0083] In the embodiment of the present application, the training steps of the flow classifier, the function classifier and the meta-function classifier include:
[0084] Step A10, obtaining a training patent document set, wherein the training patent document set includes a plurality of training patent documents and a flow term label, a function term label, and a meta-function term label corresponding to each training patent document;
[0085] Step A20, performing dependency syntactic analysis and word embedding processing on each of the training patent documents to obtain a training document representation, wherein the training document representation includes: a noun vector training representation, a verb vector training representation, and a verb relationship vector training representation;
[0086] Step A30: training a pre-built initial flow classifier based on the noun vector training representation and the flow term label to obtain a trained flow classifier;
[0087] Step A40: training a pre-built initial function classifier based on the verb vector training representation and the function term label to obtain a trained function classifier;
[0088] Step A50: training a pre-built initial meta-function classifier based on the verb relationship vector training representation and the meta-function term label to obtain a trained meta-function classifier.
[0089] Specifically, the classification system in the embodiment of the present application combines common meta-functional terms, functional terms and flow terms. Functional terms and flow terms constitute functional concepts. Meta-functional terms, functional terms and flow terms constitute meta-functional concepts. Design experts use the above three types of terms to annotate patent documents collected from patent websites to obtain annotated patent document sets. The patent document set annotated with each type of term is divided into a training patent document set and a test patent document set. The training documents and test documents are preprocessed based on dependency syntactic analysis and information extraction. The extracted information is word embedded to convert the training documents and test documents into vector form. Based on the training document vectors and machine learning classifiers, meta-functional classifiers, functional classifiers and flow classifiers are trained, and tested on test documents to construct applicable classifiers. Based on the constructed classifiers, the meta-functional terms, functional terms and flow term labels of non-annotated patent documents collected from patent websites are predicted to obtain functional and meta-functional classified patents.
[0090] The classification system of the patent classification method provided by the present invention is as follows: Figure 2 As shown, there are three general classification terms involved, including 8 meta-functional terms, 8 functional terms and 18 flow terms. Functional concepts are described by the combination of functional terms and flow terms, i.e., "<functional term> + <flow term>", such as "<transmission> + <solid>", which means "changing the spatial position of the solid". Meta-functional terms describe the relationship between different functions, for example, "prevention" means "the realization of one function avoids the failure of another function during operation".
[0091] Specifically, meta-function terms describe the interdependence between different functions, including eight types: providing, driving, enabling, improving, enhancing, allowing, preventing, and controlling. "Providing" refers to the material or energy generated or transmitted by one function, which is the object of special processing or operation of another function; "driving" refers to the energy generated or transmitted by one function supporting the action process of another function whose processing or operation object is material; "enabling" refers to the occurrence of a function whose processing or operation object is the material property directly leading to the occurrence of another function whose processing or operation object is material or energy; "improving" refers to the realization of one function improving the effect of another function without increasing additional energy input; "enhancing" refers to the realization of one function improving the effect of another function with additional energy input; "allowing" refers to the increase of the relevant attribute of the processing or operation object of one function will lead to the reduction of the side effects of another function on the third function or the entire system; "preventing" means that if one function is not realized, another function will fail; "controlling" means maintaining the value of the relevant attribute of the object of action of one function by changing the value of the relevant attribute of the object of action of another function.
[0092] Meta-functional concepts are described by a combination of meta-functional terms, functional terms and flow terms, i.e., “<meta-functional term>+<functional term>+<flow term>”, such as “<prevention>+<transmission>+<solid>”, which means “avoid failures in the process of transporting solids”.
[0093] like Figure 3 As shown in the figure, when building a patent classifier, we first obtain patent documents in batches from the patent data platform. For example, we randomly obtain product or technology system patents from various fields from the Patent and Trademark Office website, and extract the title and abstract of the patent as the patent document. A period is added to the end of the title and the abstract is connected to form a complete text, which is the patent document.
[0094] The collected patent documents are annotated, for example, by having design experts read and understand them, extract the main functions and meta-functions implemented by the patent description objects, and then annotate the patent documents using meta-function terms, function terms, and flow terms to obtain an annotated patent document set. The annotated patent document set is used for training and testing, for example, the patent document set annotated with each type of term is divided into a training and a testing patent document set in a ratio of 4:1.
[0095] In the Python environment, the noun vectors and flow term labels representing the training documents are used as inputs of the machine learning classifier to train the flow classifier. The verb vectors and function term labels representing the training documents are used as inputs of the machine learning classifier to train the function classifier. The verb relationship vectors and meta-function term labels representing the training documents are used as inputs of the machine learning classifier to train the meta-function classifier. The flow classifier, function classifier, and meta-function classifier of the embodiment of the present application can all be support vector machines.
[0096] In the Python environment, the test document set is preprocessed and vectorized and used as classification input to test the performance of the trained flow, function, and meta-function classifiers. The performance evaluation indicator uses classification accuracy. If the test performance is not high, the overall data scale of the training document set or the data scale of a specific category is adjusted to build flow, function, and meta-function classifiers with performance that can be applied.
[0097] The embodiments of the present application cover a patent classification system of meta-functions, functions and flow terms, which facilitates cross-domain patent association and organization at both the functional and meta-function levels.
[0098] In one embodiment of the present application, the step A20 specifically includes:
[0099] Step A21, analyzing the part of speech of each word in each sentence of each training patent document, and analyzing the grammatical relationship between different words;
[0100] Step A22, extracting noun object training data, verb predicate training data, and verb pair training data maintaining dependency relationships for each sentence according to the part of speech of each word and the grammatical relationship between different words;
[0101] Step A23, performing semantic vector representation on each of the noun object training data to obtain each noun vector training data, calculating the average value of each noun vector training data, and obtaining the noun vector training representation of the patent document to be classified;
[0102] Step A24, performing semantic vector representation on each of the verb predicate training data to obtain each verb vector training data, calculating the average value of each verb vector training data, and obtaining the verb vector training representation of the patent document to be classified;
[0103] Step A25, perform semantic vector representation on two verbs in the training data of the verb pair that maintains the dependency relationship, obtain a third verb vector and a fourth verb vector, use the difference between the third verb vector and the fourth verb vector as the verb relationship vector training data, calculate the average value of each of the verb relationship vector training data, and obtain the verb relationship vector training representation of the patent document to be classified.
[0104] Specifically, in the Python environment, the dependency syntax analysis tool Standford CoreNLP is called to perform dependency syntax analysis on the training document set. For each sentence in each document, the part of speech of each word (such as noun, verb, adjective, adverb, etc.) and the grammatical relationship between different words (such as subject-predicate relationship, verb-object relationship, subject-predicate-object relationship, appositive relationship, etc.) are analyzed. Through the object and verb extraction rules, the noun object and verb predicate are respectively extracted from the analyzed sentence. For each verb, find its direct connecting words in the dependency relationship, that is, its directly dependent words), and determine whether this dependency relationship is also a verb. If so, keep this pair of verbs. For the screened verb pairs, extract them as two verbs that maintain the dependency relationship.
[0105] The word embedding tool GloVe is used to perform 300-dimensional semantic vector representation on the noun objects, verb predicates, and verb pairs that maintain dependency relationships extracted from the training documents. The noun vectors are averaged to obtain the noun vector that represents the document. The verb vectors are averaged to obtain the verb vector that represents the document. The two verb vectors that represent the verb pairs that maintain dependency relationships are subtracted to obtain the verb relationship vector that represents the verb pairs that maintain dependency relationships, and then the verb relationship vectors are averaged to obtain the verb relationship vector that represents the document.
[0106] In one embodiment, if Figure 4 As shown, based on the above patent automatic classification method, the present invention also provides a patent automatic classification device, including:
[0107] An analysis module 100 is used to perform dependency syntax analysis on the patent document to be classified to obtain preprocessing information;
[0108] A word embedding module 200, used to embed the preprocessed information into words to obtain a document representation;
[0109] The classification module 300 is used to obtain a flow category prediction result, a function category prediction result and a meta-function category prediction result based on the document representation and the trained flow classifier, function classifier and meta-function classifier.
[0110] Figure 5 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. The terminal may include:
[0111] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .
[0112] When the processor 502 executes the program, the patent automatic classification method provided in the above embodiment is implemented.
[0113] Furthermore, the terminal further includes:
[0114] The communication interface 503 is used for communication between the memory 501 and the processor 502 .
[0115] The memory 501 is used to store computer programs that can be executed on the processor 502 .
[0116] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0117] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0118] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0119] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0120] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned automatic patent classification method is implemented.
[0121] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0122] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0123] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes additional implementations, in which the order shown or discussed may not be followed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0124] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can read instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary and then storing it in a computer memory.
[0125] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0126] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0127] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0128] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
[0129] In summary, the present invention discloses a patent automatic classification method, device, terminal and storage medium, including: performing dependency syntactic analysis on patent documents to be classified to obtain preprocessing information; performing word embedding on the preprocessing information to obtain document representation; and obtaining flow category prediction results, function category prediction results and meta-function category prediction results based on the document representation and trained flow classifiers, function classifiers and meta-function classifiers. The present invention performs dependency syntactic analysis and word embedding on patent documents to be classified, and then uses machine learning technology to obtain flow category prediction results, function category prediction results and meta-function category prediction results, thereby achieving comprehensive classification of patent documents to be classified, and solving the problem that the patent automatic classification method in the prior art is very limited and cannot comprehensively classify patents.
[0130] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A patent automatic classification method, characterized in that: The method comprises: Perform dependency syntax analysis on the patent documents to be classified to obtain preprocessing information; Embedding the preprocessed information into words to obtain document representation; Based on the document representation and the trained flow classifier, function classifier and meta-function classifier, a flow category prediction result, a function category prediction result and a meta-function category prediction result are obtained.
2. The patent automatic classification method according to claim 1 is characterized in that: The patent document to be classified is subjected to dependency syntactic analysis to obtain preprocessing information, including: Analyze the part of speech of each word in each sentence of the patent document to be classified, and analyze the grammatical relationship between different words to obtain the analysis result corresponding to each sentence; According to the analysis results, the noun object, the verb predicate and the verb pair maintaining the dependency relationship of each sentence are extracted to obtain preprocessing information.
3. The patent automatic classification method according to claim 2 is characterized in that: The preprocessed information is word-embedded to obtain a document representation, including: Performing semantic vector representation on each of the noun objects to obtain each noun vector, calculating the average value of each noun vector, and obtaining the noun vector representation of the patent document to be classified; Performing semantic vector representation on each of the verb predicates to obtain each verb vector, calculating the average value of each verb vector, and obtaining the verb vector representation of the patent document to be classified; Performing semantic vector representation on two verbs in a verb pair that maintains a dependency relationship to obtain a first verb vector and a second verb vector, taking the difference between the first verb vector and the second verb vector as a verb relationship vector, calculating the average value of each of the verb relationship vectors, and obtaining a verb relationship vector representation of the patent document to be classified; The noun vector representation, the verb vector representation, and the verb relationship vector representation are saved as a document representation.
4. The patent automatic classification method according to claim 3 is characterized in that: The obtaining of a flow category prediction result, a function category prediction result and a meta-function category prediction result based on the document representation and the trained flow classifier, function classifier and meta-function classifier comprises: Inputting the noun vector representation in the document representation into the trained stream classifier to obtain a stream category prediction result; Inputting the verb vector representation in the document representation into a trained function classifier to obtain a function category prediction result; The verb relationship vector representation in the document representation is input into a trained meta-function classifier to obtain a meta-function category prediction result.
5. The patent automatic classification method according to claim 1 is characterized in that: Before performing dependency syntax analysis on the patent document to be classified to obtain preprocessing information, the method further includes: Extract the titles and abstracts of patents to be classified; A period is added at the end of the title, and the title after the period and the abstract form a patent document to be classified.
6. The patent automatic classification method according to claim 1 is characterized in that: The training steps of the flow classifier, the function classifier and the meta-function classifier include: Obtaining a training patent document set, wherein the training patent document set includes a plurality of training patent documents and a flow term label, a function term label, and a meta-function term label corresponding to each training patent document; Perform dependency syntactic analysis and word embedding processing on each of the training patent documents to obtain a training document representation, wherein the training document representation includes: a noun vector training representation, a verb vector training representation, and a verb relationship vector training representation; Based on the noun vector training representation and the flow term label, training a pre-built initial flow classifier to obtain a trained flow classifier; Based on the verb vector training representation and the functional term label, a pre-built initial functional classifier is trained to obtain a trained functional classifier; Based on the verb relationship vector training representation and the meta-function term label, the pre-constructed initial meta-function classifier is trained to obtain a trained meta-function classifier.
7. The patent automatic classification method according to claim 6, characterized in that: The dependency syntactic analysis and word embedding processing are performed on each of the training patent documents to obtain a training document representation, including: Analyzing the part of speech of each word in each sentence of each of the training patent documents, and analyzing the grammatical relationship between different words; According to the part of speech of each word and the grammatical relationship between different words, the training data of the noun object, the training data of the verb predicate and the training data of the verb pair with dependency relationship are extracted from each sentence; Performing semantic vector representation on each of the noun object training data to obtain each noun vector training data, calculating the average value of each noun vector training data, and obtaining the noun vector training representation of the patent document to be classified; Performing semantic vector representation on each of the verb predicate training data to obtain each verb vector training data, calculating the average value of each verb vector training data, and obtaining the verb vector training representation of the patent document to be classified; Perform semantic vector representation on two verbs in the training data of the verb pair that maintains the dependency relationship to obtain a third verb vector and a fourth verb vector, use the difference between the third verb vector and the fourth verb vector as verb relationship vector training data, calculate the average value of each of the verb relationship vector training data, and obtain the verb relationship vector training representation of the patent document to be classified.
8. A patented automatic classification device, characterized in that: The device comprises: An analysis module is used to perform dependency syntax analysis on the patent documents to be classified to obtain preprocessing information; A word embedding module, used to embed the preprocessed information into words to obtain document representation; The classification module is used to obtain a flow category prediction result, a function category prediction result and a meta-function category prediction result based on the document representation and the trained flow classifier, function classifier and meta-function classifier.
9. A terminal, characterized in that: include: A memory, a processor, and a patent automatic classification program stored in the memory and executable on the processor, wherein the patent automatic classification program, when executed by the processor, implements the steps of the patent automatic classification method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which can be executed to implement the steps of the patent automatic classification method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Classification method for construction engineering change instructions
CN112749278A
Text classification method and device, electronic equipment and storage medium
CN113704460A
