Intelligent classification method and device for electronic archives based on deep learning

Through a method based on deep learning, the generative adversarial network and the whale optimization algorithm are used to optimize the feature extraction model, combined with the extreme learning machine classification algorithm, to solve the problems of low efficiency and poor accuracy of electronic document classification in the existing technology, and achieve semantic classification Fast and accurate classification of rich, diverse documents.

CN118568263BActive Publication Date: 2024-10-25SHANDONG ENERGY DIGITAL CLOUD TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411036126.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-25
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

The existing technology has low efficiency and poor accuracy when processing electronic document classification, and cannot meet the rapidly growing demand for document processing. It also relies on simple keyword matching or rule engines, making it difficult to process documents with rich semantics and diverse formats.

Method used

A method based on deep learning is adopted to obtain documents to be classified, convert them into vocabulary and construct vectorized representations, use generative adversarial networks and whale optimization algorithms to optimize feature extraction models, and combine extreme learning machine classification algorithms for classification to reduce gradient disappearance or Explosion problems are solved automatically.

Benefits of technology

It achieves fast and accurate classification of electronic documents, can process documents with rich semantics and diverse formats, improves the accuracy of data feature extraction and classification, and reduces the tedious process of manual annotation and feature extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568263B_ABST
    Figure CN118568263B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for intelligent classification of electronic archives based on deep learning, which relates to the field of data processing technology, including obtaining documents to be classified; converting the documents to be classified into a vocabulary, and constructing a vectorized representation of the documents to be classified based on the vocabulary; inputting the vectorized representation into a preset feature extraction model, and outputting key features corresponding to the vectorized representation; identifying the key features through a classifier model, and outputting classification results to classify the documents to be classified. Among them, the classifier model is based on the extreme learning machine classification algorithm as the classifier algorithm, and the extreme learning machine uses the quantum state evolution theory to update the connection weights; the feature extraction model optimizes the feature weights based on the whale optimization algorithm, and the training sample set is constructed by using a generative adversarial network through quantum logic gate operations. The present invention can process documents with rich semantics and diverse formats and improve the classification accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for intelligent classification of electronic archives based on deep learning. Background Art

[0002] With the acceleration of digital transformation, the number of electronic documents generated by enterprises and organizations has increased dramatically. These documents include but are not limited to legal documents, financial reports, internal communications, production records, etc. Traditional manual archiving methods are not only inefficient but also error-prone and cannot meet the rapidly growing document processing needs. In addition, the diversity and complexity of electronic archives require that the classification system must not only have high accuracy but also have good scalability and robustness. Existing classification technologies mostly rely on simple keyword matching or rule engines, which often have poor effects when processing semantically rich and diversely formatted electronic documents. At the same time, the degree of automation of data annotation and feature extraction is not high, which makes the model training and optimization process cumbersome and time-consuming. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide an electronic archive intelligent classification method and device based on deep learning, which can quickly and accurately classify documents.

[0004] In a first aspect, an embodiment of the present invention provides an electronic archive intelligent classification method based on deep learning, wherein the method includes: obtaining a document to be classified; converting the document to be classified into a vocabulary, and constructing a vectorized representation of the document to be classified based on the vocabulary; inputting the vectorized representation into a preset feature extraction model, and outputting key features corresponding to the vectorized representation; wherein a training sample set for training the feature extraction model is constructed using a generative adversarial network through quantum logic gate operations; and, the feature extraction model optimizes the feature weights corresponding to the training sample set based on a whale optimization algorithm, and, based on the optimized feature weights, updates the model parameters of the feature extraction model; inputting the key features into a pre-constructed classifier model, and outputting classification results corresponding to the key features; wherein the classifier model is based on an extreme learning machine classification algorithm as a classifier algorithm, and the extreme learning machine uses quantum state evolution theory to update connection weights; and classifying the document to be classified based on the classification results.

[0005] In combination with the first aspect, an embodiment of the present invention also provides a first implementation of the first aspect, wherein the step of classifying the documents to be classified based on the classification result includes: obtaining the document type indicated by the classification result; and classifying the documents to be classified based on the document type.

[0006] In combination with the first aspect, an embodiment of the present invention also provides a second implementation of the first aspect, wherein the documents to be classified include multiple documents; the steps of converting the documents to be classified into a vocabulary, and constructing a vectorized representation of the documents to be classified based on the vocabulary, include: using a bag-of-words model to construct a vocabulary corresponding to the documents to be classified; calculating the inverse document frequency of each word in the vocabulary in the documents to be classified, and the term frequency of each word in the corresponding document; calculating the TF-IDF value corresponding to each word in each document based on the inverse document frequency and the term frequency; and constructing a vectorized representation of the documents to be classified based on the TF-IDF value.

[0007] In combination with the first aspect, an embodiment of the present invention also provides a third implementation of the first aspect, wherein a method for constructing a classifier model includes: initializing the connection weights of an extreme learning machine; wherein the connection weights correspond to quantum bits; performing quantum state evolution on the connection weights of the extreme learning machine through quantum gate operations to update the connection weights; inputting a preset training sample set into the extreme learning machine for forward propagation, and adjusting the quantum gate parameters of the quantum gate operation based on the output error corresponding to the forward propagation; until the extreme learning machine meets the preset training conditions, a classifier model is constructed based on the extreme learning machine.

[0008] In combination with the first aspect, an embodiment of the present invention also provides a fourth implementation of the first aspect, wherein a method for constructing a feature extraction model includes: inputting a preset training sample set into an initial neural network, performing multi-granularity processing on the training sample set, and generating a data set corresponding to each granularity; inputting the data set of each granularity into the corresponding neural network module of the initial neural network, outputting the extracted features, and using the whale optimization algorithm to search for the feature weights corresponding to each granularity; based on the feature weights, fusing the extracted features of each granularity, and calculating the loss function of the initial neural network; based on the loss function, optimizing the parameters of the initial neural network; until the initial neural network reaches the preset training conditions, a feature extraction model is constructed based on the initial neural network.

[0009] In combination with the first aspect, an embodiment of the present invention also provides a fifth implementation method of the first aspect, wherein the method also includes: inputting the key features into the autoencoder neural network model, mapping the key features to the hidden feature space through the encoder of the autoencoder neural network model, and obtaining the hidden layer activation features; calculating the feature relationship corresponding to the hidden layer activation features through the non-local network module, and generating the target feature representation based on the feature relationship; decoding the target feature representation through the decoder of the autoencoder neural network model to generate the reconstructed features corresponding to the key features.

[0010] In combination with the first aspect, an embodiment of the present invention also provides a sixth implementation of the first aspect, wherein the method also includes: during the training process of the autoencoder neural network model, using the gradient descent method to optimize the parameters of the encoder, the parameters of the decoder, and the parameters of the non-local network module of the autoencoder neural network model.

[0011] In combination with the first aspect, an embodiment of the present invention also provides a seventh implementation method of the first aspect, wherein a method for constructing a training sample set includes: obtaining archival samples from multiple electronic archive systems; labeling the archival samples to construct an initial sample set; wherein the labeled labels are used to indicate the archival category of the archival samples; using a pre-constructed generative adversarial network to generate quantum state expansion samples corresponding to the initial sample set through quantum logic gate operations; merging the quantum state expansion samples with the initial sample set to construct a training sample set.

