Unstructured power plant configuration information data mining method
Processing unstructured data through semantic parsing and deep learning models to extract nuclear power plant configuration information solves the problem of low information acquisition efficiency in existing technologies and achieves real-time and accuracy in nuclear power plant risk management.
Patent Information
- Application Number
- CN202410963854.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-15
AI Technical Summary
The existing nuclear power plant configuration risk management system is difficult to effectively extract and process unstructured power plant configuration information data, resulting in inefficient real-time risk assessment of risk monitoring tools and cumbersome manual analysis.
Using semantic analysis methods, by building professional corpora, word embedding models and deep learning models, we can extract device coding and status information to achieve structured processing and automatic identification of unstructured data, reducing the complexity of manual analysis.
It improves the timeliness and accuracy of obtaining power plant configuration information, reduces the difficulty of manual analysis, provides a basis for automatic identification and import of risk information, and supports real-time risk management of nuclear power plants.
Smart Images

Figure CN118779403A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of data mining, and in particular relates to a method for mining unstructured power plant configuration information data. Background Art
[0002] In order to better ensure the safe and stable operation of nuclear power plants, existing nuclear power plants require the establishment and application of a configuration risk management system to achieve effective control and management of the risk level of the power plant. Configuration risk management is a method of carrying out risk management of nuclear power plants by calculating risk indicators using a live probabilistic safety analysis model based on the actual operating configuration of the nuclear power plant (i.e. the status of each safety system, equipment and its necessary support systems in the nuclear power plant).
[0003] Configuration risk management is usually carried out using risk monitoring tools. Risk monitoring tools need to determine real-time risks based on the actual conditions of systems and components, thereby reflecting the current risk level of the power plant. Usually, it is necessary to input power plant configuration information such as equipment, status, and time, and output risk assessment results after calculation. Data such as nuclear power plant operator logs can comprehensively and timely record the status changes of power plant system equipment and are a reliable source of power plant configuration parameter information. However, since they are unstructured text data, it is difficult to extract power plant configuration information such as equipment and status. Summary of the invention
[0004] The purpose of the present invention is to provide a method for data mining of unstructured power plant configuration information, which can extract the equipment, status, control and other information from the unstructured text through semantic analysis, so as to effectively obtain the risk configuration information of the power plant, and serve as the basis for further automatic identification and import of risk information. The method can improve the timeliness of obtaining power plant configuration information and reduce the tediousness of manual analysis.
[0005] The technical solution of the present invention is as follows: A method for mining unstructured power plant configuration information data comprises the following steps:
[0006] Step 1: Perform semantic analysis on unstructured data, sort out the fixed coding combination forms and state description information, and form a professional corpus;
[0007] Step 2: Filter valid text data according to target identification content and cleaning rules, and remove data that does not contain target content;
[0008] Step 3: Make a dictionary;
[0009] Step 4: Build a word embedding model and train the word embedding model;
[0010] Step 5: Establish a code recognition rule based on string matching to extract the device code in the text and recognize and output it as a standard code format;
[0011] Step 6: Build a deep learning model consisting of a bidirectional long short-term memory neural network layer, an attention layer, a convolutional neural network layer, and a fully connected layer as a device state recognition model;
[0012] Step 7: Use the trained semantic recognition model for automatic recognition of text outside the corpus, obtain annotated data and perform manual inspection and correction, incorporate the corrected data set into the corpus, and further iterate the training and optimization of the model.
[0013] The unstructured data in step 1 includes power plant operator logs, work orders, and status reports.
[0014] The fixed code in step 1 is a device code, which is composed of a fixed number of letters and numbers.
[0015] The professional corpus in step 1 includes codes, names, professional operations and status vocabulary of process systems, equipment types, structures and facilities.
[0016] The cleaning rules in step 2 are matched and screened, and if it is determined that the data contains one or more target contents, it is retained as valid data and subjected to subsequent analysis; if the data does not contain the target contents, it is removed as invalid data.
[0017] The step 3 uses a combination of a Chinese general corpus and a nuclear power professional corpus to perform word segmentation, filters Chinese characters through Unicode encoding, processes English characters and Chinese characters separately, uses the open source word segmentation tool jieba to perform Chinese word segmentation, counts the number of times the vocabulary appears in the corpus and sorts it in descending order, and numbers it with Arabic numerals in order of word frequency, and uses the vocabulary as the key and the number as the value to create a dictionary.
[0018] The word segmentation in step 3 includes simple word segmentation, parallel word segmentation, and command line word segmentation. English characters include letters, numbers, and special symbols.
[0019] The step 4 uses a dictionary to represent the corpus in digital form, builds a word embedding model composed of multiple fully connected layers, and trains the word embedding model; the input of the word embedding model is vocabulary and context, and the output is the probability of the vocabulary and context appearing at the same time. The above probability is maximized through sufficient iterative training to obtain a vocabulary vector representation with semantic features.
[0020] The word embedding models in step 4 include two word embedding models: Skip-gram and CBOW.
[0021] The step 5 first analyzes the standard equipment coding format (unit number (one digit) + process system code (three uppercase English letters) + digital number (three or four digits) + equipment type code (two or three uppercase English letters)), and uses regular expressions to match regular English character strings to achieve the recognition of standard equipment codes.
[0022] The step 6 uses ASCII encoding to filter the English characters in the text and replaces them with the Chinese placeholder "Chinese partition", and then replaces the Chinese placeholder corresponding to the device code identified in step 5 with "target device", thereby marking the position of the device code in the sentence, and converts the processed text into a vector input state recognition model using a dictionary. The model outputs the state corresponding to the device code, and uses the cross entropy loss function to evaluate the state of the model output according to the correct state manually marked. When the state output by the model is consistent with the correct state marked, the cross entropy loss function obtains a minimum value. The model is trained by manually annotated text data to minimize the loss function, so that the recognition accuracy of the model on the data set is continuously improved, and a complete semantic recognition model is obtained.
[0023] The beneficial effects of the present invention are: (1) effective mining and intelligent semantic recognition of unstructured data are realized, and the required target parameter information can be extracted from natural language text and output as structured data;
[0024] (2) The present invention proposes a semantic recognition model and a model training optimization method, which obtains more training data based on a combination of automatic labeling and manual correction, and can quickly improve the model precision and accuracy;
[0025] (3) The present invention will effectively reduce the difficulty of work for relevant data analysts, improve the timeliness and convenience of data acquisition and analysis, and provide a basis for the automatic identification and import of subsequent risk information;
[0026] (4) The present invention is universal and versatile for different power plants and reactor types, and can perform model training and label recognition based on data from different information systems in a targeted manner. It can expand the scope of data use, ensure the comprehensiveness of risk configuration information acquisition, and promote the establishment and application of a configuration risk management system. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flow chart of a method for mining unstructured power plant configuration information data provided by the present invention;
[0028] Figure 2 It is a deep learning model based on attention mechanism;
[0029] Figure 3 is the accuracy of model training;
[0030] Figure 4 Schematic diagram of the model optimization training method. DETAILED DESCRIPTION
[0031] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0032] The present invention applies artificial intelligence technology to the technical field of probabilistic safety analysis of nuclear power plants through a method for mining unstructured power plant configuration information data, performs data mining through a semantic recognition model, efficiently obtains target parameters required for risk analysis, reduces personnel workload, improves the convenience of obtaining power plant configuration information, and provides a basis for structured processing and automatic transmission of data; realizes effective extraction of unstructured power plant configuration information in log data, facilitates real-time online import of power plant configuration information into risk monitoring tools, thereby better ensuring the real-time and accuracy of risk analysis, which is of great significance to the risk management of nuclear power plants.
[0033] A method for mining unstructured power plant configuration information data comprises the following steps:
[0034] Step 1: Perform semantic analysis on unstructured data, sort out the fixed coding combination forms and status description information, and combine them with the nuclear power identification code manual and common nuclear power terms to form a professional corpus;
[0035] The unstructured data in step 1 includes power plant operator logs, work orders, and status reports. The fixed code is the equipment code, which is usually composed of a fixed number of letters and numbers.
[0036] The professional corpus in step 1 includes codes and names of process systems, equipment types, structures and facilities, professional operation and status vocabulary, etc.
[0037] Step 2: Set cleaning rules based on target recognition content and expert experience, filter valid text data, and remove data that does not contain target recognition content;
[0038] The cleaning rules in step 2 are matched and screened to determine if they contain one or more target identification contents, such as device codes, and are retained as valid data for subsequent analysis; if they do not contain the target contents, they are removed as invalid data.
[0039] Step 3: Make a dictionary
[0040] The word segmentation process is carried out by combining the Chinese general corpus and the nuclear power professional corpus. Chinese characters are filtered through Unicode encoding, and English characters and Chinese characters are processed separately. The open source word segmentation tool jieba is used to segment Chinese words. The number of times the words appear in the corpus is counted and sorted in descending order. Arabic numerals are numbered in order of word frequency, and a dictionary is created with the word as the key and the number as the value.
[0041] The word segmentation in step 3 includes simple word segmentation, parallel word segmentation, and command line word segmentation. English characters include letters, numbers, and special symbols.
[0042] Step 4: Build a word embedding model and train the word embedding model
[0043] The corpus is represented in digital form using a dictionary. A word embedding model consisting of multiple fully connected layers is built based on word2vec technology and the open source machine learning framework pytorch, and the word embedding model is trained.
[0044] The input of the word embedding model is the word and the context, and the output is the probability of the word and the context appearing at the same time. The above probability is maximized through sufficient iterative training to obtain a word vector representation with semantic features.
[0045] The word embedding models in step 4 include two word embedding models: Skip-gram and CBOW.
[0046] Step 5: Establish a code recognition rule based on string matching to extract the device code in the text and recognize and output it as a standard code format.
[0047] First, the standard equipment coding format (unit number (one digit) + process system code (three uppercase English letters) + digital number (three or four digits) + equipment type code (two or three uppercase English letters)) is analyzed, and regular expressions are used to match regular English strings to achieve the recognition of standard equipment codes. For the recognition of non-standard equipment coding formats such as multiple equipment abbreviations and abbreviations with special symbols, the characters before and after the special symbols are located and matched, and the repeated and non-repeated content in the front and back strings are reorganized separately to restore them to standard equipment codes.
[0048] Step 6: Using the open source machine learning framework pytorch, combined with self-attention and collaborative attention mechanisms, a deep learning model consisting of a bidirectional long short-term memory neural network (BiLSTM) layer, an attention layer, a convolutional neural network (CNN) layer, and a fully connected layer is built as a device state recognition model.
[0049] Use ASCII encoding to filter the English characters in the text and replace them with the Chinese placeholder "Chinese partition", and then replace the Chinese placeholder corresponding to the device code identified in step 5 with "target device", thereby marking the position of the device code in the sentence. Use a dictionary to convert the processed text into a vector input state recognition model. The model outputs the state corresponding to the device code. Use the cross-entropy loss function to evaluate the state of the model output according to the correct state manually marked. When the state output by the model is consistent with the correct state marked, the cross-entropy loss function reaches a minimum value. Through training with manually annotated text data to minimize the loss function, the recognition accuracy of the model on the data set is continuously improved, and a complete semantic recognition model is obtained to overcome the ambiguity in text expression and realize functions such as entity positioning and state recognition;
[0050] Step 7: Use the trained semantic recognition model for automatic recognition of text outside the corpus, obtain annotated data and perform manual inspection and correction, incorporate the corrected data set into the corpus, and further iterate the training and optimization of the model.
[0051] Example
[0052] like Figure 1 As shown, taking the operator log of a nuclear power plant as the research object, identifying the equipment and the corresponding status therein, the present invention provides a method for mining unstructured power plant configuration information data, comprising the following steps:
[0053] Step 1: Perform semantic analysis on unstructured data, sort out the fixed coding combination forms and status description information, and build a professional corpus and dictionary based on the nuclear power identification code manual and common nuclear power terms.
[0054] Equipment codes include unit number, process system code, digital number and equipment type code, such as 2RCP003PO, 1PTR177VB. Equipment status covers a variety of operations and action categories, such as equipment exit status: isolation, listing, shutdown, decommissioning, exit, unavailable, closed, power off, disconnected, etc.; equipment return status: release of isolation, delisting, commissioning, operation, recommissioning, opening, starting, starting, available, recovery, power supply, etc.
[0055] Step 2: Set cleaning rules based on target recognition content and expert experience, filter valid text data, and remove data that does not contain target content.
[0056] For example, texts that do not contain device codes or English strings are directly removed and deduplication is performed on the texts, and the remaining texts are treated as valid texts.
[0057] Step 3: Use a combination of Chinese general corpus such as Jieba Corpus and nuclear power professional corpus such as Nuclear Power Process System Identification Code to perform word segmentation, filter Chinese characters through Unicode encoding, separate English characters and Chinese characters, use open source word segmentation tool Jieba to perform Chinese word segmentation, count the number of times the vocabulary appears in the corpus and sort it in descending order, number it with Arabic numerals in order of word frequency, use the vocabulary as the key and the number as the value to create a dictionary
[0058] Step 4: Use the dictionary to represent the corpus in digital form, build a word embedding model consisting of multiple fully connected layers based on word2vec technology and the open source machine learning framework pytorch, and train the word embedding model. The input of the word embedding model is vocabulary and context, and the output is the probability of the vocabulary and context appearing at the same time. Maximize the above probability through sufficient iterative training to obtain a vocabulary vector representation with semantic features.
[0059] Word embedding models include Skip-gram and CBOW. The Skip-gram model can predict the probability distribution of surrounding context words based on a central word. It minimizes the objective function by training a neural network to obtain the vector representation of each word. The advantage is that it can handle rare words, but the disadvantage is that the training speed is slow. The CBOW model predicts the central word by learning the average vector of the context words, thereby generating a vector representation of each word. The advantage is that the training speed is fast, but the disadvantage is that it is not suitable for processing rare words. In a method for mining unstructured power plant configuration information data of the present invention, both word embedding models are deployed and set to be selected preferentially.
[0060] Step 5: Establish a code recognition rule based on the string matching principle to extract the equipment code in the text and recognize and output it as a standard code format. First, analyze the standard equipment code format (unit number (one digit) + process system code (three uppercase English letters) + digital number (three or four digits) + equipment type code (two or three uppercase English letters)), such as 2ATE202PO, and use regular expressions to match the English string that conforms to the rules, so as to realize the recognition of the standard equipment code. For the recognition of non-standard equipment code formats such as 2DVI001 / 002ZV, locate and match the characters before and after the special symbols, and reorganize the repeated content and non-repeated content in the front and back strings to restore them to the standard equipment code, that is, 2DVI001ZV and 2DVI 002ZV.
[0061] Step 6: Using the open source machine learning framework pytorch, combined with self-attention and collaborative attention mechanisms, a deep learning model consisting of a bidirectional long short-term memory neural network (BiLSTM) layer, an attention layer, a convolutional neural network (CNN) layer, and a fully connected layer is built as a device state recognition model. English characters in the text are filtered using ASCII encoding and replaced with the Chinese placeholder "Chinese partition", and then the Chinese placeholder corresponding to the device code identified in step 5 is replaced with "target device" to mark the position of the device code in the sentence. The processed text is converted into a vector input state recognition model using a dictionary. The model outputs the state corresponding to the device code, and the cross entropy loss function is used to evaluate the state output by the model according to the manually marked correct state. When the state output by the model is consistent with the marked correct state, the cross entropy loss function achieves a minimum value. Through training with manually annotated text data to minimize the loss function, the recognition accuracy of the model on the data set is continuously improved, and a perfect semantic recognition model is obtained to overcome the ambiguity in text expression and realize functions such as entity positioning and state recognition.
[0062] like Figure 2 As shown, the unstructured power plant configuration information data mining method of the present invention first obtains the word vector of the text through preprocessing and feature engineering, and then automatically encodes and infers the text through a long short-term memory artificial neural network (LSTM) and a CNN network hybrid unit. In the inference process, two attention mechanisms, self-attention and collaborative attention, are used to emphasize the matching degree of different sentences and words in the text. Finally, the final recognition result is obtained through a fully connected layer and a SoftMax classifier. Among them, the bidirectional LSTM (BiLSTM) encoding layer can simultaneously consider the context information and capture long-distance dependencies. The attention mechanism layer can dynamically select the most important part of the input according to the current task. The CNN layer can extract local features in the text. By combining the BiLSTM layer, the attention layer, and the CNN layer, an end-to-end entity recognition model can be obtained to compare the recognition results and labels and realize model training.
[0063] 3500 manually annotated log data were input into the model for preliminary learning and training, where 80% of the annotated data were used as training set input and 20% of the annotated data were used as test set input. The following results were obtained: Figure 3 The accuracy curve is shown. Figure 3The horizontal axis in is the number of training rounds, and the vertical axis is the accuracy of model recognition compared with manual annotation. After each round of training, the accuracy of the training set and the test set will be given. The accuracy of the test set can reflect the training effect of the current model. The model performs iterative training by default, and automatically saves the model parameters with the best performance on the current test set, that is, the highest accuracy. This parameter is automatically read during the next training, and training starts with a new training set from the end position of the previous training.
[0064] Step 7: Use the trained semantic recognition model for automatic recognition of text outside the corpus, obtain annotated data and perform manual inspection and correction, incorporate the corrected data set into the corpus, and further iterate the training and optimization of the model.
[0065] Input the log text content, and output the semantic recognition results of device code and device status, as shown in Table 1. Figure 4 As shown in the figure, the semantic recognition model after preliminary model training is used for automatic recognition of device codes and device status in log texts. After obtaining the automatically annotated data, manual inspection and correction can be performed to efficiently obtain more log annotated data for further training and optimization of the model. After a large amount of annotated training data is input, the model can obtain better parameter features and ultimately achieve high-precision semantic recognition semantic functions.
[0066] Table 1 Operator log data mining results
[0067]
[0068]
[0069]
[0070] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Based on the unstructured power plant configuration information data mining method of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the scope of protection of the present invention.
Claims
1. A method for mining unstructured power plant configuration information data, characterized in that: The following steps are involved: Step 1: Perform semantic analysis on unstructured data, sort out the fixed coding combination forms and state description information, and build a professional corpus and dictionary; Step 2: Filter valid text data according to target identification content and cleaning rules, and remove data that does not contain target content; Step 3: Make a dictionary; Step 4: Build a word embedding model and train the word embedding model; Step 5: Establish a code recognition rule based on string matching to extract the device code in the text and recognize and output it as a standard code format; Step 6: Build a deep learning model consisting of a bidirectional long short-term memory neural network layer, an attention layer, a convolutional neural network layer, and a fully connected layer as a device state recognition model; Step 7: Use the trained semantic recognition model for automatic recognition of text outside the corpus, obtain annotated data and perform manual inspection and correction, incorporate the corrected data set into the corpus, and further iterate the training and optimization of the model.
2. The method for mining unstructured power plant configuration information data according to claim 1, characterized in that: The unstructured data in step 1 includes power plant operator logs, work orders, and status reports.
3. The method for mining unstructured power plant configuration information data according to claim 1, characterized in that: The fixed code in step 1 is a device code, which is composed of a fixed number of letters and numbers.
4. The method for mining unstructured power plant configuration information data according to claim 1, characterized in that: The professional corpus and dictionary in step 1 include codes, names, professional operations and status vocabulary of process systems, equipment types, structures and facilities.
5. The method for mining unstructured power plant configuration information data according to claim 1, characterized in that: The cleaning rules in step 2 are matched and screened, and if it is determined that the data contains one or more target contents, it is retained as valid data and subjected to subsequent analysis; if the data does not contain the target contents, it is removed as invalid data.
6. The method for mining unstructured power plant configuration information data according to claim 1, characterized in that: The step 3 uses a combination of a Chinese general corpus and a nuclear power professional corpus to perform word segmentation, filters Chinese characters through Unicode encoding, processes English characters and Chinese characters separately, uses the open source word segmentation tool jieba to perform Chinese word segmentation, counts the number of times the vocabulary appears in the corpus and sorts it in descending order, and numbers it with Arabic numerals in order of word frequency, and uses the vocabulary as the key and the number as the value to create a dictionary. The word segmentation in step 3 includes simple word segmentation, parallel word segmentation, and command line word segmentation. English characters include letters, numbers, and special symbols.
7. The method for mining unstructured power plant configuration information data according to claim 1, characterized in that: The step 4 uses a dictionary to represent the corpus in digital form, builds a word embedding model composed of multiple fully connected layers, and trains the word embedding model; the input of the word embedding model is vocabulary and context, and the output is the probability of the vocabulary and context appearing at the same time. The above probability is maximized through sufficient iterative training to obtain a vocabulary vector representation with semantic features.
8. The method for mining unstructured power plant configuration information data according to claim 7, characterized in that: The word embedding models in step 4 include two word embedding models: Skip-gram and CBOW.
9. The method for mining unstructured power plant configuration information data according to claim 1, characterized in that: The step 5 first analyzes the standard equipment coding format (unit number (one digit) + process system code (three uppercase English letters) + digital number (three or four digits) + equipment type code (two or three uppercase English letters)), and uses regular expressions to match regular English character strings to achieve the recognition of standard equipment codes.
10. The method for mining unstructured power plant configuration information data according to claim 1, characterized in that: In step 6, the English characters in the text are filtered using ASCII encoding and replaced with the Chinese placeholder "Chinese隔断". Then, the Chinese placeholder corresponding to the device code identified in step 5 is replaced with "target device", thereby marking the position of the device code in the sentence. The processed text is converted into a vector using a dictionary and input into the state recognition model. The model outputs the state corresponding to the device code. The cross-entropy loss function is used to evaluate the state output by the model based on the correctly marked state manually. When the state output by the model is consistent with the marked correct state, the cross-entropy loss function obtains a minimum value. The model is trained using the manually annotated text data to minimize the loss function, continuously improving the recognition accuracy of the model on the dataset, and obtaining a perfect semantic recognition model.
