Data classification method and device based on AD-LSTM and medium

By introducing improved gate structure and activation functions into the LSTM model and combining syntax structure information, the problem that traditional LSTM is difficult to use grammatical structure for accurate semantic analysis is solved, and the accuracy of text data classification is improved.

CN119830085APending Publication Date: 2025-04-15CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311321591.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-12
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

Traditional LSTM algorithms are difficult to utilize text syntax structure information when performing semantic analysis, which makes it difficult to accurately classify when sufficient context information is lacking.

Method used

A data classification method based on the AD-LSTM of the improved long and short-term memory recursive neural network is proposed. By introducing an improved forget gate and an improved input gate in the AD-LSTM classification model, the preset activation function is used to realize memory updates at different frequencies, and combined with syntax structure information.

Benefits of technology

It improves the accuracy of low-context text data classification and can more effectively utilize syntax structure information for semantic analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119830085A_ABST
    Figure CN119830085A_ABST
Patent Text Reader

Abstract

The invention provides an AD-LSTM-based data classification method and device and a readable storage medium, and the method specifically comprises the steps: obtaining to-be-classified data, and extracting a sentence vector; inputting the sentence vectors into an AD-LSTM classification model to obtain confidence coefficients corresponding to a plurality of preset categories; determining the maximum confidence coefficient as a target confidence coefficient, and determining the maximum confidence coefficient as a target category of the to-be-classified data; wherein the structure in the AD-LSTM classification model comprises an improved forgetting gate and an improved input gate which are realized based on a preset activation function. An improved gate structure is added on the basis of an existing LSTM gate structure, a context understanding mechanism of a traditional LSTM is considered, a grammar structure mechanism provided by the invention is combined, and an AD-LSTM classification model can update the level to which the input token belongs at different frequencies, so that the accuracy of low-context text data classification is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data classification method, device and readable storage medium based on AD-LSTM. Background Art

[0002] LSTM (Long short term memory) is a special RNN (Recurrent Neural Network) that can learn long-term dependencies. LSTM algorithms are often used for data classification tasks in the field of NLP (Natural Language Processing). The advantage of LSTM algorithms is that they can capture the contextual information of texts while reducing the gradient vanishing and gradient exploding problems in model training.

[0003] Although the traditional LSTM algorithm takes into account the contextual information of the text, it does not take into account the grammatical information of the text language, and the grammatical structure information of the text is of great significance to the semantics. For example, "Nanjing Yangtze River Bridge" can be understood as "Nanjing City" + "Yangtze River Bridge", or "Nanjing Mayor" + "River Bridge". Therefore, if there is not enough contextual information, the traditional LSTM algorithm is difficult to perform accurate semantic analysis. Summary of the invention

[0004] The technical problem to be solved by the present application is to provide a data classification method, device and readable storage medium based on AD-LSTM to solve the problems existing in the prior art in view of the above-mentioned deficiencies in the prior art.

[0005] In a first aspect, the present application provides a data classification method based on AD-LSTM, the method comprising:

[0006] Obtaining data to be classified, and extracting sentence vectors corresponding to the data to be classified;

[0007] Inputting the sentence vector into the trained improved long short-term memory recursive neural network AD-LSTM classification model to obtain confidences corresponding to multiple preset categories respectively;

[0008] Determine the confidence level with the largest median confidence level as the target confidence level, and determine the preset category corresponding to the target confidence level as the target category of the data to be classified;

[0009] Among them, the structure in the AD-LSTM classification model includes a forget gate, an improved forget gate, an input gate, an improved input gate and a memory unit, and the improved forget gate and the improved input gate are implemented based on a preset activation function.

[0010] In some embodiments, the preset activation function is:

[0011]

[0012] Among them, x i represents the input of the AD-LSTM classification model at time i, τ represents the dimension coefficient, c is a constant, d represents the word segmentation in the sentence vector, and j represents the ordinal number of the word segmentation.

[0013] In some embodiments, the calculation formula of the improved forget gate is:

[0014] f ad =MonoSoftmax(W fad ·[h t-1 ,X t ])

[0015] Among them, f ad Represents the output data of the improved forget gate, W fad represents the learning parameters, X t represents the input of the AD-LSTM classification model at time t, h t-1 Represents the output of the previous node.

[0016] In some embodiments, the output of the improved forget gate is monotonically increasing in the interval [0, 1].

[0017] In some embodiments, the calculation formula of the improved input gate is:

[0018] i ad =1-MonoSoftmax(W iad ·[h t-1 ,X t ])

[0019] Among them, i ad Represents the output data of the improved input gate, W iad represents the learning parameters, X t represents the input of the AD-LSTM classification model at time t, h t-1 Represents the output of the previous node.

[0020] In some embodiments, the output of the improved input gate is monotonically decreasing in the interval [0, 1].

[0021] In some embodiments, the calculation formula of the memory unit is:

[0022]

[0023] Among them, C trepresents the output data of the memory unit at time t, C t-1 represents the output data of the memory unit at time t, represents the memory data obtained based on the input at time t, f t Represents the output data of the forget gate, f ad Represents the output data of the improved forget gate, i t Represents the output data of the input gate, i ad Represents the output data of the improved input gate.

[0024] In a second aspect, the present application provides a data classification device based on AD-LSTM, the device comprising:

[0025] A data acquisition module, which is configured to acquire data to be classified and extract sentence vectors corresponding to the data to be classified;

[0026] A data processing module, which is configured to input the sentence vector into a trained improved long short-term memory recursive neural network AD-LSTM classification model to obtain confidences corresponding to a plurality of preset categories;

[0027] a category determination module, configured to determine the confidence level with the largest median confidence level as a target confidence level, and to determine the preset category corresponding to the target confidence level as a target category of the data to be classified;

[0028] Among them, the structure in the AD-LSTM classification model includes a forget gate, an improved forget gate, an input gate, an improved input gate and a memory unit, and the improved forget gate and the improved input gate are implemented based on a preset activation function.

[0029] In a third aspect, the present application provides an AD-LSTM-based data classification device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the AD-LSTM-based data classification method described in the first aspect above.

[0030] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the AD-LSTM-based data classification method described in the first aspect is implemented.

[0031] The data classification method, device and readable storage medium based on AD-LSTM provided by the present application are specifically, to obtain the data to be classified, and extract the sentence vector corresponding to the data to be classified; the sentence vector is input into the trained improved long short-term memory recursive neural network AD-LSTM classification model to obtain the confidence corresponding to multiple preset categories; the confidence with the largest median value of the confidence is determined as the target confidence, and the preset category corresponding to the target confidence is determined as the target category of the data to be classified; wherein, the structure in the AD-LSTM classification model includes a forget gate, an improved forget gate, an input gate, an improved input gate and a memory unit, and the improved forget gate and the improved input gate are implemented based on a preset activation function. The present application adds an improved gate structure on the basis of the existing LSTM gate structure, which not only takes into account the context understanding mechanism of the traditional LSTM, but also combines the "grammatical structure" mechanism proposed in the present application. The AD-LSTM classification model will update the level of the input token at different frequencies to improve the accuracy of low-context text data classification. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0033] Figure 1 This is a schematic diagram of the structure of the traditional LSTM model;

[0034] Figure 2 A schematic diagram of an AD-LSTM classification model provided in an embodiment of the present application;

[0035] Figure 3 A schematic diagram of a data classification method based on AD-LSTM provided in an embodiment of the present application;

[0036] Figure 4 A schematic diagram of a data classification device based on AD-LSTM provided in an embodiment of the present application;

[0037] Figure 5 Another schematic diagram of the AD-LSTM-based data classification device provided in an embodiment of the present application.

[0038] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0039] In order to enable those skilled in the art to better understand the technical solution of the present application, the implementation mode of the present application will be further described in detail below with reference to the accompanying drawings.