[0012] In combination with the first aspect, an embodiment of the present invention also provides an eighth implementation of the first aspect, wherein the step of using a pre-constructed generative adversarial network to generate a quantum state expansion sample corresponding to the initial sample set through quantum logic gate operations includes: using a generator of the generative adversarial network to generate an initial expansion sample through quantum logic gate operations; performing quantum state diffusion on the initial expansion sample to generate a quantum state diffusion sample; calculating the quantum state overlap of the quantum state diffusion sample through a discriminator of the generative adversarial network, and determining the identification probability corresponding to the quantum state diffusion sample based on the quantum state overlap; when the identification probability meets a preset condition, using the quantum state diffusion sample as the quantum state expansion sample corresponding to the initial sample set.

[0013] In a second aspect, an embodiment of the present invention further provides an electronic archive intelligent classification device based on deep learning, wherein the device includes: a data acquisition module, used to acquire documents to be classified; a data processing module, used to convert the documents to be classified into a vocabulary, and based on the vocabulary, construct a vectorized representation of the documents to be classified; a feature extraction module, used to input the vectorized representation into a preset feature extraction model, and output key features corresponding to the vectorized representation; wherein the training sample set for training the feature extraction model is constructed using a generative adversarial network through quantum logic gate operations; and the feature extraction model optimizes the feature weights corresponding to the training sample set based on the whale optimization algorithm, and updates the model parameters of the feature extraction model based on the optimized feature weights; an execution module, used to input the key features into a pre-constructed classifier model, and output the classification results corresponding to the key features; wherein the classifier model is based on the extreme learning machine classification algorithm as the classifier algorithm, and the extreme learning machine uses the quantum state evolution theory to update the connection weights; an output module, used to classify the documents to be classified based on the classification results.

[0014] The embodiments of the present invention bring the following beneficial effects: the present invention provides a method and device for intelligent classification of electronic archives based on deep learning. After vectorizing the document based on the vocabulary of the document to be classified, the feature extraction model is used to extract features, and the key features are classified by the trained classifier model. The feature extraction model optimizes the feature weights corresponding to the training sample set based on the whale optimization algorithm, and updates the model parameters of the feature extraction model based on the optimized feature weights, so that the feature extraction model can extract features at different levels, which is helpful to capture richer data features. The training sample set for training the feature extraction model is constructed by using a generative adversarial network through quantum logic gate operations, which can generate more high-dimensional and complexly distributed data samples. The classifier model is based on the extreme learning machine classification algorithm as the classifier algorithm. The extreme learning machine uses the quantum state evolution theory to update the connection weights, which can reduce the learning stagnation problem caused by gradient disappearance or explosion. Based on this, the present invention can automatically classify the documents to be classified, realize automatic data annotation, and, without relying on simple keyword matching or rule engines, can better handle electronic documents with rich semantics and diverse formats.

[0015] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description and the drawings.

[0016] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 A flowchart of an electronic archive intelligent classification method based on deep learning provided by an embodiment of the present invention;

[0019] Figure 2 A flowchart of another electronic archive intelligent classification method based on deep learning provided by an embodiment of the present invention;

[0020] Figure 3 A flowchart of a method for constructing a training sample set provided by an embodiment of the present invention;

[0021] Figure 4 A schematic diagram of the structure of an electronic archive intelligent classification device based on deep learning provided by an embodiment of the present invention;

[0022] Figure 5 A schematic diagram of the structure of another electronic archive intelligent classification device based on deep learning provided by an embodiment of the present invention;

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

[0024] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the following embodiments of the present disclosure are described by specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0025] The embodiments of the present invention provide a method and device for intelligent classification of electronic archives based on deep learning, which can quickly and accurately classify documents.

[0026] For ease of understanding, a method for intelligent classification of electronic archives based on deep learning provided by an embodiment of the present invention is first described in detail. Figure 1 A flowchart of an electronic archive intelligent classification method based on deep learning provided by an embodiment of the present invention is shown. Figure 1 As shown, the method comprises the following steps:

[0027] Step S102, obtaining documents to be classified.

[0028] Step S104: convert the document to be classified into a vocabulary, and construct a vectorized representation of the document to be classified based on the vocabulary.

[0029] In a specific implementation, an embodiment of the present invention performs archive classification after vectorizing the documents to be classified. In a specific implementation, by collecting different words from all documents, a vocabulary or dictionary is created, in which each word has a unique index. Further, based on the words, the documents to be classified are vectorized. Specifically, the Bag of Words model can be used: the frequency of each word in the document is counted. TF-IDF: considers the frequency of words in the document and the inverse document frequency in the corpus. Word embedding: Use a pre-trained word embedding model, such as Word2Vec or GloVe, to convert each word into a vector of fixed length, and then average or aggregate the entire document.

[0030] Step S106, input the vectorized representation into a preset feature extraction model, and output key features corresponding to the vectorized representation.

[0031] Step S108, inputting the key features into a pre-built classifier model, and outputting the classification results corresponding to the key features.

[0032] Step S110: classify the documents to be classified based on the classification result.

[0033] In specific implementation, the training sample set for training the feature extraction model in the embodiment of the present invention is constructed by quantum logic gate operations using a generative adversarial network. The generative adversarial network contains two neural networks: a generator and a discriminator. The goal of the generator is to synthesize new samples from random noise, while the discriminator attempts to distinguish between real data and fake samples generated by the generator. Through adversarial training, the generator is eventually able to generate samples with a distribution similar to that of real data. In quantum computing, quantum logic gates are operations on quantum bits, similar to logic gates in classical computing. Quantum gates can be used to transform quantum states to execute complex quantum algorithms. In constructing a training sample set, quantum logic gates may be used to generate samples with quantum properties or relying on quantum computing advantages. Based on this, the embodiment of the present invention combines generative adversarial networks and quantum logic gates, and uses the parallelism and superposition of quantum logic gates to accelerate the generation of samples or improve the quality of samples. This method can be used to generate high-dimensional, complex distributed data samples.

[0034] Furthermore, the feature extraction model of the embodiment of the present invention optimizes the feature weights corresponding to the training sample set based on the whale optimization algorithm, and updates the model parameters of the feature extraction model based on the optimized feature weights, which can improve the ability of feature extraction. Feature extraction models play a key role in machine learning and deep learning. They are used to automatically identify the most relevant features from the original data, thereby improving the predictive performance of the model. Typically, the training of such a model involves the adjustment of weights so that the model can more accurately capture patterns in the data. The whale optimization algorithm is a meta-heuristic optimization algorithm inspired by the predation behavior of whales in nature. It is designed to solve complex optimization problems, and is particularly suitable for finding global optimal solutions. In the scenario of feature weight optimization, the whale optimization algorithm can be used to search for the optimal feature weight combination to maximize the predictive ability of the model. Based on this method, the feature extraction model can extract features at different levels, which helps to capture richer data features.

[0035] Furthermore, the extracted key features are classified through a classifier model to classify the documents to be classified, wherein the classifier model of the embodiment of the present invention is based on the extreme learning machine classification algorithm as the classifier algorithm, and the extreme learning machine adopts quantum state evolution theory to update the connection weights.

