Rotary machinery intelligent operation and maintenance diagnosis method based on generative large language model

The intelligent operation and maintenance diagnosis method based on the generative large language model is used to diagnose rotating machinery, which solves the problems of low diagnostic efficiency and high cost caused by relying on manual judgment and data analysis in the existing technology, and realizes more efficient rotating machinery. Condition diagnosis and repair.

CN118536987APending Publication Date: 2024-08-23BEIJING UNIV OF CHEM TECH
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411001445.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing rotating machinery diagnostic systems rely on large amounts of data analysis and manual subjective judgment, and lack a priori maintenance reports as background knowledge, resulting in low diagnostic efficiency and high maintenance costs.

Method used

An intelligent operation and maintenance diagnosis method based on a generative large language model is adopted. By preprocessing, text encoding and rotation position encoding of rotating machinery data information, and adding a digital head attention mechanism and computing module to the generative large language model, the system utilizes The pre-trained model is fine-tuned to generate diagnostic results.

Benefits of technology

It improves the accuracy and timeliness of diagnosis of rotating machinery status, reduces production risks and maintenance costs, and reduces the complexity and cost of model development and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536987A
    Figure CN118536987A
Patent Text Reader

Abstract

The embodiment of the invention discloses a rotating machine intelligent operation and maintenance diagnosis method based on a generative large language model. The method comprises the following steps that data information of a rotating machine is preprocessed; performing text coding and rotating position coding on the preprocessed rotating machinery data information; adding a digital head attention mechanism for the generative large language model; and adding a calculation module to an output layer of the generative large language model, and calculating an output result of the generative large language model to obtain a diagnosis result. According to the method, a universal pre-training model is used, adaptive adjustment only needs to be carried out for specific tasks in the fine adjustment stage, and the complexity and cost of development and maintenance of different models are reduced. By introducing the LLM, the diagnosis accuracy and timeliness of the state of the rotating machine are expected to be improved, so that the production risk and the maintenance cost are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of rotating machinery operation and maintenance, and in particular to a rotating machinery intelligent operation and maintenance diagnosis method based on a generative large language model. Background Art

[0002] In industrial production, rotating machinery such as engines, pumps, and fans play a key role in promoting the smooth operation of production lines. However, the failure of these equipment may lead to production interruptions, high maintenance costs, and shortened equipment life. In order to reduce these risks, effective operation and maintenance of rotating machinery becomes particularly critical.

[0003] In recent years, the development of rotating machinery diagnostic systems has relied on some traditional methods, such as using statistical models to describe the behavior of mechanical systems, or using supervised learning methods to train models with known fault samples to analyze and predict system performance. However, these methods have some disadvantages. In some cases, traditional mechanical diagnostic systems may require human intervention, relying on large amounts of data analysis or human subjective judgment of the system's operating status and providing maintenance recommendations. The diagnosis of the operating status of rotating machinery mainly relies on the results of large amounts of data analysis, or on human subjective maintenance recommendations, and lacks a large number of prior maintenance reports as background knowledge. Summary of the invention

[0004] In order to solve the existing technical problems, the embodiment of the present application provides a rotating machinery intelligent operation and maintenance diagnosis method based on a generative large language model, and the technical solution is as follows:

[0005] In a first aspect, a rotating machinery intelligent operation and maintenance diagnosis method based on a generative large language model is provided, comprising the following steps:

[0006] Preprocess the rotating machinery information;

[0007] Carry out text encoding and rotation position encoding for the pre-processed rotating machinery data information;

[0008] Add digital head attention mechanism to generative large language models;

[0009] A calculation module is added to the output layer of the generative large language model, and the output result of the generative large language model is calculated to obtain a diagnosis result.

[0010] Furthermore, the preprocessing of the rotating machinery data information includes:

[0011] Load the pre-trained initial vocabulary;

[0012] Traversing and looping all the rotating machinery data information, removing the information that affects the prediction answer of the generative large language model, and obtaining preprocessed rotating machinery data information;

[0013] Setting text tags for the initial vocabulary;

[0014] An updated vocabulary is generated according to the initial vocabulary and the preprocessed rotating machinery data information.

[0015] Further, generating an updated vocabulary based on the initial vocabulary and the preprocessed rotating machinery data information includes:

[0016] Initialize the initial word library and set the size of the initial word library to 32000;

[0017] The size of the newly added word library is set to 4000, and the pre-processed rotating machinery data information is input into the word segmentation model and trained using the BPE algorithm to obtain a newly added word library;

[0018] The newly added word library is merged with the initial word library to obtain the updated word library.

[0019] Furthermore, the initial vocabulary includes a vocabulary file, and the vocabulary file is generated from a plurality of open source Chinese instruction training data sets.

[0020] Furthermore, when the pre-trained initial word library is loaded, any one of the plurality of open source Chinese instruction training data sets is selected for loading;

[0021] The text encoding and rotation position encoding of the pre-processed rotating machinery data information includes:

[0022] Add tags to pre-processed rotating machinery data information;

[0023] Generate a token sequence according to the updated vocabulary, the open source Chinese instruction training data set and the pre-processed rotating machinery data information after adding tags;

[0024] Performing RoPE encoding according to the token sequence;

[0025] Generate a mask matrix.

[0026] Furthermore, the step of adding a mark to the pre-processed rotating machinery data information includes:

[0027] Adding sentence tags to each sentence in the preprocessed rotating machinery data information to mark the beginning and end of the sentence;

[0028] A digital marker is added to the numbers in each sentence in the preprocessed rotating machinery data information after adding sentence markers to identify the beginning and end of the numbers, and a padding marker is added after the end of the numbers to make the sentence length consistent.

[0029] Furthermore, the generative large language model is obtained by training using a token sequence after generating a token sequence through an initial vocabulary from a plurality of open source Chinese instruction training data sets that generate a vocabulary file.

[0030] Furthermore, the method further comprises:

[0031] The generative large language model is fine-tuned using the LoRA method.

[0032] Furthermore, the method of using LoRA to fine-tune the generative large language model includes:

[0033] The preprocessed rotating machinery data information and the open source Chinese instruction data set are input into the generative large language model for training, and the generative large language model is fine-tuned according to the training results.

[0034] Furthermore, the method further comprises:

[0035] When making predictions, the input format is structured.

[0036] The beneficial effects brought about by the technical solution provided in the embodiment of the present application are: in the embodiment of the present application, the rotating machinery data information is preprocessed; text encoding and rotational position encoding are performed for the preprocessed rotating machinery data information; a digital head attention mechanism is added to the generative large language model; a calculation module is added to the output layer of the generative large language model, and the output result of the generative large language model is calculated to obtain a diagnosis result. The present application uses a general pre-trained model, which only needs to be adaptively adjusted for specific tasks during the fine-tuning stage, reducing the complexity and cost of developing and maintaining different models. By introducing LLM, it is expected to improve the accuracy and timeliness of the diagnosis of the state of rotating machinery, thereby reducing production risks and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 It is a flow chart of a rotating machinery intelligent operation and maintenance method based on a generative large model provided in an embodiment of the present application;

[0039] Figure 2 It is a RoPE encoding process diagram provided in an embodiment of the present application;

[0040] Figure 3 is a diagram of the GQA attention mechanism provided in an embodiment of the present application;

[0041] Figure 4 It is a Decoder-Only architecture diagram provided in an embodiment of the present application;

[0042] Figure 5 This is a LoRA fine-tuning model diagram provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0044] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0045] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0046] In the description of this application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, "plurality" means two or more.

[0047] like Figure 1 As shown, the intelligent operation and maintenance method of rotating machinery based on the generative large model of the present application has the following specific steps:

[0048] (1) Preprocessing of rotating machinery related data

[0049] The relevant materials of rotating machinery include the fault diagnosis reports of centrifugal pumps, turbine compressor units, extrusion granulators, books related to fault diagnosis of rotating machinery, and the related vocabulary of rotating machinery. The fault diagnosis report mainly includes the equipment situation introduction, fault data analysis, detection analysis opinions and maintenance suggestions. The related vocabulary of rotating machinery includes the types of mechanical equipment (such as motors, pumps, etc.), mechanical parts names (such as bearings, rotors, etc.), fault types (such as misalignment, imbalance, etc.) and basic parameters (such as current, voltage, etc.) and their units.

[0050] 1.1 Load the pre-trained initial vocabulary and open source Chinese command training dataset

