Enterprise national industry label completion method, system and device and storage medium

The XLNet model completes the label of enterprises in the national industry, solves the problem of lack of label of enterprises in the national industry, improves analysis efficiency and accuracy, and realizes the digital transformation of traditional industries and the development of big data driven by the industry.

CN119046778APending Publication Date: 2024-11-29CCCC FIRST HIGHWAY CONSULTANTS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410794961.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

During the national industry label research process, a large number of about 80 million companies have missing national industry labels, resulting in high analysis error rates and large differentiation, and the inability to form a standard classification mechanism.

Method used

Using the enterprise national industry label completion method based on the XLNet model, by establishing the enterprise national industry label classification set, obtaining and preprocessing the enterprise sample data, building the training set, verification set and test set, and using the softmax classifier for label prediction, selecting The optimal model performs label classification to achieve automatic completion of labels.

Benefits of technology

It has improved the analysis efficiency and accuracy, scientificity and accuracy, helped to fill the national industry label of nearly 80 million companies across the country, and promoted the digital transformation of traditional industries and the big data-driven industrial development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046778A_ABST
    Figure CN119046778A_ABST
Patent Text Reader

Abstract

The invention discloses an enterprise and national industry label completion method, system and device and a storage medium, and the method comprises the steps: building an enterprise and national industry label classification set which comprises a plurality of label classes of an industry door class, a large class, a middle class and a small class which an enterprise belongs to; obtaining an original enterprise sample data set, performing preprocessing and labeling, and constructing a training set, a verification set and a test set; using the training set, the verification set and the test set to train, verify and test a pre-established XLNet model; and inputting the preprocessed unmarked enterprise sample data into the trained XLNet model to obtain a model output result, and obtaining a label classification result through the trained softmax classifier. For industry special analysis and statistical analysis in industry research, the analysis efficiency and reliability in industry research analysis can be greatly improved, and the problem that national industry tags of millions of enterprises in the whole country are incomplete can be efficiently solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of label prediction technology, and in particular to a method, system, device and storage medium for completing enterprise national industry labels. Background Art

[0002] In recent years, with the continuous development of big data technology and artificial intelligence, traditional business workflows are undergoing digital transformation. The basic purpose of the digital transformation of the industry is to collect, store, process, calculate, and visualize massive data through big data technology combined with business logic. National industry labels have important analytical value in the process of industrial research, park investment promotion, etc., and there is a mapping relationship between the national four-level industry labels and the emerging industry labels. According to the survey, a large number of the approximately 80 million companies in the country lack national industry labels. National industry labels are usually obtained by analyzing the nature or description of the company, but this method of manual analysis has problems such as high error rate, large differentiation, and inability to form a standard classification mechanism. Summary of the invention

[0003] The present application provides a method, system, device and storage medium for completing enterprise national industry labels to solve the problem of missing enterprise national industry labels in actual business processes.

[0004] According to the first aspect, an embodiment provides a method for completing enterprise national industry labels, the method comprising:

[0005] Establishing a national industry label classification set for an enterprise, wherein the label classification set includes multiple label categories of the industry category, major category, medium category and minor category to which the enterprise belongs;

[0006] Obtain the original enterprise sample data set and perform preprocessing and labeling to construct a training set, a validation set, and a test set, where the original enterprise sample data features at least include the enterprise name, business scope, and patent name;

[0007] Using the training set, validation set, and test set to train, validate, and test the pre-established XLNet model;

[0008] The preprocessed unlabeled enterprise sample data is input into the trained XLNet model to obtain the model output results, and the label classification results are obtained through the trained softmax classifier.

[0009] Furthermore, the original enterprise sample data set is obtained and preprocessed and labeled to construct the training set, validation set, and test set, including:

[0010] When predicting categories, the sample features of the training set include company name, business scope, and patent name;

[0011] When predicting major categories, the sample features of the training set include company name, business scope, patent name, and category;

[0012] When predicting the middle class, the sample features of the training set include company name, business scope, patent name, category and major category;

[0013] When predicting subcategories, the sample features of the training set include company name, business scope, patent name, category, and middle category.

[0014] Furthermore, the training set, validation set, and test set are constructed, including:

[0015] The data set is divided into training set, validation set and test set in the ratio of 0.95:0.025:0.025.

[0016] Furthermore, the original enterprise sample data set is obtained and preprocessed, including:

[0017] The original text data is segmented or tokenized to meet the input requirements of the model.

[0018] Furthermore, the method further comprises:

[0019] Different prediction models were selected and the prediction accuracy was compared on multiple categories. The model with the highest accuracy was obtained as the final prediction model. The different prediction models selected included BertBilstm, BertDPCNN, BertRNN, BertCNN, Bert, ERNIE and XLNet models. The best prediction model was the XLNet model.

[0020] Furthermore, the method further comprises:

[0021] When using the training set to train the model, calculate the loss rate of the model on the training set. When the loss continues to decrease and approaches 0, it indicates that the model has reached the optimal value during training.

[0022] Furthermore, the method further comprises:

[0023] When using the validation set to validate the model, calculate the recall and precision of the model on the validation set.

[0024] According to the second aspect, an embodiment provides a system for completing enterprise national industry labels, the system comprising:

[0025] A label classification set building module is used to establish a national industry label classification set for an enterprise, wherein the label classification set includes multiple label categories of the industry category, major category, medium category and minor category to which the enterprise belongs;

[0026] The data set construction module is used to obtain the original enterprise sample data set and perform preprocessing and labeling to construct the training set, verification set and test set, where the original enterprise sample data features at least include the enterprise name, business scope and patent name;

[0027] A model training module, for training, verifying and testing the pre-established XLNet model using the training set, validation set and test set;

[0028] The label prediction module is used to input the preprocessed unlabeled enterprise sample data into the trained XLNet model to obtain the model output results, and obtain the label classification results through the trained softmax classifier.

[0029] According to the third aspect, an embodiment provides an electronic device, the device comprising: a processor and a memory;

[0030] The memory is used to store one or more program instructions;

[0031] The processor is used to run one or more program instructions to execute the steps of a method for completing enterprise national industry labels as described in any of the above items.

[0032] According to the fourth aspect, an embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of a method for completing an enterprise national industry label as described in any one of the above items are implemented.

[0033] The present application provides a method, system, device and storage medium for completing enterprise national industry labels, which have the following beneficial effects:

[0034] (1) This method introduces artificial intelligence algorithms to enrich and improve the label features of all enterprises in the platform data terminal based on the analysis idea of ​​supplementing the missing data of enterprises from the traditional business perspective. Artificial intelligence methods replace traditional business personnel to perform manual analysis and supplement, greatly improving the efficiency and accuracy of analysis. This method is more scientific and accurate.

[0035] (2) From the perspective of business value, the present invention makes full use of existing big data technology to solve the problem of massive data statistics and text analysis in traditional industries, which can help complete the national industry labels of nearly 80 million enterprises across the country, and explore the integration of industrial development and artificial intelligence technology, thus realizing the digital transformation needs of traditional industries. The text classification model proposed in the present invention transforms massive and complex industry analysis into artificial intelligence label completion, opening up new research directions for big data-driven industrial development. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A flowchart of a method for completing enterprise national industry labels provided by an embodiment of the present invention;

[0037] Figure 2 A logic diagram of national industry label completion of a method for completing national industry labels of an enterprise provided by an embodiment of the present invention;

[0038] Figure 3 A specific implementation flow chart of a method for completing enterprise national industry labels provided by an embodiment of the present invention;

[0039] Figure 4 A training set loss graph of an Xlnet model in a method for completing enterprise national industry labels provided by an embodiment of the present invention;

[0040] Figure 5 A schematic diagram of the logical structure of a system for completing enterprise national industry labels provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.

[0042] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.

[0043] The first embodiment of the present invention provides a method for completing enterprise national industry labels. Figure 1 , Figure 2 and Figure 3 Provide detailed explanation.

[0044] This paper mainly refers to the national standard GB / T 4754-2017 "National Economic Industry Classification", and inputs the enterprise name, business scope, and patent name as the features of the enterprise labeling model into the algorithm model for analysis. The analysis logic is as follows: Figure 2 shown.

[0045] like Figure 1 As shown, in step S100, a national industry label classification set of an enterprise is established, and the label classification set includes multiple label categories of the industry category, major category, medium category and minor category to which the enterprise belongs.

[0046] This embodiment collects data from about 100,000 enterprises as training data. The enterprise national industry labels involve 20 categories such as agriculture, forestry, animal husbandry, fishery, mining, manufacturing, electricity, heat, gas and water production and supply; 94 major categories such as agriculture, forestry, animal husbandry, fishery, mining, manufacturing, electricity, heat, gas and water production and supply; 421 middle categories such as agriculture, forestry, fishery, animal husbandry, coal mining and washing, oil and natural gas mining; 979 small categories such as rice planting, wheat planting, corn planting, bean planting, vegetable planting, fruit tree planting.

[0047] like Figure 1 As shown, in step S200, the original enterprise sample data set is obtained and preprocessed and labeled to construct a training set, a validation set, and a test set, wherein the original enterprise sample data features at least include the enterprise name, business scope, and patent name.

[0048] Based on the consideration of the complexity of enterprise data features and the degree of semantic confusion, this embodiment determines that the seven feature dimensions of enterprise name, business scope, patent, category, major category, medium category and minor category are used as enterprise feature dimensions. In addition, stop word removal and word segmentation processing are also performed to effectively retain the input information and remove some useless content to make the model input more concise and effective.