[0036] Extreme Learning Machine (ELM) is a fast learning algorithm for a single-layer feedforward neural network. Its characteristic is that the weights and biases between the input layer and the hidden layer are randomly initialized, and then only the weights between the hidden layer and the output layer are adjusted, which greatly simplifies the training process of the entire network and significantly speeds up the training process. In traditional ELM, the input weights and biases are usually set randomly, while the weights from the hidden layer to the output layer are obtained by solving the least squares problem.

[0037] The embodiment of the present invention uses quantum state evolution theory to update the connection weights of the extreme learning machine, combining quantum computing and machine learning. Quantum state evolution theory is a basic component of quantum mechanics and describes the changes of quantum systems with the number of iterations. The embodiment of the present invention applies this theory to the extreme learning machine and attempts to use the characteristics of quantum computing to optimize or accelerate the learning process of the ELM, especially in the stage of weight update, reducing the problem of learning stagnation caused by gradient disappearance or explosion.

[0038] Among them, the data collection of the embodiment of the present invention comes from a variety of electronic archive systems, and the electronic archive system may be an official document management system, an enterprise archive storage system, a production process archive management system, etc. The data storage format adopts the JSON format. Documents can be obtained from any system and used as documents to be classified. Further, feature extraction is performed on them after vectorization processing, and classification and identification are performed by the classifier model to determine the document category of the document to be classified. In one embodiment, the document categories include "legal documents", "financial reports", "internal emails", "production archives", and "other archives", a total of 5 categories. It should be noted that the above-mentioned document categories are implementation methods, and the documents to be classified may also be other types of documents, which will not be illustrated here.

[0039] Furthermore, based on the above embodiment, the embodiment of the present invention also provides another electronic archive intelligent classification method based on deep learning. Figure 2 A flowchart of another electronic archive intelligent classification method based on deep learning provided by an embodiment of the present invention is shown, referring to Figure 2 , the method comprises the following steps:

[0040] Step S202: obtaining documents to be classified.

[0041] The documents to be classified refer to the above embodiments and will not be described again here. Furthermore, the embodiment of the present invention vectorizes the acquired documents to be classified and converts them into vectorized representations, so as to classify the archives based on the vectorized data. Among them, the traditional method may only use a simple bag-of-words model or a single vectorization technology, which cannot fully capture the deep semantic information of the document. In the embodiment of the present invention, the vectorization method adopts the bag-of-words model and the TF-IDF method. First, the text is preprocessed by word segmentation, and then the bag-of-words model is used to count the number of occurrences of each word in the document. Furthermore, the TF-IDF value of each word is calculated to reflect its importance in the document and its rarity in the entire document set. The word count in the bag of words is multiplied by the TF-IDF value to obtain the weighted frequency of each word, and these weighted frequencies constitute the vector representation of the document.

[0042] In specific implementation, the bag-of-words model is a method for converting text into vector representation, which is mainly used in the fields of natural language processing and information retrieval. Under the bag-of-words model, text (such as a sentence or a file) is regarded as a bag full of words, and the order and grammatical relationship between words are ignored. This method focuses on word frequency, that is, the number of times each word appears in the text, and uses this as a feature to represent the text. The main steps of the bag-of-words model include word segmentation (breaking the text into individual words or phrases), statistical revision of word features (calculating the frequency of each word in the text), and standardization (normalizing or other forms of standardization of word frequency).

[0043] TF-IDF is a common weighting technique used in information retrieval and text mining. It evaluates the importance of a word by considering how frequent a word is in a document and how rare it is in the entire document collection. TF-IDF is the product of term frequency (TF) and inverse document frequency (IDF). Term frequency (TF): refers to the number of times a word appears in a document, and is usually normalized to prevent the impact of document length on the results. For example, if the number of times a word appears in a document is divided by the total number of words in the document, the term frequency of the word can be obtained.

[0044] Inverse Document Frequency (IDF): A measure of how rare a word is in the entire document collection. The IDF value is usually calculated by dividing the total number of documents in the corpus by the number of documents containing the word and then taking the logarithm. If a word appears in many documents, its IDF value will be low; conversely, if a word appears in few documents, its IDF value will be high. The calculation of TF-IDF helps to highlight words that are important in a specific document and rare in the entire document collection. For specific implementation, refer to the following steps.

[0045] Step S204: construct a vocabulary corresponding to the document to be classified using the bag-of-words model.

[0046] Step S206, calculating the inverse document frequency of each word in the vocabulary in the document to be classified, and the term frequency of each word in the corresponding document.

[0047] Step S208, based on the inverse document frequency and the term frequency, the TF-IDF value corresponding to each word in each document is calculated.

[0048] Step S210: construct a vectorized representation of the document to be classified based on the TF-IDF value.

[0049] In the specific implementation, the documents to be classified include multiple documents, and the vectorized representation of the i-th document is defined as v i (d) Let the total vocabulary set in the document, that is, the vocabulary, be {w1,w2,…,w i ,…,w n}, the i-th word w i Corresponding to a unique index. For document d, its vectorized representation v(d) is the i-th element v i (d) The calculation method is:

[0050]

[0051] In the formula, TF(w i ,d) is the term frequency, IDF(w i ) is the i-th word w i The inverse document frequency of .

[0052] Furthermore, the term frequency TF(w i ,d) represents word w i The frequency of occurrence in document d can be calculated as:

[0053]

[0054] Where n i It is the word w i The number of occurrences in document d, denominator is the sum of the occurrences of all words in document d, and kge is the total number of words in document d.

[0055] Furthermore, the inverse document frequency IDF(w i ) is the measure word w i The commonness measure of can be expressed as:

[0056]

[0057] Where |D| is the total number of documents in the corpus, DF(w i ) is a word containing the word w i The number of documents.

[0058] Therefore, combining the calculation methods of term frequency and inverse document frequency, for document d, the i-th element v of its vectorized representation v(d) is i (d) The calculation method is:

[0059]

[0060] In one embodiment, there is a short document collection, which includes the following three documents: Document 1: "Email Archive Security Archive", Document 2: "Electronic Document Audit Security Archive", Document 3: "Financial Audit Security Audit".

[0061] It should be clear that to calculate the TF-IDF vector representation of these documents, the method is:

[0062] The statistical document set D includes three documents, and the total number of documents |D|=3.

[0063] Calculate the vocabulary: {email, archive, security, electronic document, audit, finance}; and DF(email) = 1, DF(archive) = 2, DF(security) = 3, DF(electronic document) = 1, DF(audit) = 2, DF(finance) = 1. Calculate the TF-IDF vector, first calculate the TF and IDF values ​​of each word, and then calculate the TF-IDF vector of each document based on these values.

[0064] Specifically, the IDF value is calculated as:

[0065] 1) IDF(email) = log +1≈1.6931;

[0066] 2) IDF (archive) = log +1≈1.2877;

[0067] 3) IDF(safety) = log +1=1;

[0068] 4) IDF (electronic document) = log +1≈1.6931;

[0069] 5) IDF(audit)=log +1≈1.2877;

[0070] 6) IDF(finance) = log +1≈1.6931.