[0051] The initial word library includes a word list file generated from a plurality of open source Chinese instruction training data sets. When the initial word library is loaded, any one of the plurality of open source Chinese instruction training data sets is selected and loaded together with the initial word library.

[0052] 1.2 Preprocessing of rotating machinery related data

[0053] Iterate through all the rotating machinery related materials involved in model fine-tuning, remove the homepage, directory and pictures to remove the parts of the training data that affect the model's prediction answer.

[0054] 1.3 Setting text tags

[0055] Seven text markers are set for the initial vocabulary, which are the beginning of sentences (BOS): <s> ", End of Sentence (EOS):"< / s> "、Number start (NUM_START):" <n> "、Number end (NUM_END):"< / n> "、Padding mark (PAD): " "、Proper noun start marker: " <t>" and the closing tag " <t / > ". NUM_START and NUM_END are used to mark numbers in the text so that the numbers can be noticed during subsequent model training. The proper noun marker is used to map the corresponding formula in the subsequent calculation module. PAD is used when the text is input into the model in batches. Each text sequence in these batches needs to be adjusted to the same length so that a matrix can be constructed for parallel processing.

[0056] 1.4 Generate and update the vocabulary

[0057] Initialize the initial vocabulary. According to past experience, set the size of the initial vocabulary to 32,000. Then set the size of the newly added vocabulary to 4,000. Use the BPE (Byte Pair Encoding) algorithm to input the preprocessed rotating machinery related data into the word segmentation model, train the word segmentation model, and then record the training results in the newly added vocabulary. Then merge the newly added vocabulary with the initial vocabulary to obtain an updated vocabulary, so as to achieve the effect of expanding the vocabulary.

[0058] The process of the BPE algorithm is to treat each character in the corpus as a separate token, count the frequency of character pairs in the vocabulary, and merge the character pairs with the highest frequency into a new character; repeat the merging of characters until the predetermined vocabulary size is reached. The merging process can be expressed by the following formula:

[0059] S'=S-{x,y}+{xy}.

[0060] Among them, "-" means deletion and "+" means addition. This formula means replacing the character pair "x" and "y" with a new character "xy".

[0061] The new vocabulary in the updated vocabulary is decomposed into tokens represented by numbers. Each token is mapped to an integer corresponding to the word fragment learned by the model. The encoding range is from 0 to the size of the new vocabulary minus 1. The whole process is completed through the index of the vocabulary.

[0062] (2) Text encoding and rotational position encoding (RoPE) for pre-processed rotating machinery related data

[0063] The maximum text length of each sentence of the preprocessed rotating machinery related data is 1024, that is, the number of words in the vocabulary contained in each sentence is 1024.

[0064] 2.1 Add special marks to sentences

[0065] Add " <s> "and"< / s> ", marking the beginning and end of the sentence. In particular, the content of each fault diagnosis report is modified into a dialogue form and composed into a data, in which the equipment situation introduction and fault data analysis part are the question part, the detection analysis opinions and maintenance suggestions are the answers, and { <s> Human: ...< / s> <s> Assistant: ...< / s> } format.

[0066] For example:

[0067] { <s>Human: Equipment overview:…

[0068] Fault data analysis:…< / s>

[0069] <s>Assistant: Test analysis opinion:…

[0070] Maintenance suggestions:...< / s> }

[0071] 2.2 Add special marks for numbers and fill marks

[0072] Add special marks to both ends of numbers in pre-processed rotating machinery related data" <n> "and"< / n> ", so as to increase the proportion of the importance of the digital part in the sentence during subsequent model training.

[0073] For example, "The 3Vv vibration frequency value of the pump end in the vertical direction is maintained at 1.6~2.4mm / s,..." After marking, the text will become: <s>The 3Vv vibration frequency value in the vertical direction of the pump end is kept at <n>1.6 <n / > ~ <n> 2.4< / n> mm / s< / n> < / s> < / t> …,in The number is the maximum text length of each sentence minus the number of words in the sentence.

[0074] 2.3 Encoding the text