[0040] It should be understood that the specific embodiments and drawings described herein are only used to explain the present application, rather than to limit the present application.

[0041] It can be understood that, in the absence of conflict, the various embodiments in the present application and the various features in the embodiments can be combined with each other.

[0042] It can be understood that, for the convenience of description, the drawings of the present application only show the parts related to the present application, while the parts unrelated to the present application are not shown in the drawings.

[0043] It can be understood that each unit and module involved in the embodiments of the present application may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.

[0044] It can be understood that the terms "first", "second", etc. in the embodiments of the present application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0045] It is understandable that, in the absence of conflict, the functions and steps marked in the flowcharts and block diagrams of the present application may occur in an order different from that marked in the drawings.

[0046] It is understood that the flowcharts and block diagrams of the present application illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present application. Among them, each box in the flowchart or block diagram may represent a unit, module, program segment, code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or by a combination of hardware and computer instructions.

[0047] It can be understood that the units and modules involved in the embodiments of the present application can be implemented by software or hardware, for example, the units and modules can be located in a processor.

[0048] First, the network model involved in this application is explained:

[0049] Figure 1 This is a schematic diagram of the structure of the traditional LSTM model, such as Figure 1 As shown, the traditional LSTM model includes the following gating units:

[0050] 1. Input Gate (indicated by it in the figure): The input gate controls the degree to which the new input data updates the cell state. By using the Sigmoid activation function, the input data is combined with the previous memory to generate a weight vector between 0 and 1, which is used to determine how the new input data is combined with the memory.

[0051] 2. Forget Gate (represented by ft in the figure): The forget gate controls which information in the cell state needs to be forgotten. By using the Sigmoid activation function, the previous memory is combined with the current input data to generate a weight vector between 0 and 1, which is used to decide which memories need to be retained and which need to be forgotten.

[0052] 3. Output Gate (indicated by ot in the figure): The output gate controls the output of the cell state. By using the Sigmoid activation function, combined with the current input data and cell state, a weight vector between 0 and 1 is generated to determine which parts of the output cell state need to be passed to the next layer or used as the output of the model.

[0053] 4. Memory cell (Cell State, represented by Ct in the figure): The memory cell is the core component of the LSTM model, which is used to store and transmit information. The memory cell is composed of the input gate, forget gate and cell state operations, and can retain and update information in long-term dependencies.

[0054] The above-mentioned gating units determine the information flow and memory update mode in the LSTM model by adjusting the weight vector. Through these gating units, the LSTM model can effectively handle the long-term dependencies and gradient vanishing problems in sequence data, thereby achieving better performance in tasks such as data classification and language modeling.

[0055] In the traditional LSTM model, the calculation formula of each gate control unit is:

[0056] f t =σ(W f ·[h t-1 ,X t ]) (1)

[0057] i t =σ(W i ·[h t-1 ,X t ]) (2)

[0058] o t =σ(W o ·[h t-1 ,X t ]) (3)

[0059]

[0060]

[0061] h t =o t ×tanhC t (6)

[0062] According to the above calculation formula, three gate vectors (Formula 1, 2, 3) control the overall memory unit C t Information (Formula 5), is the new memory obtained according to the current input (Formula 4), C t-1 is a historical memory. In formula 5, through f t Forget some historical memory C t-1 and through i t Add some new memory Get the current "memory" information C t , and finally through o t Output h t (Formula 6).

[0063] In the LSTM model, a basic unit or element in a text sequence is called a "token". In natural language processing (NLP) tasks, text can be segmented into different tokens, such as words, characters, or subwords. When processing text data, the text is segmented according to certain rules, and each segmented unit is a token. In this way, the text data can be converted into a form that can be understood and processed by the machine, and then tasks such as text classification, sentiment analysis, and machine translation can be performed. In the LSTM model, a "token" represents a basic unit in a text sequence, which can be a word, character, or subword, etc., and is used to represent and process text data.

