Atomic data atlas construction method and system based on multiple dimensions

Through multi-dimensional methods, including bag-of-word models and feature fusion, the problem of insufficient capture of data structure relationships in the construction of atomic data maps is solved, and the accuracy and prediction performance of the maps are improved.

CN118673157APending Publication Date: 2024-09-20国网福建省电力有限公司营销服务中心 +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410726832.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

Due to the low data dimension, existing atomic data map construction methods cannot fully capture the structural relationships between data, resulting in insufficient map accuracy.

Method used

Adopt a multi-dimensional method to construct a more accurate atomic data map through bag-of-word model, density peak calculation, feature fusion and tensor reconstruction, including data preprocessing, bag-of-word processing, small sample construction, density peak calculation, Clustering, feature analysis and feature fusion, and finally constructing a tensor reconstruction data map.

Benefits of technology

It improves the accuracy of atomic data maps, enhances data processing efficiency and feature recognition capabilities, avoids overfitting, and improves prediction performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673157A
    Figure CN118673157A
Patent Text Reader

Abstract

The invention relates to the technical field of data atlas construction, and discloses an atomic data atlas construction method based on multiple dimensions, and the method comprises the steps: carrying out the data preprocessing of to-be-processed data, obtaining the preprocessed data, carrying out the bag-of-word processing of the preprocessed data through a bag-of-word model, and obtaining the bag-of-word data; constructing a small sample of the bag-of-word data, calculating a density peak value of the small sample to perform clustering on the data preprocessing to obtain clustered data, and obtaining target data when the accuracy of the clustered data meets a preset accuracy value; analyzing the global influence of the target data features on the target data, fusing the data features to obtain fused features, performing tensor reconstruction on the target data to obtain tensor reconstruction data, performing tensor representation on the tensor reconstruction data to obtain a target tensor, and constructing an atlas of the tensor reconstruction data based on tensor data elements and the target tensor, and displaying the to-be-processed data. According to the method, the accuracy of atomic data graph construction can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data graph construction, and in particular to a method and system for constructing an atomic data graph based on multiple dimensions. Background Art

[0002] In today's era of rapid information growth, building atomic data graphs has become a vital task. Atomic data refers to data elements with low dimensions, basic properties and simple structures. The background technologies for building atomic data graphs include data extraction and transformation, entity recognition and linking, knowledge graph technology, graph database technology, machine learning and natural language processing, and visualization and interaction. Data quality is ensured through data cleaning, transformation and standardization, entity recognition and linking reveal the connection between data, knowledge graph technology establishes data networks, graph database technology provides efficient storage and query engines, machine learning and natural language processing technologies discover data patterns, and visualization tools enable users to understand data relationships more intuitively. The comprehensive use of these technologies can build a robust, flexible and efficient atomic data graph, providing strong basic support for data mining, intelligent recommendation and decision support.

[0003] At present, the atomic data graph construction method is generally based on knowledge graph technology, which includes data extraction and cleaning, entity recognition and linking, knowledge graph modeling, graph database storage, and visualization. However, when using this method, due to the low dimension of atomic data, it is impossible to fully capture the structural relationship between data, resulting in insufficient accuracy of the graph. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a method for constructing an atomic data map based on multiple dimensions, which can improve the accuracy of atomic data map construction.

[0005] In a first aspect, the present invention provides a method for constructing an atomic data map based on multiple dimensions, comprising:

[0006] Acquire data to be processed, perform data preprocessing on the data to be processed to obtain preprocessed data, construct a bag-of-words model for the preprocessed data, and perform bag-of-words processing on the preprocessed data using the bag-of-words model to obtain bag-of-words data;

[0007] Constructing a small sample of the bag-of-words data, calculating a density peak of the small sample, clustering the converted data based on the density peak to obtain clustered data, analyzing the clustering accuracy of the clustered data, and obtaining target data when the clustering accuracy meets a preset accuracy value;

[0008] Identify data features of the target data, analyze the global influence of the data features on the target data, perform feature fusion on the data features based on the global influence to obtain fusion features, and perform tensor reconstruction on the target data based on the fusion features to obtain tensor reconstructed data;

