Equipment intention analysis method, device and electronic equipment based on artificial intelligence
Through the equipment intention analysis method based on artificial intelligence, the keywords and qualifiers in the equipment intention are extracted and classified, and interactive data are formed to accurately control the equipment. This solves the problem of complexity and insufficient accuracy of intention analysis in equipment maintenance and realizes equipment maintenance. Fast and accurate maintenance.
Patent Information
- Application Number
- CN202111495243.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-11-10
- Filing Date
- 2021-12-08
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-08
AI Technical Summary
The existing technology has insufficient analysis complexity and accuracy in equipment intention analysis. Especially in the field of equipment maintenance, it is difficult to quickly and accurately identify the intentions of remote commanders and on-site operators, resulting in difficulty in equipment maintenance and delayed troubleshooting.
Using the equipment intention analysis method based on artificial intelligence, by obtaining user command information and command constraints, the topic model and word segmentation model are used to extract the intent keywords and qualifiers, calculate the correlation and form interactive data, and input the mapping database to issue precise control instructions. , to achieve fine classification and analysis and fusion of intentions.
It improves the accuracy and efficiency of equipment intent analysis, ensures the speed and accuracy of the equipment maintenance process, reduces intent analysis errors, and improves equipment reliability and maintenance efficiency.
Smart Images