[0064] In the LSTM model, tokens are usually used as part of the input sequence, and each token is processed by the LSTM unit to capture the contextual information in the sequence. The representation of each token (such as a word embedding vector) is used as the input of the LSTM model, processed according to the contextual information, and the corresponding result is output.

[0065] Taking English sentences as an example, a sentence can be segmented into multiple words, each word is a token. For example, the sentence "I love natural language processing" can be segmented into the following sequence of tokens: ["I", "love", "natural", "language", "processing"].

[0066] Taking Chinese sentences as an example, a sentence can be segmented into multiple words, and each word can be segmented into multiple characters. For example, the sentence "Nanjing Yangtze River Bridge" can be segmented into "Nanjing City" + "Yangtze River Bridge", or "Nanjing Mayor" + "River Bridge".

[0067] From human grammar, it can be clearly analyzed that the highest level "sentences" should have more information in grammatical semantics, and their span should be larger, so their "memory" should retain more. Similarly, the lowest level single "word" has a narrow span of information, so its "memory" should be updated faster.

[0068] The memory unit of the traditional LSTM updates each token at the same frequency, that is, f t and i t It is of the same frequency and has no monotonicity, and cannot reflect the hierarchy of the "grammatical structure". This means that if there is not enough contextual information, the traditional LSTM algorithm is difficult to perform accurate semantic analysis.

[0069] In view of the technical problems existing in traditional solutions, "memory" means more f t Monotonic functions should be added in layers. Faster "memory" updates mean i t Monotonic functions should be added according to the hierarchy. Based on this, the present application proposes an improved long short-term memory recursive neural network AD-LSTM classification model and a data classification method based on AD-LSTM. In the present application, the AD-LSTM classification model will update the hierarchy of the input token at different frequencies to improve the accuracy of low-context text data classification.

[0070] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0071] The present application provides a data classification method based on AD-LSTM. The working process of the method can be implemented by electronic devices, such as computers, handheld smart terminals, etc. For the convenience of explanation, the method execution subject is described as a computer in each embodiment of the present application.

[0072] Figure 2 A schematic diagram of the AD-LSTM classification model provided in the embodiment of the present application, Figure 3 A schematic diagram of a data classification method based on AD-LSTM provided in an embodiment of the present application, such as Figure 2 as well as Figure 3 As shown, the present application provides a data classification method based on AD-LSTM, the method comprising:

[0073] S1. Obtain data to be classified, and extract sentence vectors corresponding to the data to be classified;

[0074] The data to be classified may be enterprise data assets, or other data that needs to be classified, which is not specifically limited here.

[0075] In addition, the sentence vector corresponding to the data to be classified can be extracted by the trained field feature extractor.

[0076] S2. Input the sentence vector into the trained improved long short-term memory recursive neural network AD-LSTM classification model to obtain the confidence corresponding to multiple preset categories;

[0077] Among them, the structure in the AD-LSTM classification model includes a forget gate, an improved forget gate, an input gate, an improved input gate and a memory unit, and the improved forget gate and the improved input gate are implemented based on a preset activation function.

[0078] Among them, the preset category can be a level category, or other classification categories, which are not specifically limited here.

[0079] Optionally, the preset activation function is:

[0080]

[0081] Among them, x i represents the input of the AD-LSTM classification model at time i, τ represents the dimension coefficient, c is a constant, d represents the word segmentation in the sentence vector, and j represents the ordinal number of the word segmentation.

[0082] In this step, compared with the traditional softmax function, the dimension coefficient τ can play the role of "smoothing" the function, making the effect of grammatical stratification more realistic.

[0083] In addition, the constant c can make the function more stable and prevent overflow.

[0084] After using the above-mentioned activation function proposed in this application, a set of functions with probability distribution properties and monotonically increasing can be obtained, which not only meets the requirements of hierarchical updating in the "grammatical structure", but also has good interpretability and can be back-propagated in deep learning training.

[0085] In some embodiments, the calculation formula of the improved forget gate is:

[0086] f ad =MonoSoftmax(Wfad ·[h t-1 ,X t ]) (8)