[0009] Identify the data elements of the tensor reconstruction data, perform tensor representation on the tensor reconstruction data based on the data elements to obtain a target tensor, construct a data map of the tensor reconstruction data based on the data elements and the target tensor, and display the data to be processed based on the data map.

[0010] In a possible implementation of the first aspect, using the bag-of-words model to perform bag-of-words processing on the preprocessed data to obtain bag-of-words data includes:

[0011] Performing word segmentation processing on the preprocessed data to obtain word segmentation data;

[0012] Constructing a vocabulary of the word segmentation data;

[0013] Using the vocabulary table to create a word segmentation vector for the word segmentation data;

[0014] The word segmentation vector is input into the bag-of-words model to obtain bag-of-words data.

[0015] In a possible implementation of the first aspect, constructing a small sample of the bag-of-words data includes:

[0016] Constructing an initial sample of the bag-of-words data;

[0017] Dividing the bag-of-words data into the initial samples to obtain allocated samples;

[0018] The sample error of the assigned sample is calculated using the following formula:

[0019]

[0020] Among them, ME represents the sample error, M represents the number of word bag data, N represents the number of assigned samples, and G (,j) It represents the probability that the i-th data of the bag-of-words data is assigned to the j-th distribution sample,

[0021] The allocated samples are updated according to the sample errors to obtain small samples.

[0022] In a possible implementation manner of the first aspect, calculating the density peak value of the small sample includes:

[0023] Convert the small sample and the bag-of-words data corresponding to the small sample into a spatial vector to obtain a small sample vector and a bag-of-words vector;

[0024] The vector distance between the small sample vector and the bag-of-words vector is calculated using the following formula:

[0025]

[0026] A=x2、y2、z2

[0027] B=x1、y1、z1