[0049] The collection and preparation steps include a dataset of text and corresponding labels. The text data is converted into a form acceptable to the model. The XLNet model requires the input to be in the form of word segmentation or subword representation, so it is necessary to perform word segmentation or use a vocabulary to convert the text into subwords.

[0050] Add the company category, business scope, patent name and four categories. Concatenate the subsequent categories according to the previous features and input them separately. Check the categories first, then the major categories, the medium categories and the minor categories in turn.

[0051] After entering 512 characters of features, the stage order is to put the category first, then the name and business scope, and the feature input order for each category is:

[0052] Category: Company Name->Business Scope->Patent Name

[0053] Major category: Company name->Business scope->Patent name->Category

[0054] Medium category: Company name->Business scope->Patent name->Category->Major category

[0055] Sub-category: Company name->Business scope->Patent name->Category->Major category->Medium category

[0056] That is, when predicting categories, the characteristics of the training set samples include company name, business scope and patent name; when predicting major categories, the characteristics of the training set samples include company name, business scope, patent name and category; when predicting medium categories, the characteristics of the training set samples include company name, business scope, patent name, category and major categories; when predicting minor categories, the characteristics of the training set samples include company name, business scope, patent name, category and medium category.

[0057] In the experiment, the dataset was divided into training set, validation set and test set in the ratio of 0.95:0.025:0.025 respectively.

[0058] like Figure 1 As shown, in step S300, the pre-established XLNet model is trained, verified and tested using the training set, validation set and test set.

[0059] In this embodiment, six models as shown in Table 1 are selected to compare with the XLNet model. The table lists the accuracy of each model. It is found that the XLNet model performs better in four categories. Therefore, this model is selected as the optimal model for final label prediction.

[0060] Table 1 Comparative experimental results A

[0061] category BertBilstm BertDPCNN BertRNN Category 0.802296 0.808673 0.785714 Major categories 0.817602 0.8125 0.808673 Medium 0.723214 0.718112 0.697704 Subclass 0.766582 0.839286 0.815051

[0062] Table 2 Comparative experimental results B

[0063]

[0064]

[0065] At the same time, on this basis, the loss rate of the XLNet model on the training set is also visualized, such as Figure 4 shown.

[0066] Table 3 XLNet experimental results

[0067] category Recall Accuracy Category 0.936744 0.852628 Major categories 0.89621 0.811325 Medium 0.861839 0.706287 Subclass 0.935421 0.876438

[0068] The loss of the model in the training set is in a state of continuous decline, close to 0, indicating that the model has reached the optimal state during training. In order to more clearly observe the effect of the XLNet model on the validation set, the recall rate (recall) and accuracy rate (acc) of the model on the validation set are also calculated as shown in Table 3 above.

[0069] like Figure 1 As shown, in step S400, the preprocessed unlabeled enterprise sample data is input into the trained XLNet model to obtain the model output result, and the label classification result is obtained through the trained softmax classifier.

[0070] Use the fine-tuned XLNet model to predict labels for new unlabeled text. Perform the same preprocessing as in training, such as tokenization or sub-tokenization, on the unlabeled text and convert it into a form acceptable to the model. Input the preprocessed text into the XLNet model and get the model's output. Use the trained classifier softmax to predict labels for the model's output.

[0071] The embodiment of the present invention provides a method for completing the national industry labels of enterprises, establishing a national industry label classification set of enterprises, wherein the label classification set includes multiple label categories of the industry category, major category, medium category and minor category to which the enterprise belongs; obtaining the original enterprise sample data set and preprocessing and labeling the data set, constructing a training set, a verification set and a test set, wherein the original enterprise sample data features at least include the enterprise name, business scope and patent name; using the training set, verification set and test set to train, verify and test the pre-established XLNet model; inputting the preprocessed unlabeled enterprise sample data into the trained XLNet model to obtain the model output result, and obtaining the label classification result through the trained softmax classifier. The present invention obtains 100,000 enterprise data as training data, uses the XLNet model to learn the input word vector, and completes the national industry labels. For industry-specific analysis and statistical analysis in industrial research, it can greatly improve the analysis efficiency and reliability in industrial research analysis, and help efficiently solve the problem of incomplete national industry labels for tens of millions of enterprises across the country.

[0072] Corresponding to the above disclosed method for completing enterprise national industry labels, the embodiment of the present invention further discloses a system for completing enterprise national industry labels, such as Figure 5 As shown, it specifically includes:

[0073] A label classification set building module is used to establish a national industry label classification set for an enterprise, wherein the label classification set includes multiple label categories of the industry category, major category, medium category and minor category to which the enterprise belongs;

[0074] The data set construction module is used to obtain the original enterprise sample data set and perform preprocessing and labeling to construct the training set, verification set and test set, where the original enterprise sample data features at least include the enterprise name, business scope and patent name;

