Vehicle fault text data generation method and system based on transfer learning
Through the vehicle fault text data generation method based on transfer learning, the problem of limited fault reports when new models are launched is solved, structured fault instance data is generated, and the construction efficiency of the fault information database and the systematicness and completeness of maintenance data are improved. .
Patent Information
- Application Number
- CN202410984352.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-04-29
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-11
AI Technical Summary
In the field of vehicle fault diagnosis, when new models are launched, due to the lack of long-term accumulated usage data, the relevant fault reports are very limited, making it difficult to build a comprehensive fault information database, and fault modes increase exponentially, and more storage and processing of these data are required. resources and more efficient technologies.
A vehicle fault text data generation method based on transfer learning is adopted. The structured fault data of the first vehicle is used as the source domain for training and testing of the pre-training model. Partial layer weight parameters are randomly initialized, and the structured fault data of the second vehicle is randomly initialized. The data is used as the target domain for fine-tuning to generate structured fault instance data, including fault codes, fault descriptions and repair steps, to form the fault text data of the second vehicle.
By extracting highly structured fault data from existing models, removing incomplete or erroneous records, obtaining sufficient model training data, and fine-tuning the structure and weight parameters of the pre-trained model, we can complete the transfer learning of the model and generate faults. Instance data can provide sufficient fault data instances when new models are launched on the market, improve the efficiency of fault case data acquisition, and improve the systematicness and completeness of maintenance data.
Smart Images