[0028] Where D represents the vector distance, A represents the small sample vector, B represents the word bag vector, (x2, y2, z2 represent the three-dimensional coordinates of the small sample vector space, (x1, y1, z1 represent the three-dimensional coordinates of the word bag vector,

[0029] The density peak of the small sample is determined according to the vector distance.

[0030] In a possible implementation manner of the first aspect, analyzing the clustering accuracy of the clustering data includes:

[0031] The true similarity of the clustered data is calculated using the following formula:

[0032]

[0033] o represents the number of clusters of clustered data, n represents the number of clusters generated by the clustering algorithm, and k i Indicates the total number of data points in the i-th cluster in the clustering algorithm result, k j Represents the total number of data points in the jth cluster in the clustered data, It represents the total number of data points that appear in both the i-th cluster of the algorithm result and the j-th class of the true result.

[0034] The clustering accuracy of the clustering data is determined based on the true similarity.

[0035] In a possible implementation manner of the first aspect, the identifying a data feature of the target data includes:

[0036] Collecting data attributes of the target data;

[0037] According to the data attributes, converting the target data into linear data;

[0038] Performing dimensionality reduction processing on the linear data to obtain dimensionality reduction data;

[0039] The dimension-reduced data is mapped into a pre-constructed spatial matrix, and data features of the target data are collected in the spatial matrix using a preset matrix algorithm.

[0040] In a possible implementation manner of the first aspect, analyzing the global influence of the data feature on the target data includes:

[0041] The feature weight of the data feature is calculated using the following formula:

[0042]

[0043] Among them, E represents the feature weight, F represents the entropy extinguishing function of the data feature, α represents the entropy extinguishing value of the data feature, m represents the number of features of the data feature, σ represents the weight matrix, and A i represents the i-th data feature of the A-th data,

[0044] The global influence of the data feature on the target data is determined according to the feature weight.

[0045] In a possible implementation manner of the first aspect, the step of fusing the data features based on the global influence to obtain the fused features includes:

[0046] Calculating characteristic values ​​of the data characteristics;

[0047] Based on the feature value and the global influence, the data features are fused using the following formula to obtain a fused feature value:

[0048] TS=S i ×μ1+S j ×μ2

[0049] Among them, TS represents the fusion feature value, S i Represents the i-th feature of the data feature, S j represents the jth feature of the data feature, μ1 represents the S i The global influence of S j The global influence

[0050] The preconfigured histogram method is used to identify the features of the data features for feature fusion according to the fusion feature values ​​to obtain fusion features.

[0051] In a possible implementation manner of the first aspect, performing tensor representation on the tensor reconstruction data based on the data element to obtain a target tensor includes:

[0052] Based on the data elements, define nodes and edges of the tensor reconstruction data;

[0053] Configure the identifiers of the node and the edge to obtain a node identifier and an edge identifier;

[0054] Convert the node identifier and the edge identifier into a tensor data structure of the tensor reconstruction data;

[0055] The tensor data structure is used to perform tensor representation on the tensor reconstruction data to obtain a target tensor.

[0056] In a second aspect, the present invention provides a system for constructing an atomic data map based on multiple dimensions, the system comprising:

[0057] A data word bag module is used to obtain data to be processed, perform data preprocessing on the data to be processed to obtain preprocessed data, construct a word bag model for the preprocessed data, and perform word bag processing on the preprocessed data using the word bag model to obtain word bag data;

[0058] A data clustering module, used to construct a small sample of the bag-of-words data, calculate the density peak of the small sample, cluster the converted data based on the density peak to obtain clustered data, analyze the clustering accuracy of the clustered data, and obtain target data when the clustering accuracy meets a preset accuracy value;

[0059] A data reconstruction module, used for identifying data features of the target data, analyzing the global influence of the data features on the target data, performing feature fusion on the data features based on the global influence to obtain fusion features, and performing tensor reconstruction on the target data based on the fusion features to obtain tensor reconstructed data;

[0060] A data display module is used to identify the data elements of the tensor reconstruction data, perform tensor representation on the tensor reconstruction data based on the data elements to obtain a target tensor, construct a data map of the tensor reconstruction data based on the data elements and the target tensor, and perform data display on the data to be processed based on the data map.

[0061] Compared with the prior art, the technical principle and beneficial effects of this solution are:

[0062] The embodiment of the present invention can transform the data with a model by constructing the bag-of-words model of the preprocessed data, which is easy to understand, and use the bag-of-words model to perform bag-of-words processing on the preprocessed data to obtain bag-of-words data, which can convert the data into the same form, improve data processing efficiency, and by constructing a small sample of the bag-of-words data, an initial classification set of the bag-of-words data can be obtained, which is convenient for better classification of data into appropriate data sets. Further, the embodiment of the present invention can obtain data definitions or identifiers of different data by identifying the data features of the target data, so that complex data can be represented in a simple form and is also convenient for computer language recognition and retrieval query. Furthermore, the embodiment of the present invention can help users deeply understand the importance of each feature to the target variable by analyzing the global influence of the data features on the target data, and based on the global influence, the data features are feature fused to obtain fused features. The more obvious features can be used as the main features, and the features with less obvious features are weakened and fused, so that the data target retrieved in the subsequent feature retrieval is clearer. For example, if a user wants to predict the price of a house, multiple features such as house area, geographical location, and building age can be fused to build a more comprehensive model. By combining these features together, the model can more accurately predict house prices while avoiding overfitting and improving overall prediction performance. Identifying the data elements of the tensor reconstructed data can help you understand the contribution and importance of different features in the reconstructed data, helping you perform feature selection and feature engineering. The method and system for constructing an atomic data map based on multiple dimensions proposed in an embodiment of the present invention can improve the accuracy of atomic data map construction. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0064] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0065] Figure 1 A schematic diagram of a flow chart of a method for constructing an atomic data map based on multiple dimensions provided by an embodiment of the present invention;

[0066] Figure 2 A schematic diagram of a module of a system for constructing an atomic data map based on multiple dimensions provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0067] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0068] The embodiment of the present invention provides a method for constructing an atomic data map based on multiple dimensions, and the execution subject of the method for constructing an atomic data map based on multiple dimensions includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present invention. In other words, the method for constructing an atomic data map based on multiple dimensions can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDN) and big data and artificial intelligence platforms.

[0069] See also Figure 1 FIG. 1 is a flow chart of a method for constructing a multi-dimensional atomic data map according to an embodiment of the present invention. Figure 1 A method for constructing an atomic data map based on multiple dimensions described in includes:

[0070] S1. Obtain data to be processed, perform data preprocessing on the data to be processed to obtain preprocessed data, construct a bag-of-words model for the preprocessed data, and perform bag-of-words processing on the preprocessed data using the bag-of-words model to obtain bag-of-words data.

[0071] In the embodiment of the present invention, the preprocessed data can be cleaned by preprocessing the data to be processed, wherein the data preprocessing refers to operations before processing the data, such as data cleaning, data deduplication and the like.

[0072] Furthermore, the embodiment of the present invention can transform the data using a model by constructing the bag-of-words model of the preprocessed data, which is easy to understand. The bag-of-words model refers to a simple mathematical model for processing text data. In this model, the text is regarded as a bag containing various words, while ignoring the order in which they appear. Each document can be represented as a vector composed of words, in which each dimension corresponds to a word, and the frequency of occurrence of the word in the document or other related information is counted. Optionally, the bag-of-words model can be constructed through a library function.

[0073] The embodiment of the present invention uses the bag-of-words model to perform bag-of-words processing on the preprocessed data to obtain bag-of-words data, which can convert the data into the same form and improve data processing efficiency.

[0074] As an embodiment of the present invention, the method of using the bag-of-words model to perform bag-of-words processing on the preprocessed data to obtain bag-of-words data includes: performing word segmentation processing on the preprocessed data to obtain word segmentation data, constructing a vocabulary table for the word segmentation data, using the vocabulary table to create a word segmentation vector for the word segmentation data, and inputting the word segmentation vector into the bag-of-words model to obtain bag-of-words data.

[0075] Optionally, performing word segmentation on the preprocessed data to obtain the word segmentation data means dividing the text into words or phrases, and word segmentation can be performed using spaces or punctuation marks through a script generated by Java. Constructing a vocabulary for the word segmentation data means creating a dictionary or set containing unique words that appear in all data documents. Creating a word segmentation vector for the word segmentation data using the vocabulary means creating a vector for each document based on the size of the vocabulary, wherein each element in the vector represents the number of times the word appears in the document.

[0076] S2. construct a small sample of the bag-of-words data, calculate the density peak of the small sample, cluster the converted data based on the density peak to obtain clustered data, analyze the clustering accuracy of the clustered data, and obtain target data when the clustering accuracy meets a preset accuracy value.

[0077] The embodiment of the present invention can obtain the initial classification set of the word bag data by constructing a small sample of the word bag data, so as to better classify the data into a suitable data set. The small sample refers to a small data set, such as the flow data of a company, the delivery data of an advertisement, etc.

[0078] As an embodiment of the present invention, the step of constructing a small sample of the bag-of-words data includes: constructing an initial sample of the bag-of-words data, dividing the bag-of-words data into the initial sample to obtain a distribution sample, and calculating the sample error of the distribution sample using the following formula:

[0079]

[0080] Among them, ME represents the sample error, M represents the number of word bag data, N represents the number of assigned samples, and G (,j) It represents the probability that the i-th data of the bag-of-words data is assigned to the j-th distribution sample,

[0081] The allocated samples are updated according to the sample errors to obtain small samples.

[0082] Optionally, the initial sample of the word bag data is constructed by a script generated by Java according to a preset classification set, and the word bag data is divided into the initial sample to obtain the distribution sample by matching the data identifier of the word bag data with the identifier of the initial sample.

[0083] The initial sample is updated according to the sample error, and the small sample is obtained by reconstructing the data identifier of the bag-of-words data. For example, the bag-of-words data a is assigned to the initial sample A, but in actual analysis it is necessary to classify a into the initial sample B, then the identifier of the bag-of-words data a is changed to the identifier corresponding to the initial sample B.

[0084] Furthermore, the embodiment of the present invention can understand the distribution of data in the vector space of the small sample by calculating the density peak of the small sample.

[0085] As an embodiment of the present invention, the calculation of the density peak of the small sample includes: converting the small sample and the bag-of-words data corresponding to the small sample into a spatial vector to obtain a small sample vector and a bag-of-words vector, and calculating the vector distance between the small sample vector and the bag-of-words vector using the following formula:

[0086]

[0087] A=x2、y2、z2

[0088] B=x1、y1、z1