[0071] Furthermore, the TF-IDF vector of each document is calculated. Taking document 1 as an example, it can be expressed as: TF(email, document 1) = 1 / 4; TF(archive, document 1) = 2 / 4 = 1 / 2; TF(security, document 1) = 1 / 4. TF-IDF(email, document 1) = (1 / 4) * 1.6931 ≈ 0.4233; TF-IDF(archive, document 1) = (1 / 2) * 1.2877 ≈ 0.6439; TF-IDF(security, document 1) = (1 / 4) * 1 ≈ 0.25. Document 2 is calculated similarly to document 3.

[0072] Finally, we can get the TF-IDF vector of each document, that is,

[0073] 1) Document 1 vector: [0.4233, 0.6439, 0.25, 0, 0, 0];

[0074] 2) Document 2 vector: [0, 0.3219, 0.25, 0.4233, 0.3219, 0];

[0075] 3) Document 3’s vector: [0, 0, 0.25, 0, 0.6439, 0.4233].

[0076] Step S212, input the vectorized representation into a preset feature extraction model, and output the key features corresponding to the vectorized representation.

[0077] The embodiment of the present invention extracts features from the vectorized representation through a feature extraction model to capture effective features in the data, wherein the traditional neural network may only focus on local features and cannot effectively capture the multi-granularity and multi-dimensional features of the data. The embodiment of the present invention uses a structure based on a multi-granularity whale optimized neural network to extract data features, and adopts a multi-granularity strategy in the traditional whale optimized neural network, that is, observes and processes data through different resolutions, extracts features at different levels, and helps capture richer data features.

[0078] In the specific implementation, the feature extraction model is constructed as follows:

[0079] 1) Input the preset training sample set into the initial neural network, perform multi-granularity processing on the training sample set, and generate a data set corresponding to each granularity.

[0080] 2) Input the data sets of each granularity into the corresponding neural network modules of the initial neural network, output the extracted features, and use the whale optimization algorithm to search for the feature weights corresponding to each granularity.

[0081] First, randomly initialize the weights and biases of the neural network, which can be expressed as:

[0082]

[0083]

[0084] In the formula, is the initial weight matrix of the c-th granularity neural network, rand() is a random function, d in is the input dimension, d out For the output dimension, the random normal distribution is initialized; is the initial bias of the c-th granularity neural network, initialized with random uniform distribution.

[0085] Furthermore, the input data is processed according to the preset multi-granularity to generate data sets of different granularities. Among them, the multi-granularity divides the characteristics of the data by different granularity levels. For example, when the granularity is 3 levels, the feature vector with 3 eigenvalues ​​is selected to represent the original feature vector. The data of each granularity is independently input into the corresponding neural network module, which can be expressed as:

[0086]

[0087] In the formula, is the data after processing at the cth granularity; D raw is the original input data; For the Granular data processing functions; For processing parameters.

[0088] In one embodiment, the processing parameters It can be expressed as:

[0089]

[0090] In the formula, sc represents the ratio of scaling the data at the cth granularity; fs includes various filters applied to the data, and preferably, the filters are implemented in the form of convolution kernels.

[0091] Furthermore, the whale optimization algorithm is used to optimize the feature weights of each granularity feature, optimize the network weights and bias, which can be expressed as:

[0092]

[0093] In the formula, For the The particle size is The optimized parameters of the iteration; For the The particle size is The parameters of the iterations; is the learning rate; is the loss function about The gradient; is the cross entropy loss function; To explore the factor, control the search range in the whale algorithm; is the current optimal solution; Generate a random number between 0 and 1.

[0094] 3) Based on the feature weights, the extracted features of each granularity are fused and the loss function of the initial neural network is calculated.

[0095] 4) Based on the loss function, optimize the parameters of the initial neural network.

[0096] 5) Until the initial neural network reaches the preset training conditions, a feature extraction model is constructed based on the initial neural network.

[0097] The features extracted at different granularities are fused and the weight of the final feature is determined by weighted average, which can be expressed as:

[0098]

[0099] In the formula, F is the final feature after fusion; For the Granular feature weights; is the feature extraction function of the c-th granularity; is the optimized parameter of the cth particle size in the last iteration; C is the total number of particles. Preferably, C is set to 5.

[0100] In one embodiment, the feature weights The calculation in the fusion process is implemented through the Softmax function to ensure that the sum of the weights of each granular feature is 1. The calculation method is:

[0101]

[0102] In the formula, represents the exponential weight of the c-th granularity; represents the exponential weight of the j-th granularity; is the importance parameter of the c-th granularity feature, which is a trainable parameter; is the importance parameter of the j-th granularity feature, which is a trainable parameter; C is the total number of granularities.

[0103] Furthermore, based on the final feature weights, the loss function of the initial neural network can be calculated, and based on the loss function, the parameters of the neural network can be optimized. In this embodiment of the present invention, the parameters are adjusted according to the feedback of the loss function, and the parameters of all layers are optimized using the gradient descent method. The calculation method of the gradient can be expressed as:

[0104]

[0105] In the formula, is the parameter adjustment amount; is the learning rate; The loss function parameter The partial derivative of is the parameter of the c-th granularity; is the momentum factor; is the last parameter adjustment amount of the c-th granularity. Preferably, Set to 0.01, Set to 0.5.

[0106] Furthermore, the momentum term The calculation method can be expressed as:

[0107]

[0108] In the formula, is the last parameter adjustment amount; is the attenuation factor, which is used to control the impact of the previous adjustment on the current adjustment; is the learning rate; is the partial derivative of the loss function of the last iteration with respect to the parameter at the c-th granularity. Preferably, Set to 0.3, Set to 0.7.

[0109] Repeat the above steps until the preset stop iteration condition is met, which means that the model training is completed. In one embodiment, the preset stop iteration condition is reaching a preset maximum number of iterations. Preferably, the preset maximum number of iterations is set to 1000 times.

[0110] Furthermore, the embodiment of the present invention also inputs data into the feature dimensionality reduction model for feature dimensionality reduction. The traditional autoencoder only relies on local information for encoding and decoding. The traditional autoencoder technology may be too dependent on local information and cannot fully utilize the global information in the data, resulting in limited feature expression capabilities after dimensionality reduction. In this regard, the embodiment of the present invention adopts an autoencoder neural network based on non-locality, and enhances the feature capture capability of the model by utilizing non-local operations in the autoencoder. The embodiment of the present invention enhances feature expression by combining long-distance feature points, thereby improving the quality of dimensionality reduction and subsequent classification accuracy. In the specific implementation, refer to the following steps.

[0111] 1) Input the key features into the autoencoder neural network model, map the key features to the hidden feature space through the encoder of the autoencoder neural network model, and obtain the hidden layer activation features.

[0112] 2) The feature relationship corresponding to the hidden layer activation features is calculated through the non-local network module, and the target feature representation is generated based on the feature relationship.

[0113] 3) The target feature representation is decoded through the decoder of the autoencoder neural network model to generate reconstructed features corresponding to the key features.

[0114] In the specific implementation, the input feature vector first passes through the encoder part. The encoder uses a multi-layer neural network to map the input data to a hidden feature space, which can be expressed as:

[0115]

[0116]

[0117] In the formula, Ka is the index, The encoder The bias of the layer, The encoder The weight of the layer, is the output of the Ka-1th layer, is the output of the Ka-th layer, It is The weighted input of the layer, Sig() is the Sigmoid activation function.

[0118] Furthermore, the non-local network module operates on the hidden layer activation features and forms a feature representation with global information enhancement by calculating the relationship between each feature, which can be expressed as:

[0119]

[0120]

[0121] Where x i is the i-th input feature, x j is the jth input feature, f(x i ,x j ) is the calculation of x i and x j The relationship function between j ) is x j The function that transforms the features, Gy(x) is the normalization function.

[0122] In one embodiment, the relationship function f(x i ,x j ) can be calculated as:

[0123]

[0124] In the formula, It represents the square of the Euclidean distance between feature positions i and j, and Sig() is the Sigmoid activation function.

[0125] Further, The calculation method can be expressed as:

[0126]

[0127] In the formula, x ik and x jk are the values ​​of features i and j in the kth dimension.

[0128] Furthermore, after generating the encoded data, the decoder part attempts to reconstruct the data back to the high-dimensional form of the original data, and also relies on a multi-layer neural network and uses the parameters of the non-local network module to minimize the difference between input and output. Specifically, the propagation and weight update method of the decoder error can be expressed as:

[0129]

[0130]

[0131]

[0132] In the formula, Ka is the index, is the weight of the Ka+1th layer of the encoder, is the weight of the Ka-th layer of the encoder, is the bias of the encoder’s Ka-th layer, for The transpose of is the error of the Ka-th layer, is the error of the Ka+1th layer, represents element-wise product, is the output of the Ka-1th layer, yes The transpose of is the derivative of the Sigmoid activation function, is the symbol of partial derivative, and LCA is the loss function.

[0133] Further, The calculation method can be expressed as:

[0134]

[0135] Among them, in the embodiment of the present invention, during the training process of the autoencoder neural network model, the gradient descent method is used to optimize the parameters of the encoder, the parameters of the decoder, and the parameters of the non-local network module of the autoencoder neural network model.

[0136] Specifically, in combination with the above steps, the embodiment of the present invention initializes the weights and biases of the autoencoder neural network model based on non-locality during the training phase. In one embodiment, the weights and bias The initialization is generated by small random numbers and can be expressed as:

[0137]

[0138]

[0139] In the formula, and are the weights and biases of the encoder’s Ka-th layer, randn(d out ,d in ) generates a shape of d out ×d in The standard normal distribution matrix of in and dout are the dimensions of input and output respectively.

[0140] Furthermore, the data is encoded and decoded corresponding to the above steps. Furthermore, the gradient descent method is used to optimize all parameters of the autoencoder neural network model based on non-locality, including the update method of the weights and bias parameters of the encoder, non-local network module, and decoder, which can be expressed as:

[0141]

[0142]

[0143] In the formula, is the weight parameter before updating, is the bias parameter before updating, is the updated weight parameter, is the updated bias parameter, α ew is the learning rate. Preferably, α ew Set to 0.001.

[0144] Repeat the above steps until the preset stop iteration condition is met, which means that the model training is completed. In one embodiment, the preset stop iteration condition is reaching a preset maximum number of iterations. Preferably, the preset maximum number of iterations is set to 1000 times.

[0145] Step S214, input the key features into the pre-built classifier model, and output the classification results corresponding to the key features.

[0146] Existing classifiers may have the problem of gradient disappearance or explosion, which leads to instability in the learning process and difficulty in converging to the optimal solution. The present invention adopts an extreme learning machine classification algorithm based on quantum state evolution. Unlike the traditional extreme learning machine, the present invention adopts quantum state evolution theory to update the connection weights, which can significantly reduce the problem of learning stagnation caused by gradient disappearance or explosion. In specific implementation, the classifier model of the embodiment of the present invention is constructed by the following steps:

[0147] 1) Initialize the connection weights of the extreme learning machine.

[0148] 2) The connection weights of the extreme learning machine are quantum-evolved through quantum gate operations to update the connection weights.

[0149] In a specific implementation, all connection weights of the extreme learning machine are initialized. In one embodiment, all connection weights qW are initialized to be randomly distributed based on quantum states. Each weight corresponds to a quantum bit q, which can be expressed as:

[0150]

[0151] In the formula, qW represents the quantized weight matrix, represents the complex probability amplitude of the quantum state, represents the ground state of the i-th qubit, and Nv is the total number of quantum states.

[0152] The quantum state evolution is realized through quantum gate operation, the update direction and amplitude of the weight are determined, and the weight is updated. can be expressed as:

[0153]

[0154] In the formula, is the updated weight, Represents a quantum gate operation, which is parameterized by a rotation gate in quantum computing, preferably using Pauli-X, Pauli-Y, and Pauli-Z gates; is the first rotation angle; is the second rotation angle; is the third rotation angle; is the conjugate transpose of the quantum gate operation U().

[0155] Furthermore, quantum gates The way to achieve this through the revolving door in quantum computing can be expressed as:

[0156]

[0157] In the formula, is an imaginary unit, represents the qubit rotation parameters of the Pauli matrix in different directions, where is the first direction qubit rotation parameter, is the second direction qubit rotation parameter, The third-party quanta rotation parameter.

[0158] 3) Input the preset training sample set into the extreme learning machine for forward propagation, and adjust the quantum gate parameters of the quantum gate operation based on the output error corresponding to the forward propagation.

[0159] 4) Until the extreme learning machine meets the preset training conditions, a classifier model is built based on the extreme learning machine.

[0160] The input data is forward propagated through the initialized weight matrix to generate a preliminary output result. Forward propagation is performed through the quantized weight matrix to generate the output can be expressed as:

[0161]

[0162] In the formula, represents the quantized input data, Represents the output result calculated by quantizing the weights.

[0163] Compare the forward propagation result with the actual label and calculate the forward propagation result and the actual label Error , which can be expressed as:

[0164]

[0165] In the formula, Indicates the error, Represents the actual label data.

[0166] According to the output error, adjust the parameters of the quantum gate and optimize the evolution of the quantum state to reduce the prediction error of the next iteration. can be expressed as:

[0167]

[0168]

[0169]

[0170] In the formula, is the learning rate, is the partial derivative of the error with respect to the first rotation angle; is the partial derivative of the error with respect to the second rotation angle; is the partial derivative of the error with respect to the third rotation angle; is the updated first rotation angle; is the updated second rotation angle; is the updated third rotation angle. Preferably, Set to 0.01.

[0171] Furthermore, the calculation method of the partial derivatives of the three rotation angles can be expressed as:

[0172]

[0173]

[0174]

[0175] In the formula, Represents the trace of a matrix, which is used to extract the gradient in scalar form from the partial derivatives in matrix form. , , They are the quantum weight matrices The partial derivatives corresponding to the first rotation angle, the second rotation angle, and the third rotation angle are calculated using the chain rule.

[0176] Repeat the above steps to update the quantized weight matrix as follows:

[0177]

[0178] In the formula, the upper right subscript n represents the number of iterations, is the quantized weight of the n+1th iteration, is the quantization weight of the nth iteration.

[0179] Repeat the above steps until the preset stop iteration condition is met, which means that the model training is completed. In one embodiment, the preset stop iteration condition is reaching a preset maximum number of iterations. Preferably, the preset maximum number of iterations is set to 1000 times.

[0180] Step S216: classify the documents to be classified based on the classification result.

[0181] The data is classified by the above-mentioned classifier model, and the classification category is determined based on the classification result. Specifically, the document type indicated by the classification result can be obtained, and the document to be classified is classified based on the document type. In one embodiment, the document types indicated by the output classification result include "legal documents", "financial reports", "internal emails", "production archives", and "other archives", a total of 5 categories.