Figure CN114416971B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intent analysis, and in particular to an equipment intent analysis method, device and electronic device based on artificial intelligence. Background Art
[0002] In recent years, artificial intelligence technology has gained certain recognition in all walks of life. For example, in target detection, intelligent network operation and maintenance, and big data analysis, we can see the important role of artificial intelligence technology. In the military, artificial intelligence technology has also played a huge role. For example, it can automatically identify parts removed during maintenance based on neural networks, solve local optimal problems using particle swarm optimization (PSO), use DNN (Deep neural networks) models for intelligent defense, and use YOLO v3 (You Only Look Once) algorithm for target detection.
[0003] In terms of intent analysis, natural language processing uses word segmentation and other methods to identify intent, and network intent analysis uses word segmentation combined with northbound interface mapping to identify intent. Although artificial intelligence technology has many application scenarios in terms of intent, there is no relatively complete equipment intent analysis mechanism in terms of equipment support. Summary of the invention
[0004] In view of this, the purpose of this application is to propose an equipment intent analysis method, device and electronic device based on artificial intelligence.
[0005] Based on the above objectives, the present application provides an equipment intention analysis method based on artificial intelligence, including:
[0006] Obtain user instruction information and instruction constraints of the user;
[0007] Preprocessing the user instruction information, and processing the preprocessed user instruction information using a topic model to obtain intention keywords; performing word segmentation processing on the instruction constraint conditions using a word segmentation model to obtain multiple instruction qualifiers;
[0008] The intention keyword and the plurality of instruction qualifiers are analyzed by using a standard library, and the relevance between each instruction qualifier and the intention keyword is calculated; the instruction qualifier whose relevance meets the preset conditions is embedded into the intention keyword, and interaction data is formed through topic model analysis;
[0009] Acquire mapping parameters and action data corresponding to the interaction data using a mapping database;
[0010] A control instruction is issued to the equipment based on the mapping parameters and the action data.
[0011] Furthermore, the users include a first user who remotely monitors the equipment and / or a second user who performs on-site operations on the equipment, and the instruction constraints include a first instruction constraint reflecting the attributes of the first user and a second instruction constraint reflecting the attributes of the equipment.
[0012] Further, in response to the user being the first user, the user instruction information is the first user instruction information, and the instruction constraint condition is the first instruction constraint condition and the second instruction constraint condition; the process of forming the interaction data includes:
[0013] Acquire first user instruction information, a first instruction constraint condition, and a second instruction constraint condition;
[0014] Preprocessing the first user instruction information, and processing the preprocessed first user instruction information using a topic model to obtain a first intention keyword; using a word segmentation model to perform word segmentation processing on the first instruction constraint condition and the second instruction constraint condition respectively to obtain a plurality of first instruction qualifiers and second instruction qualifiers;
[0015] The first intent keyword and the first instruction qualifier and the second instruction qualifier are analyzed using a standard library to calculate the relevance of the first instruction qualifier, the second instruction qualifier and the first intent keyword; the first instruction qualifier and the second instruction qualifier whose relevance meets preset conditions are embedded in the first intent keyword, and interaction data is formed through topic model analysis.
[0016] Further, in response to the user being the first user and the second user, the user instruction information is the first user instruction information and the second user instruction information, and the instruction constraint condition is the first instruction constraint condition and the second instruction constraint condition; the process of forming the interaction data includes:
[0017] Acquire first user instruction information, a first instruction constraint condition, and a second instruction constraint condition;
[0018] Preprocessing the first user instruction information, and processing the preprocessed first user instruction information using a topic model to obtain a first intention keyword; using a word segmentation model to perform word segmentation processing on the first instruction constraint condition and the second instruction constraint condition respectively to obtain a plurality of first instruction qualifiers and second instruction qualifiers;
[0019] Analyze the first intent keyword and the first instruction qualifier using a standard library to calculate the relevance of each of the first instruction qualifiers to the first intent keyword;
[0020] A first instruction qualifier whose relevance meets a preset condition is embedded into the first intention keyword, and first interaction data is formed through topic model analysis.
[0021] The second user sends second user instruction information according to the first interaction data;
[0022] Preprocessing the second user instruction information, and processing the preprocessed second user instruction information using a topic model to obtain a second intent keyword;
[0023] Analyze the second intent keyword and each of the second instruction qualifiers using a standard library, and calculate the relevance of each of the second instruction qualifiers to the second intent keyword;
[0024] The second instruction qualifier whose relevance meets the preset conditions is embedded in the second intention keyword, and the interaction data is formed through topic model analysis.
[0025] Further, in response to the user being the first user and the second user, the user instruction information is the first user instruction information and the second user instruction information, and the instruction constraint condition is the first instruction constraint condition and the second instruction constraint condition; the process of forming the interaction data includes:
[0026] Obtaining first user instruction information, second user instruction information, first instruction constraint condition and second instruction constraint condition;
[0027] Preprocessing the first user instruction information and the second user instruction information respectively, and using the topic model to process the preprocessed first user instruction information to obtain a first intent keyword, and processing the preprocessed second user instruction information to obtain a second intent keyword; using the word segmentation model to perform word segmentation processing on the first instruction constraint condition and the second instruction constraint condition respectively, to obtain a plurality of first instruction qualifiers and second instruction qualifiers;
[0028] Using the topic model to analyze the first intent keyword and the first instruction qualifier, the second intent keyword and the second instruction qualifier, respectively, and calculate the relevance of each of the first instruction qualifiers to the first intent keyword, and the relevance of each of the second instruction qualifiers to the second intent keyword;
[0029] Embed the first instruction qualifier whose relevance meets the preset condition into the first intention keyword, and form the first interaction data through the topic model analysis; embed the second instruction qualifier whose relevance meets the preset condition into the second intention keyword, and form the second interaction data through the topic model analysis;
[0030] The first interaction data and the second interaction data are combined to form interaction data.
[0031] Further, constructing a data set for a GRU+attention mechanism model including multiple data terms; obtaining the first instruction constraint condition includes the following steps:
[0032] The first user instruction information is updated into a data set for a bidirectional GRU+attention mechanism model;
[0033] Calculate the relevance between each of the data terms and the first user instruction information using a standard library, and use the data terms whose relevance meets preset conditions as initial first instruction constraints;
[0034] The initial first instruction constraint condition is processed using a pre-trained bidirectional GRU+attention mechanism model to obtain a first instruction constraint condition.
[0035] Furthermore, the training process of the bidirectional GRU+attention mechanism model includes:
[0036] (1) Using the word vector matrix W, the bidirectional GRU+attention mechanism model encodes each data entry in the data set into a vector
[0037] (2) Using the initial bidirectional GRU+attention mechanism model, the hidden state h of each data entry is calculated it ,
[0038]
[0039]
[0040]
[0041] (3) Input the vector output by the initial bidirectional GRU+attention mechanism model into the fully connected layer of the initial bidirectional GRU+attention mechanism model to obtain its hidden representation u it ,
[0042] u it =tanh(W w h it +b w )
[0043] Among them, u it =tanh(W w h it +b w )、u it =tanh(W w h it +b w) are the weight and bias of the attention mechanism respectively;
[0044] (4) Calculate the normalized weight α through the sofamax function it ,
[0045]
[0046] Among them, u w is the contribution of the word to the sentence;
[0047] (5) Normalized weight g it Perform weighted summation to obtain the structural information A of the data entry i , and the structural information A i The sentence indicates h si ,
[0048] A i =∑ t α it h it ;h si =tanh(A i );
[0049] (6) Use the softmax function to obtain the predicted value y of the data entry i .
[0050]
[0051]
[0052] Among them, W si is the matrix weight, b si is the bias, Indicates that in y i The conditional probability of
[0053] (7) Calculate the predicted value y of the data entry i With the true value t i The loss function J(θ) is
[0054]
[0055] Wherein, m is the total number of data entries; t i represents the true value of the data entry; λ is the L2 regularization parameter; θ is the function parameter;
[0056] (8) Minimize the loss function J(θ) and obtain the bidirectional GRU+attention mechanism model.
[0057] Further, the step of obtaining the second instruction constraint condition includes:
[0058] Using MYSQL database to store the data set reflecting the attributes of the equipment which is updated regularly or in real time;
[0059] Analyzing and processing the data in the data set reflecting the equipment attributes in the ETL environment, and obtaining equipment failure time possibility information and equipment failure location possibility information according to the trend of the data; wherein the equipment failure time possibility information includes an equipment failure time possibility probability value, and the equipment failure location possibility information includes an equipment failure location possibility probability value;
[0060] In response to the equipment failure time possibility probability value and the equipment failure location possibility probability value reaching a preset threshold range, the corresponding equipment failure time possibility information and equipment failure location possibility information are used as the second instruction constraint condition.
[0061] The present invention discloses an equipment intention analysis device based on artificial intelligence, comprising:
[0062] An acquisition module is configured to acquire user instruction information and instruction constraints of a user;
[0063] The data processing module is configured to pre-process the user instruction information, and use the topic model to process the pre-processed user instruction information to obtain the intended keywords; and use the word segmentation model to perform word segmentation processing on the instruction constraint conditions to obtain a plurality of instruction qualifiers;
[0064] The interaction data module is configured to analyze the intent keyword and the plurality of instruction qualifiers using a standard library, calculate the relevance of each instruction qualifier to the intent keyword, embed the instruction qualifier whose relevance meets the preset conditions into the intent keyword, and form interaction data through topic model analysis;
[0065] A mapping module, configured to obtain mapping parameters and action data corresponding to the interaction data using a mapping database;
[0066] The instruction module is configured to issue control instructions to the equipment based on the mapping parameters and the action data.
[0067] The present invention also discloses an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method as described above when executing the program.
[0068] As can be seen from the above, the equipment intention parsing method, device and electronic device based on artificial intelligence provided by the present application, in which the intention is divided into active intention (such as user instruction information) and passive intention (such as instruction constraint condition), the active intention mainly reflects the active intention of the user, and the passive intention mainly reflects the user attributes and equipment attributes; after extracting the intention keywords in the active intention, the instruction qualifiers with high correlation with the intention keywords in the passive intention are screened out, and then the intention keywords and the screened instruction qualifiers are integrated and processed to form interactive data. The interactive data is input into the mapping database, and the mapping parameters and action data corresponding to the interactive data are output, and finally, accurate control instructions are issued to the equipment according to the mapping parameters and action data. That is, the present invention classifies the intentions in detail according to the similarities and differences of the intentions, and the parsing processes between the classified intentions are mutually integrated and constrained, thereby improving the accuracy of the intention parsing, so as to be better applied to the field of equipment maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0070] Figure 1 The process of the equipment intention analysis method based on artificial intelligence in the embodiment of the present application is shown as follows Figure 1 ;
[0071] Figure 2 The process of the equipment intention analysis method based on artificial intelligence in the embodiment of the present application is shown as follows Figure 2 ;
[0072] Figure 3 The process of the equipment intention analysis method based on artificial intelligence in the embodiment of the present application is shown as follows Figure 3 ;
[0073] Figure 4 The process of the equipment intention analysis method based on artificial intelligence in the embodiment of the present application is shown as follows Figure 4 ;
[0074] Figure 5 This is a schematic diagram of a first intention keyword acquisition process in an embodiment of the present application;
[0075] Figure 6 A schematic diagram of a first instruction constraint condition acquisition process in an embodiment of the present application;
[0076] Figure 7A schematic diagram of a second intent keyword acquisition process in an embodiment of the present application;
[0077] Figure 8 A schematic diagram of a second instruction constraint condition acquisition process in an embodiment of the present application;
[0078] Fig. 9 This is a schematic diagram of the structure of an equipment intention analysis device based on artificial intelligence according to an embodiment of the present application;
[0079] Fig.10 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0080] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0081] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0082] In the related art, electronic equipment has become an indispensable part of modern life, and the electronic equipment includes but is not limited to patch machines, electronic reconnaissance equipment, mobile phones, drones, electronic communication equipment for aircraft, electronic communication equipment for spacecraft, and electronic communication equipment for space stations. With the continuous development of informatization of various electronic equipment, how to quickly, efficiently and accurately carry out equipment autonomous protection has become an urgent problem to be solved. Due to the "island effect" in some equipment, that is, the information between the equipment systems is incompatible and the resources are not shared, the maintenance of the equipment is difficult and sometimes the maintenance is not timely. In addition, in the remote and on-site linkage scenarios of some equipment (for example, the linkage scenario generated by the ground commander of the space station and the operator in the space station based on the abnormal alarm of a certain equipment, or the linkage scenario generated between the ground commander of the space station and the control system of the target equipment), timely maintenance of the equipment or avoiding the occurrence of faults becomes particularly important. Once an intention analysis error occurs, it will cause immeasurable losses. Therefore, in the process of communication, it is extremely important for the remote commander and the on-site operator, or the remote commander and the control system of the target equipment to quickly identify the intention of each other, and issue accurate instructions to the control system of the target equipment.
[0083] Through the above analysis, if it is necessary to issue precise instructions to the control system of the target equipment, it is necessary to know the intentions of the remote commander and the local operator as soon as possible. In the relevant technology, the remote commander and the local operator can communicate relevant instructions through voice calls, but the remote commander generally only explains the effect he wants the target equipment to achieve, or points out the problems with the target equipment, that is, the instructions issued by the remote commander may not be specific instructions for the equipment; the local operator knows the target equipment best, and based on the instructions of the remote commander, he makes specific instructions to the target equipment; when the local operator has doubts about the instructions of the remote commander, he needs to communicate with the remote commander before issuing specific instructions. In this case, the intention analysis mechanism based on artificial intelligence technology can be used to know the other party's intentions as soon as possible, so as to better perform intention analysis in equipment support.
[0084] There are existing methods for intent analysis in the prior art. For example, in the paper "User intent-oriented videoQoE with emotion detection networking", the author detects the user's emotions in real time through a real-time emotion detection network. Then, emotion analysis is performed and singular value decomposition (SVD) and latent semantic indexing (LSI) are used to identify the user's intent, thereby enhancing the user's service experience. Although this method can identify the user's intent to a large extent, its application scope will be greatly limited due to the need for real-time detection of user emotions. At the same time, real-time detection will consume a lot of financial and material resources.
[0085] In addition, in the Chinese invention patent CN 108763510 B "Intent Recognition Method, Device, Equipment and Storage Medium", the inventor proposed an intent recognition method, device, equipment and storage medium. The method can be mainly divided into three steps: first, extract the feature sequence from the intent, and then input the feature sequence of the intent into one or more bag-of-words semantic analysis classifiers, and obtain the classification label and corresponding score of the user's intent through the classifier. Finally, the intent is determined based on the classification label and the corresponding score. In this method, the inventor sets up multiple bag-of-words semantic analysis classifiers and there is no correlation between the classifiers. This will greatly increase the workload. At the same time, since there is no correlation between the classifiers, the parsing effect for some implicit intents will be poor.
[0086] It is not difficult to find that the analysis of intent in the prior art is generally only for the intent itself, and the analysis method is relatively complicated. The present invention is different from the existing intent analysis method, and aims to propose a simple, fast and accurate intent analysis method, and the method is applied to the field of equipment maintenance, specifically, the intent is divided into active intent (such as user instruction information) and passive intent (such as instruction constraints), the active intent mainly reflects the intention of the user who issues the instruction, and the passive intent mainly reflects the user attributes and equipment attributes; after extracting the intent keywords in the active intent, the instruction qualifiers with high correlation with the intent keywords in the passive intent are screened out, and then the intent keywords and the screened instruction qualifiers are integrated and processed to form interactive data. The interactive data is input into the mapping database, and the mapping parameters and action data corresponding to the interactive data are output. Finally, according to the mapping parameters and action data, accurate control instructions are issued to the equipment. That is, the present invention classifies the intents in detail according to the similarities and differences of the intents, and the parsing processes between the classified intents are mutually integrated and constrained, thereby improving the accuracy of the intent analysis, so as to be better applied to the field of equipment maintenance.
[0087] The present application is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.
[0088] This application provides an equipment intention analysis method based on artificial intelligence, see Figure 1 ,include:
[0089] S101, obtaining user instruction information and instruction constraints of the user;
[0090] S102, preprocessing the user instruction information, and processing the preprocessed user instruction information using a topic model to obtain intention keywords; performing word segmentation processing on the instruction constraint conditions using a word segmentation model to obtain multiple instruction qualifiers;
[0091] S103, using a standard library to analyze the intent keyword and the plurality of instruction qualifiers, and calculating the relevance between each instruction qualifier and the intent keyword; embedding the instruction qualifier whose relevance meets the preset conditions into the intent keyword, and forming interaction data through topic model analysis;
[0092] S104, using a mapping database to obtain mapping parameters and action data corresponding to the interaction data;
[0093] S105: issuing control instructions to the equipment based on the mapping parameters and the action data.
[0094] In this embodiment, the intention is divided into active intention (such as user instruction information) and passive intention (such as instruction constraints). The active intention mainly reflects the intention of the user who issues the instruction, and the passive intention mainly reflects the user attributes and equipment attributes. After extracting the intention keywords in the active intention, the instruction qualifiers with a high correlation with the intention keywords in the passive intention are screened out, and then the intention keywords and the screened instruction qualifiers are integrated and processed to form interactive data. The interactive data is input into a mapping database, and the mapping parameters and action data corresponding to the interactive data are output. Finally, accurate control instructions are issued to the equipment according to the mapping parameters and action data. That is, the present invention classifies the intentions in detail according to the similarities and differences of the intentions, and the parsing processes between the classified intentions are mutually integrated and constrained, thereby improving the accuracy of the intention parsing, so as to be better applied to the field of equipment maintenance.
[0095] In some embodiments, the users include a first user who remotely monitors the equipment and / or a second user who performs on-site operations on the equipment, and the instruction constraints include a first instruction constraint reflecting the attributes of the first user and a second instruction constraint reflecting the attributes of the equipment.
[0096] Among them, the first user can be a remote monitoring commander of the equipment, and the second user can be an on-site operator of the equipment. Taking the equipment as an equipment in a space station as an example, the first user can be a ground commander of the space station, and the second user can be an operator in the space station. The first instruction constraint condition reflecting the attribute of the first user constrains the first user instruction information issued by the first user, so that the second user receives more accurate instructions; the second instruction constraint condition reflecting the attribute of the equipment constrains the second user instruction information issued by the second user, so that the equipment can receive accurate instructions.
[0097] Moreover, if there is no operator in the space station, the second user does not exist. The first instruction constraint condition reflecting the attributes of the first user and the second instruction constraint condition reflecting the attributes of the equipment are both used to constrain the first user instruction information issued by the first user so that the equipment can receive accurate instructions.
[0098] In specific implementation, the first user instruction information may be a specific requirement or service with a referential nature issued by the remote commander for the target equipment. The first instruction constraint condition may be various conventional standards, common sense, standard terms, industry habits and other data in the industry where the remote commander is located. The second user instruction information may be data such as instructions or requirements issued by the local operator for the target equipment. The second instruction constraint condition may be various usage data of the target equipment during use, relevant parameters of the equipment, maintenance data of the equipment, etc. Among them, the first user instruction information may be understood as the active intention of the remote commander; the first instruction constraint condition may be understood as the passive intention of the remote commander; the passive intention of the remote commander is used to constrain the active intention of the remote commander; the second user instruction information may be understood as the active intention of the local operator; the second instruction constraint condition may be understood as the passive intention of the local operator; the passive intention of the local operator is used to constrain the active intention of the local operator; the classification process of the above data is actually a fine division of the intention, and this fine division gives us more means and methods to analyze the characteristics of each intention accordingly. At the same time, based on the internal connection of intentions, the analysis of different intentions can be mutually confirmed to a certain extent, thereby improving the accuracy of intention analysis.
[0099] In addition, the collection and processing process of the above data is as follows:
[0100] First, the following data sets are obtained from the Equipment Management Office and the Data Center: a data set reflecting the behavioral habits and historical instructions of the commanders in the industry; a data set of common terms and common sense in the industry; a data set of instructions for each equipment operator when handling the equipment; a data set of specific parameters for each equipment; a data set of maintenance records for each equipment; and a data set of operation of each equipment.
[0101] Secondly, since the obtained data sets have problems such as data format, data type and missing data, the relevant data sets need to be processed. The processing process includes: (1) Deleting duplicate values, null values and other data sets and filling in missing values; specifically, the two most commonly used data processing libraries in Python, numpy and pandas, can be used for processing; that is, reading the data sets to be processed respectively, and then counting the percentage of missing values in the data set. For those with a high percentage, the median or mode of the row or column where the data set is located is used to fill in; for those with a low percentage, directly choose to delete; and it is necessary to delete the null values and duplicate values in the data set. (2) Unifying the format of the data set; specifically, Python scripts can be used to convert all formats into CSV file formats, and the format() method can be used to format some data sets and number the data.
[0102] Finally, the processed data sets reflecting the behavioral habits and historical instructions of the commanders in the industry, the industry's conventional terms and common sense data sets are encapsulated, and the encapsulated data are divided into two CSV files, which can be used as the training set and test set of the model for the subsequent analysis of the first instruction constraint condition (i.e., the passive intention of the remote commander); the processed instruction sets of each equipment operator when handling the equipment, the specific parameter data sets of each equipment, the maintenance record data sets of each equipment, and the operation data sets of each equipment are all written into the MySQL database for storage, which can be used as data support for the subsequent analysis of the second instruction constraint condition (i.e., the passive intention of the equipment).
[0103] In some embodiments, reference Figure 2 In response to the user being the first user, the user instruction information is the first user instruction information, and the instruction constraint condition is the first instruction constraint condition and the second instruction constraint condition; the process of forming the interaction data includes:
[0104] S201, obtaining first user instruction information, a first instruction constraint condition and a second instruction constraint condition;
[0105] S202, preprocessing the first user instruction information, and processing the preprocessed first user instruction information using a topic model to obtain a first intention keyword; using a word segmentation model to perform word segmentation processing on the first instruction constraint condition and the second instruction constraint condition respectively to obtain a plurality of first instruction qualifiers and second instruction qualifiers;
[0106] S203, using a standard library to analyze the first intent keyword and the first instruction qualifier and the second instruction qualifier, and calculate the relevance of each of the first instruction qualifier, the second instruction qualifier and the first intent keyword; embed the first instruction qualifier and the second instruction qualifier whose relevance meets the preset conditions into the first intent keyword, and form interaction data through topic model analysis;
[0107] S204, using a mapping database to obtain mapping parameters and action data corresponding to the interaction data;
[0108] S205: issuing control instructions to the equipment based on the mapping parameters and the action data.
[0109] In specific implementation, based on an alarm of the target equipment or based on a need to update the target equipment system, etc., the first user can input first user instruction information to a device that applies the intent parsing method of this embodiment. The device uses a topic model to extract the first intent keyword in the first user instruction information, and uses a standard library to filter out the first instruction qualifiers and the second instruction qualifiers that have a high degree of relevance to the first intent keyword in the first instruction constraints and the second instruction constraints, and merges the first intent keyword with the first instruction qualifiers and the second instruction qualifiers to form integrated data. The integrated data is processed to form interactive data, and the interactive data is input into a mapping database (such as a maintenance guide) to obtain a specific solution to the problem mentioned in the interactive data in the maintenance guide and relevant parameters in the process of implementing the solution, and the solution and relevant parameters are directly sent to the equipment, and the equipment performs relevant operations.
[0110] In this embodiment, the user only involves the first user (such as the remote commander of the space station). The first user instruction information issued by the remote commander is constrained by the first instruction constraint condition and the second instruction constraint condition at the same time. After the intention analysis process in this embodiment, accurate interaction data is generated. The interaction data can obtain accurate mapping parameters and action data through the mapping of the mapping database, and accurate control instructions are issued to the equipment based on the mapping parameters and action data. This intention analysis process is suitable for the situation where the remote commander directly issues instructions to the target equipment. The equipment can quickly and accurately know the intention of the remote commander, which is conducive to the rapid maintenance of the equipment.
[0111] In some embodiments, reference Figure 3 In response to the user being the first user and the second user, the user instruction information is the first user instruction information and the second user instruction information, and the instruction constraint condition is the first instruction constraint condition and the second instruction constraint condition; the process of forming the interaction data includes:
[0112] S301, obtaining first user instruction information, a first instruction constraint condition and a second instruction constraint condition;
[0113] S302, preprocessing the first user instruction information, and processing the preprocessed first user instruction information using a topic model to obtain a first intention keyword; using a word segmentation model to perform word segmentation processing on the first instruction constraint condition and the second instruction constraint condition respectively, to obtain a plurality of first instruction qualifiers and second instruction qualifiers;
[0114] S303, analyzing the first intent keyword and the first instruction qualifier using a standard library, and calculating the relevance of each of the first instruction qualifiers to the first intent keyword;
[0115] S304, embedding a first instruction qualifier whose relevance meets a preset condition into the first intention keyword, and forming first interaction data through topic model analysis;
[0116] S305: The second user sends second user instruction information according to the first interaction data;
[0117] S306, preprocessing the second user instruction information, and processing the preprocessed second user instruction information using a topic model to obtain a second intent keyword;
[0118] S307, analyzing the second intent keyword and each of the second instruction qualifiers using a standard library, and calculating the relevance of each of the second instruction qualifiers to the second intent keyword;
[0119] S308: embed the second instruction qualifier whose relevance meets the preset conditions into the second intention keyword, and form interaction data through topic model analysis.
[0120] In specific implementation, based on the alarm of the target equipment or based on the needs of updating the target equipment system, the first user can input the first user instruction information to the device applying the intention parsing method of this embodiment, and the device uses the topic model to obtain the first intention keyword in the first user instruction information, and uses the standard library to filter out the first instruction qualifier with a high correlation with the first intention keyword in the first instruction constraint condition, and fuses the first intention keyword with the first instruction qualifier to form a first integrated data, and the first integrated data is processed to form the first interactive data; the second user can input the first user instruction information to the device applying the intention parsing method of this embodiment based on the first interactive data, and the device uses the word segmentation model to extract the second intention keyword in the second user instruction information, and uses the standard library to filter out the second instruction qualifier with a high correlation with the second intention keyword in the second instruction constraint condition, and fuses the second intention keyword with the second instruction qualifier to form the second integrated data, and the second integrated data is processed to form the interactive data; the interactive data is input into a mapping database (such as a maintenance guide) to obtain a specific solution to the problem mentioned in the interactive data in the maintenance guide and relevant parameters in the process of implementing the solution, and the solution and relevant parameters are directly sent to the equipment, and the equipment performs relevant operations.
[0121] In this embodiment, the users involve a first user (such as a remote commander of a space station) and a second user (such as an on-site operator of a space station). The first user instruction information issued by the remote commander is constrained by the first instruction constraint condition; the on-site operator issues the second user instruction information based on the first interactive data, which is constrained by the second instruction constraint condition. After the intention analysis process in this embodiment, accurate interactive data is generated. The interactive data can obtain accurate mapping parameters and action data through the mapping of the mapping database, and accurate control instructions are issued to the equipment based on the mapping parameters and action data. The intention analysis process is suitable for the situation where the remote commander issues instructions and the on-site operator needs to issue the final instruction to the equipment according to the instruction. In this analysis process, the on-site operator can quickly and accurately know the intention of the remote commander and convey it to the equipment, which is conducive to the rapid maintenance of the equipment.
[0122] In some embodiments, reference Figure 4 In response to the user being the first user and the second user, the user instruction information is the first user instruction information and the second user instruction information, and the instruction constraint condition is the first instruction constraint condition and the second instruction constraint condition; the process of forming the interaction data includes:
[0123] S401, obtaining first user instruction information, second user instruction information, first instruction constraint condition and second instruction constraint condition;
[0124] S402, preprocessing the first user instruction information and the second user instruction information respectively, and using the topic model to process the preprocessed first user instruction information to obtain a first intent keyword, and processing the preprocessed second user instruction information to obtain a second intent keyword; using the word segmentation model to perform word segmentation processing on the first instruction constraint condition and the second instruction constraint condition respectively, to obtain a plurality of first instruction qualifiers and second instruction qualifiers;
[0125] S403, using a topic model to analyze the first intent keyword and the first instruction qualifier, the second intent keyword and the second instruction qualifier, respectively, and calculate the relevance of each of the first instruction qualifiers to the first intent keyword, and the relevance of each of the second instruction qualifiers to the second intent keyword;
[0126] S404, embedding the first instruction qualifier whose relevance meets the preset condition into the first intention keyword, and forming the first interaction data through the topic model analysis; embedding the second instruction qualifier whose relevance meets the preset condition into the second intention keyword, and forming the second interaction data through the topic model analysis;
[0127] S405: Combine the first interaction data and the second interaction data to form interaction data.
[0128] In specific implementation, based on the alarm of the target equipment or based on the needs of updating the target equipment system, the first user and the second user can directly input the first user instruction information and the second user instruction information to the device applying the intention parsing method of this embodiment (the input process can be simultaneous or sequential), and the device uses the topic model to obtain the first intention keyword in the first user instruction information and the second intention keyword in the second user instruction information, and uses the standard library to filter out the first instruction qualifier with a high correlation with the first intention keyword in the first instruction constraint condition, and the second instruction qualifier with a high correlation with the second intention keyword in the second instruction constraint condition; the first intention keyword and the first instruction qualifier are merged to form the first integrated data; the second intention keyword and the second instruction qualifier are merged to form the second integrated data; the first integrated data and the second integrated data are analyzed by the topic model to form the first interactive data and the second interactive data respectively; the first and second interactive data are processed to form interactive data; the interactive data is input into a mapping database (such as a maintenance guide) to obtain a specific solution to the problem mentioned in the interactive data and relevant parameters in the process of implementing the solution in the maintenance guide, and the solution and relevant parameters are directly sent to the equipment, and the equipment performs relevant operations.
[0129] In this embodiment, the users involve a first user (such as a remote commander of a space station) and a second user (such as an on-site operator of a space station). The first user instruction information issued by the remote commander is constrained by the first instruction constraint; the second user instruction information issued by the on-site operator is constrained by the second instruction constraint; after the intention analysis process in this embodiment, accurate interaction data is generated, and the interaction data can obtain accurate mapping parameters and action data through the mapping of the mapping database, and issue accurate control instructions to the equipment based on the mapping parameters and action data. This intention analysis process is suitable for situations where both the remote commander and the on-site operator actively issue instructions. In this analysis process, both the on-site operator and the remote commander can quickly and accurately know the intention of the other party and convey it to the equipment, which is conducive to the rapid maintenance of the equipment.
[0130] In some embodiments, reference Figure 5 , preprocessing the first user instruction information, and using the topic model to process the preprocessed first user instruction information to obtain the first intention keyword, which is the analysis process of the first user's active intention, including:
[0131] S501, using a word segmentation model to perform word segmentation extraction on the first user instruction information to obtain a word segmentation result;
[0132] S502, using a corpus learning database to perform corpus learning on the word segmentation result;
[0133] S503: Using the topic model to extract first-intent keywords from the word segmentation results after corpus learning.
[0134] In specific implementation, the word segmentation model may be an HMM model, and the training process of the HMM model is as follows:
[0135] (1) Create an HMM model;
[0136] (2) Selecting the icwb2-data.rar corpus to train the HMM model, the corpus contains a training set and a test set (it should be noted that the training set and the test set are existing in the icwb2-data.rar corpus, as long as they can be used to train the HMM model, they do not need to be related to the industry of the first user);
[0137] (3) Create an HMM class, which contains state transfer matrix, emission matrix, and initial matrix attributes. At the same time, define three class functions in the HMM class: read function: load(), Viterbi algorithm function: viterbi(), and word segmentation function: cut(). Use the read function load() to read the corpus for training and obtain the data of the three matrices of the intermediate model: state transfer matrix, emission matrix, and initialization matrix, and save it as a .pkl file. After saving, the first user instruction information can be segmented and extracted.
[0138] For example, the first user instruction information is: "Today's weather is not very good, and the efficiency of equipment A does not meet the specified standard." The first user instruction information "Today's weather is not very good, and the communication efficiency of equipment A does not meet the specified standard" is input into the word segmentation function cut(), and then the Viterbi algorithm function: viterbi() will return an optimal state sequence based on the three matrix data and the input intention. After that, the cut() function performs word segmentation based on the returned optimal state sequence. The final output word segmentation result is: "Today, the weather is not, too, good, and the communication efficiency of equipment A does not meet the specified standard."
[0139] In the specific implementation, the corpus learning library is an NLTK library, which completes the expected learning of the word segmentation results. More specifically, the NLTK library can be used to process word frequency, common two-word collocation, etc. using the FreDist class, collation() method, etc. In addition, relevance calculation, function word and symbol processing can be performed. That is, the word segmentation result of the previous step will be obtained after being processed by the NLTK library: "Today, the weather is not, too good, A, equipment, communication, efficiency, does not reach, specified, standard".
[0140] In specific implementation, the topic model can be a topic probability distribution model, such as an IP-LDA model, which uses the IP-LDA model to extract keywords from the word segmentation after corpus learning. More specifically, according to the characteristics of the IP-LDA model, the topic distribution and initial topic probability can be randomly given to calculate the distribution probability of each word segmentation in the first user instruction information under all topics. After that, sort according to the size of the distribution probability, select the topic corresponding to the word with the largest probability value, and the probability corresponding to the topic is the cyclic topic probability. If the cyclic topic probability is different from the initial topic probability, continue to iterate until they are the same. During each iteration, the distribution probability of each word segmentation in the first user instruction information under all topics will change until the iteration ends, and the word segmentation within the preset distribution probability range is selected as the first intention keyword.
[0141] That is, the corpus learning result of the previous step will be processed by the IP-LDA model to obtain "A, equipment, communication, efficiency, does not reach, specified, standard".
[0142] In some embodiments, reference Figure 6 Before obtaining the first instruction constraint condition, it is necessary to construct a data set for the GRU+attention mechanism model including multiple data entries; obtaining the first instruction constraint condition (i.e., the parsing process of the passive intention of the first user) includes the following steps:
[0143] S601, the first user instruction information is updated to a data set for a bidirectional GRU+attention mechanism model;
[0144] S602, using a standard library to calculate the relevance between each of the data terms and the first user instruction information, and using the data terms whose relevance meets the preset conditions as initial first instruction constraint conditions;
[0145] S603. Use the pre-trained bidirectional GRU+attention mechanism model to process the initial first instruction constraint condition to obtain the first instruction constraint condition.
[0146] After obtaining the first instruction constraint condition, the first instruction constraint condition is segmented using the HMM word segmentation model to obtain a plurality of first instruction qualifiers.
[0147] In specific implementation, the standard library may be the existing standard library difflib in Python. The standard library can effectively screen data entries to avoid too many constraints on the first instruction, which may affect the operation speed of the subsequent bidirectional GRU+attention mechanism model.
[0148] For example, the two initial first instruction constraints input into the bidirectional GRU+attention mechanism model are: "January 5, 2019: Due to the recent large-scale gathering of people, communication resources need to be increased"; "November 5, 2019: The personnel have left, so communication resources do not need to be too high and can be restored to the minimum communication standard (Class A standard)". The output result (i.e., the first instruction constraint) is: "The communication system is operating at the minimum standard, and equipment A has been operating for 10 months". That is, by analyzing the input first instruction constraint through this model, it can be obtained what state the current communication system is in and under what standard it is operating.
[0149] In this embodiment, a bidirectional GRU+attention mechanism model is used to perform intention analysis on multiple initial first instruction constraints. The data set used by the GRU+attention mechanism model is the data set that reflects the behavioral habits and historical instructions of the industry commander mentioned in the above embodiment, the conventional terms and common sense data set of the industry. Once the first user issues the first user instruction information, the first user instruction information will be updated as the latest historical data to the data set that reflects the behavioral habits and historical instructions of the industry commander. Then, the existing data terms in the data set are compared with the latest historical data for relevance, and multiple initial first instruction constraints are screened out. Among them, because the data terms in the data set used by the GRU+attention mechanism model are generally various conventional standards, common sense, standard terms, and text data terms such as the industry habits in the industry where the remote commander is located, the GRU model (especially the bidirectional GRU model) is a widely used time series problem processing algorithm, which has a good processing effect on text data terms. Through the bidirectional GRU model, the input vector of each word and phrase in the first user instruction information can be obtained. However, some vectors that are not related to equipment support are also included, such as function words, personal pronouns, greetings, etc. Not every word and phrase contributes equally to intent analysis, so an attention mechanism is introduced to extract important words and phrases. That is, the introduction of the attention mechanism can adaptively combine the contextual information in the data entry to extract the key data features that affect the first user, so that the model can pay more attention to the main part of the data entry to accurately extract the first instruction constraint condition, which is used to constrain the first user instruction information, thereby improving the accuracy of intent analysis for the first user instruction information.
[0150] In some embodiments, the process of forming the first interaction data is as follows: using a standard library to analyze the first intent keyword and multiple first instruction qualifiers, calculating the relevance of each first instruction qualifier to the first intent keyword; and embedding the first instruction qualifier whose relevance meets preset conditions into the first intent keyword, and forming the first interaction data through topic model analysis.
[0151] Among them, the first intention keyword is at least one, and in the specific implementation, the first intention keyword is often multiple. When comparing the relevance of the first instruction qualifier with the first intention keyword, the multiple first intention keywords will be treated as a whole, that is, the multiple first instruction qualifiers will be compared for relevance with the whole, so as to reduce the number of operations of the standard library.
[0152] In specific implementation, the standard library can be the existing standard library difflib in Python. The first intent keyword and each first instruction qualifier are input into the standard library difflib, and the correlation between each first instruction qualifier and the first intent keyword can be obtained. The first instruction qualifier with a correlation that meets the preset conditions is embedded in the first intent keyword, and the first integrated data is formed through the subject model analysis; the first integrated data is parsed using the IP-LDA model to obtain the first interaction data, and then the intention of the first user is determined. For example, the first instruction constraint condition is: "The communication system is running at the minimum standard, and equipment A has been running for 10 months", and the HMM word segmentation model is used to perform word segmentation processing on it, and the processing result is "communication, system, is at, the, minimum standard (class A standard), running, A, equipment, has, been, running, for, 10, months". Then, the word segmentation result is embedded as the first instruction qualifier into the first intent keyword obtained in the above embodiment. Through the analysis of the IP-LDA model, the first user's intention can be finally obtained as: "A, equipment, communication, efficiency, does not reach, the, specified, standard, communication, system, is, at, the, minimum standard (class A standard)".
[0153] In some embodiments, the training process of the bidirectional GRU+attention mechanism model is as follows:
[0154] (1) Use the word vector matrix W to encode each data entry in the data set into a vector using the bidirectional GRU+attention mechanism model. That is, vectorization is performed.
[0155] (2) Using the initial bidirectional GRU+attention mechanism model, the hidden state h of each data entry is calculated it ,h it The calculation process is as follows:
[0156]
[0157]
[0158]
[0159] Formulas (1) to (2) calculate the hidden states of the forward time cycle layer and the reverse time cycle layer respectively, and formula (3) concatenates the two at the fully connected layer to obtain the final hidden state.
[0160] (3) Input the vector output by the initial bidirectional GRU+attention mechanism model into the fully connected layer to obtain its hidden representation u it , the calculation process is as follows:
[0161] u it =tanh(W w h it +b w ) Formula (4)
[0162] Among them, u it =tanh(W w h it +b w )、u it =tanh(W w h it +b w ) are the weight and bias of the attention mechanism respectively.
[0163] (4) Calculate the normalized weight α through the sofamax function it ,
[0164]
[0165] in, It can be regarded as the contribution of a word to a sentence, which is randomly initialized and obtained through training.
[0166] (5) Normalized weight α it Perform weighted summation to obtain the structural information A of the data entry i , and the structural information A i The sentence indicates h si ,
[0167] A i =∑ t α it h it Formula (6); h si =tanh(A i ) formula (7).
[0168] (6) Use the softmax function to obtain the predicted value y of the data entry i,
[0169]
[0170]
[0171] Among them, W si is the matrix weight, b si is the bias, Indicates that in y i The conditional probability of .
[0172] (7) Calculate the predicted value y of the data entry i With the true value t i The loss function J(θ) is
[0173]
[0174] Wherein, m is the total number of data entries; t i represents the true value of the data entry; λ is the L2 regularization parameter; θ is the function parameter.
[0175] (8) Minimize the loss function J(θ) and obtain the bidirectional GRU+attention mechanism model.
[0176] It should be noted that before training the model, the neural network needs to be initialized by calling the nn.GRU class and the packaged functions in pytorch. The initialization parameters can be the dimension of the vector, the dimension of the GRU layer, the number of layers of the neural network, and the number of samples for each training. Then, the above steps (1) to (5) are performed to complete the model training. During the training of the model, ReLU can be used as the activation function of the neuron. The gradient of this function in the non-negative interval is a constant, so there is no vanishing gradient problem. This makes it easier to maintain the convergence speed of the model at a stable state.
[0177] After that, the trained bidirectional GRU+attention mechanism model is tested. The prepared test set is input into the model to see whether the model indicator recall rate and prediction accuracy meet expectations. After the test results meet the requirements, the collected first instruction constraints can be input into the model for parsing.
[0178] In some embodiments, reference Figure 7 , the second user instruction information is preprocessed, and the preprocessed second user instruction information is processed using a topic model to obtain a second intention keyword. This process is a parsing process of the active intention of the second user, and the process includes:
[0179] S701, using a word segmentation model to perform word segmentation extraction on the second user instruction information to obtain a word segmentation result;
[0180] S702: Use the pre-trained bidirectional LSTM model to predict the word segmentation result to obtain a second intent keyword.
[0181] Among them, the bidirectional-LSTM model is a topic prediction model. LSTM is the most commonly used neural network algorithm for processing time series problems, and it has a good application in time series problems.
[0182] In addition, since the second user instruction information is generally issued by the on-site operator of the equipment, he is more familiar with the equipment and the instructions he issues are more directed and accurate. There is no need to do corpus learning for the analysis results. The pre-trained bidirectional-LSTM model can be used to directly process the word segmentation results to obtain the second intent keywords.
[0183] The training process of the bidirectional LSTM model includes:
[0184] (1) Perform secondary processing on the dataset. Perform word segmentation and corpus learning on the CSV files of the test set and training set, and save them in the LSTM input format, i.e. [samples, timesteps, features].
[0185] (2) Build and train a bidirectional LSTM model. The process is as follows:
[0186] a. Build a bidirectional LSTM model and initialize it. Given the initial weight matrix, set a reasonable maximum number of iterations and minimum error value.
[0187] b. After building the bidirectional LSTM model, input the corresponding data set into the built bidirectional LSTM to calculate the hidden layer state. The calculation process is to first calculate the hidden state of the forward hidden layer. Then the hidden state of the backward hidden layer is calculated Finally, the final prediction result is obtained by weighted calculation of the two hidden layer states. The calculation formula is as follows:
[0188]
[0189]
[0190]
[0191] in, is the data in the data set, w1 is the input of the current neuron to the forward hidden layer The weight of w2 is the weight from the previous state to the current state, h t-1 is the input value of the hidden layer state at the previous moment, and w3 is the input of the current neuron to the backward hidden layer The weight of w4 is the weight of the next state quantity to the current state quantity, h t+1 is the input value of the hidden layer state at the next moment; w5 is the input of the current neuron to the forward hidden layer in the two hidden layers Average weight, w6 is the input of the current neuron to the two hidden layers and the backward hidden layer The weight of .
[0192] c. Calculate the gradient of each weight based on the corresponding error term, and optimize the weights and bias of the bidirectional LSTM network by gradient descent.
[0193] d. Use the root mean square error (RMSE) function as the loss function of the model:
[0194]
[0195] in, Pit represents the predicted value and the true value respectively. When the loss function is minimized and reaches a stable state, the model training is considered to be completed.
[0196] Three functions are defined in the specific code execution: fit_Bi_lstm(), a function for fitting bidirectional LSTM, predict_Bi_lstm(), and a function for evaluating the performance of the prediction model: evaluate_Bi_lstm()
[0197] Next, we use the three defined functions to build a bidirectional-LSTM model, initialize parameters, define variables, and start model training. In order to avoid possible randomness, we need to train the model multiple times (such as 8 times) and evaluate the performance of the model by calculating the average of multiple models.
[0198] (3) After the model performance reaches the expected level, the model is tested using the test set, and the output results of the test set are compared with the data itself. If the test effect meets expectations, the prediction model training is completed.
[0199] The second user instruction information is the active intention of the equipment, which is generated only when the passive intention of the equipment (i.e., the second instruction constraint condition) is abnormal or the remote commander issues a specific and clear instruction to the operator of the equipment. When the passive intention of the equipment is abnormal, the equipment operator issues the second user instruction information according to the analysis result of the passive intention of the equipment. For example, the second user instruction information is: "The video is stuck in the communication, and the quality standard of the communication system is improved." The second user instruction information is segmented using the HMM model, and then the segmentation results are predicted and analyzed using the trained bidirectional-LSTM model to obtain the final analysis result (i.e., the second intention keyword): "Communication, video, occurrence, stuck, communication system, quality, improved, level one".
[0200] In some embodiments, reference Figure 8 The process of obtaining the second instruction constraint condition (i.e., the process of parsing the passive intention of the equipment) includes:
[0201] S801, using MYSQL database to store the data set reflecting the attributes of the equipment that is updated regularly or in real time;
[0202] S802, analyzing and processing the data in the data set reflecting the attributes of the equipment in the ETL environment, and obtaining equipment failure time possibility information and equipment failure location possibility information according to the trend of the data; wherein the equipment failure time possibility information includes equipment failure time possibility probability value, and the equipment failure location possibility information includes equipment failure location possibility probability value;
[0203] S803. In response to the equipment failure time possibility probability value and the equipment failure location possibility probability value reaching the preset threshold range, it can be determined that the equipment will fail or need some kind of maintenance operation, etc., and the corresponding equipment failure time possibility information and equipment failure location possibility information are used as the second instruction constraint condition.
[0204] The data set reflecting the attributes of the equipment includes the instruction set of each equipment operator when handling the equipment, the specific parameter data set of each equipment, the maintenance record data set of each equipment, the operation data set of each equipment, etc.
[0205] After acquiring the second instruction constraint condition, the second instruction constraint condition is segmented using the HMM word segmentation model to obtain a plurality of second instruction qualifiers.
[0206] In some embodiments, the process of forming the second interaction data is as follows: using a standard library to analyze the second intent keyword and multiple second instruction qualifiers, calculating the relevance of each second instruction qualifier to the second intent keyword; embedding the second instruction qualifier whose relevance meets preset conditions into the second intent keyword, and forming the second interaction data through topic model analysis.
[0207] Among them, the second intention keyword is at least one, and in the specific implementation, the second intention keyword is often multiple. When comparing the relevance of the second instruction qualifier with the second intention keyword, the multiple second intention keywords will be treated as a whole, that is, the multiple second instruction qualifiers will be compared for relevance with the whole, so as to reduce the number of operations of the standard library.
[0208] In specific implementation, the standard library can be the existing standard library difflib in Python. The second intent keyword and each second instruction qualifier are input into the standard library difflib, and the relevance of each second instruction qualifier to the second intent keyword can be obtained. The second instruction qualifier whose relevance meets the preset conditions is embedded in the second intent keyword, and the second integrated data is formed through the topic model analysis; the second integrated data is parsed using the IP-LDA model to determine the intention of the second user. For example, the second instruction qualifier is "communication, video, jamming, probability, high", and the second intent keyword is "communication, video, occurrence, jamming, communication system, quality, improvement, level one", and the formed integrated data is "communication, video, occurrence, jamming, probability, high, communication system, quality, improvement, level one". The second interaction data after the second integrated data is parsed using the IP-LDA model is: "Communication video jamming, communication system quality improvement level one". The second interaction data is the same as the second intent keyword, that is, the second user instruction issued by the second user is relatively accurate.
[0209] In some embodiments, the formation process of the interactive data is as follows: the first interactive data and the second interactive data are combined and processed to form interactive data; this process is the process of jointly parsing the four intentions of the first user's active intention, the first user's passive intention, the equipment's active intention, and the equipment's passive intention. After the combination, the final intention for equipment maintenance can be obtained. As described in the above embodiment, the first interactive data is: "The communication efficiency of equipment A does not meet the specified standard, and the communication system is at the lowest standard (Class A standard)", and the second interactive data is: "The communication video is stuck, and the quality of the communication system is improved by one level". By combining these two types of interactive data, the final intention for the equipment can be obtained: "The communication efficiency of equipment A does not meet the specified standard, and the video is stuck during communication, so the quality standard of the communication system of equipment A is improved to Class B".
[0210] In some embodiments, the process of acquiring mapping parameters and action data includes: using a mapping database to acquire mapping parameters and action data corresponding to the interaction data; this process is that after obtaining the final maintenance intention (i.e., interaction data) for equipment maintenance, it is necessary to map it into specific maintenance actions and maintenance instructions.
[0211] The mapping database may be a maintenance guide that includes most common maintenance action instructions and maintenance commands. The parsed equipment maintenance intention is mapped according to the maintenance guide to form the final maintenance action and maintenance command.
[0212] The action data may be a specific solution in the maintenance guide for the problem mentioned in the interaction data, and the mapping parameters may be relevant parameters in the maintenance guide during the process of implementing the solution.
[0213] For example, after the joint analysis of four intents, the equipment maintenance intent obtained is: "The communication efficiency of equipment A has not reached the specified standard, and the video has been stuck during communication, so the quality standard of the communication system of equipment A is upgraded to Class B". The action data obtained in the maintenance guide is: "Abnormal radiation range: Use detection tools to check whether the antenna is damaged, observe whether the antenna is blocked, check whether the antenna-related lines are cracked, etc., Class B communication"; the mapping parameters obtained are "Delay is not higher than xxms, packet loss rate is not higher than xx%, blocking rate is not higher than xx%, jitter is not higher than xxms"". After obtaining the specific action data and mapping parameters, they are fed back to the local operators to allow them to perform specific operations. If the equipment has a high degree of intelligence and automation, the specific action data and mapping parameters can also be converted into specific machine codes and sent directly to the equipment end for operation and maintenance.
[0214] In addition, during the joint analysis of the four intentions, conflicts of intention may occur, such as: conflicts between the active intention and passive intention of the remote commander, and conflicts between the active intention of the equipment and the passive intention of the equipment. In response to possible conflicts of intention, the present application proposes an intention conflict handling mechanism. When the active intention and the passive intention conflict, the system will send a reconfirmation signal to the sender of the active intention. Before obtaining a clear signal to change the active intention, the passive intention will be subject to the active intention for intent analysis. When the active intention of the remote commander conflicts with the active intention of the local operator, the system determines the level of the remote commander according to the setting. When the system's set level is reached, the active intention of the local operator obeys the active intention of the remote commander, and the final execution result is sent to the remote commander. On the contrary, the active intention of the remote commander obeys the active intention of the local operator, and the final execution result is sent to the local operator.
[0215] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0216] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0217] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an equipment intention analysis device based on artificial intelligence, referring to Fig. 9 , the device comprises:
[0218] The acquisition module 901 is configured to acquire user instruction information and instruction constraints of the user;
[0219] The data processing module 902 is configured to pre-process the user instruction information, and process the pre-processed user instruction information using a topic model to obtain intention keywords; and perform word segmentation processing on the instruction constraint conditions using a word segmentation model to obtain multiple instruction qualifiers;
[0220] The interaction data module 903 is configured to analyze the intent keyword and the plurality of instruction qualifiers using a standard library, calculate the relevance of each instruction qualifier to the intent keyword, embed the instruction qualifier whose relevance meets the preset conditions into the intent keyword, and form interaction data through topic model analysis;
[0221] A mapping module 904 is configured to obtain mapping parameters and action data corresponding to the interaction data using a mapping database;
[0222] The instruction module 905 is configured to issue control instructions to the equipment based on the mapping parameters and action data.
[0223] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0224] The device of the above embodiment is used to implement the corresponding equipment intention analysis method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0225] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the equipment intent analysis method described in any of the above embodiments is implemented.
[0226] Fig.10 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 use the bus 1050 to realize communication connection between each other within the device.
[0227] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0228] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented using software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0229] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0230] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication by wired means (such as USB, network cable, etc.) or by wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0231] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0232] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0233] The electronic device of the above-mentioned embodiment is used to implement the corresponding equipment intention analysis method in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0234] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the equipment intent analysis method described in any of the above embodiments.
[0235] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0236] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the equipment intent analysis method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0237] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0238] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0239] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0240] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. An equipment intention analysis method based on artificial intelligence, characterized in that: include: Obtain user instruction information and instruction constraints of the user; Preprocessing the user instruction information, and processing the preprocessed user instruction information using a topic model to obtain intent keywords; Using a word segmentation model to perform word segmentation processing on the instruction constraint condition to obtain a plurality of instruction qualifiers; Analyze the intent keyword and the plurality of instruction qualifiers using a standard library, and calculate the relevance between each instruction qualifier and the intent keyword; The instruction qualifiers whose relevance meets the preset conditions are embedded into the intent keywords, and the interaction data is formed through topic model analysis; Acquire mapping parameters and action data corresponding to the interaction data using a mapping database; issuing control instructions to the equipment based on the mapping parameters and the action data; The user includes a first user who remotely monitors the equipment and / or a second user who operates the equipment on site, and the instruction constraint condition includes a first instruction constraint condition reflecting the attribute of the first user and a second instruction constraint condition reflecting the attribute of the equipment; In which, in response to the user being the first user, the user instruction information is the first user instruction information, and the instruction constraint condition is the first instruction constraint condition and the second instruction constraint condition; the process of forming the interaction data includes: Acquire first user instruction information, a first instruction constraint condition, and a second instruction constraint condition; Preprocessing the first user instruction information, and processing the preprocessed first user instruction information using a topic model to obtain a first intention keyword; using a word segmentation model to perform word segmentation processing on the first instruction constraint condition and the second instruction constraint condition respectively to obtain a plurality of first instruction qualifiers and second instruction qualifiers; The first intent keyword and the first instruction qualifier and the second instruction qualifier are analyzed using a standard library to calculate the relevance of the first instruction qualifier, the second instruction qualifier and the first intent keyword; the first instruction qualifier and the second instruction qualifier whose relevance meets preset conditions are embedded in the first intent keyword, and interaction data is formed through topic model analysis.
2. The method according to claim 1, characterized in that In response to the user being the first user and the second user, the user instruction information is the first user instruction information and the second user instruction information, and the instruction constraint condition is the first instruction constraint condition and the second instruction constraint condition; The process of forming interaction data includes: Acquire first user instruction information, a first instruction constraint condition, and a second instruction constraint condition; Preprocessing the first user instruction information, and processing the preprocessed first user instruction information using a topic model to obtain a first intention keyword; using a word segmentation model to perform word segmentation processing on the first instruction constraint condition and the second instruction constraint condition respectively to obtain a plurality of first instruction qualifiers and second instruction qualifiers; Analyze the first intent keyword and the first instruction qualifier using a standard library to calculate the relevance of each of the first instruction qualifiers to the first intent keyword; Embedding a first instruction qualifier whose relevance meets a preset condition into the first intention keyword, and forming first interaction data through topic model analysis; The second user sends second user instruction information according to the first interaction data; Preprocessing the second user instruction information, and processing the preprocessed second user instruction information using a topic model to obtain a second intent keyword; Analyze the second intent keyword and each of the second instruction qualifiers using a standard library, and calculate the relevance of each of the second instruction qualifiers to the second intent keyword; The second instruction qualifier whose relevance meets the preset conditions is embedded in the second intention keyword, and the interaction data is formed through topic model analysis.
3. The method according to claim 1, characterized in that In response to the user being the first user and the second user, the user instruction information is the first user instruction information and the second user instruction information, and the instruction constraint condition is the first instruction constraint condition and the second instruction constraint condition; The process of forming interaction data includes: Obtaining first user instruction information, second user instruction information, first instruction constraint condition and second instruction constraint condition; Preprocessing the first user instruction information and the second user instruction information respectively, and using the topic model to process the preprocessed first user instruction information to obtain a first intent keyword, and processing the preprocessed second user instruction information to obtain a second intent keyword; using the word segmentation model to perform word segmentation processing on the first instruction constraint condition and the second instruction constraint condition respectively, to obtain a plurality of first instruction qualifiers and second instruction qualifiers; Using the topic model to analyze the first intent keyword and the first instruction qualifier, the second intent keyword and the second instruction qualifier, respectively, and calculate the relevance of each of the first instruction qualifiers to the first intent keyword, and the relevance of each of the second instruction qualifiers to the second intent keyword; Embed the first instruction qualifier whose relevance meets the preset condition into the first intention keyword, and form the first interaction data through the topic model analysis; embed the second instruction qualifier whose relevance meets the preset condition into the second intention keyword, and form the second interaction data through the topic model analysis; The first interaction data and the second interaction data are combined to form interaction data.
4. The method according to any one of claims 1 to 3, characterized in that: Constructing a data set for a GRU+attention mechanism model including multiple data terms; obtaining the first instruction constraint condition includes the following steps: The first user instruction information is updated into a data set for a bidirectional GRU+attention mechanism model; Calculate the relevance between each of the data terms and the first user instruction information using a standard library, and use the data terms whose relevance meets preset conditions as initial first instruction constraints; The initial first instruction constraint condition is processed using a pre-trained bidirectional GRU+attention mechanism model to obtain a first instruction constraint condition.
5. The method according to claim 4, characterized in that The training process of the bidirectional GRU+attention mechanism model includes: (1) Using the word vector matrix W, the bidirectional GRU+attention mechanism model encodes each data entry in the data set into a vector (2) Using the initial bidirectional GRU+attention mechanism model, the hidden state h of each data entry is calculated it , (3) Input the vector output by the initial bidirectional GRU+attention mechanism model into the fully connected layer of the initial bidirectional GRU+attention mechanism model to obtain its hidden representation u it , u it =tanh(W w h it +b w ) Among them, u it =tanh(W w h it +b w )、u it =tanh(W w h it +b w ) are the weight and bias of the attention mechanism respectively; (4) Calculate the normalized weight α through the sofamax function it , Among them, u w is the contribution of the word to the sentence; (5) Normalized weight α it Perform weighted summation to obtain the structural information A of the data entry i , and the structural information A i The sentence indicates h si , A i =∑ t α it h it ;h si =tanh(A i ); (6) Use the softmax function to obtain the predicted value y of the data entry i , Among them, W si is the matrix weight, b si is the bias, Indicates that in y i The conditional probability of (7) Calculate the predicted value y of the data entry i With the true value t i The loss function J(θ) is Wherein, m is the total number of data entries; t i represents the true value of the data entry; λ is the L2 regularization parameter; θ is the function parameter; (8) Minimize the loss function J(θ) and obtain the bidirectional GRU+attention mechanism model.
6. The method according to claim 1, characterized in that The step of obtaining the second instruction constraint condition comprises: Using MYSQL database to store the data set reflecting the attributes of the equipment which is updated regularly or in real time; Analyzing and processing the data in the data set reflecting the equipment attributes in the ETL environment, and obtaining equipment failure time possibility information and equipment failure location possibility information according to the trend of the data; wherein the equipment failure time possibility information includes an equipment failure time possibility probability value, and the equipment failure location possibility information includes an equipment failure location possibility probability value; In response to the equipment failure time possibility probability value and the equipment failure location possibility probability value reaching a preset threshold range, the corresponding equipment failure time possibility information and equipment failure location possibility information are used as the second instruction constraint condition.
7. An equipment intention analysis device based on artificial intelligence, characterized in that: include: An acquisition module is configured to acquire user instruction information and instruction constraints of a user; A data processing module is configured to pre-process the user instruction information and process the pre-processed user instruction information using a topic model to obtain intent keywords; Using a word segmentation model to perform word segmentation processing on the instruction constraint condition to obtain a plurality of instruction qualifiers; The interaction data module is configured to analyze the intent keyword and the plurality of instruction qualifiers using a standard library, calculate the relevance of each instruction qualifier to the intent keyword, embed the instruction qualifier whose relevance meets the preset conditions into the intent keyword, and form interaction data through topic model analysis; A mapping module, configured to obtain mapping parameters and action data corresponding to the interaction data using a mapping database; An instruction module, configured to issue control instructions to the equipment based on the mapping parameters and the action data; The user includes a first user who remotely monitors the equipment and / or a second user who operates the equipment on site, and the instruction constraint condition includes a first instruction constraint condition reflecting the attribute of the first user and a second instruction constraint condition reflecting the attribute of the equipment; In which, in response to the user being the first user, the user instruction information is the first user instruction information, and the instruction constraint condition is the first instruction constraint condition and the second instruction constraint condition; the interactive data module is further configured as: Acquire first user instruction information, a first instruction constraint condition, and a second instruction constraint condition; Preprocessing the first user instruction information, and processing the preprocessed first user instruction information using a topic model to obtain a first intention keyword; using a word segmentation model to perform word segmentation processing on the first instruction constraint condition and the second instruction constraint condition respectively to obtain a plurality of first instruction qualifiers and second instruction qualifiers; The first intent keyword and the first instruction qualifier and the second instruction qualifier are analyzed using a standard library to calculate the relevance of the first instruction qualifier, the second instruction qualifier and the first intent keyword; the first instruction qualifier and the second instruction qualifier whose relevance meets preset conditions are embedded in the first intent keyword, and interaction data is formed through topic model analysis.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.
