An incremental learning method based on zero-shot replay
By using an incremental learning method based on zero-shot replay and a comprehensive labeling system to automatically label IoT monitoring data, the problems of high data labeling cost, low efficiency, and catastrophic forgetting in IoT monitoring services are solved, and efficient and accurate key information extraction and model training are achieved.
Patent Information
- Application Number
- CN202311292970.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-08
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-10-08
AI Technical Summary
Existing technologies in IoT monitoring and alarm services suffer from high data annotation costs, low efficiency, and poor quality. They heavily rely on the expertise of annotation personnel or translation models, and the model training process is prone to overlearning new knowledge, leading to the catastrophic forgetting of old knowledge.
An incremental learning method based on zero-shot replay is adopted. By acquiring real-time monitoring data of IoT devices, an IoT monitoring model is constructed. A comprehensive labeling system is used for automated labeling to build a training sample set. The IoT monitoring model is then trained using the zero-shot replay method, and the labeling system is optimized to highlight key information.
It improves the efficiency and quality of data annotation, reduces annotation costs, avoids catastrophic forgetting, saves data storage overhead, and improves the accuracy and training efficiency of IoT monitoring models in extracting key information entities.
Smart Images

Figure CN117332270B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of machine learning methods, and more particularly to an incremental learning method based on zero-shot replay. Background Technology
[0002] Structured data is a common data structure often used for data exchange between servers and clients. In IoT monitoring and alarm operations, IoT devices generate a large amount of real-time data, such as the real-time status of charging piles and traffic lights. Therefore, lightweight JSON format data is used to achieve data transmission between the server and various networked devices. To enable monitoring personnel to quickly and accurately identify key information, natural language processing technology is needed to extract and highlight key information.
[0003] To achieve the above requirements, the commonly used method is to train a model using a labeled sample set and then use the model to predict real-world data. There are two main methods for constructing existing sample sets: one is manual, where annotators label all new data to form the sample set; the other is based on a translation model, using a portion of the manually labeled data as the source language, translating the source language into intermediate languages such as English, Russian, and German, and then translating the intermediate languages back into the source language, thus expanding a single dataset into multiple datasets. Current model training methods primarily rely on training sample sets, inputting new samples with each training iteration. This can easily lead to overlearning of new knowledge and catastrophic forgetting of older knowledge.
[0004] The existing technologies have the following drawbacks: First, manual data annotation is costly, inefficient, error-prone, and dependent on the expertise of the annotators. Second, data expansion based on translation models depends on the accuracy of the translation models, is prone to losing specific information, and has poor support for highly specialized fields. Third, the model training process involves overlearning new knowledge, leading to catastrophic forgetting of old knowledge. Summary of the Invention
[0005] Based on the above analysis, this invention aims to provide an incremental learning method based on zero-shot replay to address the problems of high cost, low efficiency, poor quality, heavy reliance on the expertise of annotators or translation models in existing training data labeling, and overlearning new knowledge and causing catastrophic forgetting of old knowledge during the training process of existing models.
[0006] This invention provides an incremental learning method based on zero-shot replay, the method comprising the following steps:
[0007] Acquire real-time monitoring data from IoT devices;
[0008] Construct an IoT monitoring model, and use the IoT monitoring model to predict the monitoring data to obtain the predicted monitoring data;
[0009] Automated labeling of predicted monitoring data is performed using a comprehensive labeling system;
[0010] The IoT monitoring model is trained by constructing a training sample set based on the zero-shot replay method.
[0011] The labeled monitoring data is input into the trained IoT monitoring model to obtain highlighted key information.
[0012] Furthermore, the improved tagging system includes four levels: primary category, secondary category, tertiary category, and quaternary category, with the quaternary category having a corresponding alias library;
[0013] The automated labeling of the predicted monitoring data using a comprehensive labeling system includes: automatically labeling the feature values of the data using aliases from the alias library.
[0014] Furthermore, the method of constructing a training sample set based on zero-shot replay to train the IoT monitoring model to obtain a trained IoT monitoring model includes:
[0015] A training sample set is constructed based on the labeled data;
[0016] During the first round of training, samples from the training set are input into the IoT monitoring model according to the pre-set batch size to train the model, and the average value of the feature vector of each alias is obtained and saved.
[0017] In subsequent training rounds, the sample features of each alias are obtained based on the average value of the feature vectors of each alias obtained in the previous round. The sample features are then input into the IoT monitoring model along with the samples in the training set for training, and the average value of the feature vectors of each alias is obtained and saved.
[0018] Once the training rounds reach the threshold, a well-trained IoT monitoring model is obtained.
[0019] Furthermore, the key information highlighted when inputting the labeled monitoring data into the trained IoT monitoring model includes:
[0020] The labeled monitoring data is encoded by the encoder of the IoT monitoring model to obtain the feature vector of the labeled feature value;
[0021] The feature vector is subjected to corresponding entity extraction and relation extraction by the decoder of the IoT monitoring model. The extracted entities are the aliases of the four-level classification of the tag system, and the extracted relations are the start and end positions of the aliases.
[0022] The corresponding feature value is obtained through the alias, and the marked position of the feature value is obtained according to the start and end positions and then highlighted.
[0023] Furthermore, training the IoT monitoring model also includes the following steps:
[0024] For the newly added attributes, corresponding category names and aliases are added to the improved tag system to obtain an optimized tag system. Then, the predicted monitoring data is labeled using the optimized tag system to construct a second training sample set.
[0025] An optimized IoT monitoring model is obtained by training the IoT monitoring model based on the second training sample set.
[0026] Furthermore, the average value of the feature vector for each alias is obtained as follows:
[0027]
[0028] Among them, v k Let R be the average of the feature vectors of all samples for the k-th alias, where m is the number of samples for each alias. d Let C be a real vector containing d aliases. t Let F(x) be the set of all aliases, and let F(x) be the function that maps the input samples to the feature vectors of each alias. Let i be the i-th sample with the k-th alias.
[0029] Furthermore, during the next round of training, the sample features are obtained as follows:
[0030]
[0031] Among them, s k Let z be the sample feature of the kth alias, e be the standard Gaussian sampling noise, r be the uncertainty scale, and z be the z-value. i k Let be the feature vector of the i-th sample of the k-th alias, d be the number of elements contained in the feature vector, and C1 be the set of aliases.
[0032] Furthermore, the formula for the loss function is:
[0033]
[0034] Where N is the total number of samples in the training set, and y is the number of samples i containing aliases j. i j z is 1 if it is not 0 otherwise i j z is the unnormalized score of the feature vector of the i-th sample with the j-th alias. ip Let e be the sum of the feature vectors of the i-th sample of all aliases, where e is the natural constant.
[0035] Furthermore, the improved labeling system is obtained through the following method:
[0036] Establish an initial labeling system;
[0037] The monitoring data is input into the trained BERT model to obtain the corresponding feature values. Based on the feature values, the corresponding feature parameter names are obtained. The feature parameter names are aliases in the tag system. After the feature parameter names are verified, they are added to the alias library of the initial tag system to obtain the complete tag system.
[0038] Furthermore, the improved tag system is displayed on the front-end page in a tree structure for users to add, delete, modify, and query. Then, the tags after adding, deleting, modifying, and querying are synchronized to the tag system to obtain an optimized tag system.
[0039] Compared with the prior art, the present invention can achieve at least one of the following beneficial effects:
[0040] 1. This invention trains the model with structured data to obtain corresponding feature values, and obtains a complete label system based on the feature values. Therefore, it can automatically generate a large number of feature labels required by business, realize the systematic management of feature labels, and reuse the label system for similar problems, thereby improving development efficiency.
[0041] 2. This invention utilizes a tagging system to automatically annotate the continuous real-time monitoring data, thereby greatly improving the efficiency of data annotation, reducing the error rate, and effectively solving the problems of high cost, low efficiency, poor quality, and heavy reliance on the professionalism of annotation personnel or translation models in existing data annotation.
[0042] 3. For newly added attributes, the present invention allows for the addition, deletion, modification, and querying of the tag system through the front-end page. Therefore, the tag system can be conveniently and quickly optimized based on actual real-time monitoring data, thereby improving the quality of real-time monitoring data annotation.
[0043] 4. This invention utilizes a tagging system to automatically label large amounts of real-time monitoring data, greatly reducing the time required to generate training sample sets for IoT monitoring models, thereby improving development efficiency.
[0044] 5. This invention uses a labeled sample set to train the IoT monitoring model, thus improving the accuracy of the IoT monitoring model in extracting key information entities and the efficiency of training.
[0045] 6. This invention uses a zero-sample replay method to train the IoT monitoring model. It obtains the sample features of old samples through the feature vectors of old samples, and uses the sample features of old samples and new samples simultaneously in the next round of training. Therefore, it avoids catastrophic forgetting during incremental learning while saving data storage overhead.
[0046] In this invention, the above-described technical solutions can be combined with each other to achieve more preferred combinations. Other features and advantages of this invention will be set forth in the following description, and some advantages may become apparent from the description or be learned by practicing the invention. The objects and other advantages of this invention can be realized and obtained from what is particularly pointed out in the description and drawings. Attached Figure Description
[0047] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Throughout the drawings, the same reference numerals denote the same parts.
[0048] Figure 1 This is a flowchart of the structured data incremental learning method based on a label system according to an embodiment of the present invention;
[0049] Figure 2 This is a schematic diagram illustrating the label system classification according to an embodiment of the present invention;
[0050] Figure 3 This is a schematic diagram illustrating the display of the tag system on the front-end page according to an embodiment of the present invention;
[0051] Figure 4 The monitoring data is labeled in the embodiments of the present invention;
[0052] Figure 5 The data content contained in the Pcap package of the IoT dataset in this embodiment of the invention. Detailed Implementation
[0053] Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not intended to limit the scope of the present invention.
[0054] One specific embodiment of the present invention discloses a method for extracting Internet of Things (IoT) information based on zero-sample replay. For example... Figure 1 As shown, the method includes the following steps:
[0055] Step S1: Obtain real-time monitoring data from IoT devices;
[0056] Step S2: Construct an IoT monitoring model and use the IoT monitoring model to predict the monitoring data to obtain the predicted monitoring data;
[0057] Step S3: Automated labeling of the predicted monitoring data using a comprehensive labeling system;
[0058] Step S4: Construct a training sample set based on the zero-shot replay method to train the IoT monitoring model and obtain the trained IoT monitoring model;
[0059] Step S5: Input the labeled monitoring data into the trained IoT monitoring model to obtain the highlighted key information.
[0060] Specifically, in step S1, the IoT monitoring and alarm service requires recording and statistically analyzing a large amount of real-time data generated by IoT devices, such as the real-time status of charging piles and traffic lights. Real-time monitoring data from IoT devices is retrieved from the actual IoT monitoring environment.
[0061] Specifically, in step S2, the IoT monitoring model is a UIE model built using the Paddle framework. For example, the parameters of the IoT monitoring model are shown in Table 2:
[0062] Table 2 Parameters of the IoT Monitoring Model
[0063] parameter value Batch size 16 Training rounds 100 Learning rate 1e-5
[0064] The IoT monitoring model includes an encoder, a decoder, a structured extraction language (SEL), a schema, and rules. The encoder maps the input samples to feature vectors for each alias. The decoder maps the feature vectors to entities and relational structures according to the schema and rules, thereby performing entity extraction and relation extraction. The SEL transforms different extraction structures and targets into a unified output format. The extracted entities are aliases of the four-level classification of the label system, and the extracted relations are the start and end positions of the alias.
[0065] Real-time monitoring data is pulled from the actual IoT monitoring environment and input into the IoT monitoring model for prediction, including word segmentation and part-of-speech tagging, to obtain predicted monitoring data, thereby reducing the difficulty of subsequent data processing.
[0066] Specifically, in step S3, a comprehensive labeling system is used to automatically label the predicted monitoring data, such as... Figure 4 As shown, the feature values of the monitoring data are automatically labeled using aliases in the labeling system.
[0067] Furthermore, the improved tagging system includes four levels: primary category, secondary category, tertiary category, and quaternary category, with the quaternary category having a corresponding alias library;
[0068] The automated labeling of the predicted monitoring data using a comprehensive labeling system includes: automatically labeling the feature values of the data using aliases from the alias library.
[0069] Furthermore, the improved labeling system is obtained through the following method:
[0070] Step S311: Establish an initial tagging system;
[0071] Step S312: Input the monitoring data into the trained BERT model to obtain the corresponding feature values. Based on the feature values, obtain the corresponding feature parameter names. The feature parameter names are aliases in the tag system. After verifying the feature parameter names, add them to the alias library of the initial tag system to obtain a complete tag system.
[0072] Specifically, in step S311, an initial tag system is established by classifying the required tags according to actual business needs. This tag system includes four levels: primary category, secondary category, tertiary category, and quaternary category. The quaternary category has a corresponding alias library. Specifically, as... Figure 2 As shown, the second-level classification is a subclass of the first-level classification, the third-level classification is a specific product, and the fourth-level classification is an attribute. Each alias in the fourth-level category name library has a corresponding first- to fourth-level classification.
[0073] For example, in IoT monitoring and alarm services, it is necessary to record and statistically analyze a large amount of real-time data generated by IoT devices, such as the real-time status of charging piles and traffic lights. A four-level tagging system is established based on these requirements. For the alias "status," its primary category is "Transportation and Travel," the secondary category is "Electric Vehicle Charging Infrastructure Services," the tertiary category is "Brand A Car Charging Pile," and the quaternary category is "Device Status Information."
[0074] Understandably, the total number of categories in the labeling system is not large, and can be established manually; however, there are many aliases for the four-level categories, which are difficult to establish completely manually, so a model is needed to automatically complete them.
[0075] Specifically, in step S312, a certain amount of monitoring data (e.g., 500 data points) is randomly pulled, and the monitoring data is input into the trained BERT model to obtain the corresponding feature values, as shown in Table 1.
[0076] Based on the feature values, corresponding feature parameter names are obtained, as shown in Table 1. These feature parameter names are aliases in the tag system. After verifying the feature parameter names, they are added to the alias library of the initial tag system to obtain a complete tag system.
[0077] Table 1 Business Data Feature Values and Corresponding Feature Parameter Names
[0078] Feature parameter name Eigenvalues frame.time 202123:58:21.314757000 ip.src_host 192.168.1.101 ip.dst_host 192.168.1.128 tcp.ack_raw 1686278051 tcp.checksum 0x00009506 tcp.dstport 1883 tcp.flags 0x00000010 tcp.flags.ack 1 tcp.seq 1 tcp.srcport 61822
[0079] Specifically, the business data is structured data, so the corresponding key value (feature parameter name) can be obtained through the feature value. The four-level classification corresponding to the feature parameter name is checked, and incorrect classifications are corrected. Then, the feature parameter name is added to the corresponding four-level classification alias library.
[0080] For example, for structured data {"port": "port1"} and {"rport": "port2"}, the feature parameter names corresponding to the feature values "port1" and "port2" are "port" and "rport" respectively, and their corresponding fourth-level category is "charging port". Therefore, "port" and "rport" are added to the alias library for "port".
[0081] Furthermore, the BERT model is trained using the following method:
[0082] Step S321: Manually label the structured dataset based on the initial labeling system to construct the first training sample set;
[0083] Step S322: Construct the BERT model by training the BERT model based on the first training sample set to obtain the trained BERT model.
[0084] Specifically, in step S321, the open-source structured dataset is manually labeled. For example, the Edge-IIoTset dataset of Internet of Things devices is selected as the structured dataset, and the dataset is manually labeled based on the established initial label system to construct the first training sample set.
[0085] Specifically, in step S322, the Bert model Transformer has 12 layers and 768 dimensions, and the number of heads for multi-head self-attention is 12.
[0086] Furthermore, the first training sample set is divided into a first training set and a first validation set;
[0087] Set the batch size and training epoch threshold for training;
[0088] During each training round, samples from the first training set are input into the Bert model for one round of training according to the set batch size. After one round of training, samples from the first validation set are input into the Bert model, and the evaluation index score is calculated based on the precision, recall and F1 score evaluation index.
[0089] Once the training rounds reach the threshold, the BERT model corresponding to the round with the highest evaluation metric score is the well-trained BERT model.
[0090] For example, the first training sample set is divided into a first training set and a first validation set in a 4:1 ratio, with a batch size of 24 and 30 training rounds. In each training round, samples from the first training set are input into the BERT model according to the batch size of 24 for one round of training. The samples are as follows... Figure 5 As shown. After one round of training, the samples from the first validation set are input into the BERT model, and its precision, recall, and F1 score are calculated. After 30 rounds of training, the BERT model corresponding to the round with the highest evaluation metric score is selected as the trained BERT model.
[0091] Specifically, in step S4, the method of constructing a training sample set based on zero-shot replay to train the IoT monitoring model and obtain a trained IoT monitoring model includes:
[0092] A training sample set is constructed based on the labeled data;
[0093] During the first round of training, samples from the training set are input into the IoT monitoring model according to the pre-set batch size to train the model, and the average value of the feature vector of each alias is obtained and saved.
[0094] In subsequent training rounds, the sample features of each alias are obtained based on the average value of the feature vectors of each alias obtained in the previous round. The sample features are then input into the IoT monitoring model along with the samples in the training set for training, and the average value of the feature vectors of each alias is obtained and saved.
[0095] Once the training rounds reach the threshold, a well-trained IoT monitoring model is obtained.
[0096] Furthermore, the average value of the feature vector for each alias is obtained as follows:
[0097]
[0098] Among them, v k Let R be the average of the feature vectors of all samples for the k-th alias, where m is the number of samples for each alias. d Let C be a real vector containing d aliases. t Let F(x) be the set of all aliases, and let F(x) be the function that maps the input samples to the feature vectors of each alias. Let i be the i-th sample with the k-th alias.
[0099] Furthermore, the formula for the loss function is:
[0100]
[0101] Where N is the total number of samples in the training set, and y is the number of samples i containing aliases j. i j z is 1 if it is not 0 otherwise i j z is the unnormalized score of the feature vector of the i-th sample with the j-th alias. i p Let e be the sum of the feature vectors of the i-th sample of all aliases, where e is the natural constant.
[0102] Furthermore, during the next round of training, the sample features are obtained as follows:
[0103] s k =v k +(e*r),
[0104] Among them, s k Let z be the sample feature of the kth alias, e be the standard Gaussian sampling noise, r be the uncertainty scale, and z be the z-value. i k Let be the feature vector of the i-th sample of the k-th alias, d be the number of elements contained in the feature vector, and C1 be the set of aliases.
[0105] Understandably, when reconstructing features, e follows a standard normal distribution. but Obey 0 to r 2 The interval is a normal distribution, and then Obey v k to r 2 The interval follows a normal distribution. This method allows for the restoration of as many sample features as possible.
[0106] Based on the above method of preserving sample features, in the next round of training, the old sample features are augmented with Gaussian noise and input together with the new samples, thereby reducing the rate at which old sample information is forgotten; and only the feature vectors are stored, saving the overhead of data storage.
[0107] Furthermore, the method further includes the following steps:
[0108] For the newly added attributes, corresponding category names and aliases are added to the improved tag system to obtain an optimized tag system. Then, the predicted business data is labeled using the optimized tag system to construct a second training sample set.
[0109] An optimized IoT monitoring model is obtained by training the IoT monitoring model based on the second training sample set.
[0110] Understandably, when a new attribute is introduced, the existing trained IoT monitoring model has not been trained for that attribute, and therefore cannot accurately identify it. Labeling the training sample set with a tagging system before inputting it into the IoT monitoring model can significantly improve training efficiency and accuracy. However, the existing comprehensive tagging system does not include this attribute and cannot label it. Therefore, a simple method is needed to quickly and easily add the corresponding category name and alias to achieve an optimized tagging system.
[0111] Furthermore, such as Figure 3 As shown, the complete tag system is displayed on the front-end page in the form of a tree structure for users to add, delete, modify, and query. Then, the tags after adding, deleting, modifying, and querying are synchronized to the tag system to obtain an optimized tag system.
[0112] Specifically, the tree structure is displayed on the front-end page in the form of category-subcategory-product-attribute-alias. Users can add, delete, modify, and query the tag system on this page. When an incorrect tag is found, it can be corrected or deleted. When a new tag is added, a corresponding category name and alias are added. The tags after addition, deletion, modification, and query are synchronized to the tag system. Each level of tag and alias can be modified and deleted.
[0113] Specifically, in step S5, the key information highlighted by inputting the labeled monitoring data into the trained IoT monitoring model includes:
[0114] The labeled monitoring data is encoded by the encoder of the IoT monitoring model to obtain the feature vector of the labeled feature value;
[0115] The feature vector is subjected to corresponding entity extraction and relation extraction by the decoder of the IoT monitoring model. The extracted entities are the aliases of the four-level classification of the tag system, and the extracted relations are the start and end positions of the aliases.
[0116] The corresponding feature value is obtained through the alias, and the marked position of the feature value is obtained according to the start and end positions and then highlighted.
[0117] Compared with existing technologies, the beneficial effects of the structured data incremental learning method based on a tag system provided by this invention are as follows: First, by training the model with structured data to obtain corresponding feature values, a complete tag system is obtained based on these feature values. Therefore, a large number of feature tags required by business operations can be automatically generated, realizing the systematic management of feature tags. Furthermore, the tag system can be reused for similar problems, improving development efficiency. Second, by using the tag system to automatically annotate the continuous real-time monitoring data, the efficiency of data annotation can be greatly improved, the error rate reduced, and the problems of high cost, low efficiency, poor quality, and heavy reliance on the professionalism of annotation personnel or translation models in existing data annotation methods can be effectively solved. Third, for newly added attributes, the tag system can be added, deleted, and modified through the front-end page. First, by using the labeling system to automatically label large amounts of real-time monitoring data, the time required to generate training sample sets for IoT monitoring models is greatly reduced, thus improving development efficiency. Second, by using labeled sample sets to train IoT monitoring models, the accuracy of entity extraction for key information and the efficiency of training are improved. Third, by using zero-sample replay to train IoT monitoring models, the feature vectors of old samples are used to obtain the sample features of old samples, and the sample features of old samples and new samples are used simultaneously in the next round of training. This avoids catastrophic forgetting during incremental learning while saving data storage overhead.
[0118] Those skilled in the art will understand that all or part of the processes of the methods described in the above embodiments can be implemented by a computer program instructing related hardware, and the program can be stored in a computer-readable storage medium. The computer-readable storage medium may be a disk, optical disk, read-only memory, or random access memory, etc.
[0119] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.
Claims
1. An Internet of Things information extraction method based on zero-shot replay, characterized in that, Includes the following steps: Acquire real-time monitoring data from IoT devices; Construct an IoT monitoring model, and use the IoT monitoring model to predict the monitoring data to obtain the predicted monitoring data; Automated labeling of predicted monitoring data is performed using a comprehensive labeling system; The IoT monitoring model is trained by constructing a training sample set based on the zero-shot replay method. The labeled monitoring data is input into the trained IoT monitoring model to obtain highlighted key information. The method of constructing a training sample set based on zero-shot replay to train the IoT monitoring model to obtain a trained IoT monitoring model includes: A training sample set is constructed based on the labeled data; During the first round of training, samples from the training set are input into the IoT monitoring model according to the pre-set batch size to train the model, and the average value of the feature vector of each alias is obtained and saved. In subsequent training rounds, the sample features of each alias are obtained based on the average value of the feature vectors of each alias obtained in the previous round. The sample features are then input into the IoT monitoring model along with the samples in the training set for training, and the average value of the feature vectors of each alias is obtained and saved. Once the training rounds reach the threshold, a well-trained IoT monitoring model is obtained. 2.The zero-shot replay based IoT information extraction method of claim 1, wherein, The comprehensive tagging system includes four levels: primary category, secondary category, tertiary category, and quaternary category. The quaternary category has a corresponding alias library. The automated labeling of the predicted monitoring data using a comprehensive labeling system includes: automatically labeling the feature values of the data using aliases from the alias library. 3.The zero-shot replay based IoT information extraction method of claim 1, wherein, The key information that is highlighted when the labeled monitoring data is input into the trained IoT monitoring model includes: The labeled monitoring data is encoded by the encoder of the IoT monitoring model to obtain the feature vector of the labeled feature value; The feature vector is subjected to corresponding entity extraction and relation extraction by the decoder of the IoT monitoring model. The extracted entities are the aliases of the four-level classification of the tag system, and the extracted relations are the start and end positions of the aliases. The corresponding feature value is obtained through the alias, and the marked position of the feature value is obtained according to the start and end positions and then highlighted.
4. The IoT information extraction method based on zero-sample replay according to claim 1, characterized in that, Training the IoT monitoring model also includes the following steps: For the newly added attributes, corresponding category names and aliases are added to the improved tag system to obtain an optimized tag system. Then, the predicted monitoring data is labeled using the optimized tag system to construct a second training sample set. An optimized IoT monitoring model is obtained by training the IoT monitoring model based on the second training sample set.
5. The IoT information extraction method based on zero-sample replay according to claim 1, characterized in that, The average value of the feature vector for each alias is obtained as follows: , in, Let be the average of the feature vectors of all samples for the k-th individual name. Rd is the number of samples for each alias, and Rd is a real vector containing d aliases. Let F(x) be the set of all aliases, and let F(x) be the function that maps the input samples to the feature vectors of each alias. Let i be the i-th sample with the k-th alias.
6. The IoT information extraction method based on zero-sample replay according to claim 1, characterized in that, During the next round of training, the sample features are obtained as follows: , in, Let be the sample feature of the kth alias, e be the standard Gaussian sampling noise, and r be the uncertainty scale. Let be the feature vector of the i-th sample of the k-th alias, d be the number of elements contained in the feature vector, and C1 be the set of aliases.
7. The IoT information extraction method based on zero-sample replay according to claim 1, characterized in that, The formula for the loss function is: Where N is the total number of samples in the training set, and sample i contains alias j. It is 1 if it is not 0 otherwise Let be the unnormalized score of the feature vector of the i-th sample with the j-th alias. Let e be the sum of the feature vectors of the i-th sample of all aliases, where e is the natural constant.
8. The IoT information extraction method based on zero-sample replay according to claim 1, characterized in that, The complete labeling system is obtained through the following method: Establish an initial labeling system; The monitoring data is input into the trained BERT model to obtain the corresponding feature values. Based on the feature values, the corresponding feature parameter names are obtained. The feature parameter names are aliases in the tag system. After the feature parameter names are verified, they are added to the alias library of the initial tag system to obtain the complete tag system.
9. The IoT information extraction method based on zero-sample replay according to claim 1, characterized in that, The complete tag system is displayed on the front-end page in a tree structure for users to add, delete, modify, and query. Then, the tags after adding, deleting, modifying, and querying are synchronized to the tag system to obtain an optimized tag system.
Citation Information
Patent Citations
Asynchronous agents with learning coaches and structurally modifying deep neural networks without performance degradation
CN110892417A
Small sample communication signal automatic modulation identification method based on incremental learning
CN114580484A
