Multi-dimensional master-slave data association analysis system and method based on data lake architecture
By classifying and extracting features from the original data in the intelligent operating system, calculating association thresholds and dimensional divisions, the storage and search complexity of multi-dimensional master-slave data is solved, efficient storage and fast search in the data lake are achieved, and the system is improved. efficiency.
Patent Information
- Application Number
- CN202410760730.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In an intelligent operating system, the storage and search of multiple types of data becomes complicated, especially when there are multiple types of slave data corresponding to separate master data. How to quickly and accurately judge and distinguish master-slave data to improve system efficiency is a challenge.
By classifying the original data, extracting characteristic elements, calculating the association threshold of master-slave data, and dividing master-slave data according to dimensions, rapid identification and differentiation of master-slave data can be achieved, and then efficient storage and reading in the data lake can be achieved.
It realizes the rapid identification and differentiation of multi-dimensional master-slave data, improves the simplicity of data storage and search efficiency, reduces the risk of data forgetting and loss, and ensures the efficient operation of the system.
Smart Images

Figure CN118673082A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data storage technology, and in particular to a multi-dimensional master-slave data association analysis system and method based on a data lake architecture. Background Art
[0002] With the further development of science and technology, data storage media are also evolving. From early tapes and disks to later solid-state drives (SSDs), flash memory, optical disks, and then to current cloud storage services, the development of storage media has provided data storage with higher speeds, larger capacities, and lower costs. In addition, intelligent operating systems are used in many fields. Along with this, various raw data generated during the work of intelligent operating systems need to be stored. Compared with storage methods such as databases and data warehouses that require data processing and transformation, data lake architecture storage has many advantages such as flexible storage, high data integration, low cost-effectiveness, and scalability. Therefore, data lake architecture is often used for storage in current data storage. However, the various data generated during the work of intelligent operating systems have a large amount of data when stored, and it is impossible to find data accurately and quickly when reading. In addition, some data are associated with master and slave data. How to determine the master and slave data of the original data is crucial. And when multiple slave data correspond to separate master data, the search for data will be more complicated. Therefore, how to distinguish multiple slave data under separate master data can increase the efficiency of system work. Summary of the invention
[0003] The purpose of the present invention is to provide a multi-dimensional master-slave data association analysis system and method based on a data lake architecture to solve the problems raised in the above background technology.
[0004] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0005] A multi-dimensional master-slave data association analysis method based on a data lake architecture, the method comprising the following steps:
[0006] S100, collect various raw data generated during system operation and classify the raw data;
[0007] Furthermore, the specific steps for classifying the original data are:
[0008] S101, collect all the original data generated during the system operation, the system for extracting the original data is any operating system that can generate data, and is not the master-slave data analysis system in the present invention, and extracts the constituent elements of each original data as {S1, S2, S3...S n}, S1, S2, S3...S nIt is represented by the 1st, 2nd, 3rd...nth elements in each extracted raw data, where n is a positive integer; the main elements in each raw data are calculated using the formula:
[0009]
[0010] In the formula, P represents the proportion of each element in each original data among all elements, M represents the total number of elements in each original data, and m c Expressed as the number of each element in each original data;
[0011] S102, calculate the proportion of all types of elements in each original data as {P1, P2, P3...P m}, P1, P2, P3...P m It is expressed as the calculated proportion of the 1st, 2nd, 3rd...mth elements in each original data, where m is a positive integer; the element with the largest proportion among the m elements is selected as the characteristic element of the corresponding original data;
[0012] S103, calculating the characteristic elements of all the collected raw data, classifying the raw data with the same characteristic elements as the same type of raw data, and finally classifying the collected raw data to obtain k types of raw data, specifically {T1, T2, T3...T k}, T1, T2, T3...T k Represents the 1st, 2nd, 3rd, ... kth kinds of original data obtained by classification, where k is a positive integer.
[0013] After the raw data is classified according to its constituent elements, it can be stored separately according to different types of raw data. This makes it more convenient and quick to read and use data from the data lake, and the data storage is more concise, reducing the risk of forgetting and losing the stored data.
[0014] S200, collecting historical association information of master-slave data, and calculating association thresholds of master-slave data;
[0015] Furthermore, the specific steps for calculating the correlation threshold of the master-slave data are as follows:
[0016] S201, collect the master-slave data generated by the system in history, assuming that the master data generated by the system in the collected history is {F1, F2, F3...F b}, F1, F2, F3...F b Indicates the 1st, 2nd, 3rd, ...bth master data generated by the system in the collected history. The slave data generated by the system in the collected history is {f1, f2, f3, ...f b}, f1, f2, f3...f bIndicates the 1st, 2nd, 3rd, ...bth slave data generated by the system in the collected history, where b is a positive integer;
[0017] S202, extract information from each master data and slave data, calculate the amount of information of each extracted information as q, calculate the amount of information in the master and slave data, and find the number of identical information, the formula is:
[0018]
[0019] In the formula, R represents the number of identical information in the master and slave data, q 主 represents the amount of information of each information in the master data, q represents the amount of information of each information in the slave data, int represents input, out represents exclusion, a represents the number of information in the master data, and d represents the number of information in the slave data; compare the amount of information in the slave data and the master data, extract the information with a value of 1 as the same information in the master and slave data, input the information with a ratio of 1 as int, exclude the information that is not 1, and finally compare all the information in the master and slave data, and calculate the number of the same information in the master and slave data as R;
[0020] S203, after calculating the number of identical information in the master-slave data b, calculate the association threshold of the master-slave data, the formula is:
[0021]
[0022] In the formula, co_y represents the correlation threshold of master-slave data, R represents the number of identical information in each master-slave data, b represents the number of master-slave data, and st represents the standard deviation of the number of identical information in the master-slave data.
[0023] By calculating the number of identical information in the master and slave data in history and processing it with statistical means, we can get the threshold value of the association between the master and slave data. We can judge the real-time original data according to the association threshold value to determine whether the original data is associated, and further determine the master data and the slave data. We can also judge whether the real-time original data are mutually master and slave data.
[0024] S300, analyzing the classified original data, calculating the relevance of each type of original data, and determining the master-slave relationship in the original data;
[0025] Furthermore, the specific steps of calculating the relevance of each type of original data and determining the master-slave relationship in the original data are as follows:
[0026] S301, collect e raw data generated in the system in real time, extract information from all real-time raw data, the amount of information of each piece of information in the real-time raw data is Q, compare and analyze each real-time raw data, find the number of identical information in each pair of raw data, the formula is:
[0027]
[0028] In the formula, R_s represents the number of identical information in each pair of raw data during real-time comparison, Q one Indicates extracting a piece of information from the original data, Q other represents the remaining information except the extracted information, A and D represent the number of information in the real-time original data, and the number of identical information in the real-time original data is calculated using the same method as in S202 to obtain the number R_s of identical information in each pair of original data;
[0029] S302, judging the number of identical information in each pair of original data obtained by calculation, when R_s≥co_y, judging that the two corresponding original data are associated, when R_s<co_y, judging that the two corresponding original data are not associated; after judgment, each pair of original data that is associated is obtained as (G i , G j ), where i and j are in the range of 1 to e, and G represents the raw data collected in real time; finally, the raw data of x pairs with correlation are obtained;
[0030] S303, after determining that the associated original data is obtained, determine the master data and the slave data in each pair of associated original data, and extract the associated original data (G i , G j ) to calculate the total amount of information of the two original data. The formula is:
[0031]
[0032] In the formula, L represents the total information ratio of two related original data, Q_z i Represents the original data Q i The total amount of information, Q_z j Represents the original data Q j The total amount of information, when L ≥ 1, Q i For master data, Q j is the slave data; when L<1, Q j For master data, Q i is the slave data; after judging x related original data, the master-slave data is (G 主 , G 从 ).
[0033] When judging the master data and slave data in the associated original data, based on the characteristics of the master data's wide coverage and large amount of information, when the two original data are compared, the value is greater than 1, proving that the numerator data contains more information. This method can be used to quickly find the master data and slave data in the associated original data;
[0034] S400: After determining and obtaining the master-slave data in the original data, analyze the dimension of each master-slave data, and divide the master-slave data into different dimensions according to the dimension;
[0035] Furthermore, the specific steps of dividing the master-slave data into different dimensions according to the dimensions are:
[0036] S401, after calculating and judging the original data collected in real time, obtain the associated master-slave data in the original data, extract the constituent elements of each master data in S101, use the constituent elements of the master data, take each different element as a dimension of the master data, and obtain the dimensions existing in each master data as {W1, W2, W3...W v}, W1, W2, W3...W v Represents the 1st, 2nd, 3rd, ...vth dimensions of the master data, where v is a positive integer;
[0037] S402, calculate the information amount of elements in different dimensions in the master data, and obtain the information amount of each dimension in the master data as {Q_w1, Q_w2, Q_w3...Q_w v}, Q_w1, Q_w2, Q_w3...Q_w v Indicates the information volume of the 1st, 2nd, 3rd...vth dimensions in the master data. When extracting each pair of master-slave data to determine the association degree, the information volume q_s of the same information in the master-slave data is found. The information volume q_s of the same information is found in the information volume of each dimension. Determine the dimension in which the slave data belongs to the master data in each pair of master-slave data; and mark the associated dimension of each pair of master-slave data as where w r Represents the dimension of each pair of master-slave data, and the value of r ranges from 1 to v;
[0038] S403: According to the dimension mark in each pair of master and slave data, the master and slave data are divided according to the dimension, and the number of slave data under different dimensions in each master data is obtained as {U1, U2, U3...U v}, U1, U2, U3...U v Indicates the number of slave data under the 1st, 2nd, 3rd, ...vth dimensions in each master data.
[0039] After finding the real-time master-slave data, because there may be a situation where one master data corresponds to multiple slave data, the dimensions of the master data can be analyzed to clearly distinguish multiple slave data and avoid confusion when using the master-slave data;
[0040] S500: After obtaining the master-slave data and dimensions of the original data by calculation, all the original data are stored separately according to the master-slave relationship and the dimensions.
[0041] Furthermore, the specific steps for storing all the original data separately according to the master-slave relationship and dimensions are as follows:
[0042] S501. After determining the dimensions of real-time master-slave data, use the data lake architecture to store it in the system, divide the system data lake into a master data storage space and a slave data storage space, store all real-time master data in the master data storage space, and store the slave data in the slave data storage space;
[0043] S502. Further divide the main data storage space according to the types of master data in the main data storage space, and store each type of master data separately. Each type of main data storage space is connected with a corresponding slave data storage space. The slave data storage space under each type of main data storage space is further divided according to different dimensions of the master data, and the slave data of different dimensions of each type of master data are stored separately in the slave data storage spaces of different dimensions.
[0044] When using the data lake architecture to store the original data generated by the system, the area is divided according to characteristics, master-slave, and dimensions. This can make the stored data concise and neat, ensure the clarity of the stored data, and prevent the data lake from being forgotten and becoming an abandoned lake, and unable to extract valid data information.
[0045] A multi-dimensional master-slave data association analysis system based on a data lake architecture, the multi-dimensional master-slave data association analysis system comprising a data collection module, an association data analysis module, a master-slave data determination module, a dimension division module and a data lake storage module;
[0046] The data collection module is used to collect the information and information volume of the master-slave data generated by the system in history;
[0047] The correlation data analysis module is used to calculate the correlation degree of the master-slave data in the history to obtain the correlation threshold, and then calculate the correlation degree of the real-time original data to determine whether there is a correlation between the real-time original data;
[0048] The master-slave data determination module is used to calculate and determine the master data and the slave data in two associated original data after obtaining the associated original data;
[0049] The dimension partitioning module is used to analyze the elements in the master data, divide the dimensions of the master data according to the constituent elements of the master data, and determine the dimensions of the corresponding slave data in the master data;
[0050] The data lake storage module is used to determine whether the real-time original data is associated and after determining the master data and the slave data, it divides different storage spaces in the data lake according to the category and different dimensions of the master data and stores the master and slave data according to different dimensions.
[0051] The data collection module includes a historical data collection unit and a data classification unit;
[0052] The historical data collection unit is used to collect various data in history;
[0053] The data classification unit is used to perform statistical calculations on the constituent elements in the collected original data, determine the characteristics of each original data, and classify the original data according to the characteristics of the original data.
[0054] The associated data analysis module includes a threshold calculation unit and an association degree judgment unit;
[0055] The threshold calculation unit is used to analyze the master-slave data in history, obtain the number of identical information in the master-slave data in history, use the number of identical information to reflect the correlation degree of the master-slave data, and calculate the correlation threshold of the master-slave data;
[0056] The correlation judgment unit is used to collect the real-time original data, calculate the correlation between each real-time original data, and use the correlation threshold to judge whether there is a correlation between each real-time correlation data.
[0057] The dimension division module is used to collect the constituent elements of the master data, use the constituent elements of the master data to reflect the different dimensions of the master data, divide the master data into dimensions according to the constituent elements, determine the total amount of information in each dimension of the master data, and extract the amount of the same information when calculating the correlation between the master and slave data, and determine the specific dimension of the slave data belonging to the master data.
[0058] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0059] 1. The present invention extracts features from original data, classifies the original data according to constituent elements, and stores the original data separately according to different categories, which makes reading more convenient and quick.
[0060] 2. The present invention calculates and analyzes the correlation of the original data, determines the primary data and the secondary data in the associated original data, and stores them separately during storage, which can ensure that the system generates the original data for associated storage and can extract related data more quickly during reading.
[0061] 3. The present invention divides the dimensions of the master data. When there are multiple slave data corresponding to separate master data, the master and slave data can be clearly distinguished, thereby avoiding confusion when using the data, erroneous extraction of slave data, and improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0063] Figure 1 It is a module distribution diagram of a multi-dimensional master-slave data association analysis system based on a data lake architecture of the present invention;
[0064] Figure 2 It is a schematic diagram of the steps of a multi-dimensional master-slave data association analysis method based on a data lake architecture of the present invention;
[0065] Figure 3 It is a data lake storage structure diagram of a multi-dimensional master-slave data association analysis method based on a data lake architecture in the present invention. DETAILED DESCRIPTION
[0066] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0067] See also Figure 1-Figure 3 , the present invention provides a technical solution:
[0068] A multi-dimensional master-slave data association analysis method based on a data lake architecture, the method comprising the following steps:
[0069] S100, collect various raw data generated during system operation and classify the raw data;
[0070] The specific steps for classifying the original data are:
[0071] S101, collect all the original data generated during system operation, extract the constituent elements of each original data as {S1, S2, S3...S n}, S1, S2, S3...S n It is represented by the 1st, 2nd, 3rd...nth elements in each extracted raw data, where n is a positive integer; the main elements in each raw data are calculated using the formula:
[0072]
[0073] In the formula, P represents the proportion of each element in each original data among all elements, M represents the total number of elements in each original data, and m c Expressed as the number of each element in each original data;
[0074] S102, calculate the proportion of all types of elements in each original data as {P1, P2, P3...P m}, P1, P2, P3...P m It is expressed as the calculated proportion of the 1st, 2nd, 3rd...mth elements in each original data, where m is a positive integer; the element with the largest proportion among the m elements is selected as the characteristic element of the corresponding original data;
[0075] S103, calculating the characteristic elements of all the collected raw data, classifying the raw data with the same characteristic elements as the same type of raw data, and finally classifying the collected raw data to obtain k types of raw data, specifically {T1, T2, T3...T k}, T1, T2, T3...T k Represents the 1st, 2nd, 3rd, ... kth kinds of original data obtained by classification, where k is a positive integer.
[0076] After the raw data is classified according to its constituent elements, it can be stored separately according to different types of raw data. This makes it more convenient and quick to read and use data from the data lake, and the data storage is more concise, reducing the risk of forgetting and losing the stored data.
[0077] S200, collecting historical association information of master-slave data, and calculating association thresholds of master-slave data;
[0078] The specific steps for calculating the correlation threshold of master-slave data are as follows:
[0079] S201, collect the master-slave data generated by the system in history, assuming that the master data generated by the system in the collected history is {F1, F2, F3...F b}, F1, F2, F3...F b Indicates the 1st, 2nd, 3rd, ...bth master data generated by the system in the collected history. The slave data generated by the system in the collected history is {f1, f2, f3, ...f b}, f1, f2, f3...f b Indicates the 1st, 2nd, 3rd, ...bth slave data generated by the system in the collected history, where b is a positive integer;
[0080] S202, extract information from each master data and slave data, calculate the amount of information of each extracted information as q, calculate the amount of information in the master and slave data, and find the number of identical information, the formula is:
[0081]
[0082] In the formula, R represents the number of identical information in the master and slave data, q 主 represents the amount of information of each information in the master data, q represents the amount of information of each information in the slave data, int represents input, out represents exclusion, a represents the number of information in the master data, and d represents the number of information in the slave data; compare the amount of information in the slave data and the master data, extract the information with a value of 1 as the same information in the master and slave data, input the information with a ratio of 1 as int, exclude the information that is not 1, and finally compare all the information in the master and slave data, and calculate the number of the same information in the master and slave data as R;
[0083] S203, after calculating the number of identical information in the master-slave data b, calculate the association threshold of the master-slave data, the formula is:
[0084]
[0085] In the formula, co_y represents the correlation threshold of master-slave data, R represents the number of identical information in each master-slave data, b represents the number of master-slave data, and st represents the standard deviation of the number of identical information in the master-slave data.
[0086] By calculating the number of identical information in the master and slave data in history and processing it with statistical means, we can get the threshold value of the association between the master and slave data. We can judge the real-time original data according to the association threshold value to determine whether the original data is associated, and further determine the master data and the slave data. We can also judge whether the real-time original data are mutually master and slave data.
[0087] S300, analyzing the classified original data, calculating the relevance of each type of original data, and determining the master-slave relationship in the original data;
[0088] The specific steps for calculating the relevance of each type of original data and determining the master-slave relationship in the original data are:
[0089] S301, collect e raw data generated in the system in real time, extract information from all real-time raw data, the amount of information of each piece of information in the real-time raw data is Q, compare and analyze each real-time raw data, find the number of identical information in each pair of raw data, the formula is:
[0090]
[0091] In the formula, R_s represents the number of identical information in each pair of raw data during real-time comparison, Q one Indicates extracting a piece of information from the original data, Q other represents the remaining information except the extracted information, A and D represent the number of information in the real-time original data, and the number of identical information in the real-time original data is calculated using the same method as in S202 to obtain the number R_s of identical information in each pair of original data;
[0092] S302, judging the number of identical information in each pair of original data obtained by calculation, when R_s≥co_y, judging that the two corresponding original data are associated, when R_s<co_y, judging that the two corresponding original data are not associated; after judgment, each pair of original data that is associated is obtained as (G i , G j ), where i and j are in the range of 1 to e, and G represents the raw data collected in real time; finally, the raw data of x pairs with correlation are obtained;
[0093] S303, after determining that the associated original data is obtained, determine the master data and the slave data in each pair of associated original data, and extract the associated original data (G i , G j ) to calculate the total amount of information of the two original data. The formula is:
[0094]
[0095] In the formula, L represents the total information ratio of two related original data, Q_z i Represents the original data Q i The total amount of information, Q_z j Represents the original data Q j The total amount of information, when L ≥ 1, Q i For master data, Q j is the slave data; when L<1, Q j For master data, Q i is the slave data; after judging x related original data, the master-slave data is (G 主 , G 从 ).
[0096] When judging the master data and slave data in the associated original data, based on the characteristics of the master data's wide coverage and large amount of information, when the two original data are compared, the value is greater than 1, proving that the numerator data contains more information. This method can be used to quickly find the master data and slave data in the associated original data;
[0097] S400: After determining and obtaining the master-slave data in the original data, analyze the dimension of each master-slave data, and divide the master-slave data into different dimensions according to the dimension;
[0098] The specific steps for dividing the master-slave data into different dimensions according to the dimensions are:
[0099] S401, after calculating and judging the original data collected in real time, obtain the associated master-slave data in the original data, extract the constituent elements of each master data in S101, use the constituent elements of the master data, take each different element as a dimension of the master data, and obtain the dimensions existing in each master data as {W1, W2, W3...W v}, W1, W2, W3...W v Represents the 1st, 2nd, 3rd, ...vth dimensions of the master data, where v is a positive integer;
[0100] S402, calculate the information amount of elements in different dimensions in the master data, and obtain the information amount of each dimension in the master data as {Q_w1, Q_w2, Q_w3...Q_w v}, Q_w1, Q_w2, Q_w3...Q_w v Indicates the information volume of the 1st, 2nd, 3rd...vth dimensions in the master data. When extracting each pair of master-slave data to determine the association degree, the information volume q_s of the same information in the master-slave data is found. The information volume q_s of the same information is found in the information volume of each dimension. Determine the dimension in which the slave data belongs to the master data in each pair of master-slave data; and mark the associated dimension of each pair of master-slave data as where w r Represents the dimension of each pair of master-slave data, and the value of r ranges from 1 to v;
[0101] S403: According to the dimension mark in each pair of master and slave data, the master and slave data are divided according to the dimension, and the number of slave data under different dimensions in each master data is obtained as {U1, U2, U3...U v}, U1, U2, U3...U v Indicates the number of slave data under the 1st, 2nd, 3rd, ...vth dimensions in each master data.
[0102] After finding the real-time master-slave data, because there may be a situation where one master data corresponds to multiple slave data, the dimensions of the master data can be analyzed to clearly distinguish multiple slave data and avoid confusion when using the master-slave data;
[0103] S500: After obtaining the master-slave data and dimensions of the original data by calculation, all the original data are stored separately according to the master-slave relationship and the dimensions.
[0104] The specific steps to store all original data separately according to the master-slave relationship and dimensions are:
[0105] S501. After determining the dimensions of real-time master-slave data, use the data lake architecture to store it in the system, divide the system data lake into a master data storage space and a slave data storage space, store all real-time master data in the master data storage space, and store the slave data in the slave data storage space;
[0106] S502. Further divide the main data storage space according to the types of master data in the main data storage space, and store each type of master data separately. Each type of main data storage space is connected with a corresponding slave data storage space. The slave data storage space under each type of main data storage space is further divided according to different dimensions of the master data, and the slave data of different dimensions of each type of master data are stored separately in the slave data storage spaces of different dimensions.
[0107] When using the data lake architecture to store the original data generated by the system, the area is divided according to characteristics, master-slave, and dimensions. This can make the stored data concise and neat, ensure the clarity of the stored data, and prevent the data lake from being forgotten and becoming an abandoned lake, and unable to extract valid data information.
[0108] A multi-dimensional master-slave data association analysis system based on a data lake architecture, the multi-dimensional master-slave data association analysis system comprising a data collection module, an association data analysis module, a master-slave data determination module, a dimension division module and a data lake storage module;
[0109] The data collection module is used to collect the information and information volume of the master-slave data generated by the system in history;
[0110] The correlation data analysis module is used to calculate the correlation degree of the master-slave data in the history to obtain the correlation threshold, and then calculate the correlation degree of the real-time original data to determine whether there is a correlation between the real-time original data;
[0111] The master-slave data determination module is used to calculate and determine the master data and the slave data in two associated original data after obtaining the associated original data;
[0112] The dimension partitioning module is used to analyze the elements in the master data, divide the dimensions of the master data according to the constituent elements of the master data, and determine the dimensions of the corresponding slave data in the master data;
[0113] The data lake storage module is used to determine whether the real-time original data is associated and after determining the master data and the slave data, it divides different storage spaces in the data lake according to the category and different dimensions of the master data and stores the master and slave data according to different dimensions.
[0114] The data collection module includes a historical data collection unit and a data classification unit;
[0115] The historical data collection unit is used to collect various data in history;
[0116] The data classification unit is used to perform statistical calculations on the constituent elements in the collected original data, determine the characteristics of each original data, and classify the original data according to the characteristics of the original data.
[0117] The associated data analysis module includes a threshold calculation unit and an association degree judgment unit;
[0118] The threshold calculation unit is used to analyze the master-slave data in history, obtain the number of identical information in the master-slave data in history, use the number of identical information to reflect the correlation degree of the master-slave data, and calculate the correlation threshold of the master-slave data;
[0119] The correlation judgment unit is used to collect the real-time original data, calculate the correlation between each real-time original data, and use the correlation threshold to judge whether there is a correlation between each real-time correlation data.
[0120] The dimension division module is used to collect the constituent elements of the master data, use the constituent elements of the master data to reflect the different dimensions of the master data, divide the master data into dimensions according to the constituent elements, determine the total amount of information in each dimension of the master data, and extract the amount of the same information when calculating the correlation between the master and slave data, and determine the specific dimension of the slave data belonging to the master data.
[0121] Example 1
[0122] Collect and analyze the raw data of a certain operating system, and classify the raw data in the operating system into text and audio categories according to the components of the raw data;
[0123] Collect the master-slave data information of the operating system in history and calculate the correlation threshold. The formula is:
[0124]
[0125] After calculation, the correlation threshold of the master-slave data in history is 10;
[0126] The raw data generated by the collection system in real time are transaction records, transaction time and transaction amount; the information and information volume of the three raw data are extracted, and the formula is used to calculate the transaction amount. The number of identical information in the three real-time raw data is calculated as follows: transaction record-transaction time is 11, transaction record-transaction amount is 15, and transaction time-transaction amount is 8. After judgment, it is found that transaction record-transaction time and transaction record-transaction amount are related, while transaction time-transaction amount is not related.
[0127] After determining that there is related data in the real-time original data, determine the master data and slave data in the related original data, extract the total amount of information in the transaction record-transaction time and transaction record-transaction amount, and perform comparative calculations. Determine that the transaction record is the primary data and the transaction time is the secondary data; Determine that the transaction record is the primary data and the transaction amount is the secondary data;
[0128] According to the constituent elements of the master data, the constituent elements of the transaction record are time, finance, number of times, and object; after judgment, the four dimensions of the transaction record are obtained, and the corresponding slave data transaction time belongs to the time dimension, and the transaction amount belongs to the financial dimension.
[0129] It should be noted that, in this article, relational terms such as first and second, etc. 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.
[0130] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A multi-dimensional master-slave data association analysis method based on a data lake architecture, characterized by: The method comprises the following steps: S100, collect various raw data generated during system operation and classify the raw data; S200, collecting historical association information of master-slave data, and calculating association thresholds of master-slave data; S300, analyzing the classified original data, calculating the relevance of each type of original data, and determining the master-slave relationship in the original data; S400: After determining and obtaining the master-slave data in the original data, analyze the dimension of each master-slave data, and divide the master-slave data into different dimensions according to the dimension; S500: After obtaining the master-slave data and dimensions of the original data by calculation, all the original data are stored separately according to the master-slave relationship and the dimensions.
2. According to claim 1, a multi-dimensional master-slave data association analysis method based on a data lake architecture is characterized by: The specific steps of classifying the original data in S100 are: S101, collect all the original data generated during system operation, extract the constituent elements of each original data as {S1, S2, S3...S n }, S1, S2, S3...S n It is represented by the 1st, 2nd, 3rd...nth elements in each extracted raw data, where n is a positive integer; the main elements in each raw data are calculated using the formula: In the formula, P represents the proportion of each element in each original data among all elements, M represents the total number of elements in each original data, and m c Expressed as the number of each element in each original data; S102, calculate the proportion of all types of elements in each original data as {P1, P2, P3...P m }, P1, P2, P3...P m It is expressed as the calculated proportion of the 1st, 2nd, 3rd...mth elements in each original data, where m is a positive integer; the element with the largest proportion among the m elements is selected as the characteristic element of the corresponding original data; S103, calculating the characteristic elements of all the collected raw data, classifying the raw data with the same characteristic elements as the same type of raw data, and finally classifying the collected raw data to obtain k types of raw data, specifically {T1, T2, T3...T k }, T1, T2, T3...T k Represents the 1st, 2nd, 3rd, ... kth kinds of original data obtained by classification, where k is a positive integer.
3. According to claim 1, a multi-dimensional master-slave data association analysis method based on a data lake architecture is characterized by: The specific steps of calculating the association threshold of the master-slave data in S200 are: S201, collect the master-slave data generated by the system in history, assuming that the master data generated by the system in the collected history is {F1, F2, F3...F b }, F1, F2, F3...F b Indicates the 1st, 2nd, 3rd, ...bth master data generated by the system in the collected history. The slave data generated by the system in the collected history is {f1, f2, f3, ...f b }, f1, f2, f3...f b Indicates the 1st, 2nd, 3rd, ...bth slave data generated by the system in the collected history, where b is a positive integer; S202, extract information from each master data and slave data, calculate the amount of information of each extracted information as q, calculate the amount of information in the master and slave data, and find the number of identical information, the formula is: In the formula, R represents the number of identical information in the master and slave data, q 主 represents the amount of information of each information in the master data, q represents the amount of information of each information in the slave data, int represents input, out represents exclusion, a represents the number of information in the master data, and d represents the number of information in the slave data; compare the amount of information in the slave data and the master data, extract the information with a value of 1 as the same information in the master and slave data, input the information with a ratio of 1 as int, exclude the information that is not 1, and finally compare all the information in the master and slave data, and calculate the number of the same information in the master and slave data as R; S203, after calculating the number of identical information in the master-slave data b, calculate the association threshold of the master-slave data, the formula is: In the formula, co_y represents the correlation threshold of master-slave data, R represents the number of identical information in each master-slave data, b represents the number of master-slave data, and st represents the standard deviation of the number of identical information in the master-slave data.
4. According to claim 1, a multi-dimensional master-slave data association analysis method based on a data lake architecture is characterized by: The specific steps of calculating the relevance of each type of original data and determining the master-slave relationship in the original data in S300 are: S301, collect e raw data generated in the system in real time, extract information from all real-time raw data, the amount of information of each piece of information in the real-time raw data is Q, compare and analyze each real-time raw data, find the number of identical information in each pair of raw data, the formula is: In the formula, R_s represents the number of identical information in each pair of raw data during real-time comparison, Q one Indicates extracting a piece of information from the original data, Q other represents the remaining information except the extracted information, A and D represent the number of information in the real-time original data, and the number of identical information in the real-time original data is calculated using the same method as in S202 to obtain the number R_s of identical information in each pair of original data; S302, judging the number of identical information in each pair of original data obtained by calculation, when R_s≥co_y, judging that the two corresponding original data are associated, when R_s<co_y, judging that the two corresponding original data are not associated; after judgment, each pair of original data that is associated is obtained as (G i , G j ), where i and j are in the range of 1 to e, and G represents the raw data collected in real time; finally, the raw data of x pairs with correlation are obtained; S303, after determining that the associated original data is obtained, determine the master data and the slave data in each pair of associated original data, and extract the associated original data (G i , G j ) to calculate the total amount of information of the two original data. The formula is: In the formula, L represents the total information ratio of two related original data, Q_z i Represents the original data Q i The total amount of information, Q_z j Represents the original data Q j The total amount of information, when L ≥ 1, Q i For master data, Q j is the slave data; when L<1, Q j For master data, Q i is the slave data; after judging x related original data, the master-slave data is (G 主 , G 从 ).
5. According to claim 1, a multi-dimensional master-slave data association analysis method based on a data lake architecture is characterized by: The specific steps of dividing the master-slave data into different dimensions according to the dimensions in S400 are: S401, after calculating and judging the original data collected in real time, obtain the associated master-slave data in the original data, extract the constituent elements of each master data in S101, use the constituent elements of the master data, take each different element as a dimension of the master data, and obtain the dimensions existing in each master data as {W1, W2, W3...W v }, W1, W2, W3...W v Represents the 1st, 2nd, 3rd, ...vth dimensions of the master data, where v is a positive integer; S402, calculate the information amount of elements in different dimensions in the master data, and obtain the information amount of each dimension in the master data as {Q_w1, Q_w2, Q_w3...Q_w v }, Q_w1, Q_w2, Q_w3...Q_w v Indicates the information volume of the 1st, 2nd, 3rd...vth dimensions in the master data. When extracting each pair of master-slave data to determine the association degree, the information volume q_s of the same information in the master-slave data is found. The information volume q_s of the same information is found in the information volume of each dimension. Determine the dimension in which the slave data belongs to the master data in each pair of master-slave data; and mark the associated dimension of each pair of master-slave data as where w r Represents the dimension of each pair of master-slave data, and the value of r ranges from 1 to v; S403: According to the dimension mark in each pair of master and slave data, the master and slave data are divided according to the dimension, and the number of slave data under different dimensions in each master data is obtained as {U1, U2, U3...U v }, U1, U2, U3...U v Indicates the number of slave data under the 1st, 2nd, 3rd, ...vth dimensions in each master data.
6. The multi-dimensional master-slave data association analysis method based on the data lake architecture according to claim 1 is characterized by: The specific steps of storing all the original data separately according to the master-slave relationship and the dimension in S500 are: S501. After determining the dimensions of real-time master-slave data, use the data lake architecture to store it in the system, divide the system data lake into a master data storage space and a slave data storage space, store all real-time master data in the master data storage space, and store the slave data in the slave data storage space; S502. Further divide the main data storage space according to the types of master data in the main data storage space, and store each type of master data separately. Each type of main data storage space is connected with a corresponding slave data storage space. The slave data storage space under each type of main data storage space is further divided according to different dimensions of the master data, and the slave data of different dimensions of each type of master data are stored separately in the slave data storage spaces of different dimensions.
7. A multi-dimensional master-slave data association analysis system based on a data lake architecture, characterized by: The multi-dimensional master-slave data association analysis system includes a data collection module, an association data analysis module, a master-slave data determination module, a dimension division module and a data lake storage module; The data collection module is used to collect the information and information volume of the master-slave data generated by the system in history; The correlation data analysis module is used to calculate the correlation degree of the master-slave data in the history to obtain the correlation threshold, and then calculate the correlation degree of the real-time original data to determine whether there is a correlation between the real-time original data; The master-slave data determination module is used to calculate and determine the master data and the slave data in two associated original data after obtaining the associated original data; The dimension partitioning module is used to analyze the elements in the master data, divide the dimensions of the master data according to the constituent elements of the master data, and determine the dimensions of the corresponding slave data in the master data; The data lake storage module is used to determine whether the real-time original data is associated and after determining the master data and the slave data, it divides different storage spaces in the data lake according to the category and different dimensions of the master data and stores the master and slave data according to different dimensions.
8. The multi-dimensional master-slave data association analysis system based on the data lake architecture according to claim 7 is characterized by: The data collection module includes a historical data collection unit and a data classification unit; The historical data collection unit is used to collect various data in history; The data classification unit is used to perform statistical calculations on the constituent elements in the collected original data, determine the characteristics of each original data, and classify the original data according to the characteristics of the original data.
9. The multi-dimensional master-slave data association analysis system based on data lake architecture according to claim 7 is characterized in that: The association data analysis module includes a threshold calculation unit and an association degree judgment unit; The threshold calculation unit is used to analyze the master-slave data in history, obtain the number of identical information in the master-slave data in history, use the number of identical information to reflect the correlation degree of the master-slave data, and calculate the correlation threshold of the master-slave data; The correlation judgment unit is used to collect the real-time original data, calculate the correlation between each real-time original data, and use the correlation threshold to judge whether there is a correlation between each real-time correlation data.
10. The multi-dimensional master-slave data association analysis system based on data lake architecture according to claim 7, characterized in that: The dimension division module is used to collect the constituent elements of the master data determined, use the constituent elements of the master data to reflect the different dimensions of the master data, divide the master data into dimensions according to the constituent elements, determine the total amount of information in each dimension of the master data, and extract the amount of the same information when calculating the correlation between the master and slave data, and determine the specific dimension of the slave data to which the master data belongs.
Citation Information
Patent Citations
Display method and system based on page linkage and electronic equipment
CN112711460A
Lightweight multi-source heterogeneous data fusion method and system
CN114661810A
Feature engineering method and device and electronic equipment
CN116414880A
Data analysis method and device, computer readable medium and electronic equipment
CN116796233A
Insighted data generation method and device
CN117951186A
Cited By
Data management platform, method and device, equipment and storage medium
CN119477503A