[0087] Among them, f ad Represents the output data of the improved forget gate, W fad represents the learning parameters, X t represents the input of the AD-LSTM classification model at time t, h t-1 Represents the output of the previous node.

[0088] Optionally, the output of the improved forget gate is monotonically increasing in the interval [0, 1].

[0089] In some embodiments, the calculation formula of the improved input gate is:

[0090] i ad =1-MonoSoftmax(W iad ·[h t-1 ,X t ]) (9)

[0091] Among them, i ad Represents the output data of the improved input gate, W iad represents the learning parameters, X t represents the input of the AD-LSTM classification model at time t, h t-1 Represents the output of the previous node.

[0092] Optionally, the output of the improved input gate is monotonically decreasing in the interval [0, 1].

[0093] In some embodiments, the calculation formula of the memory unit is:

[0094]

[0095] Among them, C t represents the output data of the memory unit at time t, C t-1 represents the output data of the memory unit at time t, represents the memory data obtained based on the input at time t, f t Represents the output data of the forget gate, f ad Represents the output data of the improved forget gate, i t Represents the output data of the input gate, i ad represents the output data of the improved input gate,

[0096] In the above formula (10), C tBased on the improved gate structure and traditional gate structure in this application, it not only takes into account the context understanding mechanism of the traditional LSTM, but also combines the "grammatical structure" mechanism proposed in this application, which can improve the accuracy of low-context text data classification.

[0097] It can be understood that the calculation formulas of other structures in this application are consistent with the traditional scheme, that is:

[0098] f t =σ(W f ·[h t-1 ,X t ]) (11)

[0099] i t =σ(W i ·[h t-1 ,X t ]) (12)

[0100] o t =σ(W o ·[h t-1 ,X t ]) (13)

[0101]

[0102] h t =o t ×tanhC t (15)

[0103] S3. Determine the confidence level with the largest median confidence level as the target confidence level, and determine the preset category corresponding to the target confidence level as the target category of the data to be classified;

[0104] Specifically, after the confidences corresponding to the multiple preset categories are obtained through the AD-LSTM classification model, the confidence with the largest value is determined as the target confidence. Since each confidence corresponds to a preset category, this embodiment determines the preset category corresponding to the target confidence as the target category of the data to be classified.

[0105] This application proposes an AD-LSTM classification model and a data classification method based on AD-LSTM, which adds an improved gate structure based on the existing LSTM gate structure, taking into account the context understanding mechanism of the traditional LSTM and combining the "grammatical structure" mechanism proposed in this application. The AD-LSTM classification model will update the level of the input token at different frequencies to improve the accuracy of low-context text data classification.

[0106] It should be understood that, although the various steps in the flowcharts in the above-described embodiments are sequentially displayed according to the indications of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily to be carried out sequentially, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0107] Figure 4 A schematic diagram of a data classification device based on AD-LSTM provided in an embodiment of the present application, such as Figure 4 As shown, the present application provides a data classification device based on AD-LSTM, the device comprising:

[0108] A data acquisition module 11 is configured to acquire data to be classified and extract sentence vectors corresponding to the data to be classified;

[0109] A data processing module 12 is configured to input the sentence vector into a trained improved long short-term memory recursive neural network AD-LSTM classification model to obtain confidences corresponding to a plurality of preset categories;

[0110] A category determination module 13, which is configured to determine the confidence level with the largest median confidence level as a target confidence level, and determine the preset category corresponding to the target confidence level as the target category of the data to be classified;

[0111] Among them, the structure in the AD-LSTM classification model includes a forget gate, an improved forget gate, an input gate, an improved input gate and a memory unit, and the improved forget gate and the improved input gate are implemented based on a preset activation function.

[0112] Regarding the limitation of the data classification device based on AD-LSTM, reference may be made to the limitation of the data classification method based on AD-LSTM in the above-mentioned embodiments of the present application, which will not be elaborated in this embodiment.