[0075] Generate a token sequence based on the updated vocabulary in step 1.4, the open source Chinese instruction training dataset loaded in step 1.1, and the pre-processed rotating machinery related data after adding tags in steps 2.1 and 2.2, such as the text: <s>The 3Vv vibration frequency value in the vertical direction of the pump end is kept at <n>1.6 <n / > ~ <n> 2.4< / n> mm / s< / n> < / s> …, the generated token integer sequence is: [0,1,2,3,…], and the number of integers is 1024. Each token of the text is mapped to a real vector through the embedding layer, where the real vectors of all words form an embedding matrix. The number of rows of the embedding matrix is ​​equal to the size of the vocabulary, and the number of columns is equal to the dimension of the embedding vector output, 4096.

[0076] 2.4 Add RoPE to text

[0077] RoPE (Rotary Position Embedding) is a position encoding method that can integrate relative position information into the self-attention calculation and improve the performance of the transformer architecture. Before the self-attention calculation, the word embedding vector output by the embedding layer is used to calculate the q, k, and v vectors while adding the position information. The function formula is expressed as follows:

[0078]

[0079] Where m and n are absolute positions.

[0080] Considering that the core calculation of Attention is the inner product:

[0081]

[0082] where d k is the dimension of the word embedding vector.

[0083] Therefore, the f(*) transformation we are looking for should have the following characteristics:

[0084]

[0085] Treat the two-dimensional vector of absolute position m as a complex number and multiply it by e imθ , we can get that the transformation f(*) is equal to a vector multiplied by a rotation matrix, and f(*) is expressed as follows:

[0086]

[0087] Where W (q,k) is the change matrix of the self-attention mechanism calculation matrix K and Q, Θ is the angular coordinate corresponding to the absolute coordinate m, is the rotation matrix:

[0088]

[0089] in It is a bit-wise matrix multiplication operation.

[0090] RoPE encoding process is as follows Figure 2 As shown in the figure, the specific process is: for each word embedding vector in the token sequence, first calculate its corresponding query and key vectors, then calculate the corresponding rotation position encoding for each token position, then apply rotation transformation to the elements of the query and key vectors at each token position in pairs, and finally calculate the inner product between the query and key to obtain the calculation result of the self-attention mechanism.

[0091] 2.5 Generate mask matrix

[0092] For the decoder model, a mask is needed to prevent label leakage, so an upper triangular mask matrix is ​​made to ensure that when predicting the word at the current position, the model can only rely on the generated words, not on the words at the later positions. When calculating the self-attention mechanism, this upper triangular mask matrix will be applied to the softmax (normalized exponential function) operation to limit the model's focus to the generated part.

[0093] (3) Add a text-based digital head attention mechanism to the model

[0094] The basic model of this application is a Decoder-Only model with 32 decoder blocks, which has been pre-trained. The basic model is trained by using token sequences after generating token sequences from multiple open source Chinese instruction training data sets that generate initial vocabulary.

[0095] First, we perform text encoding and rotation position encoding for multiple open source Chinese instruction training datasets based on the initial vocabulary. The initial vocabulary contains only two text tags: <s> "and"< / s> "; During the training process, the optimizer used is AdamW, where the hyperparameter β 1 =0.9,β 2 =0.95, eps=10 -5 ; Use cosine annealing learning rate to help the basic model converge better, where the hyperparameter initial learning rate LR=3.0×10 -4 , a warmup is performed every 2000 steps, and finally decays to 10% of the peak learning rate.

[0096] In each block, the normalization method is Root Mean Square Layer Normalization (RMSNorm), and the activation function is SwiGLU activation function in the feed-forward layer. There are 32 attention heads in each attention block, and the attention mechanism uses GQA (Group-Query Attention), as shown below: Figure 3 As shown in the figure. In each attention head, Q is divided into 32 groups, and the number of Q in each group is 128. The dimensions of K and V are 32, corresponding to each group of Q. In particular, the last block adds a new attention head, which is only used to train the digital module in the text, so there are 33 groups of Q in the last block. The specific Decoder-Only architecture is as follows Figure 4 shown.

[0097] The Pre-Norm training method is used, that is, layer normalization is performed before Add, and RMS Norm is used for normalization. The calculation method is:

[0098]

[0099]

[0100] Among them, a i is the i-th element in the initial vector, RMS(a) is the root mean square of vector a, is the standardized i-th element, g i is the gradient.