[0089] Where D represents the vector distance, A represents the small sample vector, B represents the word bag vector, (x2, y2, z2 represent the three-dimensional coordinates of the small sample vector space, (x1, y1, z1 represent the three-dimensional coordinates of the word bag vector,

[0090] The density peak of the small sample is determined according to the vector distance.

[0091] Exemplarily, the density peak value of the small sample is determined according to the vector distance: the density distance of the small sample is set to 1, and if there are 20 bag-of-words vectors whose vector distance is within 1, it means that the density peak value is 20.

[0092] Furthermore, the embodiment of the present invention clusters the converted data based on the density peak value to obtain clustered data, which can group the data according to specific attributes or categories, and can more easily manage and maintain the data.

[0093] Optionally, the converted data is clustered based on the density peak value, and the obtained clustered data can be clustered according to a preset vector distance through a preconfigured K nearest neighbor algorithm. For example, the vector distance can be set to 2, or can be set according to actual needs.

[0094] By analyzing the clustering accuracy of the clustered data, the embodiment of the present invention can understand the accuracy of the clustering algorithm result after classification, so as to adjust the classification standard and optimize the data classification method to make the data more in line with the actual situation.

[0095] As an embodiment of the present invention, the analyzing the clustering accuracy of the clustering data includes:

[0096] The true similarity of the clustered data is calculated using the following formula:

[0097]

[0098] o represents the number of clusters of clustered data, n represents the number of clusters generated by the clustering algorithm, and k i Indicates the total number of data points in the i-th cluster in the clustering algorithm result, k j Represents the total number of data points in the jth cluster in the clustered data, It represents the total number of data points that appear in both the i-th cluster of the algorithm result and the j-th class of the true result.

[0099] The clustering accuracy of the clustering data is determined based on the true similarity.

[0100] It should be explained that the relationship between the true similarity and the clustering accuracy is a mathematical relationship, which is a 1:1 proportional relationship.

[0101] It should be noted that when the clustering accuracy meets the preset accuracy value, obtaining the target data means that the classification result of the target data meets the data analysis requirements, and the preset accuracy value is 0.95.

[0102] S3. Identify data features of the target data, analyze the global influence of the data features on the target data, perform feature fusion on the data features based on the global influence to obtain fused features, and perform tensor reconstruction on the target data based on the fused features to obtain tensor reconstructed data.

[0103] The embodiment of the present invention can obtain data definitions or identifiers of different data by identifying the data features of the target data, so that complex data can be represented in a simple form and is convenient for computer language recognition and retrieval query.

[0104] As an embodiment of the present invention, the identification of the data features of the target data includes: collecting the data attributes of the target data, converting the target data into linear data according to the data attributes, performing dimensionality reduction processing on the linear data to obtain dimensionality reduction data, mapping the dimensionality reduction data into a pre-constructed space matrix, and collecting the data features of the target data in the space matrix using a preset matrix algorithm. The data attributes refer to the original features of the data, such as the processed pixel points of an image can be used to describe the image features, and the unprocessed pixel points can be represented as the attributes of the data. The attributes are nominal, binary, ordinal, and numerical, which can be used to describe the symbolic name of things, encoding parameters, data sequences, etc.

[0105] Optionally, the process of converting the target data into linear data according to the data attributes is: identifying the data structure of the target data through the data attributes, converting it according to the data structure using a linear structure algorithm, performing dimensionality reduction processing on the linear data to obtain reduced-dimensional data, performing dimensionality reduction through a spatial matrix, collecting data features of the target data in the spatial matrix using a preset matrix algorithm, collecting historical features of the target data, training the historical features using a feature engineering training model to obtain a feature algorithm, and performing feature calculation on the target data using the feature algorithm to obtain target data features.

[0106] Furthermore, the embodiments of the present invention can help users gain a deeper understanding of the importance of each feature to the target variable by analyzing the global influence of the data features on the target data. Through this analysis, users can identify which features have a significant impact on the target data, thereby guiding decision-making and optimizing data analysis models.

[0107] As an embodiment of the present invention, the analyzing the global influence of the data feature on the target data includes: calculating the feature weight of the data feature using the following formula:

[0108]

[0109] Among them, E represents the feature weight, F represents the entropy extinguishing function of the data feature, α represents the entropy extinguishing value of the data feature, m represents the number of features of the data feature, σ represents the weight matrix, and A i represents the i-th data feature of the A-th data,

[0110] The global influence of the data feature on the target data is determined according to the feature weight.

[0111] Optionally, the global influence of the data feature on the target data determined according to the feature weight is obtained through the feature weight calculation result. If the feature weight is not less than 0.3, it indicates that the global influence is high; if the feature weight is between 0.3 and 0.1, it indicates that the global influence is average; if the feature weight is less than 0.1, it indicates that the global influence is low.

[0112] Furthermore, the embodiment of the present invention fuses the data features based on the global influence, and obtains fused features that can use more obvious features as main features, and weaken the fusion of less obvious features, so that the data target retrieved in the subsequent row feature retrieval is clearer. For example, if the user wants to predict the house price, multiple features such as house area, geographical location, and building age can be fused to build a more comprehensive model. By combining these features together, the model can more accurately predict the house price, while avoiding overfitting and improving the overall prediction performance.

[0113] As an embodiment of the present invention, the step of fusing the data features based on the global influence to obtain the fused features includes: calculating the feature values ​​of the data features, and fusing the data features based on the feature values ​​and the global influence using the following formula to obtain the fused feature values:

[0114] TS=S i ×μ1+S j ×μ2

[0115] Among them, TS represents the fusion feature value, S i Represents the i-th feature of the data feature, S j represents the jth feature of the data feature, μ1 represents the S i The global influence of S j The global influence

[0116] The preconfigured histogram method is used to identify the features of the data features for feature fusion according to the fusion feature values ​​to obtain fusion features.

[0117] The embodiment of the present invention performs tensor reconstruction on the target data based on the fusion features to obtain tensor reconstructed data, which can obtain a new data representation form and better capture the intrinsic structure and correlation of the data.

[0118] Optionally, the target data is tensor reconstructed based on the fusion feature to obtain tensor reconstructed data. By identifying the data structure of the target data, the target data is converted into a tensor form, such as time series data, and the data can be converted into a three-dimensional tensor (time step, number of samples, number of features).

[0119] S4. Identify the data elements of the tensor reconstruction data, perform tensor representation on the tensor reconstruction data based on the data elements to obtain a target tensor, construct a data map of the tensor reconstruction data based on the data elements and the target tensor, and display the data to be processed based on the data map.

[0120] The embodiment of the present invention can understand the contribution and importance of different features in the reconstructed data by identifying the data elements of the tensor reconstruction data, and help you perform feature selection and feature engineering. The data element refers to the basic unit in the data structure obtained after the data is reconstructed by the tensor, which can be a single value in the tensor, or a row, column or element in a one-dimensional vector or a two-dimensional matrix.

[0121] Furthermore, the embodiment of the present invention obtains a target tensor by performing tensor representation on the tensor-reconstructed data based on the data elements, and can efficiently store, process and analyze the data.

[0122] As an embodiment of the present invention, the tensor reconstructing data is represented as a tensor based on the data elements to obtain a target tensor, including: defining nodes and edges of the tensor reconstructing data based on the data elements, configuring identifiers of the nodes and edges to obtain node identifiers and edge identifiers, converting the node identifiers and edge identifiers into a tensor data structure of the tensor reconstructing data, and using the tensor data structure to represent the tensor reconstructing data to obtain a target tensor. The nodes represent data entities or objects, and the edges represent the relationship between data.

[0123] Optionally, based on the data elements, the nodes and edges of the tensor reconstruction data are defined by taking the elements as the nodes and representing the connections of the nodes as edges, the identifiers are configured through a script generated by java, and the node identifiers and the edge identifiers are converted into the tensor data structure of the tensor reconstruction data by converting the node identifiers and the edge identifiers into structural attributes of the tensor reconstruction data.

[0124] Furthermore, in another optional embodiment of the present invention, the data graph of the tensor reconstructed data constructed based on the data elements and the target tensor can construct a graph structure according to the tensor representation of the nodes and the edges, which can be accomplished by creating a graph object in the code and adding the nodes and the edges.

[0125] like Figure 2 The figure shows a functional module diagram of a system for constructing atomic data maps based on multiple dimensions according to the present invention.

[0126] The atomic data map construction system 200 based on multiple dimensions described in the present invention can be installed in an electronic device. According to the functions implemented, the atomic data map construction system based on multiple dimensions can include a data word bag module 201, a data clustering module 202, a data reconstruction module 203 and a data display module 204. The module described in the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0127] In the embodiment of the present invention, the functions of each module / unit are as follows:

[0128] The data word bag module 201 is used to obtain data to be processed, perform data preprocessing on the data to be processed to obtain preprocessed data, construct a word bag model for the preprocessed data, and perform word bag processing on the preprocessed data using the word bag model to obtain word bag data;

[0129] The data clustering module 202 is used to construct a small sample of the bag-of-words data, calculate the density peak of the small sample, cluster the converted data based on the density peak to obtain clustered data, analyze the clustering accuracy of the clustered data, and obtain target data when the clustering accuracy meets a preset accuracy value;

[0130] The data reconstruction module 203 is used to identify data features of the target data, analyze the global influence of the data features on the target data, perform feature fusion on the data features based on the global influence to obtain fusion features, and perform tensor reconstruction on the target data based on the fusion features to obtain tensor reconstructed data;

[0131] The data display module 204 is used to identify the data elements of the tensor reconstruction data, perform tensor representation on the tensor reconstruction data based on the data elements to obtain a target tensor, construct a data map of the tensor reconstruction data based on the data elements and the target tensor, and perform data display on the data to be processed based on the data map.

[0132] In detail, each module in the scene modeling system 200 for realizing intelligent transportation based on digital twins described in the embodiment of the present invention is used in the same manner as described above. Figure 1 The technical means described in the text is the same as the scene modeling method for smart transportation based on digital twins, and can produce the same technical effects, so I will not go into details here.

[0133] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0134] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0135] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0136] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0137] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0138] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0139] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.