Figure CN118760897A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and system for generating vehicle fault text data based on transfer learning. Background Art
[0002] Transfer learning allows a model to apply knowledge learned on one task to another related task. In the field of vehicle fault diagnosis, transfer learning can improve diagnostic accuracy by leveraging data from other fields, especially when the data in the target field is insufficient to train an effective fault classification model. Transfer learning can extract common semantic features from a model trained on large-scale text data, and then apply it to tasks such as text classification and named entity recognition.
[0003] CN113221545B discloses a text processing method, device, equipment, medium, and program product, the method comprising: obtaining multiple candidate modified sentences corresponding to an original sentence in a to-be-processed text; obtaining a first score of the multiple candidate modified sentences through an evaluation model according to the original sentence and the multiple candidate modified sentences, the evaluation model being a bidirectional pre-training model obtained through text error correction corpus transfer learning; determining a target modified sentence of the original sentence from the multiple candidate modified sentences according to the first score; the method further comprises: obtaining at least one modified language block of the target modified sentence; inputting a portion of an original language block in an original sentence corresponding to the at least one modified language block into the evaluation model, predicting modified words and / or inserted words; and accepting or rejecting the modification of the original language block by the modified language block according to the modified words and / or the inserted words.
[0004] CN117453921B discloses a data information label processing method for a large language model, comprising the following steps: step 1, data preprocessing: at least data cleaning, noise removal, tokenization and word segmentation operations are performed on the data set to be labeled through a preprocessing cloud platform; step 2, context modeling: pre-training is performed on the primary task of data information label processing through a transfer learning module; step 3, label extraction: text is converted into vector representation through a word embedding method, and one or more relevant labels are generated for each text through a knowledge graph, external resources and heuristic rules; step 4, label classification: the generated labels are classified according to type or purpose through a label classification algorithm based on machine learning Classification; Step 5, label filtering; filter and screen the generated labels through the keyword extraction model, and the keyword extraction model removes irrelevant labels through text mining and information retrieval methods; Step 6, multimodal fusion; fuse text data with image, audio and video data through a multimodal data fusion system to form different data source features to enhance the contextual understanding ability of the model; Step 7, label association; display the important features, focus points and decision-making basis of the model in the reasoning process through an explanatory visualization module, and the explanatory visualization module associates and connects the generated labels through a knowledge graph; Step 8, label correction; correct and supplement the generated labels through a semi-supervised learner.
[0005] CN116361738A discloses a rolling bearing fault diagnosis method based on deep learning. The method takes the model structure commonly used in deep learning as the algorithm core, and studies the application of residual network, LSTM and deep transfer learning in the field of rolling bearing fault diagnosis; Step 1: Fault characteristics and data preprocessing of rolling bearings: By measuring the vibration signal, the vibration characteristic frequency when the actual fault occurs is calculated, and then compared with the theoretical parameter values of each component, so as to judge the main parts of the rolling bearing where the fault may occur and the severity of the damage; In order to accurately obtain the rolling bearing fault characteristic signal, reduce noise and improve the signal-to-noise ratio, it is necessary to perform data denoising preprocessing; Step 2: Fault diagnosis based on residual learning and long short-term memory network: Use residual learning to build a deeper network structure, and adopt an early termination strategy during the training process to prevent overfitting; By designing gates The limited structure solves the problem of long-term dependence, and adds three gates: input gate, output gate and forget gate, so that it has the ability to memorize information for a long time. The importance of the memory content is comprehensively judged by the output gate. This method improves the ability of LSTM to process long-term series models, and facilitates the simultaneous extraction of spatial and temporal features in the original signal. Step three: Fault classification based on transfer learning: The similarity between the source domain and the target domain is the key to the success of transfer learning. For similar data sets, only the last fully connected layer needs to be trained. For data sets with relatively large differences, more high-level convolutional layer parameters need to be trained and updated. Using the pre-trained model, the network is transformed, the parameters of the first few layers are fixed, and the model is fine-tuned for the target domain. The latter layers speed up the training of the network, and the final model can be used for classification prediction of target domain test data.
[0006] Vehicles have multiple configuration options involving different components and systems. Each configuration may have its own specific failure mode and maintenance steps. Fault description information is redundant and repetitive, and the amount of data processing and storage is large. Especially after the launch of a new model, there may be few related fault reports, making it difficult to compile a data-based maintenance data manual because there are not enough examples to analyze and build a fault information database. Summary of the invention
[0007] After long-term practice, it is found that vehicles have different configurations, including multiple engine types, gearboxes, drive systems, auxiliary systems such as automatic driving assistance, dynamic suspension control, etc., as well as entertainment and navigation systems. Each configuration may affect the performance of the vehicle and bring unique failure modes. Cars with different configurations use different components and systems, each of which has its own specific maintenance requirements and failure characteristics. As the configuration options increase, the failure modes increase exponentially, resulting in more resources and more efficient technologies required to store and process this data. In particular, when new models are launched on the market, due to the lack of long-term accumulated usage data, the relevant fault reports are very limited. There are not enough failure instances for in-depth analysis, making it difficult to build a comprehensive fault information database and other technical issues.
[0008] In view of this, the present invention provides a method for generating vehicle fault text data based on transfer learning, comprising:
[0009] Step S1, taking the first vehicle structured fault data as the source domain, extracting the first fault instance data for data preprocessing, and using the first fault instance data as the training data set and the test data set of the pre-trained model; wherein the first fault instance data at least includes a fault code, a fault description, a fault diagnosis step, and a repair step;
[0010] Step S2, selecting a pre-trained model, using a training data set to pre-train the pre-trained model, and using a test data set to test the pre-trained model, and when the accuracy reaches a preset value, obtaining the structure and first weight parameter of the pre-trained model;
[0011] Step S3, keeping the weight parameters of the first k layers of the n layers in the pre-trained model unchanged, and randomly initializing the weight parameters of nk layers, where n and k are positive integers, and k is less than n;
[0012] Step S4, taking the second vehicle structured fault data as the target domain, extracting fault instance data for data preprocessing, and then inputting the data into the pre-trained model for training to obtain the pre-trained model with the second weight parameter;
[0013] Step S5, inputting a simulated fault code and fault description into the pre-trained model to generate structured second fault instance data, wherein the second fault instance data includes a fault code, a fault description, a fault diagnosis step, and a maintenance step;
[0014] Step S6: After structuring the second fault instance data, generate second vehicle fault text data.
[0015] Preferably, the pre-trained model includes a multi-layer Transformer network, and each layer of the Transformer network includes a multi-head self-attention mechanism layer and a feedforward network layer.
[0016] Preferably, in step S2, the pre-training model training adopts supervised learning.
[0017] Preferably, the vehicle configuration information in the first fault instance data is different from the vehicle configuration information in the second fault instance data.
[0018] Preferably, the pre-trained model comprises a large language model.
[0019] Preferably, the structured data of the second fault instance data includes an XML format.
[0020] The present invention also provides a system for executing the above-mentioned method for generating vehicle fault text data based on transfer learning, the system comprising:
[0021] A data preprocessing unit, configured to use the first vehicle structured fault data as a source domain, extract first fault instance data for data preprocessing, and use the first fault instance data as a training data set and a test data set for a pretrained model; wherein the first fault instance data at least includes a fault code, a fault description, a fault diagnosis step, and a repair step;
[0022] A model pre-training unit, used for selecting a pre-training model, pre-training the pre-training model using a training data set, and testing the pre-training model using a test data set, and when the accuracy reaches a preset value, obtaining the structure and first weight parameter of the pre-training model;
[0023] A reset unit, used to keep the weight parameters of the first k layers of the n layers in the pre-trained model unchanged, and randomly initialize the weight parameters of nk layers, where n and k are positive integers, and k is less than n;
[0024] A transfer learning unit, configured to use the second vehicle structured fault data as a target domain, extract fault instance data for data preprocessing, and then input the data into the pre-trained model for training to obtain the pre-trained model with a second weight parameter;
[0025] An output unit, configured to input a simulated fault code and a fault description into the pre-trained model to generate structured second fault instance data, wherein the second fault instance data includes a fault code, a fault description, a fault diagnosis step, and a maintenance step;
[0026] A text generation unit is used to generate second vehicle fault text data after structuring the second fault instance data.
[0027] Preferably, the text generation unit also includes a verification module, which is used to generate a test data set through the data preprocessing unit using the second vehicle fault text data, and input it into the pre-trained model after weight adjustment by the transfer learning unit to verify the accuracy of the pre-trained model.
[0028] The present invention also provides an electronic device, comprising at least one processor; and a memory connected to the at least one processor in communication; wherein:
[0029] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned vehicle fault text data generation method based on transfer learning.
[0030] The present invention also provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the vehicle fault text data generation method based on transfer learning as described above in the present invention.
[0031] Compared with the prior art, the present invention uses the first vehicle structured fault data as the source domain through steps S1-S6, extracts the first fault instance data for data preprocessing, and uses it as the training data set and test data set of the pretrained model; selects a pretrained model, uses the training data set to pretrain the pretrained model, and uses the test data set to test the pretrained model. When the accuracy reaches the preset value, the structure and first weight parameters of the pretrained model are obtained; the weight parameters of the first k layers of the n layers in the pretrained model remain unchanged, and the weight parameters of nk layers are randomly initialized. The second vehicle structured fault data is used as the target domain, and the fault instance data is extracted for data preprocessing, and then input into the pretrained model for training to obtain the pretrained model with the second weight parameter; the simulated fault code and fault description are input into the pretrained model to generate structured second fault instance data. After the second fault instance data is structured, the second vehicle fault text data is finally generated. By extracting highly structured fault data from existing models, removing incomplete, irrelevant or erroneous records, and preprocessing the data, sufficient model training data is obtained, thereby training a model in the source domain, and by fine-tuning the structure and weight parameters of the pre-trained model, the limited fault data in the target domain is used to complete the transfer learning of the model and generate fault instance data. The present invention also provides a system for executing the above method, which can have sufficient fault data instance data when a new model is launched on the market to build a comprehensive fault information database, improve the efficiency of obtaining fault case data, and make the maintenance data more systematic and complete.
[0032] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0034] Figure 1 A schematic diagram of a method for generating vehicle fault text data based on transfer learning according to an embodiment of the present invention;
[0035] Figure 2 The present invention is a flowchart of a method for generating vehicle fault text data based on transfer learning according to an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.
[0037] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0038] It should be noted that the terms "first", "second", "third", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0039] Vehicles may include multiple engine types, transmissions, drive systems, auxiliary systems such as automated driving assistance, dynamic suspension control, and entertainment and navigation systems, depending on their configuration. Each configuration may affect the performance of the vehicle and bring unique failure modes. Cars with different configurations use different components and systems, each of which has its own specific maintenance requirements and failure characteristics. As configuration options increase, failure modes grow exponentially, resulting in more resources and more efficient technologies required to store and process this data. In particular, when new models are launched on the market, related fault reports are very limited due to the lack of long-term accumulated usage data. There are not enough failure instances for in-depth analysis, making it difficult to build a comprehensive fault information database and other technical issues. Such as Figure 1-2 As shown, the present invention provides a method for generating vehicle fault text data based on transfer learning, and the method for generating vehicle fault text data based on transfer learning includes:
[0040] Step S1, taking the first vehicle structured fault data as the source domain, extracting the first fault instance data for data preprocessing, and using the first fault instance data as the training data set and the test data set of the pre-trained model; wherein the first fault instance data at least includes a fault code, a fault description, a fault diagnosis step, and a repair step;
[0041] Step S2, selecting a pre-trained model, using a training data set to pre-train the pre-trained model, and using a test data set to test the pre-trained model, and when the accuracy reaches a preset value, obtaining the structure and first weight parameter of the pre-trained model;
[0042] Step S3, keeping the weight parameters of the first k layers of the n layers in the pre-trained model unchanged, and randomly initializing the weight parameters of nk layers, where n and k are positive integers, and k is less than n;
[0043] Step S4, taking the second vehicle structured fault data as the target domain, extracting fault instance data for data preprocessing, and then inputting the data into the pre-trained model for training to obtain the pre-trained model with the second weight parameter;
[0044] Step S5, inputting a simulated fault code and fault description into the pre-trained model to generate structured second fault instance data, wherein the second fault instance data includes a fault code, a fault description, a fault diagnosis step, and a maintenance step;
[0045] Step S6: After structuring the second fault instance data, generate second vehicle fault text data.
[0046] The present invention uses the first vehicle structured fault data as the source domain through steps S1-S6, extracts the first fault instance data for data preprocessing, and uses the training data set and test data set of the pretrained model; selects the pretrained model, uses the training data set to pretrain the pretrained model, and uses the test data set to test the pretrained model. When the accuracy reaches the preset value, the structure and first weight parameters of the pretrained model are obtained; the weight parameters of the first k layers of the n layers in the pretrained model remain unchanged, and the weight parameters of nk layers are randomly initialized. The second vehicle structured fault data is used as the target domain, and the fault instance data is extracted for data preprocessing, and then input into the pretrained model for training to obtain the pretrained model with the second weight parameter; the simulated fault code and fault description are input into the pretrained model to generate structured second fault instance data. After the second fault instance data is structured, the second vehicle fault text data is finally generated. By extracting highly structured fault data from existing models, removing incomplete, irrelevant or erroneous records, and preprocessing the data, sufficient model training data is obtained to train the model in the source domain. By fine-tuning the structure and weight parameters of the pre-trained model, limited fault data in the target domain is used to complete the transfer learning of the model and generate fault instance data. When new models are launched on the market, there will be enough fault data instance data to build a comprehensive fault information database, improve the efficiency of fault case data acquisition, and make the maintenance data more systematic and complete.
[0047] The self-attention layer of Transformer is used to process all elements in the sequence in parallel to speed up the model training. It captures long-distance semantic dependencies and does not require the input data to follow a strict temporal order, providing flexibility for the input data. In the preferred embodiment of the present invention, the pre-trained model includes a multi-layer Transformer network, and each layer of the Transformer network includes a multi-head self-attention mechanism layer and a feedforward network layer. The original vehicle fault instance data has problems such as semantic temporal inconsistency. Transformer contains multiple such layers. The model learns hierarchical feature representation. The bottom layer captures local or low-level features, while the high layer captures global or high-level features. In this way, deep feature relationships can be better obtained.
[0048] Selecting a model that has been pre-trained on a large amount of text data and pre-training on text in the automotive field can better understand automotive-related terms and concepts. Using case data with clear labels, such as fault codes, solutions, etc., can make the model converge faster. In the preferred case of the present invention, in step S2, the pre-trained model training adopts supervised learning. Supervised learning allows the model to achieve higher accuracy on specific tasks. By utilizing labeled case data, the model learns to identify the precise mapping between input and output, resulting in better performance. Using supervised learning, the model converges faster. Because it uses labels as clear signals to update weights, rather than relying on unlabeled data or indirect feedback. The case data of existing models can be labeled according to certain rules, <fault code><fault component><fault description><fault diagnosis process><whether the labeling is appropriate>, for example, <ggsg0928><Drive motor><Three-phase power supply unbalanced fault, voltage unbalance is 3.4%><Fault diagnosis process G18><Appropriate>. Among them, the marking is divided into <Appropriate> as 5 points, <Suitable> as 3 points, <Inappropriate> as -3 points, and <Error> as -5 points.
[0049] In order to perform transfer learning on a new vehicle model, the vehicle configuration information of the first fault instance data is the source domain data, and the vehicle configuration information of the second fault instance data is the target domain data. The different vehicle configuration information in the two domains means that they may contain different vehicle models, configuration options, manufacturers or other attributes related to vehicle configuration. In a preferred embodiment of the present invention, the vehicle configuration information in the first fault instance data is different from the vehicle configuration information in the second fault instance data.
[0050] Among them, transfer learning includes identifying the differences between the source domain and the target domain, the specific differences in the vehicle configuration information in the two domains, and establishing the Maximum Mean Discrepancy (MMD) Kullback-Leibler (KL) divergence or correlation alignment to quantify and identify these differences.
[0051] Select an appropriate transfer learning method based on the difference between the source domain and the target domain. If the vehicle configuration information of the first fault instance data is source domain data, and the vehicle configuration information of the second fault instance data is target domain data, and the difference between the two is not large, only the last 1-3 layers of the model need to be fine-tuned. If the difference is large, use an adaptive loss function or adversarial training. More preferably, it is necessary to align or normalize the features so that the data in the source domain and the target domain are comparable in the same feature space. Fine-tune the pre-trained model using the data in the target domain and adjust the weights to better suit the target task.
[0052] If the second fault instance data as the target domain data is still limited, the data set is expanded through data augmentation technology to improve the performance of the model in the target domain.
[0053] Avoid overfitting the source domain data. More preferably, maintain the generalization ability of the model through regularization techniques and control of model complexity. Use the validation set of the target domain to evaluate the model to ensure the effectiveness of the model after transfer learning in solving the target domain task.
[0054] In order to make the model more adaptable and accurate, a continuous learning system is adopted to allow the model to continuously learn and adapt as more and more target domain data is collected.
[0055] Taking full advantage of the powerful understanding and multi-task learning capabilities of the large language model, in the preferred embodiment of the present invention, the pre-trained model includes a large language model. The large language model can capture rich language structure and semantic information. During the pre-training process, the model is trained on a large text corpus, understands and uses contextual information, and can adjust the meaning of words according to the context. Through transfer learning, the model can quickly adapt to new tasks or fields using a small amount of annotated data.
[0056] In order to better represent the structure of complex data in the fault instance data. In the preferred case of the present invention, the data after the second fault instance data is structured includes XML format. Structuring the fault instance data into XML format requires organizing the data into a standard XML document, which contains detailed information of the fault instance. XML (Extensible Markup Language) is used to store and transmit data, is self-descriptive, and is suitable for representing the structure of complex data.
[0057] For example, the XML format of structured fault instance data may contain the following elements, each <faultinstance>The element contains the fault instance ID, type, time, impact, and solution.
[0058] <faultinstances>
[0059] <faultinstance>
[0060] <id> 1< / id>
[0061] <type> FailureX< / type>
[0062] <time> 2024-04-01T14:00:00Z< / time>
[0063] <impact> XXX< / impact>
[0064] <resolution> XXX< / resolution>
[0065] < / faultinstance>
[0066] The present invention also provides a system for executing the above-mentioned method for generating vehicle fault text data based on transfer learning, the system comprising:
[0067] A data preprocessing unit, configured to use the first vehicle structured fault data as a source domain, extract first fault instance data for data preprocessing, and use the first fault instance data as a training data set and a test data set for a pretrained model; wherein the first fault instance data at least includes a fault code, a fault description, a fault diagnosis step, and a repair step;
[0068] A model pre-training unit, used for selecting a pre-training model, pre-training the pre-training model using a training data set, and testing the pre-training model using a test data set, and when the accuracy reaches a preset value, obtaining the structure and first weight parameter of the pre-training model;
[0069] A reset unit, used to keep the weight parameters of the first k layers of the n layers in the pre-trained model unchanged, and randomly initialize the weight parameters of nk layers, where n and k are positive integers, and k is less than n;
[0070] A transfer learning unit, configured to use the second vehicle structured fault data as a target domain, extract fault instance data for data preprocessing, and then input the data into the pre-trained model for training to obtain the pre-trained model with a second weight parameter;
[0071] An output unit, configured to input a simulated fault code and a fault description into the pre-trained model to generate structured second fault instance data, wherein the second fault instance data includes a fault code, a fault description, a fault diagnosis step, and a maintenance step;
[0072] A text generation unit is used to generate second vehicle fault text data after structuring the second fault instance data.
[0073] The system for executing the above-mentioned vehicle fault text data generation method based on transfer learning provided by the present invention, the data preprocessing unit uses the first vehicle structured fault data as the source domain, extracts the first fault instance data for data preprocessing, and uses the training data set and the test data set of the pretrained model; the model pretraining unit selects the pretrained model, uses the training data set to pretrain the pretrained model, and uses the test data set to test the pretrained model, and when the accuracy reaches the preset value, the structure and the first weight parameter of the pretrained model are obtained; the reset unit keeps the first k layers of the n-layer weight parameters in the pretrained model unchanged, and randomly initializes the weight parameters of nk layers. In the transfer learning unit, the second vehicle structured fault data is used as the target domain, and the fault instance data is extracted for data preprocessing, and then input into the pretrained model for training to obtain the pretrained model with the second weight parameter; in the output unit, the simulated fault code and fault description are input into the pretrained model to generate structured second fault instance data. After the final text generation unit structures the second fault instance data, the second vehicle fault text data is finally generated. The system extracts highly structured fault data from existing models, removes incomplete, irrelevant or erroneous records, and preprocesses the data to obtain sufficient model training data, thereby training the model in the source domain. By fine-tuning the structure and weight parameters of the pre-trained model, the system uses limited fault data in the target domain to complete the transfer learning of the model and generate fault instance data. When a new model is launched on the market, it will have enough fault data instance data to build a comprehensive fault information database, improve the efficiency of fault case data acquisition, and make the maintenance data more systematic and complete.
[0074] In a preferred case of the present invention, the text generation unit also includes a verification module, which is used to generate a test data set through the data preprocessing unit using the second vehicle fault text data, and input it into the pre-trained model after weight adjustment by the transfer learning unit to verify the accuracy of the pre-trained model.
[0075] The present invention also provides an electronic device, at least one processor; and
[0076] a memory communicatively connected to the at least one processor; wherein,
[0077] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor so that the at least one processor can perform the above method.
[0078] The present invention also provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the method of the present invention as described above.
[0079] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0080] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0081] In the several embodiments provided by the present invention, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0082] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0083] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0084] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a mobile terminal, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0085] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.< / faultinstances> < / faultinstance>
Claims
1. A method for generating vehicle fault text data based on transfer learning, characterized in that: The vehicle fault text data generation method based on transfer learning includes: Step S1, taking the first vehicle structured fault data as the source domain, extracting the first fault instance data for data preprocessing, and using the first fault instance data as the training data set and the test data set of the pre-trained model; wherein the first fault instance data at least includes a fault code, a fault description, a fault diagnosis step, and a repair step; Step S2, selecting a pre-trained model, using a training data set to pre-train the pre-trained model, and using a test data set to test the pre-trained model, and when the accuracy reaches a preset value, obtaining the structure and first weight parameter of the pre-trained model; Step S3, keeping the weight parameters of the first k layers of the n layers in the pre-trained model unchanged, and randomly initializing the weight parameters of nk layers, where n and k are positive integers, and k is less than n; Step S4, taking the second vehicle structured fault data as the target domain, extracting fault instance data for data preprocessing, and then inputting the data into the pre-trained model for training to obtain the pre-trained model with the second weight parameter; Step S5, inputting a simulated fault code and fault description into the pre-trained model to generate structured second fault instance data, wherein the second fault instance data includes a fault code, a fault description, a fault diagnosis step, and a maintenance step; Step S6: After structuring the second fault instance data, generate second vehicle fault text data.
2. The method for generating vehicle fault text data based on transfer learning according to claim 1, characterized in that: The pre-training model includes a multi-layer Transformer network, and each layer of the Transformer network includes a multi-head self-attention mechanism layer and a feedforward network layer.
3. The method for generating vehicle fault text data based on transfer learning according to claim 1, characterized in that: In step S2, the pre-trained model is trained using supervised learning.
4. The method for generating vehicle fault text data based on transfer learning according to claim 1, characterized in that: The vehicle configuration information in the first fault instance data is different from the vehicle configuration information in the second fault instance data.
5. The method for generating vehicle fault text data based on transfer learning according to claim 4, characterized in that: The pre-trained model includes a large language model.
6. The method for generating vehicle fault text data based on transfer learning according to any one of claims 1 to 5, characterized in that: The structured data of the second fault instance data includes an XML format.
7. A system for executing the method for generating vehicle fault text data based on transfer learning according to any one of claims 1 to 6, characterized in that: The system comprises, A data preprocessing unit, configured to use the first vehicle structured fault data as a source domain, extract first fault instance data for data preprocessing, and use the first fault instance data as a training data set and a test data set for a pretrained model; wherein the first fault instance data at least includes a fault code, a fault description, a fault diagnosis step, and a repair step; A model pre-training unit, used for selecting a pre-training model, pre-training the pre-training model using a training data set, and testing the pre-training model using a test data set, and when the accuracy reaches a preset value, obtaining the structure and first weight parameter of the pre-training model; A reset unit, used to keep the weight parameters of the first k layers of the n layers in the pre-trained model unchanged, and randomly initialize the weight parameters of nk layers, where n and k are positive integers, and k is less than n; A transfer learning unit, configured to use the second vehicle structured fault data as a target domain, extract fault instance data for data preprocessing, and then input the data into the pre-trained model for training to obtain the pre-trained model with a second weight parameter; An output unit, configured to input a simulated fault code and a fault description into the pre-trained model to generate structured second fault instance data, wherein the second fault instance data includes a fault code, a fault description, a fault diagnosis step, and a maintenance step; A text generation unit is used to generate second vehicle fault text data after structuring the second fault instance data.
8. The system according to claim 7, characterized in that The text generation unit also includes a verification module, which is used to generate a test data set through the data preprocessing unit using the second vehicle fault text data, and input it into the pre-trained model after the weight adjustment by the transfer learning unit to verify the accuracy of the pre-trained model.
9. An electronic device, characterized in that: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle fault text data generation method based on transfer learning as described in any one of claims 1-6.
10. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions for enabling a machine to execute the method for generating vehicle fault text data based on transfer learning as described in any one of claims 1-6.
Citation Information
Patent Citations
Vehicle type identification device and method for realizing cross-scene cold start based on transfer learning
CN109657552A
Rolling bearing intelligent diagnosis system based on deep transfer learning
CN111579243A
GPT-based vehicle fault solution generation method and device
CN116415154A
Maintenance suggestion generation method and system of automobile fault model based on deep learning
CN117522372A
Modular network based knowledge sharing for multiple entities
US20220111836A1
Cited By
Structured data generation method and device, terminal equipment and storage medium
CN119938766A