[0101] Add a new attention head to the last block of the model and add logic control to freeze the model when fine-tuning it. <n> "When the mark is reached, start adjusting parameters and read "< / n> " mark, stop adjusting parameters and focus on the numerical part of the text.

[0102] (4) Add a logical calculation link to the output layer of the model

[0103] The calculation methods and formulas related to rotating machinery are added to a new module (calculation module), and the calculation formulas include the calculation formulas for the characteristic frequency of bearing faults, etc.

[0104] Add logic to the calculation module: when the model reads the word vector <t>"and" <t / > "When a word is marked, record the proper noun and search for it in the subsequent input tokens. <n> "and"< / n> " tag, records the data between the tags, caches them in a list, and when all the cached data satisfy the variables required for a formula calculation, calculates the result and returns the result and the mapped noun to the model for generating subsequent text.

[0105] (5) Fine-tune the Decoder-Only model using the LoRA method

[0106] like Figure 5 As shown, the rotating machinery related data preprocessed in step 1.2 and the open source Chinese instruction training data set loaded in step 1.1 are input into the model for model fine-tuning.

[0107] First freeze the pre-trained model parameters , and then add a trainable bypass matrix (low-rank separable matrix) Δ to each block of Decoder-Only W , then add the bypass output and the initial path output to the network, and only train these newly added bypass matrix parameters. W It consists of two matrices A and B, as shown in Figure 5 shown.

[0108] A is responsible for dimensionality reduction, B is responsible for dimensionality increase, the dimension (rank) of the middle layer is r, and the process can be expressed as:

[0109]

[0110] Where d is the input dimension and k is the output dimension. During the training process, q, k, and v are regarded as a module respectively. A trainable rank decomposition matrix is ​​injected into each module, and the initial q, k, and v are replaced by the LoRA matrix. The model is trained by the gradient descent optimization method.

[0111] The output of K, Q, V of the self-attention layer will become:

[0112]

[0113] Where X is the input matrix K, Q, V, bias is the bias, lora alpha is the LoRA hyperparameter, lora rank The rank r of the hyperparameter matrix, and They are matrices A and B respectively.

[0114] Specifically, the LoRA hyperparameters have the rank of the matrix lora rank : 8. Random loss rate: lora dropout : 0.05, nonlinearity in low-rank matrices lora alpha :16.

[0115] During training, the model predicts the next token and then compares this prediction with the actual next token (in labels) to calculate the cross entropy loss. This loss value is used as a signal for backpropagation to update the weights of the model. Set the number of iterations, and when the target number is reached, fine-tuning ends.

[0116] (6) Add prompt project

[0117] When predicting the model, the input format is structured. Specifically, the input should include the basic parameters of the rotating machinery, operating conditions, etc., and the sentence format is {"professional term": "number"}.

[0118] (7) After the model is trained, test it

[0119] 7.1 Input the following content to the model

[0120] Brief introduction to equipment: The equipment of a certain compressor unit consists of a steam turbine (condensing type, elliptical tile), a compressor, and a supercharger.

[0121] ① Fault data analysis: When the unit is started, the vibration values ​​change synchronously with the speed, and the vibration trend is within the allowable range; the frequency spectrum is mainly dominated by the turbine rotation frequency; when the unit speed increases to 4347rpm, with the increase of the load of the booster and compressor at both ends, the vibration values ​​at both ends of the turbine increase accordingly, and the frequency spectrum is mainly dominated by the rotation frequency and a small amount of 20.39HZ low-frequency fluctuations, and the low-frequency amplitude fluctuates. The highest vibration value is: 20.6HZ, which is related to the airflow excitation of the turbine.

[0122] ② When the vibration amplitude increases, that is, when the load increases, the phase change trend at both ends of the turbine is stable, the phase difference is 123.8°, the DC flow at the driving end changes greatly, and the maximum change is 1.18v; the axial vibration and DC flow trends are stable, and the frequency spectrum is mainly dominated by rotation frequency; no abnormal frequency is found.

[0123] 7.2 The output is:

[0124] Monitoring and analysis opinions:

[0125] ① As the load at both ends increases, the vibration amplitude of the turbine increases, indicating that the thermal alignment of the coupling is poor.

[0126] ② The low-frequency energy fluctuations are large, and the turbine has airflow excitation or oil film vortex problems.

