Information collection and classification system based on big data
By analyzing the importance of data feature variables and dimensionality reduction, combined with the random forest algorithm of the relative depth of the decision tree, the problem of low accuracy in high-dimensional data classification is solved and a more efficient data classification effect is achieved.
Patent Information
- Application Number
- CN202410889145.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the traditional random forest algorithm handles high-dimensional data, the classification ability is weakened due to redundant feature variables, which in turn leads to low accuracy of classification results.
By analyzing the importance of data feature variables in each dimension in distinguishing high-dimensional data, the feature weights are determined, and the improved LE algorithm is used for dimensionality reduction, and the random forest algorithm combined with the relative depth of the decision tree is used for data classification to avoid classification. Overfitting.
It effectively eliminates the influence of redundant features, retains the characteristics of key data variables, improves the accuracy and reliability of data classification, and avoids classification overfitting.
Smart Images

Figure CN118536008A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to an information collection and classification system based on big data. Background Art
[0002] With the development of computer science and information technology, a large amount of business data has accumulated in the database systems of various industries such as finance, medical care, and energy. Using data mining or machine learning models to discover new knowledge, mine new value, or provide new services from database systems is a hot research issue in the current big data field. In order to improve work efficiency, it is necessary to further explore efficient data information extraction methods, that is, to classify and process the messy data to extract valid data.
[0003] The traditional random forest algorithm classifies the collected information data into valid data and invalid data when the data feature variables have similar effects on the classification effect. However, when the data feature set contains a large number of redundant feature variables, that is, when the information data is high-dimensional data, the same strategy is adopted to generate a decision tree for all data feature variables corresponding to the high-dimensional data. At this time, the classification ability of the decision tree is weakened, resulting in overfitting of the classification, which in turn leads to low accuracy of the classification results of the information data. Summary of the invention
[0004] In order to solve the above-mentioned technical problem of low accuracy of classification results of information data containing many redundant feature variables, the purpose of the present invention is to provide an information collection and classification system based on big data, and the technical solution adopted is as follows: An embodiment of the present invention provides an information collection and classification system based on big data, comprising a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the following steps: Acquire a high-dimensional data set to be classified, wherein the high-dimensional data to be classified in the high-dimensional data set to be classified is a vector composed of data feature variables of several dimensions; According to each of the high-dimensional data to be classified and the data feature variables of each dimension, analyzing the importance of the data feature variables of each dimension in distinguishing the high-dimensional data to be classified, and determining the feature weight of each of the high-dimensional data to be classified; Using an algorithm combining the feature weights of each high-dimensional data to be classified, the high-dimensional data set to be classified is subjected to dimensionality reduction processing to obtain a low-dimensional data set to be classified; Determine the feature classification excellence of each dimension according to the occurrence frequency characteristics of the data feature variables of the same dimension in all the low-dimensional data to be classified in the low-dimensional data set to be classified; According to the feature classification excellence and the preset decision tree reference depth, the decision tree relative depth of each decision tree is determined; and the classification result of each low-dimensional data to be classified is determined by integrating the random forest algorithm with the decision tree relative depth.
[0005] Furthermore, according to each of the high-dimensional data to be classified and the data feature variables of each dimension, the importance of the data feature variables of each dimension in distinguishing the high-dimensional data to be classified is analyzed, and the feature weight of each high-dimensional data to be classified is determined, including: Select any two high-dimensional data to be classified to form the target high-dimensional data to be classified, and determine the feature influencing factor of each dimension of the target high-dimensional data to be classified according to the distance of the high-dimensional data to be classified and the distance of the data feature variables of each dimension; According to the feature influencing factor of each dimension and the data feature variable distance of each dimension, the feature weight of the target high-dimensional data to be classified is determined.
[0006] Furthermore, the objective step of determining the feature influencing factor of each dimension of the high-dimensional data to be classified includes: The target is to calculate the distance between two high-dimensional data to be classified in the high-dimensional data to be classified, and the distance between the two high-dimensional data to be classified is normalized to obtain the distance of the high-dimensional data to be classified; Taking any dimension as the target dimension, calculating the difference between the data feature variables of the target dimensions of the two high-dimensional data to be classified, normalizing the difference between the data feature variables of the target dimensions, and obtaining the data feature variable distance of the target dimension; Determine the correlation coefficient between the distance of the high-dimensional data to be classified and the distance of the data feature variable of the target dimension, standardize the correlation coefficient, and obtain the feature influence factor of the target dimension under the high-dimensional data to be classified.
[0007] Furthermore, determining the target feature weight of the high-dimensional data to be classified according to the feature influence factor of each dimension and the data feature variable distance of each dimension includes: The inverse of the feature influence factor is used as the coefficient of the data feature variable distance of the corresponding dimension, and the coefficient is used to perform weighted sum processing on the data feature variable distance of each dimension to obtain the degree of difference of the feature variables of the target high-dimensional data to be classified; The degree of difference of the characteristic variables is normalized in inverse proportion to obtain the characteristic weight of the target high-dimensional data to be classified.
[0008] Furthermore, the method of using an algorithm combining the feature weights of each high-dimensional data to be classified to reduce the dimension of the high-dimensional data set to be classified to obtain a low-dimensional data set to be classified includes: The feature weights are used as weights of the high-dimensional data to be classified in an undirected weighted adjacency graph to obtain an improved LE algorithm; and the improved LE algorithm is used to perform dimensionality reduction processing on the high-dimensional data set to be classified to obtain a low-dimensional data set to be classified.
[0009] Furthermore, determining the feature classification excellence of each dimension according to the occurrence frequency characteristics of the data feature variables of the same dimension in all the low-dimensional data to be classified in the low-dimensional data set to be classified includes: The interval formed by the minimum value to the maximum value of the data feature variable of the same dimension is used as the low-dimensional data feature interval of the corresponding dimension; the occurrence frequency of different data feature variables of the same dimension is counted, and a histogram of the data feature variables of each dimension is constructed according to the occurrence frequency of the different data feature variables; In the histogram of the data feature variables of each dimension, the data feature variable with the maximum occurrence frequency is taken as the center, and the preset multiple of the low-dimensional data feature interval is used as the classification interval of the corresponding dimension; according to the occurrence frequency of each data feature variable in the classification interval of each dimension, the feature classification excellence of each dimension is determined.
[0010] Furthermore, determining the feature classification excellence of each dimension according to the occurrence frequency of each data feature variable in the classification interval of each dimension includes: For any dimension, the cumulative value of the occurrence frequency of all data feature variables in the classification interval of the dimension is determined, and the cumulative value of the occurrence frequency is normalized to obtain the feature classification excellence of the dimension.
[0011] Furthermore, determining the decision tree relative depth of each decision tree according to the feature classification excellence and a preset decision tree reference depth includes: From the data feature variables of all dimensions of all the low-dimensional data to be classified, randomly select data feature variables of a preset number of dimensions as data classification features for generating a decision tree; The decision tree relative depth of each decision tree is determined according to the feature classification excellence of each of the data classification features of each decision tree and the decision tree reference depth.
[0012] Further, determining the decision tree relative depth of each decision tree according to the feature classification excellence of each of the data classification features of each decision tree and the decision tree reference depth includes: For any decision tree, the cumulative sum of the feature classification excellence of each of the data classification features of the decision tree is calculated, and the product of the cumulative sum of the feature classification excellence and the reference depth of the decision tree is used as the decision tree relative depth of the decision tree.
[0013] Furthermore, the classification result of the low-dimensional data to be classified is valid data or invalid data.
[0014] The present invention has the following beneficial effects: The present invention provides an information collection and classification system based on big data. By analyzing the importance of data feature variables of each dimension in distinguishing high-dimensional data to be classified, the determined feature weight improves the calculation process of the adjacency graph weight in the LE algorithm, which can eliminate the influence of redundant feature variables in the high-dimensional data to be classified to a certain extent, and retain the data variable features that play a key role in data information classification, so as to obtain a more reliable low-dimensional data set to be classified. Based on the occurrence frequency characteristics of data feature variables of the same dimension in all low-dimensional data to be classified in the low-dimensional data set to be classified, the feature classification excellence of each dimension is quantified, the key role played by the data variable features in data classification can be amplified, and the data variable features that play an auxiliary role in data classification can be reduced, which is conducive to the subsequent adaptive determination of the decision tree relative depth of each decision tree; using the random forest algorithm that integrates the relative depth of the decision tree, the low-dimensional data to be classified is subjected to data classification analysis, which can make full use of the feature information of the data, avoid classification overfitting, and improve the accuracy of data classification. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 An execution flow chart of an information collection and classification system based on big data provided by an embodiment of the present invention; Figure 2 This is a flowchart of step S2 in an embodiment of the present invention; Figure 3 is a flowchart of step S4 in an embodiment of the present invention; Figure 4 is an example diagram of a histogram of data feature variables in an embodiment of the present invention; Figure 5 4 is a flowchart of step S5 in an embodiment of the present invention. DETAILED DESCRIPTION
[0017] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the technical solutions proposed by the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0018] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0019] The application scenarios targeted by the present invention may be: The data feature variables of different dimensions of high-dimensional data from complex systems are often mixed with a large number of redundant features and irrelevant features. Redundant features and irrelevant features cannot play a role in the classification of data information and may even have a negative impact on the classification performance of the model. Specifically: if the traditional random forest algorithm selects redundant data feature variables during the decision tree generation process, the classification ability of the decision tree will be weakened, which will lead to low accuracy of data classification.
[0020] In order to enhance the accuracy of high-dimensional data classification, an embodiment of the present invention provides an information collection and classification system based on big data, including a memory and a processor, wherein the processor executes a computer program stored in the memory, such as Figure 1 As shown, to achieve the following steps: S1, obtain the high-dimensional data set to be classified.
[0021] In this embodiment, an information data set to be classified in a database system of a certain industry is obtained, and the information data set is recorded as a high-dimensional data set to be classified, and each high-dimensional data to be classified in the high-dimensional data set to be classified is a high-dimensional vector, that is, the high-dimensional data to be classified is a vector composed of data feature variables of several dimensions, and the dimensions of all high-dimensional data to be classified are the same. Among them, the industry may be finance, medical care, energy and other industries.
[0022] As an example, the i-th high-dimensional data to be classified in the high-dimensional data set to be classified can be recorded as , , Represents the data feature variable of the first dimension in the i-th high-dimensional data to be classified, Represents the data feature variable of the second dimension in the i-th high-dimensional data to be classified, It represents the data feature variable of the Rth dimension in the i-th high-dimensional data to be classified, R represents the number of dimensions of the high-dimensional data to be classified, and the empirical value can be 20; at the same time, the number of high-dimensional data to be classified can be recorded as G, and the empirical value of G can be 10000. Among them, the number of dimensions of a single high-dimensional data to be classified and the number of high-dimensional data to be classified can be set by the implementer according to the actual situation, and there is no specific limitation.
[0023] So far, this embodiment has obtained a high-dimensional data set to be classified.
[0024] S2, according to each high-dimensional data to be classified and the data feature variables of each dimension, analyze the importance of the data feature variables of each dimension in distinguishing the high-dimensional data to be classified, and determine the feature weight of each pair of high-dimensional data to be classified.
[0025] First of all, it should be noted that when the LE algorithm (a manifold dimensionality reduction algorithm that retains local data features) constructs an undirected weighted adjacency graph, the Gaussian kernel function assigns the same weight to each edge in the undirected weighted adjacency graph. The undirected weighted adjacency graph constructed in this way cannot reflect the strength of the correlation between different data feature variables and the high-dimensional data to be classified, resulting in the data feature variables after dimensionality reduction being unable to eliminate the influence of redundant data features in the high-dimensional data set to be classified.
[0026] Therefore, in order to eliminate the influence of redundant data features to a certain extent, based on the distance characteristics of data feature variables and the overall spacing characteristics of high-dimensional data to be classified, the correlation of data feature variables of each dimension in distinguishing high-dimensional data to be classified is analyzed, and the feature weight is quantified. The feature weight represents the importance of data feature variables of different dimensions of two high-dimensional data to be classified during dimensionality reduction processing. Therefore, the feature weight can be used as the weight in the undirected weighted adjacency graph in the subsequent process to adaptively determine the weight of the high-dimensional data to be classified in the undirected weighted adjacency graph, so as to eliminate the influence of redundant data features in the high-dimensional data set to be classified.
[0027] The above step S2 can be Figure 2 The steps shown achieve: S21, randomly select two high-dimensional data to be classified to form target high-dimensional data to be classified, and determine the feature influencing factor of each dimension of the target high-dimensional data to be classified according to the distance of the high-dimensional data to be classified and the distance of the data feature variables of each dimension.
[0028] It should be noted that the feature influence factor can indicate the degree of influence of the target on the data feature variables of each dimension in the high-dimensional data to be classified when classifying data information. The greater the degree of influence, the stronger the correlation of the data feature variables in distinguishing the data to be classified. Therefore, the distance between the two high-dimensional data to be classified is first measured by the difference between the data feature variables of a single dimension, that is, the distance of the data feature variables is determined, and then the overall distance is reflected by the Euclidean distance of the two high-dimensional data to be classified; when the correlation between the distance of the data feature variables of a certain dimension and the overall distance is higher, it means that the feature influence factor under the data feature variable of this dimension is larger, and its influence on the subsequent classification of data information is greater, and the data feature variable of this dimension should be retained more in the dimensionality reduction process.
[0029] In this embodiment, any two high-dimensional data to be classified are formed into a pair to obtain each high-dimensional data to be classified. Since the calculation process of each feature influence factor is consistent, in order to facilitate understanding of the scheme, any high-dimensional data to be classified is taken as the target high-dimensional data to be classified, and the feature influence factor of each dimension under the target high-dimensional data to be classified is determined. The implementation steps may include: The first step is to calculate the distance between two high-dimensional data to be classified in the target pair of high-dimensional data to be classified, and normalize the distance between the two high-dimensional data to be classified to obtain the distance of the high-dimensional data to be classified.
[0030] Specifically, the Euclidean distance between two high-dimensional data to be classified is calculated, and the Euclidean distance is processed using a linear normalization function to obtain a normalized value, and the normalized value is used as the target distance of the high-dimensional data to be classified.
[0031] Among them, the methods for measuring the distance between two vectors include but are not limited to: Euclidean distance, Manhattan distance, cosine similarity and Hamming distance; the methods for implementing normalization processing include but are not limited to: linear normalization, mean normalization, nonlinear normalization and decimal calibration normalization; the calculation method of the distance between two vectors and the implementation process of normalization processing are both existing technologies and will not be elaborated in detail here.
[0032] As an example, the calculation formula of the distance between the target and the high-dimensional data to be classified can be: ; In the formula, It represents the distance between the target and the high-dimensional data to be classified. The target high-dimensional data to be classified consists of the i-th high-dimensional data to be classified and the k-th high-dimensional data to be classified. norm represents the linear normalization function. D represents the Euclidean distance function. represents the i-th high-dimensional data to be classified, Represents the kth high-dimensional data to be classified.
[0033] In the second step, any dimension is taken as the target dimension, the difference between the data feature variables of the target dimensions of the two high-dimensional data to be classified is calculated, the difference between the data feature variables of the target dimensions is normalized, and the data feature variable distance of the target dimension is obtained.
[0034] In this embodiment, each dimension of the target high-dimensional data to be classified has its corresponding feature influence factor, and the calculation process of the feature influence factor is the same. In order to facilitate the understanding of the present invention, any dimension is taken as the target dimension, and the target dimension is used as an example to determine the data feature variable distance of the target dimension, and then the feature influence factor of the target dimension.
[0035] As an example, the calculation formula for the distance between the target and the data feature variable of the mth dimension in the high-dimensional data to be classified can be: ; In the formula, It represents the distance between the target and the data feature variable of the mth dimension under the classified high-dimensional data. Represents the data feature variable of the mth dimension in the i-th high-dimensional data to be classified, Represents the data feature variable of the mth dimension in the kth high-dimensional data to be classified, Represents the absolute value function.
[0036] The third step is to determine the correlation coefficient between the distance of the high-dimensional data to be classified and the distance of the data feature variable of the target dimension, standardize the correlation coefficient, and obtain the characteristic influence factor of the target dimension under the high-dimensional data to be classified.
[0037] As an example, the calculation formula for the feature influence factor of the mth dimension of the target high-dimensional data to be classified can be: ; In the formula, It represents the characteristic influence factor of the target on the mth dimension of the classified high-dimensional data, and exp represents the exponential function with a natural constant as the base. Represents the Pearson correlation coefficient function.
[0038] In the calculation formula of the feature impact factor, the value range of the Pearson correlation coefficient is between -1 and 1, and exp is used to ensure that the value of the feature impact factor is greater than zero; since the distance between the high-dimensional data to be classified and the distance between the data feature variables have a large range of values, in order to facilitate calculation, the normalization function is used to ensure and The value range is between 0 and 1; the data feature variable distance can represent the distance between two data to be classified using a single data feature variable as the measure, and the high-dimensional data distance to be classified can represent the Euclidean distance between two high-dimensional data to be classified, which can reflect the overall distance between the two high-dimensional data to be classified; when the correlation between the data feature variable distance and the high-dimensional data distance to be classified is higher, the larger the Pearson correlation coefficient between the two is, the stronger the correlation of the feature influencing factor of the mth dimension in distinguishing the high-dimensional data to be classified is, that is, the higher the importance of the feature influencing factor of the mth dimension is.
[0039] S22, determining the target feature weights for the high-dimensional data to be classified according to the feature influence factor of each dimension and the data feature variable distance of each dimension.
[0040] It should be noted that the redundant data feature variables do not change much between valid data and invalid data, and it is difficult to accurately classify the data to be classified based on the redundant features, that is, the correlation between the redundant data feature variable distance and the high-dimensional data distance to be classified is weak. Therefore, the feature influence factor of each dimension can be used as the coefficient of the data feature variable distance, that is, the feature influence factor is used to weight the data feature variable distance to obtain a feature weight with higher numerical accuracy.
[0041] The above step S22 can be implemented by the following steps: In the first step, the inverse of the feature influence factor is used as the coefficient of the data feature variable distance of the corresponding dimension, and the coefficient is used to perform weighted summation on the data feature variable distance of each dimension to obtain the degree of difference in the feature variables of the target high-dimensional data to be classified.
[0042] In this embodiment, by weighting the distance of data feature variables by the inverse of the feature influence factor, the degree of influence of data feature variables of different dimensions on the classification of data information can be distinguished, so as to enhance the effect of data feature variables with strong correlation during data dimensionality reduction, and facilitate the removal of data feature variables with weak correlation in the subsequent dimensionality reduction process.
[0043] In the second step, the difference degree of the feature variables is normalized in inverse proportion to obtain the feature weights of the target high-dimensional data to be classified.
[0044] In this embodiment, the smaller the difference degree of the feature variables, the better the similarity between the two data feature variables of the same dimension, and the stronger the correlation. The data feature variables with strong correlation have a large difference between valid data and invalid data, and can be accurately classified according to the two data feature variables of the corresponding dimension, that is, the more it should be retained in the subsequent dimensionality reduction processing, the greater the feature weight of the target to be classified high-dimensional data should be. Therefore, it is necessary to perform inverse proportional normalization processing on the difference degree of the feature variables so that the feature weight conforms to the corresponding dimensionality reduction principle, that is, the data feature variable with a larger feature influence factor is given a larger weight when constructing an undirected weighted adjacency graph to enhance the similarity measurement between the two high-dimensional data to be classified.
[0045] As an example, the calculation formula for the feature weight of the target high-dimensional data to be classified can be: ; In the formula, represents the feature weight of the target to be classified high-dimensional data, exp(-) represents the inverse proportional normalization function, and R represents the number of dimensions of the high-dimensional data to be classified. It represents the feature influence factor of the mth dimension of the target to be classified high-dimensional data. Represents the distance between the target and the data feature variable of the mth dimension in the high-dimensional data to be classified.
[0046] It is worth noting that the traditional weighting method is obtained only through the simple summation of feature distances, but this embodiment uses a weighted method for optimization, which improves the numerical reliability of the feature weights, and also helps to ensure that each pair of high-dimensional data to be classified has a corresponding feature weight that conforms to the similarity of its data feature variables.
[0047] So far, this embodiment has obtained the feature weights of each pair of high-dimensional data to be classified.
[0048] S3, using an algorithm that combines the feature weights of each high-dimensional data to be classified, the high-dimensional data set to be classified is reduced in dimensionality to obtain a low-dimensional data set to be classified.
[0049] Specifically, the feature weights are used as the weights of the high-dimensional data to be classified in the undirected weighted adjacency graph to obtain the improved LE algorithm; the improved LE algorithm is used to perform dimensionality reduction processing on the high-dimensional data set to be classified to obtain a low-dimensional data set to be classified.
[0050] In this embodiment, the neighborhood parameter in the LE algorithm is set to K, the dimension of the data after dimensionality reduction is M, the neighborhood parameter can be taken as 100, the dimension of the data after dimensionality reduction can be taken as 10, the high-dimensional data set to be classified is taken as input, and the improved LE algorithm is used to output the low-dimensional data set to be classified.
[0051] Each low-dimensional data set to be classified is an M-dimensional vector, that is, the i-th low-dimensional data set to be classified , Represents the data feature variable of the first dimension in the i-th low-dimensional data to be classified, Represents the data feature variable of the second dimension in the i-th low-dimensional data to be classified, Represents the data feature variable of the Mth dimension in the i-th low-dimensional data to be classified. Among them, the neighborhood parameters in the LE algorithm and the data dimensions after dimensionality reduction can be set by the implementer according to the specific actual situation, and are not specifically limited here.
[0052] It should be noted that by analyzing the correlation of data feature variables of different dimensions in the high-dimensional data set to be classified, the calculation of the adjacency graph weight in the LE algorithm is improved, and the output low-dimensional data set to be classified is used as the object of subsequent data information classification. It not only retains the role of data feature variables with strong correlation in the high-dimensional data to be classified in data information classification, but also effectively reduces the redundant features in the high-dimensional data set to be classified, so as to avoid the generation of decision trees with weak classification ability by redundant features, resulting in the problem of low accuracy of the classification results of the information data.
[0053] So far, this embodiment has obtained a low-dimensional data set to be classified in which redundant features have been eliminated to a certain extent.
[0054] S4, determining the feature classification excellence of each dimension according to the occurrence frequency characteristics of the data feature variables of the same dimension in all the low-dimensional data to be classified in the low-dimensional data set to be classified.
[0055] First of all, it should be noted that the data feature variables of different dimensions in the low-dimensional data set to be classified have different criticalities in realizing data information classification. The data feature variables of some dimensions can directly reflect the data information of the low-dimensional data to be classified, and they have a strong correlation with the low-dimensional data information to be classified; while the data feature variables of other dimensions can only provide auxiliary information for data information classification, which can be understood as relatively redundant data feature variables. They have a weak correlation with the low-dimensional data information to be classified, but they also play a role in the subsequent data classification process. In order to quantify the data information classification ability of each dimension in the low-dimensional data set to be classified, the feature classification excellence of each dimension is quantified based on the frequency characteristics of the data feature variables of the same dimension.
[0056] It should be further explained that the greater the criticality of the data feature variables of a certain dimension in the low-dimensional data to be classified during classification, the more concentrated the frequency distribution of the data feature variables of this dimension, and the greater the feature classification excellence of this dimension. Subsequently, the role of feature classification excellence in data feature variables in data classification should be magnified.
[0057] The above step S4 can be performed by Figure 3 The steps shown achieve: S41, taking the interval formed by the minimum value to the maximum value of the data feature variable of the same dimension as the low-dimensional data feature interval of the corresponding dimension.
[0058] Specifically, for any dimension, in the low-dimensional data set to be classified, the maximum and minimum values of all data feature variables of the dimension are determined, and the variable range from the minimum value to the maximum value is used as the low-dimensional data feature interval of the dimension.
[0059] Among them, each dimension has its corresponding low-dimensional data feature interval, which can be used to limit the value range of the data feature variables of each dimension, so as to facilitate the subsequent analysis of the frequency distribution characteristics of different data feature variables on the same dimension in all low-dimensional data to be classified in the low-dimensional data feature interval, and then quantify the excellence of feature classification.
[0060] S42, counting the occurrence frequencies of different data feature variables in the same dimension, and constructing a histogram of the data feature variables in each dimension according to the occurrence frequencies of the different data feature variables.
[0061] Specifically, for any dimension, the occurrence frequency of data feature variables of different sizes in the dimension in all low-dimensional data to be classified is determined, and based on the occurrence frequency of each type of data feature variable in the dimension, a histogram of the data feature variables in the dimension is constructed.
[0062] Among them, the horizontal axis of the data feature variable histogram is each type of data feature variable, and the vertical axis is the frequency of occurrence of each type of data feature variable. The construction method of the histogram is a prior art and is not within the scope of protection of the present invention, and will not be elaborated here. The data feature variable histogram can be used to analyze the distribution characteristics of the frequency of occurrence. The more concentrated the distribution, the greater the excellence of the feature classification of the corresponding dimension.
[0063] S43, in the histogram of the data feature variables of each dimension, the data feature variable with the maximum occurrence frequency is taken as the center, and the low-dimensional data feature interval of a preset multiple is taken as the classification interval of the corresponding dimension.
[0064] Specifically, the divide-and-conquer method is adopted to obtain the maximum frequency of occurrence in the histogram of the data feature variable, and record it as the maximum frequency of the low-dimensional data feature; for each dimension, the interval centered on the data feature variable with the maximum frequency of the low-dimensional data feature and constructed with a preset multiple of the length of the low-dimensional data feature interval is recorded as the classification interval.
[0065] An example of a histogram of data feature variables is shown below: Figure 4 As shown, in Figure 4 middle, Indicates the frequency of occurrence of each type of data feature variable corresponding to the mth dimension, Represents the data feature variables of each type corresponding to the mth dimension, represents the minimum data feature variable corresponding to the mth dimension, Represents the maximum data feature variable corresponding to the mth dimension, represents the low-dimensional data feature interval of the mth dimension, N represents the classification interval of the mth dimension, Indicates the maximum frequency of occurrence corresponding to the mth dimension.
[0066] Among them, the preset multiple can be set to 0.1, and the implementer can set the size of the classification interval according to the specific actual situation. The implementation process of the divide-and-conquer method is a prior art and is not within the scope of protection of the present invention, so it will not be elaborated in detail here. Each dimension has its corresponding classification interval. The classification interval is determined to quantify the frequency distribution concentration of adjacent data feature variables in the local range in the data set to be classified, and then determine the feature classification excellence.
[0067] S44, determining the feature classification excellence of each dimension according to the occurrence frequency of each data feature variable in the classification interval of each dimension.
[0068] Specifically, for any dimension, the cumulative value of the occurrence frequency of all data feature variables in the classification interval of the dimension is determined, and the cumulative value of the occurrence frequency is normalized to obtain the feature classification excellence of the dimension.
[0069] Among them, each dimension has its corresponding feature classification excellence, and the feature classification excellence of each data feature variable corresponding to the same dimension is the same. The feature classification excellence can reflect the classification effect of the data feature variable of each dimension when classifying data; when the classification effect is better, the distribution of the occurrence frequency of the low-dimensional data feature variable is more concentrated, the sum of the low-dimensional data feature frequencies of each value of the low-dimensional data feature variable in the classification interval is greater, the classification excellence of the low-dimensional data feature is greater, and the low-dimensional data feature variable is the data feature variable of the low-dimensional data to be classified.
[0070] So far, this embodiment has obtained the feature classification excellence of each dimension.
[0071] S5, according to the feature classification excellence and the preset decision tree reference depth, determine the decision tree relative depth of each decision tree; by integrating the random forest algorithm with the decision tree relative depth, determine the classification result of each low-dimensional data to be classified.
[0072] First of all, it should be noted that after obtaining the feature classification excellence, in order to ensure the classification effect of the decision tree, the reference depth of the decision tree is corrected by the feature classification excellence to obtain the relative depth of the decision tree. After obtaining the relative depth of the decision tree, the relative depth of the decision tree is used as the actual depth in the random forest algorithm to improve the random forest algorithm. The improved algorithm helps to achieve more accurate data information classification.
[0073] The above step S5 can be performed by Figure 5 The steps shown achieve: S51, determining the decision tree relative depth of each decision tree according to the feature classification excellence and the preset decision tree reference depth.
[0074] In the first step, data feature variables of a preset number of dimensions are randomly selected from the data feature variables of all dimensions of all low-dimensional data to be classified as data classification features for generating a decision tree.
[0075] In this embodiment, data feature variables of three dimensions are randomly selected as data classification features of the decision tree. If the number of decision trees is set to 200, 200 random selections of data classification features are performed. The number of data classification features of a single decision tree and the number of decision trees can be set by the implementer according to the actual situation and are not specifically limited.
[0076] In the second step, the decision tree relative depth of each decision tree is determined based on the feature classification excellence of each data classification feature of each decision tree and the decision tree reference depth.
[0077] Specifically, for any decision tree, the cumulative sum of the feature classification excellence of each data classification feature of the decision tree is calculated, and the product of the cumulative sum of the feature classification excellence and the reference depth of the decision tree is used as the decision tree relative depth of the decision tree.
[0078] As an example, the calculation formula for the decision tree relative depth of the w-th decision tree can be: ; In the formula, represents the relative depth of the decision tree of the w-th decision tree, H represents the reference depth of the decision tree, H can be set to 50, and L represents the number of data classification features. Represents the feature classification excellence of the lth data classification feature of the wth decision tree.
[0079] In the calculation formula of the relative depth of the decision tree, the greater the feature classification excellence of the randomly selected data classification features, the greater the influence of the data classification features on the data classification effect, and the greater the calculated relative depth of the decision tree; the greater the relative depth of the decision tree, the more conducive it is to making full use of the feature information of the low-dimensional data to be classified, and improving the classification accuracy of the random forest algorithm with the relative depth of the decision tree for valid data and invalid data.
[0080] S52, determining the classification result of each low-dimensional data to be classified by integrating the random forest algorithm with the relative depth of the decision tree.
[0081] Specifically, first, each decision tree with a corresponding relative depth of the decision tree divides the low-dimensional data to be classified in the low-dimensional data set to be classified into two categories, and each decision tree has its corresponding classification result; secondly, for any decision tree, the cosine similarity between each category of the low-dimensional data to be classified is calculated, and the cumulative result of the cosine similarity is used as the effective correlation index of the data of the corresponding category; then, since the data features of the valid data are more highly correlated, the category with a larger effective correlation index of the data is marked as valid data, and the category with a smaller effective correlation index of the data is marked as invalid data. When the effective correlation indexes of the two categories are equal, L data classification features are reselected to generate a new decision tree; finally, there is a situation where the classification results of the same low-dimensional data to be classified are different for different decision trees. At this time, a voting mechanism can be used to divide the low-dimensional data to be classified into valid data or invalid data.
[0082] So far, this embodiment has completed the information collection and classification of big data.
[0083] The embodiment of the present invention provides an information collection and classification system based on big data. By analyzing the importance of the data feature variables of each dimension in distinguishing the high-dimensional data to be classified, the determined feature weight improves the calculation process of the adjacency graph weight in the LE algorithm, which can eliminate the influence of redundant feature variables in the high-dimensional data to be classified to a certain extent, and retain the data variable characteristics that play a key role in the classification of data information, so as to obtain a more reliable low-dimensional data set to be classified. Based on the frequency characteristics of the data feature variables of the same dimension in all the low-dimensional data to be classified in the low-dimensional data set to be classified, the feature classification excellence of each dimension is quantified, which can amplify the key role played by the data variable characteristics in data classification, reduce the data variable characteristics that play an auxiliary role in data classification, and facilitate the subsequent adaptive determination of the decision tree relative depth of each decision tree; using the random forest algorithm that integrates the relative depth of the decision tree, the low-dimensional data to be classified is subjected to data classification analysis, which can make full use of the feature information of the data, avoid classification overfitting, and improve the accuracy of data classification.
[0084] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. An information collection and classification system based on big data, characterized in that: The invention comprises a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the following steps: Acquire a high-dimensional data set to be classified, wherein the high-dimensional data to be classified in the high-dimensional data set to be classified is a vector composed of data feature variables of several dimensions; According to each of the high-dimensional data to be classified and the data feature variables of each dimension, analyzing the importance of the data feature variables of each dimension in distinguishing the high-dimensional data to be classified, and determining the feature weight of each of the high-dimensional data to be classified; Using an algorithm combining the feature weights of each high-dimensional data to be classified, the high-dimensional data set to be classified is subjected to dimensionality reduction processing to obtain a low-dimensional data set to be classified; Determine the feature classification excellence of each dimension according to the occurrence frequency characteristics of the data feature variables of the same dimension in all the low-dimensional data to be classified in the low-dimensional data set to be classified; According to the feature classification excellence and the preset decision tree reference depth, the decision tree relative depth of each decision tree is determined; and the classification result of each low-dimensional data to be classified is determined by integrating the random forest algorithm with the decision tree relative depth.
2. According to the big data-based information collection and classification system of claim 1, it is characterized in that: The step of analyzing the importance of the data feature variables of each dimension in distinguishing the high-dimensional data to be classified according to each of the high-dimensional data to be classified and the data feature variables of each dimension thereof, and determining the feature weight of each high-dimensional data to be classified includes: Select any two high-dimensional data to be classified to form the target high-dimensional data to be classified, and determine the feature influencing factor of each dimension of the target high-dimensional data to be classified according to the distance of the high-dimensional data to be classified and the distance of the data feature variables of each dimension; According to the feature influencing factor of each dimension and the data feature variable distance of each dimension, the feature weight of the target high-dimensional data to be classified is determined.
3. The information collection and classification system based on big data according to claim 2 is characterized in that: The objective is to determine the feature influencing factor of each dimension of the high-dimensional data to be classified, including: The target is to calculate the distance between two high-dimensional data to be classified in the high-dimensional data to be classified, and the distance between the two high-dimensional data to be classified is normalized to obtain the distance of the high-dimensional data to be classified; Taking any dimension as the target dimension, calculating the difference between the data feature variables of the target dimensions of the two high-dimensional data to be classified, normalizing the difference between the data feature variables of the target dimensions, and obtaining the data feature variable distance of the target dimension; Determine the correlation coefficient between the distance of the high-dimensional data to be classified and the distance of the data feature variable of the target dimension, standardize the correlation coefficient, and obtain the feature influence factor of the target dimension under the high-dimensional data to be classified.
4. The information collection and classification system based on big data according to claim 3 is characterized in that: Determining the target feature weight of the high-dimensional data to be classified according to the feature influence factor of each dimension and the data feature variable distance of each dimension includes: The inverse of the feature influence factor is used as the coefficient of the data feature variable distance of the corresponding dimension, and the coefficient is used to perform weighted sum processing on the data feature variable distance of each dimension to obtain the degree of difference of the feature variables of the target high-dimensional data to be classified; The degree of difference of the characteristic variables is normalized in inverse proportion to obtain the characteristic weight of the target high-dimensional data to be classified.
5. The information collection and classification system based on big data according to claim 1 is characterized in that: The method of using an algorithm combining the feature weights of each high-dimensional data to be classified to reduce the dimension of the high-dimensional data set to be classified to obtain a low-dimensional data set to be classified includes: The feature weights are used as weights of the high-dimensional data to be classified in an undirected weighted adjacency graph to obtain an improved LE algorithm; and the improved LE algorithm is used to perform dimensionality reduction processing on the high-dimensional data set to be classified to obtain a low-dimensional data set to be classified.
6. The information collection and classification system based on big data according to claim 1 is characterized in that: Determining the feature classification excellence of each dimension according to the occurrence frequency characteristics of the data feature variables of the same dimension in all the low-dimensional data to be classified in the low-dimensional data set to be classified includes: The interval formed by the minimum value to the maximum value of the data feature variable of the same dimension is used as the low-dimensional data feature interval of the corresponding dimension; the occurrence frequency of different data feature variables of the same dimension is counted, and a histogram of the data feature variables of each dimension is constructed according to the occurrence frequency of the different data feature variables; In the histogram of the data feature variables of each dimension, the data feature variable with the maximum occurrence frequency is taken as the center, and the preset multiple of the low-dimensional data feature interval is used as the classification interval of the corresponding dimension; according to the occurrence frequency of each data feature variable in the classification interval of each dimension, the feature classification excellence of each dimension is determined.
7. The information collection and classification system based on big data according to claim 6 is characterized in that: Determining the feature classification excellence of each dimension according to the occurrence frequency of each data feature variable in the classification interval of each dimension includes: For any dimension, the cumulative value of the occurrence frequency of all data feature variables in the classification interval of the dimension is determined, and the cumulative value of the occurrence frequency is normalized to obtain the feature classification excellence of the dimension.
8. The information collection and classification system based on big data according to claim 1 is characterized in that: The step of determining the decision tree relative depth of each decision tree according to the feature classification excellence and a preset decision tree reference depth comprises: From the data feature variables of all dimensions of all the low-dimensional data to be classified, randomly select data feature variables of a preset number of dimensions as data classification features for generating a decision tree; The decision tree relative depth of each decision tree is determined according to the feature classification excellence of each of the data classification features of each decision tree and the decision tree reference depth.
9. The information collection and classification system based on big data according to claim 8 is characterized in that: Determining the decision tree relative depth of each decision tree according to the feature classification excellence of each of the data classification features of each decision tree and the decision tree reference depth includes: For any decision tree, the cumulative sum of the feature classification excellence of each of the data classification features of the decision tree is calculated, and the product of the cumulative sum of the feature classification excellence and the reference depth of the decision tree is used as the decision tree relative depth of the decision tree.
10. The information collection and classification system based on big data according to claim 1 is characterized in that: The classification result of the low-dimensional data to be classified is valid data or invalid data.
Citation Information
Cited By
Data processing method and system for integrated electric control device
CN119291502A
Data set quality evaluation method and device, equipment, medium and program product
CN120372325A