[0075] A model training module, for training, verifying and testing the pre-established XLNet model using the training set, validation set and test set;

[0076] The label prediction module is used to input the preprocessed unlabeled enterprise sample data into the trained XLNet model to obtain the model output results, and obtain the label classification results through the trained softmax classifier.

[0077] It should be noted that for the detailed description of a system for completing enterprise national industry labels provided in an embodiment of the present invention, reference can be made to the relevant description of a method for completing enterprise national industry labels provided in an embodiment of the present application, which will not be repeated here.

[0078] In addition, an embodiment of the present invention further provides an electronic device, comprising: a processor and a memory; the memory is used to store one or more program instructions; the processor is used to run one or more program instructions to execute the steps of a method for completing an enterprise national industry label as described in any of the above items.

[0079] It should be noted that for the detailed description of an electronic device provided in an embodiment of the present invention, reference can be made to the relevant description of a method for completing enterprise national industry labels provided in an embodiment of the present application, which will not be repeated here.

[0080] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for completing enterprise national industry labels as described in any of the above items are implemented.

[0081] It should be noted that for the detailed description of a computer-readable storage medium provided in an embodiment of the present invention, reference can be made to the relevant description of a method for completing enterprise national industry labels provided in an embodiment of the present application, which will not be repeated here.

[0082] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.

[0083] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.

Claims

1. A method for completing enterprise national industry labels, characterized in that: The method comprises: Establishing a national industry label classification set for an enterprise, wherein the label classification set includes multiple label categories of the industry category, major category, medium category and minor category to which the enterprise belongs; Obtain the original enterprise sample data set and perform preprocessing and labeling to construct a training set, a validation set, and a test set, where the original enterprise sample data features at least include the enterprise name, business scope, and patent name; Using the training set, validation set, and test set to train, validate, and test the pre-established XLNet model; The preprocessed unlabeled enterprise sample data is input into the trained XLNet model to obtain the model output results, and the label classification results are obtained through the trained softmax classifier.

2. A method for completing enterprise national industry labels as claimed in claim 1, characterized in that: Obtain the original enterprise sample data set, preprocess it, and label it, and build the training set, validation set, and test set, including: When predicting categories, the sample features of the training set include company name, business scope, and patent name; When predicting major categories, the sample features of the training set include company name, business scope, patent name, and category; When predicting the middle class, the sample features of the training set include company name, business scope, patent name, category and major category; When predicting subcategories, the sample features of the training set include company name, business scope, patent name, category, and middle category.

3. The method for completing enterprise national industry labels as claimed in claim 1, characterized in that: Construct training sets, validation sets, and test sets, including: The data set is divided into training set, validation set and test set in the ratio of 0.95:0.025:0.

025.

4. The method for completing enterprise national industry labels as claimed in claim 1, characterized in that: Obtain the original enterprise sample data set and perform preprocessing, including: The original text data is segmented or tokenized to meet the input requirements of the model.

5. The method for completing enterprise national industry labels as claimed in claim 1, characterized in that: The method further comprises: Different prediction models were selected and the prediction accuracy was compared on multiple categories. The model with the highest accuracy was obtained as the final prediction model. The different prediction models selected included BertBilstm, BertDPCNN, BertRNN, BertCNN, Bert, ERNIE and XLNet models. The best prediction model was the XLNet model.

6. The method for completing enterprise national industry labels as claimed in claim 1, characterized in that: The method further comprises: When using the training set to train the model, calculate the loss rate of the model on the training set. When the loss continues to decrease and approaches 0, it indicates that the model has reached the optimal value during training.

7. The method for completing enterprise national industry labels as claimed in claim 1, characterized in that: The method further comprises: When using the validation set to validate the model, calculate the recall and precision of the model on the validation set.

8. An enterprise national industry label completion system, characterized in that: The system comprises: A label classification set building module is used to establish a national industry label classification set for an enterprise, wherein the label classification set includes multiple label categories of the industry category, major category, medium category and minor category to which the enterprise belongs; The data set construction module is used to obtain the original enterprise sample data set and perform preprocessing and labeling to construct the training set, verification set and test set, where the original enterprise sample data features at least include the enterprise name, business scope and patent name; A model training module, for training, verifying and testing the pre-established XLNet model using the training set, validation set and test set; The label prediction module is used to input the preprocessed unlabeled enterprise sample data into the trained XLNet model to obtain the model output results, and obtain the label classification results through the trained softmax classifier.

9. An electronic device, characterized in that: The device comprises: a processor and a memory; The memory is used to store one or more program instructions; The processor is used to run one or more program instructions to execute the steps of a method for completing enterprise national industry labels 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, and when the computer program is executed by a processor, the steps of the method for completing enterprise national industry labels as described in any one of claims 1 to 7 are implemented.