[0182] Another electronic archive intelligent classification method based on deep learning provided by an embodiment of the present invention uses a bag-of-words model and a TF-IDF method to vectorize documents, providing effective input features for subsequent machine learning models. In addition, by using a multi-granularity whale optimization neural network to process data at different resolutions and extract features at different levels, it helps to capture richer data features. Furthermore, a non-local autoencoder neural network is designed to enhance feature expression by combining long-distance feature points, thereby improving the quality of dimensionality reduction and subsequent classification accuracy. Furthermore, an extreme learning machine classification algorithm designed with quantum state evolution uses quantum state evolution theory to update connection weights, reducing the problem of learning stagnation caused by gradient disappearance or explosion.

[0183] Furthermore, based on the above embodiment, the embodiment of the present invention also provides another electronic archive intelligent classification method based on deep learning, which describes the method for constructing a training sample set. Figure 3 A flow chart of a method for constructing a training sample set provided by an embodiment of the present invention is shown. Figure 3As shown, the method comprises the following steps:

[0184] Step S10, obtaining archive samples from multiple electronic archive systems.

[0185] Step S11: label the archive samples and construct an initial sample set.

[0186] The data collection of the present invention comes from a variety of electronic archive systems, which may be official document management systems, enterprise archive storage systems, production process archive management systems, etc. The data storage format adopts JSON format. Furthermore, the data is annotated for model training, wherein the annotated label is used to indicate the archive category of the archive sample.

[0187] In one embodiment, data annotation is implemented by manual annotation, and the annotation categories include "legal documents", "financial reports", "internal emails", "production archives", and "other archives", a total of 5 categories. In this embodiment, it is assumed that a file data content is collected involving a company's internal financial audit report. The storage format of the file is JSON, and the specific content includes fields such as the document title, creation time, and text content. During the annotation process, the file is labeled as "financial report".

[0188] Step S12, using a pre-built generative adversarial network to generate quantum state expansion samples corresponding to the initial sample set through quantum logic gate operations.

[0189] It is understandable that in the task of the present invention, the collection, acquisition, labeling and preprocessing of training data are time-consuming and labor-intensive, and insufficient training samples can easily lead to poor generalization ability of the model, while affecting the accuracy of the model. The prior art may lack an effective data expansion method, resulting in insufficient training samples, affecting the generalization ability and classification accuracy of the model. The present invention uses a generative adversarial network based on quantum state information for data expansion. The generative adversarial network includes two main parts: a quantum state generator (G) and a quantum state discriminator (D). The present invention uses the concept of quantum computing to enhance the ability of the generative model, specifically by simulating the superposition and entanglement characteristics of quantum states to generate more diverse and high-quality data samples. In specific implementation, the embodiment of the present invention performs quantum logic gate operations based on the parameters of the generative adversarial network and input noise, and generates false data samples through the process of quantum state conversion. This method can improve the richness of generated data.

[0190] In the specific implementation, the generator of the generative adversarial network is first used to generate the initial augmented samples through quantum logic gate operations. Specifically, the generator receives random noise as input and generates fake data samples through the quantum computing process. The generation process can be expressed as:

[0191]

[0192] In the formula, The quantum state generated by the generator; represents quantum logic gate operations, which depend on the parameters and input noise , and the parameters Including generator parameters and discriminator parameters; is the control parameter of the quantum gate; is the quantum ground state.

[0193] In one embodiment, the computational method of quantum logic gate operation can be expressed as:

[0194]

[0195] In the formula, Represents the quantum Hamiltonian calculation function, which depends on the generator parameters and input noise ; Controlling the strength of quantum logic gates, is an imaginary unit. Preferably, Set to 2.

[0196] Furthermore, quantum state diffusion is performed on the initial expanded samples to generate quantum state diffusion samples. Specifically, by passing the generated data samples through the quantum state diffusion module and using a specific quantum algorithm to simulate the influence of environmental noise, the data samples are made more diverse and their robustness in practical applications is enhanced. The quantum state diffusion can be expressed as:

[0197]

[0198] In the formula, is the state after quantum state diffusion; represents the quantum state diffusion operation function, is the parameter that controls the diffusion intensity; The quantum state generated by the generator.

[0199] In one embodiment, the calculation method of the operation function of quantum state diffusion can be expressed as:

[0200]

[0201] In the formula, represents the sum of all possible quantum numbers; represents quantum number; It means left arrow; Indicates right arrow; Represents the right vector of the quantum state generated by the generator; represents the diffusion intensity for each quantum number state; is the quantum projection operator, which is used to transform the state Projection to A quantum state.

[0202] Furthermore, the quantum state overlap of the quantum state diffusion sample is calculated by the discriminator of the generative adversarial network, and the identification probability corresponding to the quantum state diffusion sample is determined based on the quantum state overlap. The quantum state discriminator evaluates the real data sample and the generated data sample after quantum state diffusion to determine their authenticity. Specifically, it is completed by calculating the quantum state overlap of the data sample in the form of quantum measurement, which can be expressed as:

[0203]

[0204]

[0205] In the formula, and are the identification probabilities of real and generated data, respectively; is the identification function, which depends on the discriminator parameters and input state; is the control parameter of the discriminator; is the real data quantum state, is the diffused pseudo data quantum state. Preferably, Set to 0.5.

[0206] Furthermore, when the identification probability meets a preset condition, the quantum state diffusion sample is used as a quantum state expansion sample corresponding to the initial sample set.

[0207] The expanded samples output by the embodiment of the present invention are obtained by performing data expansion on the initial sample set by a pre-trained generative adversarial network. During the training process of the generative adversarial network, the embodiment of the present invention initializes the parameters of the quantum state generator and the quantum state discriminator, including the initial state of the quantum bit, the type and parameters of the quantum gate, which can be expressed as:

[0208]

[0209]

[0210] In the formula, Indicates an update operation. are the initial parameters of the quantum state generator, initialized with random normal distribution, is the initialization standard deviation; is the initial parameter of the quantum state discriminator, initialized with random normal distribution, is the initialization standard deviation; is a random initialization function.

[0211] Furthermore, the quantum gradient descent method is used to optimize the parameters, and the superposition property of quantum states is used to quickly converge to the optimal solution. The parameters of the generator and the discriminator are adjusted according to the output of the discriminator, which can be expressed as:

[0212]

[0213] In the formula, and is the updated parameter; is the learning rate; is the loss function; and Denote the parameter gradients of the corresponding generator and discriminator respectively. Preferably, Set to 0.01.

[0214] In one embodiment, the loss function Ke() is defined as:

[0215]

[0216] In the formula, Represents the expectation for all real data; Indicates the symbol of expectation; Indicates compliance with a specific distribution; Express expectations for all generated data; is the quantum state discriminator for the real data The output probability of data represents the distribution of real data; p z represents the distribution of noise; is the output of the quantum state generator.

[0217] Furthermore, when updating parameters, the quantum gradient and The calculation method can be expressed as:

[0218]

[0219]

[0220] In the formula, and denote the partial derivatives with respect to the generator and discriminator parameters, respectively.