Claims

1. A method for constructing an atomic data map based on multiple dimensions, characterized in that: The method comprises: Acquire data to be processed, perform data preprocessing on the data to be processed to obtain preprocessed data, construct a bag-of-words model for the preprocessed data, and perform bag-of-words processing on the preprocessed data using the bag-of-words model to obtain bag-of-words data; Constructing a small sample of the bag-of-words data, calculating a density peak of the small sample, clustering the converted data based on the density peak to obtain clustered data, analyzing the clustering accuracy of the clustered data, and obtaining target data when the clustering accuracy meets a preset accuracy value; Identify data features of the target data, analyze the global influence of the data features on the target data, perform feature fusion on the data features based on the global influence to obtain fusion features, and perform tensor reconstruction on the target data based on the fusion features to obtain tensor reconstructed data; Identify the data elements of the tensor reconstruction data, perform tensor representation on the tensor reconstruction data based on the data elements to obtain a target tensor, construct a data map of the tensor reconstruction data based on the data elements and the target tensor, and display the data to be processed based on the data map.

2. The method according to claim 1, characterized in that: The using the bag-of-words model to perform bag-of-words processing on the preprocessed data to obtain bag-of-words data includes: Performing word segmentation processing on the preprocessed data to obtain word segmentation data; Constructing a vocabulary of the word segmentation data; Creating a word segmentation vector for the word segmentation data using the vocabulary; The word segmentation vector is input into the bag-of-words model to obtain bag-of-words data.