[0113] Figure 5 Another schematic diagram of a data classification device based on AD-LSTM provided in an embodiment of the present application is as follows: Figure 5 As shown, in some embodiments, the present application provides an AD-LSTM-based data classification device, including a memory 22 and a processor 21, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the AD-LSTM-based data classification method in the above-mentioned embodiments of the present application.

[0114] The memory is connected to the processor, the memory may be a flash memory or a read-only memory or other memory, and the processor may be a central processing unit or a single-chip microcomputer.

[0115] In some embodiments, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the AD-LSTM-based data classification method in the above-mentioned embodiments of the present application is implemented.

[0116] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0117] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present application, but the present application is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and substance of the present application, and these modifications and improvements are also considered to be within the scope of protection of the present application.

Claims

1. A data classification method based on AD-LSTM, characterized in that: The method comprises: Obtaining data to be classified, and extracting sentence vectors corresponding to the data to be classified; Inputting the sentence vector into the trained improved long short-term memory recursive neural network AD-LSTM classification model to obtain confidences corresponding to multiple preset categories respectively; Determine the confidence level with the largest median confidence level as the target confidence level, and determine the preset category corresponding to the target confidence level as the target category of the data to be classified; Among them, the structure in the AD-LSTM classification model includes a forget gate, an improved forget gate, an input gate, an improved input gate and a memory unit, and the improved forget gate and the improved input gate are implemented based on a preset activation function.

2. The data classification method based on AD-LSTM according to claim 1, characterized in that: The preset activation function is: Among them, x i represents the input of the AD-LSTM classification model at time i, τ represents the dimension coefficient, c is a constant, d represents the word segmentation in the sentence vector, and j represents the ordinal number of the word segmentation.

3. The data classification method based on AD-LSTM according to claim 2, characterized in that: The calculation formula of the improved forget gate is: f ad =MonoSoftmax(W fad ·[h t-1 ,X t ]) Among them, f ad Represents the output data of the improved forget gate, W fad represents the learning parameters, X t represents the input of the AD-LSTM classification model at time t, h t-1 Represents the output of the previous node.

4. The data classification method based on AD-LSTM according to claim 3 is characterized in that: The output of the improved forget gate increases monotonically in the interval [0, 1].

5. The data classification method based on AD-LSTM according to claim 3 is characterized in that: The calculation formula of the improved input gate is: i ad =1-MonoSoftmax(W iad ·[h t-1 ,X t ]) Among them, i ad Represents the output data of the improved input gate, W iad represents the learning parameters, X t represents the input of the AD-LSTM classification model at time t, h t-1 Represents the output of the previous node.

6. The data classification method based on AD-LSTM according to claim 5, characterized in that: The output of the improved input gate decreases monotonically in the interval [0, 1].

7. The data classification method based on AD-LSTM according to claim 5, characterized in that: The calculation formula of the memory unit is: Among them, C t represents the output data of the memory unit at time t, C t-1 represents the output data of the memory unit at time t, represents the memory data obtained based on the input at time t, f t Represents the output data of the forget gate, f ad Represents the output data of the improved forget gate, i t Represents the output data of the input gate, i ad Represents the output data of the improved input gate.

8. A data classification device based on AD-LSTM, characterized in that: The device comprises: A data acquisition module, which is configured to acquire data to be classified and extract sentence vectors corresponding to the data to be classified; A data processing module, which is configured to input the sentence vector into a trained improved long short-term memory recursive neural network AD-LSTM classification model to obtain confidences corresponding to a plurality of preset categories; a category determination module, configured to determine the confidence level with the largest median confidence level as a target confidence level, and to determine the preset category corresponding to the target confidence level as a target category of the data to be classified; Among them, the structure in the AD-LSTM classification model includes a forget gate, an improved forget gate, an input gate, an improved input gate and a memory unit, and the improved forget gate and the improved input gate are implemented based on a preset activation function.

9. A data classification device based on AD-LSTM, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the AD-LSTM-based data classification method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the AD-LSTM-based data classification method according to any one of claims 1 to 7 is implemented.