[0127] Repair suggestions:

[0128] ① It is recommended to use the regulating valve fully open and main steam valve starting mode when starting the machine.

[0129] ②Recheck the coupling alignment to ensure that the shaft system is in good thermal alignment.

[0130] ③ Confirm the gap between the turbine bearings. If the gap between the bearings is in the middle or towards the upper limit, the lubricating oil supply temperature can be lowered within the allowable oil temperature range, with a step difference of 2 degrees while observing the vibration value and lowering the oil temperature.

[0131] ④ It is necessary to ensure that the steam parameters are within the rated design range, ensure that the steam inlet pressure, temperature, exhaust pressure and temperature are within the design conditions, reasonably adjust the steam volume ratio of extraction and condensation, and optimize the operating parameters.

[0132] The above is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.< / t>

Claims

1. A method for intelligent operation and maintenance diagnosis of rotating machinery based on a generative large language model. It is characterized in that The following steps are involved: Preprocess the rotating machinery information; Carry out text encoding and rotation position encoding for the pre-processed rotating machinery data information; Add digital head attention mechanism to generative large language models; A calculation module is added to the output layer of the generative large language model, and the output result of the generative large language model is calculated to obtain a diagnosis result.

2. The method according to claim 1, It is characterized in that The preprocessing of the rotating machinery data information includes: Load the pre-trained initial vocabulary; Traversing and looping all the rotating machinery data information, removing the information that affects the prediction answer of the generative large language model, and obtaining preprocessed rotating machinery data information; Setting text tags for the initial vocabulary; An updated vocabulary is generated according to the initial vocabulary and the preprocessed rotating machinery data information.

3. The method according to claim 2, It is characterized in that The step of generating an updated vocabulary based on the initial vocabulary and the pre-processed rotating machinery data information includes: Initialize the initial word library and set the size of the initial word library to 32000; The size of the newly added word library is set to 4000, and the pre-processed rotating machinery data information is input into the word segmentation model and trained using the BPE algorithm to obtain a newly added word library; The newly added word library is merged with the initial word library to obtain the updated word library.

4. The method according to claim 2, It is characterized in that The initial vocabulary includes a vocabulary file, and the vocabulary file is generated from a plurality of open source Chinese instruction training data sets.

5. The method according to claim 4, It is characterized in that When loading the pre-trained initial word library, any one of the plurality of open source Chinese instruction training data sets is selected for loading; The text encoding and rotation position encoding of the pre-processed rotating machinery data information includes: Add tags to pre-processed rotating machinery data information; Generate a token sequence according to the updated vocabulary, the open source Chinese instruction training data set and the pre-processed rotating machinery data information after adding tags; Performing RoPE encoding according to the token sequence; Generate a mask matrix.

6. The method according to claim 5, It is characterized in that The step of adding a mark to the pre-processed rotating machinery data information includes: Adding sentence tags to each sentence in the preprocessed rotating machinery data information to mark the beginning and end of the sentence; A digital marker is added to the numbers in each sentence in the preprocessed rotating machinery data information after adding sentence markers to identify the beginning and end of the numbers, and a padding marker is added after the end of the numbers to make the sentence length consistent.

7. The method according to claim 4, It is characterized in that The generative large language model is obtained by training using a token sequence after generating a token sequence through an initial vocabulary from multiple open source Chinese instruction training data sets that generate a vocabulary file.

8. The method according to claim 1, It is characterized in that The method further comprises: The generative large language model is fine-tuned using the LoRA method.

9. The method according to claim 8, It is characterized in that The method of using LoRA to fine-tune the generative large language model includes: The preprocessed rotating machinery data information and the open source Chinese instruction data set are input into the generative large language model for training, and the generative large language model is fine-tuned according to the training results.

10. The method according to claim 8, It is characterized in that The method further comprises: When making predictions, the input format is structured.

Citation Information

Patent Citations

  • Chinese text key information extraction method based on pre-trained language model

    CN111444721A

  • Banking industry large language model training method

    CN117217289A

  • Structural health diagnosis vision-language basic model and multi-mode interaction system establishing method

    CN117390151A

  • Rotating machine fault diagnosis method based on unsupervised learning

    CN117493912A

  • Traditional Chinese medicine customer service reply system based on large language model

    CN118070907A