3. The method according to claim 1, characterized in that The step of constructing a small sample of the bag-of-words data includes: Constructing an initial sample of the bag-of-words data; Dividing the bag-of-words data into the initial samples to obtain allocated samples; The sample error of the assigned sample is calculated using the following formula: Among them, ME represents the sample error, M represents the number of word bag data, N represents the number of assigned samples, and G (i,j) It represents the probability that the i-th data of the bag-of-words data is assigned to the j-th distribution sample, The allocated samples are updated according to the sample errors to obtain small samples.

4. The method according to claim 1, characterized in that: The step of calculating the density peak value of the small sample comprises: Convert the small sample and the bag-of-words data corresponding to the small sample into a spatial vector to obtain a small sample vector and a bag-of-words vector; The vector distance between the small sample vector and the bag-of-words vector is calculated using the following formula: A=(x2、y2、z2) B=(x1, y1, z1) Where D represents the vector distance, A represents the small sample vector, B represents the bag-of-words vector, (x2, y2, z2) represents the three-dimensional coordinates of the small sample vector space, and (x1, y1, z1) represents the three-dimensional coordinates of the bag-of-words vector. The density peak of the small sample is determined according to the vector distance.

5. The method according to claim 1, characterized in that The analyzing the clustering accuracy of the clustering data includes: The true similarity of the clustered data is calculated using the following formula: Among them, o represents the number of clusters of clustered data, n represents the number of clusters generated by the clustering algorithm, and k i Indicates the total number of data points in the i-th cluster in the clustering algorithm result, k j Represents the total number of data points in the jth cluster in the clustered data, It represents the total number of data points that appear in both the i-th cluster of the algorithm result and the j-th class of the true result. The clustering accuracy of the clustering data is determined based on the true similarity.

