Industrial data asset tag automated classification method and system
By combining probability density function and long-term memory vector with ant colony optimization algorithm, the problems of low classification accuracy and low efficiency of sensor data in industrial data are solved, realizing automated label classification of industrial data and improving classification accuracy.
Patent Information
- Application Number
- CN202310014831.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-05
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-01-05
AI Technical Summary
Existing technologies cannot effectively classify continuous value features from sensors in industrial data, and data imbalance leads to low classification accuracy and efficiency.
We adopt an automated label classification architecture based on probability density function and long-term memory vector, combined with ant colony optimization machine learning algorithm, and dynamically adjust sampling strategy through hybrid ensemble sampling technology and outlier identification to solve the problem of unbalanced data distribution.
It enables automated data label classification of industrial data affected by multiple continuous value features, improving classification accuracy and efficiency, and solving the classification accuracy problem caused by data imbalance.
Smart Images

Figure CN118296481B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automated classification technology, and more specifically, to an automated classification method and system for industrial data asset tags. Background Technology
[0002] In some known application scenarios, there is a need for label classification. For example, patent document CN114387477A provides a label classification model training method, label classification method, device, and apparatus for e-commerce consumption scenarios. Another example is patent document CN114004992A, which provides a multi-label classification model training method and a multi-label image classification method for small target recognition scenarios.
[0003] However, existing technologies cannot classify continuous value characteristics of data derived from continuous values from devices such as sensors in industry. Summary of the Invention
[0004] To address the shortcomings of existing technologies, the purpose of this invention is to provide an automated classification method and system for industrial data asset tags.
[0005] An automated classification method for industrial data asset tags provided by the present invention includes: a classification model training stage and a data classification application stage;
[0006] The classification model training process includes:
[0007] Step T1: Prepare training data, wherein the training data includes feature attributes with multiple continuous values;
[0008] Step T2: Perform data preprocessing on the training data;
[0009] Step T3: Perform imbalanced data processing on the preprocessed training data to obtain sample data;
[0010] Step T4: Train the classification model based on the sample data;
[0011] Step T5: Use the test set to evaluate the training effect of the classification model. If the evaluation finds that the conditions are met, the model training phase ends; otherwise, return to trigger step T4.
[0012] The data classification application process includes:
[0013] Step S1: Prepare the raw data to be classified;
[0014] Step S2: Preprocess the original data to be classified;
[0015] Step S3: Input the preprocessed raw data to be classified into the classification model in batches;
[0016] Step S4: Obtain the classification result output by the classification model.
[0017] Preferably, step T3 includes:
[0018] Step T3.1: Detect the distance between features in continuous data, and then remove data that exceeds the threshold. The detection formula is as follows:
[0019]
[0020] In the formula, k represents the sequence number, n represents the number of characteristic attributes of the data, and x ik Let x represent the k-th feature of the i-th sample record. μk This represents the mean of the k-th feature across all samples.
[0021] Step T3.2: Define the classification ratio of the data The formula is:
[0022]
[0023] In the formula, size classi This represents the amount of data in the i-th class, with an ideal value of 1 / n, where n is the total number of classes.
[0024] Iterate through all categories and take the current category as the class. i , will belong to class i Samples that do not belong to class A are denoted as positive samples. i The positive and negative samples are denoted as negative samples. For positive and negative samples, when the ratio is greater than or equal to the set threshold parameter, which is considered to be much greater than the ideal value, the undersampling technique is used to reduce the ratio by randomly discarding a part of the data; when the ratio is less than the set threshold parameter, which is considered to be much less than the ideal value, the oversampling technique is used to generate new sample data through the nearest neighbor algorithm to increase the ratio.
[0025] Step T3.3: For undersampling, using an ensemble learning model, the majority class samples are randomly divided into n subsets, each containing the same number of minority class samples, which are then used by different learners. Finally, the n models are integrated. For oversampling, the K-neighbors are obtained by calculating the Euclidean distance between samples. A corresponding number of records are randomly selected from the K-neighbors for neighbor pairing, using the following pairing formula:
[0026]
[0027] X newkX represents the k-th feature attribute value of the newly generated sample. i,k X represents the value of the k-th feature attribute of the i-th sample record. ij,k This represents the k-th feature attribute value of the j-th neighbor sample of the i-th sample within K neighbors;
[0028] This yields a balanced training set;
[0029] Step T3.4: Use these balanced training sets to learn any classification model, use this model to classify the samples in the test dataset, record the classification results, and use the area under the ROC curve (AUC) as the evaluation metric for the classification results, as shown in the formula below:
[0030]
[0031] In the formula, x is the false positive rate axis, y is the true positive rate axis, and n represents the number of sample points;
[0032] x i This represents the i-th false positive sample point;
[0033] x i+1 This represents the (i+1)th false positive sample point;
[0034] y i This represents the i-th true instance sample point;
[0035] y i+1 This represents the (i+1)th true instance sample point;
[0036] If the AUC value meets the expected threshold, then step T4 is triggered; otherwise, return to step T3.2, adjust the threshold parameter of the classification ratio, and then dynamically adjust the strategy according to the data distribution.
[0037] Preferably, step T4 includes:
[0038] Step T4.1: Use the result set from the imbalanced data processing as the training sample data;
[0039] Step T4.2: Normalize the values of different features of the sample data;
[0040] Step T4.3: Select the function kernel. The formula for the function kernel G(x) is as follows:
[0041]
[0042] The value of k is consistent with the number of training parameters, the constant μ determines the center point of the density function, σ is the width of the function, and w i Let represent the i-th weight, and x represent the sampling parameters of the function kernel;
[0043] Step T4.4: Start iterative training mode.
[0044] Preferably, in step T4.4:
[0045] The ant weights are updated based on the function kernel, and model ants are calculated based on the weights. The model ants are used as the reference objects for the ant's movement direction. The model ants are selected in the following way:
[0046] The weight of each ant is accumulated and summed through the function kernel, and then saved to the sum_weight variable;
[0047] Set the temporary variable temp to 0; assign a random value (0-1) to the variable r;
[0048] Iterate through the list of all ants;
[0049] Divide the current ant's weight value by the sum_weight variable to calculate the weight ratio, and add the result to temp. If r is less than temp, return the current iteration index, and the ant corresponding to that index is used as the model ant. Otherwise, continue the loop until the iteration ends.
[0050] Preferably, in step T4.4:
[0051] The random sampling of the density function is generated as follows:
[0052] Iterate through the list of all ants;
[0053] Obtain the model ant through the model ant function;
[0054] Iterate through the parameter list of the current ant;
[0055] Calculate the standard deviation between the current parameter vector and the corresponding vector of the model ant;
[0056] New parameter values are generated based on the standard deviation and the model ant vector values;
[0057] Reassign the parameter value to the corresponding parameter attribute of the current ant;
[0058] Continue iterating until the loop ends;
[0059] After sampling new parameter values, the model parameters are evaluated using a regression evaluation function. The iteration ends when the expected conditions are met; otherwise, iterative training continues.
[0060] An automated classification system for industrial data asset tags provided by the present invention includes: a classification model training stage and a data classification application stage;
[0061] The classification model training process includes:
[0062] Module MT1: Prepare training data, wherein the training data includes feature attributes with multiple continuous values;
[0063] Module MT2: Performs data preprocessing on the training data;
[0064] Module MT3: Performs imbalanced data processing on the preprocessed training data to obtain sample data;
[0065] Module MT4: Trains the classification model based on the sample data;
[0066] Module MT5: Uses the test set to evaluate the training effect of the classification model. If the evaluation finds that the conditions are met, the model training phase ends; otherwise, it returns to trigger module MT4.
[0067] The data classification application process includes:
[0068] Module MS1: Prepare the raw data to be classified;
[0069] Module MS2: Preprocesses the raw data to be classified;
[0070] Module MS3: Inputs the preprocessed raw data to be classified into the classification model in batches;
[0071] Module MS4: Obtains the classification result output by the classification model.
[0072] Preferably, the module MT3 includes:
[0073] Module MT3.1: Detects the distance between features in continuous data, then removes data exceeding a threshold. The detection formula is as follows:
[0074]
[0075] In the formula, k represents the sequence number, n represents the number of characteristic attributes of the data, and x ik Let x represent the k-th feature of the i-th sample record. μk This represents the mean of the k-th feature across all samples.
[0076] Module MT3.2: Defines the classification ratio of data The formula is:
[0077]
[0078] In the formula, size classi This represents the amount of data in the i-th class, with an ideal value of 1 / n, where n is the total number of classes.
[0079] Iterate through all categories and take the current category as the class. i , will belong to class i Samples that do not belong to class A are denoted as positive samples. i The positive and negative samples are denoted as negative samples. For positive and negative samples, when the ratio is greater than or equal to the set threshold parameter, which is considered to be much greater than the ideal value, the undersampling technique is used to reduce the ratio by randomly discarding a part of the data; when the ratio is less than the set threshold parameter, which is considered to be much less than the ideal value, the oversampling technique is used to generate new sample data through the nearest neighbor algorithm to increase the ratio.
[0080] Module MT3.3: For undersampling, an ensemble learning model is used to randomly divide the majority class samples into n subsets, each containing the same number of minority class samples, which are then used by different learners. Finally, the n models are integrated. For oversampling, the K-neighbors are obtained by calculating the Euclidean distance between samples. A corresponding number of records are randomly selected from the K-neighbors for neighbor pairing, using the following pairing formula:
[0081]
[0082] X newk X represents the k-th feature attribute value of the newly generated sample. i,k X represents the value of the k-th feature attribute of the i-th sample record. ij,k This represents the k-th feature attribute value of the j-th neighbor sample of the i-th sample within K neighbors;
[0083] This yields a balanced training set;
[0084] Module MT3.4: Use these balanced training sets to learn any classification model, use this model to classify samples in the test dataset, record the classification results, and use the area under the ROC curve (AUC) as the evaluation metric for the classification results, as shown in the formula below:
[0085]
[0086] In the formula, x is the false positive rate axis, y is the true positive rate axis, and n represents the number of sample points;
[0087] x i This represents the i-th false positive sample point;
[0088] x i+1 This represents the (i+1)th false positive sample point;
[0089] y i This represents the i-th true instance sample point;
[0090] y i+1This represents the (i+1)th true instance sample point;
[0091] If the AUC value meets the expected threshold, module MT4 is triggered; otherwise, the process returns to module MT3.2, where the threshold parameter for the classification ratio is adjusted, and the strategy is dynamically adjusted based on the data distribution.
[0092] Preferably, the MT4 module includes:
[0093] Module MT4.1: Uses the result set from the imbalanced data processing as training sample data;
[0094] Module MT4.2: Normalizes the numerical values of different features of the sample data;
[0095] Module MT4.3: Select the function kernel. The formula for the function kernel G(x) is as follows:
[0096]
[0097] The value of k is consistent with the number of training parameters, the constant μ determines the center point of the density function, σ is the width of the function, and w i Let represent the i-th weight, and x represent the sampling parameters of the function kernel;
[0098] Module MT4.4: Enable iterative training mode.
[0099] Preferably, in the module MT4.4:
[0100] The ant weights are updated based on the function kernel, and model ants are calculated based on the weights. The model ants are used as the reference objects for the ant's movement direction. The model ants are selected in the following way:
[0101] The weight of each ant is accumulated and summed through the function kernel, and then saved to the sum_weight variable;
[0102] Set the temporary variable temp to 0; assign a random value (0-1) to the variable r;
[0103] Iterate through the list of all ants;
[0104] Divide the current ant's weight value by the sum_weight variable to calculate the weight ratio, and add the result to temp. If r is less than temp, return the current iteration index, and the ant corresponding to that index is used as the model ant. Otherwise, continue the loop until the iteration ends.
[0105] Preferably, in the module MT4.4:
[0106] The random sampling of the density function is generated as follows:
[0107] Iterate through the list of all ants;
[0108] Obtain the model ant through the model ant function;
[0109] Iterate through the parameter list of the current ant;
[0110] Calculate the standard deviation between the current parameter vector and the corresponding vector of the model ant;
[0111] New parameter values are generated based on the standard deviation and the model ant vector values;
[0112] Reassign the parameter value to the corresponding parameter attribute of the current ant;
[0113] Continue iterating until the loop ends;
[0114] After sampling new parameter values, the model parameters are evaluated using a regression evaluation function. The iteration ends when the expected conditions are met; otherwise, iterative training continues.
[0115] Compared with the prior art, the present invention has the following beneficial effects:
[0116] This invention designs an automated labeling architecture for continuous-value feature attributes based on probability density functions and long-term memory vectors. It employs a hybrid sampling technique to address the problem of imbalanced sample class distribution, achieving automated labeling of continuous-value data assets under imbalanced sample conditions commonly found in industry. This invention can be widely applied in industrial scenarios for automated multi-label classification of data influenced by multiple continuous-value features. Attached Figure Description
[0117] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0118] Figure 1 This is a schematic diagram of an automated classification architecture for data asset tags.
[0119] Figure 2 This is a schematic diagram of the data imbalance processing flow.
[0120] Figure 3 This is a schematic diagram of the classification model training process. Detailed Implementation
[0121] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.
[0122] In industrial settings, data labeling and classification typically relies on industrial sensors as the data source. These sensors measure and collect physical quantities such as pressure, liquid level, temperature, displacement, distance, length, and width. These attributes are continuous values, and the data collection frequency is high, resulting in large datasets. However, the classification results are often influenced by multiple feature attributes. For example, in the case of a blast furnace hot blast stove, the predicted gas consumption classification is affected by various continuous factors such as the equipment's state, pressure, temperature, and flow rate. Coupled with the inaccuracy of some field instrument data, manual classification calculations are difficult and inefficient. Furthermore, due to the high cost of manual data labeling in industrial settings, there is often an imbalance in the distribution of positive and negative labeled samples. For instance, the imbalance ratio between good and defective equipment in a workshop might be as high as 1000:1. This can lead to overfitting when using traditional supervised learning classification methods, affecting the accuracy of the final label classification. By comparing existing traditional data labeling and classification schemes, this invention primarily addresses the following issues:
[0123] To address the issues of industrial data classification being influenced by numerous continuous value factors, and the poor accuracy and low efficiency of manual classification, this invention designs an automated label classification architecture for continuous value features based on probability density functions and long-term memory vectors. By using ant colony optimization machine learning algorithms, automated learning can be achieved, and the trained model can solve the problem of automated data label classification influenced by multiple continuous value features.
[0124] To address the data imbalance problem caused by the large number of sensors and the low proportion of manually labeled samples in industrial settings, and the inability of traditional single data imbalance methods to handle abnormal data due to data acquisition quality issues, this invention adopts a hybrid integrated sampling technology, introduces an anomaly identification step, and designs a real-time adjustment sampling strategy method based on the sample category situation to solve the problem of inaccurate classification caused by the imbalance of sample category distribution in industrial scenarios.
[0125] An automated classification architecture for asset tags in industrial data, such as Figure 1 As shown, it is mainly divided into two stages: classification model training and data classification application. The steps in the classification model training stage begin with T, and the steps in the data classification application stage begin with S.
[0126] The following section explains the training process for the classification model.
[0127] Step T1: Training data preparation. This part of the data consists of feature attributes with multiple continuous values.
[0128] Step T2: Perform data preprocessing, including data integration, missing data completion, and data transformation.
[0129] Step T3: Handling imbalanced data distribution. This involves using a hybrid ensemble sampling technique and an outlier identification step, dynamically adjusting the sampling strategy in real time to address the problem of inaccurate classification models caused by data distribution imbalances.
[0130] Step T4: Classification model training phase. Based on the sample data, the classification model is trained using the probability density function and long-term memory vector.
[0131] Step T5: Use the test set to evaluate the error of the classification model training effect. This part can use common regression model evaluation methods, such as MSE, RMSE, MAE, etc. If the conditions are met, the model training phase ends; otherwise, return to trigger step T4.
[0132] The following section explains the application of data classification.
[0133] Step S1: Prepare the raw data to be classified.
[0134] Step S2: Preprocess the data, including data integration, missing data completion, and data transformation.
[0135] Step S3: Input the data into the classification model in batches. In step S3, due to the large number of sensors in industrial sites and the low efficiency of manual sampling and labeling, there is a widespread problem of imbalanced data distribution. This causes the trained classifier to favor samples with more categories. Therefore, the imbalance problem must be addressed before training the model. This invention mainly processes the data set at the dataset level by manually adjusting the samples to change the data distribution. The proposed solution is as follows: Figure 2 As shown, step T3 specifically includes:
[0136] Step T3.1: Outliers will affect subsequent data sampling and need to be removed first. The Euclidean distance between the data and the mean is calculated iteratively to detect the difference distance between continuous data features. Data exceeding a threshold are then detected and removed. The detection formula is as follows:
[0137]
[0138] In the formula, k represents the sequence number, n represents the number of characteristic attributes of the data, and x ik Let x represent the k-th feature of the i-th sample record. μk This represents the mean of the k-th feature across all samples.
[0139] Step T3.2: First, define the classification ratio of the data. The formula is:
[0140]
[0141] In the formula, size classi This represents the amount of data in the i-th class, with an ideal value of 1 / n, where n is the total number of classes.
[0142] Iterate through all categories and take the current category as the class. i , will belong to class i Samples that do not belong to class A are denoted as positive samples. i The positive and negative samples are denoted as negative samples. For positive and negative samples, when the ratio value is greater than or equal to the set threshold parameter, which is considered to be much greater than the ideal value, the undersampling technique is used to reduce the ratio value by randomly discarding a part of the data. When the ratio value is less than the set threshold parameter, which is considered to be much less than the ideal value, the oversampling technique is used to generate new sample data through the nearest neighbor algorithm to increase the ratio.
[0143] Step T3.3: For undersampling, the EasyEnsemble algorithm can be used. Utilizing an ensemble learning model, the majority class samples are randomly divided into n subsets, each containing the same number of minority class samples, for use by different learners. Finally, the n models are integrated. For oversampling, the SMOTE algorithm is used. The K-neighbors are obtained by calculating the Euclidean distance between samples. A corresponding number of records are randomly selected from these K-neighbors for neighbor pairing. The pairing formula is as follows:
[0144]
[0145] X newk X represents the k-th feature attribute value of the newly generated sample. i,k X represents the value of the k-th feature attribute of the i-th sample record. ij,k It represents the k-th feature attribute value of the j-th neighboring sample of the i-th sample within K neighbors.
[0146] Step T3.4: Use these balanced training sets to learn any general classification model. Use this model to classify the samples in the test dataset, record the classification results, and use the area under the ROC curve (AUC) as the evaluation metric for the classification results, as shown in the formula below:
[0147]
[0148] In the formula, x represents the false positive rate axis, y represents the true positive rate axis, and n represents the number of sample points.
[0149] x i This represents the i-th false positive sample point.
[0150] x i+1 This represents the (i+1)th false positive sample point.
[0151] y i This represents the i-th true sample point.
[0152] y i+1 This represents the (i+1)th true instance sample point.
[0153] The higher the AUC value, the better the classification performance. Once the expected threshold is met, the process ends; otherwise, it returns to trigger step T3.2, where the threshold parameter for the classification ratio is adjusted, and the strategy is dynamically adjusted based on the data distribution.
[0154] Step S4: Output classification results. Step S4 utilizes the pheromone tracking paradigm of ants in nature, designing a training method for continuous-valued parameters based on probability density functions and long-term memory vectors. The model parameters are continuously updated iteratively. The process design is as follows: Figure 3 As shown, step T4 specifically includes:
[0155] Step T4.1: Training data preparation. This part of the data comes from the result set after processing the imbalanced sample data.
[0156] Step T4.2: Normalization, which normalizes the values of different features of the sample data.
[0157] Step T4.3: Select a function kernel. The function kernel consists of multiple probability density functions. During the iteration, the ant will move to a new position based on the random values sampled from the function kernel. The formula for the function kernel G(x) is as follows:
[0158]
[0159] The value of k is consistent with the number of training parameters, the constant μ determines the center point of the density function, σ is the width of the function, and w i Let represent the i-th weight, and x represent the sampling parameters of the function kernel.
[0160] Step T4.4: Start iterative training mode. First, update the ant weights based on the probability density function kernel. Then, calculate the model ant (pheromone) based on the weights. The model ant is used as the reference object for the ant's movement direction. The method for selecting the model ant is as follows:
[0161] The weight of each ant is accumulated and summed through a function kernel, and then stored in the variable sum_weight.
[0162] Set the temporary variable temp to 0; assign a random value (0-1) to the variable r;
[0163] Iterate through the list of all ants;
[0164] Divide the current ant's weight value by the sum_weight variable to calculate the weight ratio, and add the result to temp;
[0165] If r is less than temp, then return the current iteration index and the ant corresponding to that index, which will be used as the model ant.
[0166] Otherwise, continue the loop until the iteration ends.
[0167] After obtaining the model ant, a new movement path needs to be sampled for each ant, based on the standard deviation of the model ant.
[0168] The random sampling method for generating the density function is as follows:
[0169] Iterate through the list of all ants;
[0170] Obtain the model ant through the model ant function;
[0171] Iterate through the parameter list of the current ant;
[0172] Calculate the standard deviation between the current parameter vector and the corresponding vector of the model ant;
[0173] New parameter values are generated based on the standard deviation and the model ant vector values;
[0174] Reassign the parameter value to the corresponding parameter attribute of the current ant;
[0175] Continue iterating until the loop ends.
[0176] After sampling new parameter values, the model parameters can be evaluated using a general regression evaluation function. The iteration ends when the expected conditions are met; otherwise, iterative training continues.
[0177] This invention also provides an automated classification system for industrial data asset tags. Those skilled in the art can implement this system by executing the steps of the automated classification method for industrial data asset tags; that is, the automated classification method for industrial data asset tags can be understood as a preferred embodiment of the automated classification system for industrial data asset tags. Those skilled in the art know that, besides implementing the system, device, and its modules provided by this invention in purely computer-readable program code, the same program can be implemented by logically programming the method steps, making the system, device, and its modules in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, the system, device, and its modules provided by this invention can be considered a hardware component, and the modules included therein for implementing various programs can also be considered structures within the hardware component; the modules for implementing various functions can also be considered as both software programs implementing the method and structures within the hardware component.
[0178] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.
Claims
1. An automated classification method for industrial data asset tags, characterized in that, include: Classification model training and data classification application; The classification model training process includes: Step T1: Prepare training data, wherein the training data includes feature attributes with multiple continuous values; Step T2: Perform data preprocessing on the training data; Step T3: Perform imbalanced data processing on the preprocessed training data to obtain sample data; Step T4: Train the classification model based on the sample data; Step T5: Use the test set to evaluate the training effect of the classification model. If the evaluation finds that the conditions are met, the model training phase ends; otherwise, return to trigger step T4. The data classification application process includes: Step S1: Prepare the raw data to be classified; Step S2: Preprocess the original data to be classified; Step S3: Input the preprocessed raw data to be classified into the classification model in batches; Step S4: Obtain the classification result output by the classification model; The industrial data refers to continuous data obtained from industrial sensors measuring and collecting physical quantities such as pressure, liquid level, temperature, displacement, distance, length, and width. The characteristic attribute of the continuous value is the physical quantity measured by the industrial sensor; Step T3 includes: Step T3.1: Detect the distance between features in continuous data, and then remove data that exceeds the threshold. The detection formula is as follows: In the formula, k represents the sequence number, n represents the number of characteristic attributes of the data, and x ik Let x represent the k-th feature of the i-th sample record. μk This represents the mean of the k-th feature across all samples. Step T3.2: Define the classification ratio of the data The formula is: In the formula, size classi This represents the amount of data in the i-th class, with an ideal value of 1 / n, where n is the total number of classes. Iterate through all categories and take the current category as the class. i , will belong to class i Samples that do not belong to class A are denoted as positive samples. i The positive and negative samples are denoted as negative samples. For positive and negative samples, when the ratio is greater than or equal to the set threshold parameter, which is considered to be much greater than the ideal value, the undersampling technique is used to reduce the ratio by randomly discarding a part of the data; when the ratio is less than the set threshold parameter, which is considered to be much less than the ideal value, the oversampling technique is used to generate new sample data through the nearest neighbor algorithm to increase the ratio. Step T3.3: For undersampling, using an ensemble learning model, the majority class samples are randomly divided into n subsets, each containing the same number of minority class samples, which are then used by different learners. Finally, the n models are integrated. For oversampling, the K-neighbors are obtained by calculating the Euclidean distance between samples. A corresponding number of records are randomly selected from the K-neighbors for neighbor pairing, using the following pairing formula: X newk X represents the k-th feature attribute value of the newly generated sample. i,k X represents the value of the k-th feature attribute of the i-th sample record. ij,k This represents the k-th feature attribute value of the j-th neighbor sample of the i-th sample within K neighbors; This yields a balanced training set; Step T3.4: Use these balanced training sets to learn any classification model, use this model to classify the samples in the test dataset, record the classification results, and use the area under the ROC curve (AUC) as the evaluation metric for the classification results, as shown in the formula below: In the formula, x is the false positive rate axis, y is the true positive rate axis, and n represents the number of sample points; x i This represents the i-th false positive sample point; x i+1 This represents the (i+1)th false positive sample point; y i This represents the i-th true instance sample point; y i+1 This represents the (i+1)th true instance sample point; If the AUC value meets the expected threshold, then step T4 is triggered; otherwise, return to step T3.2, adjust the threshold parameter of the classification ratio, and then dynamically adjust the strategy according to the data distribution.
2. The automated classification method for industrial data asset tags according to claim 1, characterized in that, Step T4 includes: Step T4.1: Use the result set from the imbalanced data processing as the training sample data; Step T4.2: Normalize the values of different features of the sample data; Step T4.3: Select the function kernel. The formula for the function kernel G(x) is as follows: The value of k is consistent with the number of training parameters, the constant μ determines the center point of the density function, σ is the width of the function, and w i Let represent the i-th weight, and x represent the sampling parameters of the function kernel; Step T4.4: Start iterative training mode.
3. The automated classification method for industrial data asset tags according to claim 2, characterized in that, In step T4.4: The ant weights are updated based on the function kernel, and model ants are calculated based on the weights. The model ants are used as the reference objects for the ant's movement direction. The model ants are selected in the following way: The weight of each ant is accumulated and summed through the function kernel, and then saved to the sum_weight variable; Set the temporary variable temp to 0; assign a random value (0-1) to the variable r; Iterate through the list of all ants; Divide the current ant's weight value by the sum_weight variable to calculate the weight ratio, and add the result to temp; If r is less than temp, then return the current iteration index and the ant corresponding to that index, which will be used as the model ant. Otherwise, continue the loop until the iteration ends.
4. The automated classification method for industrial data asset tags according to claim 3, characterized in that, In step T4.4: The random sampling of the density function is generated as follows: Iterate through the list of all ants; Obtain the model ant through the model ant function; Iterate through the parameter list of the current ant; Calculate the standard deviation between the current parameter vector and the corresponding vector of the model ant; New parameter values are generated based on the standard deviation and the model ant vector values; Reassign the parameter value to the corresponding parameter attribute of the current ant; Continue iterating until the loop ends; After sampling new parameter values, the model parameters are evaluated using a regression evaluation function. The iteration ends when the expected conditions are met; otherwise, iterative training continues.
5. An automated classification system for industrial data asset tags, characterized in that, include: Classification model training and data classification application; The classification model training process includes: Module MT1: Prepare training data, wherein the training data includes feature attributes with multiple continuous values; Module MT2: Performs data preprocessing on the training data; Module MT3: Performs imbalanced data processing on the preprocessed training data to obtain sample data; Module MT4: Trains the classification model based on the sample data; Module MT5: Uses the test set to evaluate the training effect of the classification model. If the evaluation finds that the conditions are met, the model training phase ends; otherwise, it returns to trigger module MT4. The data classification application process includes: Module MS1: Prepare the raw data to be classified; Module MS2: Preprocesses the raw data to be classified; Module MS3: Inputs the preprocessed raw data to be classified into the classification model in batches; Module MS4: Obtains the classification result output by the classification model; The industrial data refers to continuous data obtained from industrial sensors measuring and collecting physical quantities such as pressure, liquid level, temperature, displacement, distance, length, and width. The characteristic attribute of the continuous value is the physical quantity measured by the industrial sensor; The MT3 module includes: Module MT3.1: Detects the distance between features in continuous data, then removes data exceeding a threshold. The detection formula is as follows: In the formula, k represents the sequence number, n represents the number of characteristic attributes of the data, and x ik Let x represent the k-th feature of the i-th sample record. μk This represents the mean of the k-th feature across all samples. Module MT3.2: Defines the classification ratio of data The formula is: In the formula, size classi This represents the amount of data in the i-th class, with an ideal value of 1 / n, where n is the total number of classes. Iterate through all categories and take the current category as the class. i , will belong to class i Samples that do not belong to class A are denoted as positive samples. i The positive and negative samples are denoted as negative samples. For positive and negative samples, when the ratio is greater than or equal to the set threshold parameter, which is considered to be much greater than the ideal value, the undersampling technique is used to reduce the ratio by randomly discarding a part of the data; when the ratio is less than the set threshold parameter, which is considered to be much less than the ideal value, the oversampling technique is used to generate new sample data through the nearest neighbor algorithm to increase the ratio. Module MT3.3: For undersampling, an ensemble learning model is used to randomly divide the majority class samples into n subsets, each containing the same number of minority class samples, which are then used by different learners. Finally, the n models are integrated. For oversampling, the K-neighbors are obtained by calculating the Euclidean distance between samples. A corresponding number of records are randomly selected from the K-neighbors for neighbor pairing, using the following pairing formula: X newk X represents the k-th feature attribute value of the newly generated sample. i,k X represents the value of the k-th feature attribute of the i-th sample record. ij,k This represents the k-th feature attribute value of the j-th neighbor sample of the i-th sample within K neighbors; This yields a balanced training set; Module MT3.4: Use these balanced training sets to learn any classification model, use this model to classify samples in the test dataset, record the classification results, and use the area under the ROC curve (AUC) as the evaluation metric for the classification results, as shown in the formula below: In the formula, x is the false positive rate axis, y is the true positive rate axis, and n represents the number of sample points; x i This represents the i-th false positive sample point; x i+1 This represents the (i+1)th false positive sample point; y i This represents the i-th true instance sample point; y i+1 This represents the (i+1)th true instance sample point; If the AUC value meets the expected threshold, module MT4 is triggered; otherwise, the process returns to module MT3.2, where the threshold parameter for the classification ratio is adjusted, and the strategy is dynamically adjusted based on the data distribution.
6. The automated classification system for industrial data asset tags according to claim 5, characterized in that, The MT4 module includes: Module MT4.1: Uses the result set from the imbalanced data processing as training sample data; Module MT4.2: Normalizes the numerical values of different features of the sample data; Module MT4.3: Select the function kernel. The formula for the function kernel G(x) is as follows: The value of k is consistent with the number of training parameters, the constant μ determines the center point of the density function, σ is the width of the function, and w i Let represent the i-th weight, and x represent the sampling parameters of the function kernel; Module MT4.4: Enable iterative training mode.
7. The automated classification system for industrial data asset tags according to claim 6, characterized in that, In the MT4.4 module: The ant weights are updated based on the function kernel, and model ants are calculated based on the weights. The model ants are used as the reference objects for the ant's movement direction. The model ants are selected in the following way: The weight of each ant is accumulated and summed through the function kernel, and then saved to the sum_weight variable; Set the temporary variable temp to 0; assign a random value (0-1) to the variable r; Iterate through the list of all ants; Divide the current ant's weight value by the sum_weight variable to calculate the weight ratio, and add the result to temp; If r is less than temp, then return the current iteration index and the ant corresponding to that index, which will be used as the model ant. Otherwise, continue the loop until the iteration ends.
8. The automated classification system for industrial data asset tags according to claim 7, characterized in that, In the MT4.4 module: The random sampling of the density function is generated as follows: Iterate through the list of all ants; Obtain the model ant through the model ant function; Iterate through the parameter list of the current ant; Calculate the standard deviation between the current parameter vector and the corresponding vector of the model ant; New parameter values are generated based on the standard deviation and the model ant vector values; Reassign the parameter value to the corresponding parameter attribute of the current ant; Continue iterating until the loop ends; After sampling new parameter values, the model parameters are evaluated using a regression evaluation function. The iteration ends when the expected conditions are met; otherwise, iterative training continues.
Citation Information
Patent Citations
Training method of multi-label classification model and multi-label classification method of image
CN114004992A
Label classification model training method, label classification method, device and equipment
CN114387477A
Unbalanced data classification method based on active learning
CN111368924A
Method of using minimized-loss learning to classify imbalanced samples
WO2019033636A1
