A data stream classification method based on dynamic incremental integrated fuzzy
Through the combination of self-organizing fuzzy logic classifier and dynamic weighting algorithm, a dynamic integrated classification framework is formed, which solves the problems of unstable data flow classification performance and low accuracy, and achieves real-time response and high-accuracy data flow classification.
Patent Information
- Application Number
- CN202010482187.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-05-29
AI Technical Summary
When existing technologies deal with real-time, continuous, ordered and time-varying data streams, the classification performance is unstable and the accuracy is low.
A self-organizing fuzzy logic classifier is used for offline learning, combined with a dynamic weighting algorithm and random sampling, to form a dynamic integrated classification framework. By updating fuzzy rules and classifier weights online, incremental learning and weighted voting output of classification results are achieved.
It improves the learning efficiency, classification accuracy and model robustness of data flow classification, can respond to changes in the data environment in a timely manner, and improves classification accuracy and generalization capabilities.
Smart Images

Figure CN111737294B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer machine learning, and in particular relates to a data stream classification method based on dynamic incremental integrated fuzzy. Background Art
[0002] In recent years, with the rapid development of computer technology, more and more fields have generated a steady stream of data streams, such as sensor networks, smart homes, traffic flow monitoring and management, financial services, and business transaction management and analysis. Dedicated networks also generate a large amount of data streams, such as satellite-based high-resolution earth geodetic data, radar-derived meteorological data, continuous large-scale astronomical optics and radio waves and atmospheric radiation measurements. These data are different from traditional static data, but a new type of data object with the characteristics of continuous, fast, short-lived and dynamic changes. Based on these characteristics, the analysis and processing of data streams face huge challenges and is a hot topic in the current data mining field. (Xu S, Wang J. Afast incremental extreme learning machine algorithm for data streams classification [J]. Expert systems with applications, 2016, 65: 332-344.)
[0003] Methods for data stream classification are mainly divided into two categories. One is the traditional data classification method that processes data offline, and the other is the method that classifies data streams by online learning. (Junior JRB, do CarmoNicoletti M. An iterative boosting-based ensemble for streaming data classification [J]. Information Fusion, 2019, 45: 66-78; Wang X, Xing Y. An online support vector machine for the open-ended environment [J]. Expert Systems with Applications, 2019, 120: 72-86.) The traditional data classification method is to fit the parameters of the classifier based on some labeled samples so that the model can achieve the required classification performance. For example: conventional neural network classification algorithms, support vector machines, and decision tree classification algorithms (Cura T. Use of support vector machines with a parallel local search algorithm for data classification and feature selection [J]. Expert Systems with Applications, 2020, 145: 113133.). However, such algorithms are generally used to process small static data sets, and all data must be obtained in advance and the data must be scanned multiple times. However, data streams are real-time, continuous, ordered, time-varying, and infinite sequences. Therefore, online learning methods are more suitable for processing data streams by updating their own structures through continuous learning. Fuzzy rule-based systems provide a unique solution to the problem of dynamic data stream classification because they can learn new knowledge and establish fuzzy rule logic systems. In addition, ensemble learning is also widely used in the field of data streams because it can improve accuracy and processing efficiency. (Krawczyk B, Galar M, M,et al.Dynamic ensemble selection for multi-class classification with one-class classifiers[J].Pattern Recognition,2018,83:34-51.)Therefore, the fuzzy rule system based on self-organization is combined with the dynamic ensemble learning algorithm, and the data stream features are learned with the incremental learning strategy, which not only improves the learning efficiency but also takes into account the generalization performance, classification accuracy and model robustness of the algorithm. Summary of the invention
[0004] The purpose of the present invention is to provide a data stream classification method based on dynamic incremental integrated fuzzy to solve the problems of unstable performance and low classification accuracy of existing methods when classifying real-time, continuous, ordered and time-varying data streams.
[0005] The present invention is achieved through the following technical solutions:
[0006] A data stream classification method based on dynamic incremental integrated fuzzy includes the following steps:
[0007] S1. Use self-organizing fuzzy logic classifier (SOF) for offline learning. By learning the features in the data stream, fuzzy logic rules are established to form a fuzzy classifier.
[0008] S2. Combining the dynamic weighting algorithm with the fuzzy classifier, assigning weights according to the classification performance of the fuzzy classifier, and implementing iterative updates of the weights of the base classifier; dynamically increasing or decreasing the classifier through pre-set thresholds, and finally forming a dynamic integrated classification framework;
[0009] S3. Based on the dynamic integrated classification framework, randomly sample the input training data samples to generate sampling subsets; use the sampling subsets to learn through the fuzzy classifier to achieve online update of the fuzzy rules of the classifier, thereby achieving incremental update of the entire integrated classification framework;
[0010] S4. Use a weighted voting mechanism to output the classification results of the integrated classification framework.
[0011] Furthermore, in step S1, the self-organizing fuzzy logic classifier (SOF) is a novel self-organizing fuzzy logic classification method based on the empirical data analysis (EDA) computing framework and autonomous data-driven clustering technology; SOF offline learning is performed to find data prototypes from data samples of each category through static data learning, thereby establishing a 0-orderAnYa type fuzzy rule system to form a fuzzy classifier;
[0012] The data prototype refers to the density and mutual contribution of data samples; the 0-order AnYa type fuzzy rule system includes the prototype and the 0-order AnYa type fuzzy rule;
[0013] The 0-order AnYa type fuzzy rules are as follows:
[0014] IF(x~P c,1 )OR(x~P c,2 )OR…OR(x~P c,a )THEN(c); (1)
[0015] In the formula, x is the data sample; ~ represents similarity, which can be regarded as membership; P represents the prototype; P c,a represents the ath prototype of category c; a=1,2,…,N; c represents the category, c=1,2,…,C; Formula (1) represents that if the input data sample is similar to a prototype of category c, it means that the category of the data sample is c;
[0016] Without prior knowledge, SOF calculates the density of data samples by using EDA's computational framework and autonomous data-driven clustering technology; the specific calculation of the cumulative proximity of data samples is as follows:
[0017]
[0018] Among them, x i Represented as the i-th data sample; x j Represented as the jth data sample; d(x i ,x j ) is represented by the data sample x i and data sample x j The Euclidean distance between K (x i ) is represented by the data sample x i The cumulative proximity of
[0019] The unimodal density of the data sample is calculated as follows:
[0020]
[0021] Among them, D K (x i ) is represented by the data sample x i The single peak density of x l Represented as the lth data sample;
[0022] When a data sample appears multiple times, the density is multimodal density, and the expression is as follows:
[0023]
[0024] Among them, u i′ Represented as the i′th different data sample, f i′ Represented as different data samples u i′ Then, sort them according to the size of the multi-peak density, and compare them with the size of the multi-peak density of the previous and next data samples to determine the data sample r with the larger local multi-peak density. i′ , and then according to the data sample r with larger local multi-peak density i′ To determine the prototype, the specific method is as follows:
[0025]
[0026] r i′ It is represented as a data sample with high multi-peak density; Represented as r i′ The multi-peak density of; {p}0 is the prototype, that is, the local maximum sequence of the multi-peak density;
[0027] The prototype sequence is iteratively updated through formula (5); finally, the prototype is determined and a 0-order AnYa type fuzzy rule system is established.
[0028] Furthermore, in step S2, a dynamic weighting algorithm is combined with a fuzzy classifier to assign weights according to the classification performance of the fuzzy classifier, so as to implement iterative updating of the classifier weights and finally form an integrated classification framework. The specific operations are as follows:
[0029] At timestamp t, the current integrated framework H (t) It includes m classifiers trained by SOF on data samples with timestamps from 1 to t. The initial weight of each classifier is set to 1. Due to the dynamic nature of the data environment, in order to better measure the relevance of each classifier to the current data environment and its importance in the integrated framework, its weight is iteratively updated according to the classification performance on the data samples corresponding to each timestamp, as shown below:
[0030]
[0031] represents the weight of the sth classifier at timestamp t, s = 1, 2, ..., m; represents the test error of the s-th classifier on the data sample at timestamp t; in order to ensure the overall classification performance, when the weight of the classifier is less than the threshold θ, it will be extracted from the integrated framework H (t) Remove the classifier.
[0032] Furthermore, in step S3, a data sampling method is adopted to generate a subset T by randomly sampling the input training data samples, and the subset T is used as a training set to enable the previous classifier to perform SOF online learning and update the fuzzy rules in an incremental learning manner, so that the classifier can be updated in real time, effectively reducing the impact of the dynamic nature of the data flow on the classifier.
[0033] Furthermore, SOF online learning is used to continuously update the system structure and parameters of the 0-order AnYa type fuzzy rule system, and the recursive update is achieved through the empirical data analysis (EDA) method;
[0034] When a new data sample is input, the unimodal density of the data sample is first calculated, and then compared with the prototype of the category to which the data sample belongs to determine whether a new fuzzy rule needs to be added, as follows:
[0035]
[0036] in, represents the K+1th input data sample, belonging to category c; calculated by formula (3) and {p} c is the prototype of category c, p∈{p} c ; When the above conditions are met, Comparisons with the closest prototypes are as follows:
[0037]
[0038] in, represents the average radius of the local influence area of the prototype of category c. When the above conditions are met, It will be added to the fuzzy rules as a new data prototype, thereby updating the classifier;
[0039] The calculation method is as follows:
[0040]
[0041] The distance between paired data samples is less than the number of
[0042] By performing SOF online learning on the classifier, the fuzzy rules are dynamically updated and the classifier is updated.
[0043] Furthermore, in step S4, the integrated classification framework outputs the classification results of each classifier through a weighted voting mechanism:
[0044]
[0045] in, Represents the training data x corresponding to timestamp t i The corresponding s-th classifier, It is represented as the classification result corresponding to the maximum weight value after weighted voting.
[0046] Compared with the prior art, the present invention has the following advantages and technical effects:
[0047] 1. It provides a data flow classification method in a dynamic environment, which can respond to changes in the external data environment in a timely manner. Conventional data classification models are often suitable for processing data in a static environment and are difficult to respond to changes in the data environment.
[0048] 2. The proposed dynamic integrated classification model based on self-organizing fuzzy classifier uses self-organizing fuzzy classifier to learn the features in the data stream online and fully; the dynamic weighting algorithm of the classifier used can update the classifier weight in real time and dynamically increase or decrease the classifier, thereby improving the learning efficiency and classification accuracy of the classifier. The weighted voting mechanism is used to output the classification results, which further improves the accuracy of the integrated classification.
[0049] 3. The proposed incremental integrated classification model uses random sampling to generate training subsets and enables the classifier to learn in an incremental form, so that it can fully learn the features in the current data stream and respond promptly to changes in the data environment. It also obtains an integrated classification model with better generalization ability, higher classification accuracy and stronger robustness. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 Schematic diagram of the flow of a data stream classification method based on dynamic incremental integrated fuzzy classification in an embodiment of the present invention.
[0051] Figure 2 It is a schematic diagram of dynamic integrated fuzzy classification in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to make the technical solutions and advantages of the present invention more clearly understood, the specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings, but the implementation and protection of the present invention are not limited thereto.
[0053] Example:
[0054] A data stream classification method based on dynamic incremental integrated fuzzy, such as Figure 1 As shown, the following steps are included:
[0055] S1. Use self-organizing fuzzy logic classifier (SOF) for offline learning. By learning the features in the data stream, fuzzy logic rules are established to form a fuzzy classifier.
[0056] The self-organizing fuzzy logic classifier (SOF) is a novel self-organizing fuzzy logic classification method based on the empirical data analysis (EDA) computing framework and autonomous data-driven clustering technology; SOF offline learning is performed to find data prototypes from data samples of each category through static data learning, thereby establishing a 0-order AnYa type fuzzy rule system to form a fuzzy classifier;
[0057] The data prototype refers to the density and mutual contribution of data samples; the 0-order AnYa type fuzzy rule system includes the prototype and the 0-order AnYa type fuzzy rule;
[0058] The 0-order AnYa type fuzzy rules are as follows:
[0059] IF(x~P c,1 )OR(x~P c,2 )OR…OR(x~P c,a )THEN(c); (1)
[0060] In the formula, x is the data sample; ~ represents similarity, which can be regarded as membership; P represents the prototype; P c,a represents the ath prototype of category c; a=1,2,…,N; c represents the category, c=1,2,…,C; Formula (1) represents that if the input data sample is similar to a prototype of category c, it means that the category of the data sample is c;
[0061] Without prior knowledge, SOF calculates the density of data samples by using EDA's computational framework and autonomous data-driven clustering technology; the specific calculation of the cumulative proximity of data samples is as follows:
[0062]
[0063] Among them, x i Represented as the i-th data sample; x j Represented as the jth data sample; d(x i ,x j ) is represented by the data sample x i and data sample x j The Euclidean distance between K (x i ) is represented by the data sample x i The cumulative proximity of
[0064] The unimodal density of the data sample is calculated as follows:
[0065]
[0066] Among them, D K (x i ) is represented by the data sample x i The single peak density of x l Represented as the lth data sample;
[0067] When a data sample appears multiple times, the density is multimodal density, and the expression is as follows:
[0068]
[0069] Among them, u i′ Represented as the i′th different data sample, f i′ Represented as different data samples u i′ Then, sort them according to the size of the multi-peak density, and compare them with the size of the multi-peak density of the previous and next data samples to determine the data sample r with the larger local multi-peak density. i′ , and then according to the data sample r with larger local multi-peak density i′ To determine the prototype, the specific method is as follows:
[0070]
[0071] r i′ It is represented as a data sample with high multi-peak density; Represented as r i′ The multi-peak density of; {p}0 is the prototype, that is, the local maximum sequence of the multi-peak density;
[0072] The prototype sequence is iteratively updated through formula (5); finally, the prototype is determined and a 0-order AnYa type fuzzy rule system is established.
[0073] S2. Combining the dynamic weighting algorithm with the fuzzy classifier, assigning weights according to the classification performance of the fuzzy classifier, and implementing iterative updates of the weights of the base classifier; dynamically increasing or decreasing the classifier through pre-set thresholds, and finally forming a dynamic integrated classification framework;
[0074] The dynamic weighting algorithm is combined with the fuzzy classifier, and weights are assigned according to the classification performance of the fuzzy classifier to achieve iterative update of the classifier weights, and finally form an integrated classification framework. The specific operations are as follows:
[0075] At timestamp t, the current integrated framework H (t)It includes m classifiers trained by SOF on data samples with timestamps from 1 to t. The initial weight of each classifier is set to 1. Due to the dynamic nature of the data environment, in order to better measure the relevance of each classifier to the current data environment and its importance in the integrated framework, its weight is iteratively updated according to the classification performance on the data samples corresponding to each timestamp, as shown below:
[0076]
[0077] represents the weight of the sth classifier at timestamp t, s = 1, 2, ..., m; represents the test error of the s-th classifier on the data sample at timestamp t; in order to ensure the overall classification performance, when the weight of the classifier is less than the threshold θ, it will be extracted from the integrated framework H (t) Remove the classifier.
[0078] S3. Based on the dynamic integrated classification framework, randomly sample the input training data samples to generate sampling subsets; use the sampling subsets to learn through the fuzzy classifier to achieve online update of the fuzzy rules of the classifier, thereby achieving incremental update of the entire integrated classification framework;
[0079] like Figure 2 As shown in the figure, the data sampling method is adopted to generate a subset T by randomly sampling the input training data samples, and the subset T is used as the training set to enable the previous classifier to perform SOF online learning and update the fuzzy rules in an incremental learning manner, so that the classifier can be updated in real time, effectively reducing the impact of the dynamic nature of the data flow on the classifier.
[0080] The SOF online learning is used to continuously update the system structure and parameters of the 0-order AnYa type fuzzy rule system, and the recursive update is achieved through the empirical data analysis (EDA) method;
[0081] When a new data sample is input, the unimodal density of the data sample is first calculated, and then compared with the prototype of the category to which the data sample belongs to determine whether a new fuzzy rule needs to be added, as follows:
[0082]
[0083] in, represents the K+1th input data sample, belonging to category c; calculated by formula (3) and {p} c is the prototype of category c, p∈{p} c ; When the above conditions are met, Comparisons with the closest prototypes are as follows:
[0084]
[0085] in, represents the average radius of the local influence area of the prototype of category c. When the above conditions are met, It will be added to the fuzzy rules as a new data prototype, thereby updating the classifier;
[0086] The calculation method is as follows:
[0087]
[0088] The distance between paired data samples is less than the number of
[0089] By performing SOF online learning on the classifier, the fuzzy rules are dynamically updated and the classifier is updated.
[0090] S4. Use a weighted voting mechanism to output the classification results of the integrated classification framework.
[0091] The integrated classification framework outputs the classification results of each classifier through a weighted voting mechanism:
[0092]
[0093] in, Represents the training data x corresponding to timestamp t i The corresponding s-th classifier, It is represented as the classification result corresponding to the maximum weight value after weighted voting.
[0094] The above process is a preferred specific implementation of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A data stream classification method based on dynamic incremental integrated fuzzy, characterized in that: The following steps are involved: S1. Use self-organizing fuzzy logic classifier (SOF) for offline learning. By learning the features in the data stream, fuzzy logic rules are established to form a fuzzy classifier. S2. Combining the dynamic weighting algorithm with the fuzzy classifier, assigning weights according to the classification performance of the fuzzy classifier, and implementing iterative updates of the weights of the base classifier; dynamically increasing or decreasing the classifier through pre-set thresholds, and finally forming a dynamic integrated classification framework; S3. Based on the dynamic integrated classification framework, the input training data samples are randomly sampled to generate sampling subsets; the sampling subsets are used to learn through the fuzzy classifier to realize the online update of the fuzzy rules of the classifier, thereby realizing the update of the entire integrated classification framework in an incremental form; the data sampling method is adopted to generate a subset T by randomly sampling the input training data samples, and the subset T is used as the training set to enable the previous classifier to perform SOF online learning and update the fuzzy rules in an incremental learning manner, so that the classifier can be updated in real time, effectively reducing the impact of the dynamic nature of the data flow on the classifier; S4. Use a weighted voting mechanism to output the classification results of the integrated classification framework; the integrated classification framework outputs the classification results of each classifier through a weighted voting mechanism: in, Represents the training data x corresponding to timestamp t i The corresponding s-th classifier, It is represented as the classification result corresponding to the maximum weight value after weighted voting.
2. According to claim 1, a data stream classification method based on dynamic incremental integrated fuzzy is characterized in that: In step S1, the self-organizing fuzzy logic classifier (SOF) is a new self-organizing fuzzy logic classification method based on the empirical data analysis (EDA) computing framework and autonomous data-driven clustering technology; SOF offline learning is performed to find data prototypes from data samples of each category through static data learning, thereby establishing a 0-order An Ya type fuzzy rule system to form a fuzzy classifier; The data prototype refers to the density and mutual contribution of data samples; the 0-order AnYa type fuzzy rule system includes the prototype and the 0-order AnYa type fuzzy rule; The 0-order AnYa type fuzzy rules are as follows: IF(x~P c,1 ) OR(x~P c,2 ) OR…OR(x~P c,a ) THEN(c); (1) In the formula, x is the data sample; ~ represents similarity, which can be regarded as membership; P represents the prototype; P c,a represents the ath prototype of category c; a=1,2,…,N; c represents the category, c=1,2,…,C; Formula (1) represents that if the input data sample is similar to a prototype of category c, it means that the category of the data sample is c; Without prior knowledge, SOF calculates the density of data samples by using EDA's computational framework and autonomous data-driven clustering technology; the specific calculation of the cumulative proximity of data samples is as follows: Among them, x i Represented as the i-th data sample; x j Represented as the jth data sample; d(x i ,x j ) is represented by the data sample x i and data sample x j The Euclidean distance between K (x i ) is represented by the data sample x i The cumulative proximity of The unimodal density of the data sample is calculated as follows: Among them, D K (x i ) is represented by the data sample x i The single peak density of x l Represented as the lth data sample; When a data sample appears multiple times, the density is multimodal density, and the expression is as follows: Among them, u i' Represented as the i'th different data sample, f i' Represented as different data samples u i' Then, sort them according to the size of the multi-peak density, and compare them with the size of the multi-peak density of the previous and next data samples to determine the data sample r with the larger local multi-peak density. i' , and then according to the data sample r with larger local multi-peak density i' To determine the prototype, the specific method is as follows: r i' It is represented as a data sample with high multi-peak density; Represented as r i' The multi-peak density of; {p}0 is the prototype, that is, the local maximum sequence of the multi-peak density; The prototype sequence is iteratively updated through formula (5); finally, the prototype is determined and a 0-orderAnYa type fuzzy rule system is established.
3. The data stream classification method based on dynamic incremental integrated fuzzy according to claim 1 is characterized in that: In step S2, a dynamic weighting algorithm is combined with a fuzzy classifier to assign weights according to the classification performance of the fuzzy classifier, so as to implement iterative updates of the classifier weights and finally form an integrated classification framework. The specific operations are as follows: At timestamp t, the current integrated framework H (t) It includes m classifiers trained by SOF on data samples with timestamps from 1 to t. The initial weight of each classifier is set to 1. Due to the dynamic nature of the data environment, in order to better measure the relevance of each classifier to the current data environment and its importance in the integrated framework, its weight is iteratively updated according to the classification performance on the data samples corresponding to each timestamp, as shown below: represents the weight of the sth classifier at timestamp t, s = 1, 2, ..., m; represents the test error of the s-th classifier on the data sample at timestamp t; in order to ensure the overall classification performance, when the weight of the classifier is less than the threshold θ, it will be extracted from the integrated framework H (t) Remove the classifier.
4. The data stream classification method based on dynamic incremental integrated fuzzy according to claim 1 is characterized in that: The SOF online learning is used to continuously update the system structure and parameters of the 0-orderAnYa type fuzzy rule system, and the recursive update is achieved through the empirical data analysis (EDA) method; When a new data sample is input, the unimodal density of the data sample is first calculated, and then compared with the prototype of the category to which the data sample belongs to determine whether a new fuzzy rule needs to be added, as follows: in, represents the K+1th input data sample, belonging to category c; calculated by formula (3) and {p} c is the prototype of category c, p∈{p} c ; When the above conditions are met, Comparisons with the closest prototypes are as follows: in, represents the average radius of the local influence area of the prototype of category c. When the above conditions are met, It will be added to the fuzzy rules as a new data prototype, thereby updating the classifier; The calculation method is as follows: The distance between paired data samples is less than the number of By performing SOF online learning on the classifier, the fuzzy rules are dynamically updated and the classifier is updated.
Citation Information
Patent Citations
Method for extracting nonlinear time series prediction model using neural network with weighted fuzzy membership functions
KR1020080084132A
Fuzzy inference network for classification of high-dimensional data
US20030018592A1