6. The method according to claim 1, characterized in that The identifying data features of the target data includes: Collecting data attributes of the target data; According to the data attributes, converting the target data into linear data; Performing dimensionality reduction processing on the linear data to obtain dimensionality reduction data; The dimension-reduced data is mapped into a pre-constructed spatial matrix, and data features of the target data are collected in the spatial matrix using a preset matrix algorithm.

7. The method according to claim 1, characterized in that The analyzing the global influence of the data feature on the target data includes: The feature weight of the data feature is calculated using the following formula: Among them, E represents the feature weight, F represents the entropy extinguishing function of the data feature, α represents the entropy extinguishing value of the data feature, m represents the number of features of the data feature, σ represents the weight matrix, and A i represents the i-th data feature of the A-th data, The global influence of the data feature on the target data is determined according to the feature weight.

8. The method according to claim 1, characterized in that The step of fusing the data features based on the global influence to obtain fused features includes: Calculating characteristic values ​​of the data characteristics; Based on the feature value and the global influence, the data features are fused using the following formula to obtain a fused feature value: TS=S i ×μ1+S j ×μ2 Among them, TS represents the fusion feature value, S i Represents the i-th feature of the data feature, S j represents the jth feature of the data feature, μ1 represents the S i The global influence of S j The global influence The preconfigured histogram method is used to identify the features of the data features for feature fusion according to the fusion feature values ​​to obtain fusion features.

9. The method according to claim 1, characterized in that: The step of performing tensor representation on the tensor reconstruction data based on the data elements to obtain a target tensor includes: Based on the data elements, define nodes and edges of the tensor reconstruction data; Configure the identifiers of the node and the edge to obtain a node identifier and an edge identifier; Convert the node identifier and the edge identifier into a tensor data structure of the tensor reconstruction data; The tensor data structure is used to perform tensor representation on the tensor reconstruction data to obtain a target tensor.

10. A system for constructing atomic data maps based on multiple dimensions, characterized in that: The system comprises: A data word bag module is used to obtain data to be processed, perform data preprocessing on the data to be processed to obtain preprocessed data, construct a word bag model for the preprocessed data, and perform word bag processing on the preprocessed data using the word bag model to obtain word bag data; A data clustering module, used to construct a small sample of the bag-of-words data, calculate the density peak of the small sample, cluster the converted data based on the density peak to obtain clustered data, analyze the clustering accuracy of the clustered data, and obtain target data when the clustering accuracy meets a preset accuracy value; A data reconstruction module, used for identifying data features of the target data, analyzing the global influence of the data features on the target data, performing feature fusion on the data features based on the global influence to obtain fusion features, and performing tensor reconstruction on the target data based on the fusion features to obtain tensor reconstructed data; A data display module is used to identify the data elements of the tensor reconstruction data, perform tensor representation on the tensor reconstruction data based on the data elements to obtain a target tensor, construct a data map of the tensor reconstruction data based on the data elements and the target tensor, and perform data display on the data to be processed based on the data map.

Citation Information

Patent Citations

  • A clustering method and device for multi-source heterogeneous data

    CN109919172A

  • Knowledge graph completion method based on entity description and relationship path

    CN111026875A

  • Construction method of material knowledge graph, material knowledge graph and application

    CN114896408A

  • Intelligent data acquisition method and system based on data characteristics

    CN116431711A