[0221] Repeat the above steps until the preset stop iteration condition is met, which means that the model training is completed. In one embodiment, the preset stop iteration condition is reaching a preset maximum number of iterations. Preferably, the preset maximum number of iterations is set to 1000 times.

[0222] Step S13, merging the quantum state expanded sample with the initial sample set to construct a training sample set.

[0223] In specific implementation, a feature extraction model, a feature dimensionality reduction model, and a classifier model can be constructed based on the training sample set. In one embodiment, the feature extraction model can be used to extract features from the training sample set, and then the feature dimensionality reduction model can be trained. Furthermore, the classifier model can be trained using the training sample set after feature dimensionality reduction.

[0224] Another method for intelligent classification of electronic archives based on deep learning provided by an embodiment of the present invention performs sample expansion through a generative adversarial network based on quantum state information. This method enhances the ability of the generative model by simulating the superposition and entanglement characteristics of quantum states, thereby generating more diverse and high-quality data samples.

[0225] Furthermore, based on the above embodiments, the present invention also provides an electronic archive intelligent classification device based on deep learning. Figure 4 A schematic diagram of the structure of an electronic archive intelligent classification device based on deep learning provided by an embodiment of the present invention is shown. Figure 4 As shown, the device includes: a data acquisition module 100, used to acquire documents to be classified; a data processing module 200, used to convert the documents to be classified into a vocabulary, and based on the vocabulary, construct a vectorized representation of the documents to be classified; a feature extraction module 300, used to input the vectorized representation into a preset feature extraction model, and output key features corresponding to the vectorized representation; wherein, the training sample set for training the feature extraction model is constructed by using a generative adversarial network through quantum logic gate operations; and, the feature extraction model optimizes the feature weights corresponding to the training sample set based on the whale optimization algorithm, and, based on the optimized feature weights, updates the model parameters of the feature extraction model; an execution module 400, used to input the key features into a pre-constructed classifier model, and output the classification results corresponding to the key features; wherein, the classifier model is based on the extreme learning machine classification algorithm as the classifier algorithm, and the extreme learning machine adopts the quantum state evolution theory to update the connection weights; an output module 500, used to classify the documents to be classified based on the classification results.

[0226] An electronic archive intelligent classification device based on deep learning provided in an embodiment of the present invention has the same technical features as the above-mentioned method embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0227] Furthermore, based on the above embodiment, the embodiment of the present invention also provides another electronic archive intelligent classification device based on deep learning. Figure 5 A schematic diagram of the structure of another electronic archive intelligent classification device based on deep learning provided by an embodiment of the present invention is shown. Figure 5The output module 500 is also used to obtain the document type indicated by the classification result; and classify the document to be classified based on the document type.

[0228] Among them, the documents to be classified include multiple documents; the above-mentioned data processing module 200 is also used to use the bag-of-words model to construct a vocabulary corresponding to the documents to be classified; calculate the inverse document frequency of each word in the vocabulary in the documents to be classified, and the term frequency of each word in the corresponding document; based on the inverse document frequency and the term frequency, calculate the TF-IDF value corresponding to each word in each document; based on the TF-IDF value, construct a vectorized representation of the documents to be classified.

[0229] The execution module 400 is also used to initialize the connection weights of the extreme learning machine; wherein the connection weights correspond to quantum bits; the connection weights of the extreme learning machine are quantum-state evolved through quantum gate operations to update the connection weights; a preset training sample set is input into the extreme learning machine for forward propagation, and based on the output error corresponding to the forward propagation, the quantum gate parameters of the quantum gate operation are adjusted; until the extreme learning machine meets the preset training conditions, a classifier model is constructed based on the extreme learning machine.

[0230] The feature extraction module 300 is also used to input a preset training sample set into the initial neural network, perform multi-granularity processing on the training sample set, and generate a data set corresponding to each granularity; input the data set of each granularity into the corresponding neural network module of the initial neural network, output the extracted features, and use the whale optimization algorithm to search for the feature weights corresponding to each granularity; based on the feature weights, fuse the extracted features of each granularity, and calculate the loss function of the initial neural network; based on the loss function, optimize the parameters of the initial neural network; until the initial neural network reaches the preset training conditions, a feature extraction model is constructed based on the initial neural network.

[0231] Furthermore, the device also includes a feature dimensionality reduction module 600, which is used to input the key features into the autoencoder neural network model, map the key features to the hidden feature space through the encoder of the autoencoder neural network model, and obtain the hidden layer activation features; calculate the feature relationship corresponding to the hidden layer activation features through the non-local network module, and generate the target feature representation based on the feature relationship; decode the target feature representation through the decoder of the autoencoder neural network model to generate the reconstruction features corresponding to the key features.

[0232] The feature dimension reduction module 600 is also used to optimize the parameters of the encoder, the parameters of the decoder, and the parameters of the non-local network module of the autoencoder neural network model using the gradient descent method during the training process of the autoencoder neural network model.

[0233] The feature extraction module 300 is also used to obtain archive samples from multiple electronic archive systems; label the archive samples to construct an initial sample set; wherein the labeled labels are used to indicate the archive category of the archive samples; use a pre-constructed generative adversarial network to generate quantum state expansion samples corresponding to the initial sample set through quantum logic gate operations; merge the quantum state expansion samples with the initial sample set to construct a training sample set.

[0234] The feature extraction module 300 is also used to generate an initial expansion sample through quantum logic gate operation using a generator of a generative adversarial network; perform quantum state diffusion on the initial expansion sample to generate a quantum state diffusion sample; calculate the quantum state overlap of the quantum state diffusion sample through a discriminator of the generative adversarial network, and determine the identification probability corresponding to the quantum state diffusion sample based on the quantum state overlap; when the identification probability meets the preset conditions, use the quantum state diffusion sample as the quantum state expansion sample corresponding to the initial sample set.

[0235] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above Figures 1 to 3 The embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon, and the computer program is executed by a processor to perform the above Figures 1 to 3 Any of the steps of the method shown.

[0236] The embodiment of the present invention also provides a schematic diagram of the structure of an electronic device, such as Figure 6 FIG. 1 is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 61 and a memory 60, the memory 60 stores computer executable instructions that can be executed by the processor 61, and the processor 61 executes the computer executable instructions to implement the above Figures 1 to 3 Any of the methods shown.

[0237] exist Figure 6In the illustrated embodiment, the electronic device further includes a bus 62 and a communication interface 63, wherein the processor 61, the communication interface 63 and the memory 60 are connected via the bus 62. The memory 60 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 63 (which may be wired or wireless), and the Internet, a wide area network, a local area network, a metropolitan area network, etc. may be used. The bus 62 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. It may also be an AMBA (Advanced Microcontroller Bus Architecture) bus, where AMBA defines three types of buses, including an APB (Advanced Peripheral Bus) bus, an AHB (Advanced High-performance Bus) bus, and an AXI (Advanced Xtensible Interface) bus. The bus 62 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0238] The processor 61 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 61. The above processor 61 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed. 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 61 reads the information in the memory and combines its hardware to complete the above Figures 1 to 3 Any of the methods shown.

[0239] A computer program product of a method and device for intelligent classification of electronic archives based on deep learning provided by an embodiment of the present invention includes a computer-readable storage medium storing a program code, and the instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can refer to the method embodiment, which will not be repeated here. A person skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here. In addition, in the description of the embodiment of the present invention, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0240] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0241] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for intelligent classification of electronic archives based on deep learning, characterized in that: The method comprises: Get the documents to be classified; Converting the document to be classified into a vocabulary, and constructing a vectorized representation of the document to be classified based on the vocabulary; The vectorized representation is input into a preset feature extraction model, and the key features corresponding to the vectorized representation are output; wherein the training sample set for training the feature extraction model is constructed by quantum logic gate operation using a generative adversarial network; and the feature extraction model optimizes the feature weights corresponding to the training sample set based on a whale optimization algorithm, and updates the model parameters of the feature extraction model based on the optimized feature weights; Input the key features into a pre-built classifier model, and output the classification results corresponding to the key features; wherein the classifier model is based on an extreme learning machine classification algorithm as a classifier algorithm, and the extreme learning machine uses quantum state evolution theory to update connection weights; Based on the classification result, classify the document to be classified; The method for constructing the classifier model comprises: Initializing the connection weights of the extreme learning machine; wherein the connection weights correspond to qubits; Performing quantum state evolution on the connection weights of the extreme learning machine through quantum gate operations to update the connection weights; Inputting a preset training sample set into the extreme learning machine for forward propagation, and adjusting the quantum gate parameters of the quantum gate operation based on an output error corresponding to the forward propagation; Until the extreme learning machine meets the preset training conditions, a classifier model is constructed based on the extreme learning machine; The method for constructing the training sample set includes: Obtain archive samples from multiple electronic archive systems; Labeling the archive samples to construct an initial sample set; wherein the labeled labels are used to indicate the archive categories of the archive samples; Using a pre-built generative adversarial network to generate quantum state expansion samples corresponding to the initial sample set through quantum logic gate operations; Merging the quantum state expanded sample with the initial sample set to construct a training sample set; The step of using a pre-built generative adversarial network to generate quantum state expansion samples corresponding to the initial sample set through quantum logic gate operations includes: Use the generator of the generative adversarial network to generate initial augmented samples through quantum logic gate operations; Performing quantum state diffusion on the initial expanded sample to generate a quantum state diffusion sample; Calculating the quantum state overlap of the quantum state diffusion sample by a discriminator of a generative adversarial network, and determining the identification probability corresponding to the quantum state diffusion sample based on the quantum state overlap; When the identification probability meets a preset condition, the quantum state diffusion sample is used as a quantum state expansion sample corresponding to the initial sample set.

2. The method according to claim 1, characterized in that: Based on the classification result, the step of classifying the documents to be classified includes: Obtaining the document type indicated by the classification result; The document to be classified is classified based on the document type.

3. The method according to claim 1, characterized in that The documents to be classified include a plurality of documents; the steps of converting the documents to be classified into a vocabulary, and constructing a vectorized representation of the documents to be classified based on the vocabulary include: Using a bag-of-words model to construct a vocabulary corresponding to the document to be classified; Calculate the inverse document frequency of each word in the vocabulary in the document to be classified, and the term frequency of each word in the corresponding document; Calculate the TF-IDF value corresponding to each word in each document based on the inverse document frequency and the term frequency; Based on the TF-IDF value, a vectorized representation of the document to be classified is constructed.

4. The method according to claim 1, characterized in that The method for constructing the feature extraction model comprises: Inputting a preset training sample set into the initial neural network, performing multi-granularity processing on the training sample set, and generating a data set corresponding to each granularity; Input the data set of each granularity into the corresponding neural network module of the initial neural network, output the extracted features, and use the whale optimization algorithm to search for the feature weights corresponding to each granularity; Based on the feature weights, the extracted features of each granularity are fused, and a loss function of the initial neural network is calculated; Based on the loss function, optimizing the parameters of the initial neural network; Until the initial neural network reaches a preset training condition, a feature extraction model is constructed based on the initial neural network.

5. The method according to claim 1, characterized in that The method further comprises: Inputting the key features into an autoencoder neural network model, mapping the key features to a hidden feature space through an encoder of the autoencoder neural network model, and obtaining hidden layer activation features; Calculating the feature relationship corresponding to the hidden layer activation feature through the non-local network module, and generating a target feature representation based on the feature relationship; The target feature representation is decoded by the decoder of the autoencoder neural network model to generate a reconstructed feature corresponding to the key feature.

6. The method according to claim 5, characterized in that The method further comprises: During the training process of the autoencoding neural network model, the parameters of the encoder, the parameters of the decoder, and the parameters of the non-local network module of the autoencoding neural network model are optimized using the gradient descent method.

7. An electronic archive intelligent classification device based on deep learning, characterized in that: The device comprises: A data acquisition module, used to acquire documents to be classified; A data processing module, used for converting the document to be classified into a vocabulary, and constructing a vectorized representation of the document to be classified based on the vocabulary; A feature extraction module, used to input the vectorized representation into a preset feature extraction model, and output key features corresponding to the vectorized representation; wherein the training sample set for training the feature extraction model is constructed by using a generative adversarial network through quantum logic gate operations; and the feature extraction model optimizes the feature weights corresponding to the training sample set based on a whale optimization algorithm, and updates the model parameters of the feature extraction model based on the optimized feature weights; An execution module, used to input the key features into a pre-built classifier model and output a classification result corresponding to the key features; wherein the classifier model is based on an extreme learning machine classification algorithm as a classifier algorithm, and the extreme learning machine uses quantum state evolution theory to update connection weights; An output module, used for classifying the documents to be classified based on the classification result; The execution module is further used to initialize the connection weights of the extreme learning machine; wherein the connection weights correspond to quantum bits; the connection weights of the extreme learning machine are quantum-state evolved through quantum gate operations to update the connection weights; a preset training sample set is input into the extreme learning machine for forward propagation, and based on the output error corresponding to the forward propagation, the quantum gate parameters of the quantum gate operation are adjusted; until the extreme learning machine meets the preset training conditions, a classifier model is constructed based on the extreme learning machine; The feature extraction module is further used to obtain archive samples from multiple electronic archive systems; annotate the archive samples to construct an initial sample set; wherein the annotated labels are used to indicate the archive category of the archive samples; use a pre-constructed generative adversarial network to generate quantum state expansion samples corresponding to the initial sample set through quantum logic gate operations; merge the quantum state expansion samples with the initial sample set to construct a training sample set; The feature extraction module is also used to use the generator of the generative adversarial network to generate an initial expansion sample through quantum logic gate operation; perform quantum state diffusion on the initial expansion sample to generate a quantum state diffusion sample; calculate the quantum state overlap of the quantum state diffusion sample through the discriminator of the generative adversarial network, and determine the identification probability corresponding to the quantum state diffusion sample based on the quantum state overlap; when the identification probability meets the preset condition, use the quantum state diffusion sample as the quantum state expansion sample corresponding to the initial sample set.

Citation Information

Patent Citations

  • Chinese text categorization method based on multi-hidden-layer extreme learning machine

    CN107451278A

  • Equipment fault diagnosis method based on incremental learning and model construction method

    CN117407797A

  • Archive knowledge extraction method and device based on structure priori knowledge

    CN118170836A

  • Decision-making method for unmanned aerial vehicle control system based on edge calculation

    CN118394112A

  • Quantum-based extreme learning machine

    EP4336415A1