Business modeling method and readable storage medium
By calculating the association matrix and non-exclusive partition clustering between data entities, the business model is constructed, which solves the problem of mismatch between the data model and the business scenario in the existing technology, realizes automated modeling and adaptive updating, and improves data assets. Management and application efficiency.
Patent Information
- Application Number
- CN202310870003.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-14
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-07-14
AI Technical Summary
Existing data modeling methods focus too much on technology and ignore business needs, resulting in a mismatch between data models and actual business scenarios. They are also too fragile in long-term business changes, making it difficult to establish effective data asset management and applications.
By obtaining metadata, calculating the association matrix between entities, performing non-exclusive partition clustering, building a business model, outputting the business model, and using readable storage media to store programs to achieve automated business modeling and adapt to business changes.
It reduces manual construction time and costs, avoids the problem of mismatch between data models and business scenarios, realizes model updates synchronized with business, and enhances the relevance of data asset management and applications.
Smart Images

Figure CN116739442B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data processing technology, and in particular to a business modeling method and a readable storage medium. Background Art
[0002] Existing data modeling methods can be classified according to multiple dimensions such as data type, model type, and implementation method, and can basically cover any data modeling scenario. However, from the perspective of actual application, existing data modeling methods have some defects, which often lead to the mismatch between data modeling results and actual business scenarios.
[0003] First, existing data modeling methods are too focused on technology and ignore business. In many data modeling practices, data models are often designed and maintained by technical personnel, who often only care about technical implementation and performance optimization, while ignoring the needs of business scenarios. As a result, these data models are often limited to technical details and performance considerations, ignoring the complexity and changes of business scenarios. This will cause the data model to not match the actual business scenario, thus affecting business efficiency and data quality.
[0004] Secondly, the existing data modeling methods are too fragile in the face of long-term business changes. In actual business scenarios, business requirements change with market changes and technological developments, but the existing data modeling methods are too fragile in the face of long-term changes. Once the data model is out of touch with the business scenario, it will take a lot of time and effort to redesign and implement the data model. This not only wastes time and resources, but also affects business innovation and business competitiveness.
[0005] In addition, existing data modeling methods often make it difficult to establish effective data asset management and applications. With the continuous growth of data volume and the continuous expansion of data application scenarios, managing data assets and applications has become increasingly complex. However, existing data modeling methods often fail to establish effective data asset management and applications, and data models are difficult to seamlessly connect with existing business systems and data exchanges, which hinders the effective management and application of data assets and causes a waste of resources.
[0006] In summary, existing data modeling methods have some limitations and defects, which often lead to a mismatch between data models and actual business scenarios. In order to solve these problems, we need to rethink the goals and methods of data modeling methods, pay more attention to business scenarios and data asset management and application, in order to achieve better data modeling results and business value. Summary of the invention
[0007] The purpose of the present invention is to provide a business modeling method and a readable storage medium to solve the problem that the data model existing in the prior art does not match the actual business scenario.
[0008] In order to solve the above technical problems, the present invention provides a business modeling method, comprising: obtaining metadata, confirming entities and attributes of the metadata; wherein the metadata comes from different data interfaces and different hardware and software devices. For each of the attributes, calculating the association matrix between the entities. Based on the association matrix, performing non-exclusive partition clustering of the attributes. Based on the partition clustering results, building a business model. And outputting the business model.
[0009] Optionally, before calculating the association matrix, data cleaning is performed on the acquired metadata.
[0010] Optionally, the association matrix is calculated based on an index factor, which includes at least one of the following indexes: similarity of the functions of the entities, similarity of the meanings of the attributes, whether the attributes are primary keys or unique keys, whether there is a foreign key relationship between the attributes, similarity of the data types of the attributes, the data stock of the entities, the data increment of the entities, the data volume of the attributes with valid data, the data volume of the associations between the same attributes of different entities, and the similarity between the data of different attributes.
[0011] Optionally, the association matrix is calculated based on at least the indicator factors of the entities, the weights of the entities and correction parameters.
[0012] Optionally, the association matrix is calculated according to the following formula:
[0013]
[0014] Among them, Cm i,j represents the correlation coefficient of the i-th row and j-th column in the m-th correlation matrix, Cm i,j It also represents the correlation between the mth attribute in the ith entity and the jth entity, θ represents the correction coefficient, b represents the offset, p represents the total number of index factors, f(k) represents the custom adjustment function of the kth index factor, X i,k represents the kth index factor of the mth attribute with respect to the ith entity, Y i,k represents the kth index factor of the mth attribute with respect to the jth entity, α i represents the weight of the i-th entity, β j represents the weight of the j-th entity, γ i,jrepresents the difference coefficient between the i-th entity and the j-th entity; θ, b, f(k) and γ i,j They are collectively referred to as the correction parameters.
[0015] Optionally, the step of performing non-exclusive partition clustering of the attributes based on the association matrix includes:
[0016] Taking the attribute as an individual, all the correlation data of the attribute in the correlation matrix are normalized, and Gaussian parameter fitting is performed to form Gaussian distribution data points with source entity, target entity and correlation as the core.
[0017] The number parameter of clusters is obtained or the number of clusters is set according to a preset logic, and Gaussian distribution parameters of each cluster are randomly initialized, where the Gaussian distribution parameters include a mean and a variance.
[0018] Given the Gaussian distribution of each of the clusters, the probability of each of the data points belonging to each of the clusters is calculated.
[0019] And, if the end condition is met, the non-exclusive partition clustering is completed; if the end condition is not met, the Gaussian distribution parameters of each cluster are changed and the probability of each data point belonging to each cluster is recalculated.
[0020] Optionally, the termination condition includes one or more of the following conditions: the size of the data point probability meets a preset condition; the difference in the data point probability in two adjacent calculations is less than a preset difference; the number of recalculations exceeds a preset number; and, an externally input termination instruction is received.
[0021] Optionally, the step of constructing a business model based on the partition clustering results includes: constructing each cluster as a business object; the attributes corresponding to the data points in each cluster are configured as business attributes of the corresponding business object; and setting characteristics of the business attributes based on characteristics of the attributes.
[0022] Optionally, the step of constructing a business model based on the partition clustering result further includes: if different business objects contain the same business attributes, establishing a foreign key association between the same business attributes of the business objects.
[0023] In order to solve the above technical problem, the present invention also provides a readable storage medium, on which a program is stored, and when the program is run, the above business modeling method is executed.
[0024] Compared with the prior art, the present invention provides a business modeling method and a readable storage medium, wherein the business modeling method includes: obtaining metadata, confirming the entity and attribute of the metadata; wherein the metadata is derived from different data interfaces and different hardware and software devices. For each of the attributes, the association matrix between the entities is calculated. Based on the association matrix, non-exclusive partition clustering of the attributes is performed. Based on the partition clustering results, a business model is constructed. And, the business model is output. With such configuration, on the one hand, the business model is automatically constructed by an algorithm, which reduces the time cost and labor cost of manual construction, and avoids the problem of mismatch between the data model and the actual business scenario caused by the defects of the builder himself; on the other hand, it can be synchronized with the business development process. When the business changes, the business model can be adaptively changed through the change of input data, avoiding the problem of mismatch between the data model and the actual business scenario caused by a long time span; and also provides a prerequisite for the expansion functions such as the relevance of the business model. The present invention solves the problem of mismatch between the data model and the actual business scenario caused by specific defects in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Those skilled in the art will appreciate that the accompanying drawings are provided for a better understanding of the present invention and do not constitute any limitation on the scope of the present invention.
[0026] Figure 1 is a flowchart of a business modeling method according to an embodiment of the present invention;
[0027] Figure 2 It is a schematic diagram of a system operation framework of an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, advantages and features of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the drawings are all in a very simplified form and are not drawn to scale, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In addition, the structure shown in the drawings is often a part of the actual structure. In particular, the emphasis of each drawing is different, and sometimes different scales are used.
[0029] As used in the present invention, the singular forms "one", "an" and "the" include plural objects, the term "or" is generally used to include the meaning of "and / or", the term "several" is generally used to include the meaning of "at least one", and the term "at least two" is generally used to include the meaning of "two or more". In addition, the terms "first", "second" and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first", "second" and "third" may explicitly or implicitly include one or at least two of the features, "one end" and "the other end" and "the proximal end" and "the distal end" generally refer to two corresponding parts, which include not only the endpoints, and the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral body; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. In addition, as used in the present invention, an element disposed on another element generally only indicates that there is a connection, coupling, cooperation or transmission relationship between the two elements, and the connection, coupling, cooperation or transmission between the two elements may be direct or indirect through an intermediate element, and cannot be understood as indicating or implying the spatial position relationship between the two elements, that is, one element may be in any orientation such as inside, outside, above, below or on one side of another element, unless otherwise clearly indicated in the content. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0030] The core idea of the present invention is to provide a business modeling method and a readable storage medium to solve the problem that the data model existing in the prior art does not match the actual business scenario.
[0031] The present invention aims to utilize advanced technologies such as big data and artificial intelligence to conduct in-depth mining and refined analysis of massive business data, identify the relationships between data, and use these relationships to create business models for enterprise business processes; at the same time, by constructing a self-learning business modeling method, the entire modeling process is made adaptive, highly accurate, and self-iteratively optimized, so as to achieve automatic tracking and adaptation of the model to the business process, thereby quickly adapting to business changes, and autonomously updating and adjusting related business models at any time, greatly reducing costs and time.
[0032] This embodiment provides a self-learning business modeling method based on massive data (i.e., business modeling method), which uses advanced technical means, through the self-learning, self-adaptation and self-optimization capabilities of data, to provide effective support and guidance for business modeling and corresponding decision-making. The core of this method is self-learning based on massive data, using metadata collection and continuous injection of massive data to build a multi-application system multi-entity multi-attribute association matrix, and through machine learning algorithms such as data association analysis and data similarity analysis, to dig out hidden business rules and relationships, separate various business objects and their attribute definitions, and automatically establish association relationships between business objects based on the discovered business relationships, and finally generate corresponding business models, thereby realizing self-learning business modeling based on massive data.
[0033] The following description is given with reference to the accompanying drawings.
[0034] Please refer to Figure 1 , this embodiment provides a business modeling method, including:
[0035] S10, obtaining metadata, and confirming the entity and attributes of the metadata.
[0036] S20, performing data cleaning on the obtained metadata.
[0037] S30: For each of the attributes, calculate the association matrix between the entities.
[0038] S40: performing non-exclusive partition clustering of the attributes based on the association matrix.
[0039] S50: construct a business model based on the partition clustering result.
[0040] And, S60, outputting the business model.
[0041] In step S10, metadata collection is the first step of self-learning business modeling, and it is the key to obtaining business data. There are many ways to collect data, and data can be obtained through SQL query, API access, web crawler, sensor collection, etc. That is, the metadata comes from different data interfaces and different hardware and software devices.
[0042] The entities and attributes that can be used as input are listed in Table 1.
[0043] Table 1 Some entities and attributes that can be used as input
[0044] Serial number entity property 1 Database tables / views Fields 2 A certain type of log Attribute definition in log content structure 3 API Interface return parameters 4 CSV / Excel files Column Information 5 document File content format description information
[0045] In step S20, in order to ensure the authenticity of the data, the collected data needs to be cleaned and filtered. There are a large amount of data of various types in many application systems. Based on the collected application system metadata, the continuous injection of a large amount of business data of various types will continuously optimize the entire self-learning business modeling process. The addition, deletion, and modification of data will promote the continuous optimization of the self-learning business modeling process. Before injecting business data, certain data cleaning work is required to remove some abnormal data and redundant data to avoid the impact of dirty data input on the self-learning business modeling process.
[0046] Then, step S30 is performed. The structure of the association matrix is as follows:
[0047]
[0048] Among them, Am n,n Represents the mth incidence matrix, Cm i,j represents the association coefficient of the i-th row and j-th column in the m-th association matrix. The total number of the association matrix is determined by the total number of the attributes. When it does not cause ambiguity, m can also represent the total number of the attributes. n is the total number of the entities.
[0049] The association matrix is calculated according to the following formula:
[0050]
[0051] Among them, Cm i,j represents the correlation coefficient of the i-th row and j-th column in the m-th correlation matrix, Cm i,j It also represents the correlation between the mth attribute in the ith entity and the jth entity, θ represents the correction coefficient, b represents the offset, p represents the total number of index factors, f(k) represents the custom adjustment function of the kth index factor, X i,k represents the kth index factor of the mth attribute with respect to the ith entity, Y i,k represents the kth index factor of the mth attribute with respect to the jth entity, α i represents the weight of the i-th entity, β j represents the weight of the j-th entity, γ i,j represents the difference coefficient between the i-th entity and the j-th entity; θ, b, f(k) and γ i,j Collectively referred to as correction parameters.
[0052] In other embodiments, based on the same design concept, it can also be considered that the association matrix is calculated based on at least the index factor of the entity, the weight of the entity and the correction parameter.
[0053] The index factor may include at least one of the following indexes: similarity of the functions of the entities, similarity of the meanings of the attributes, whether the attributes are primary keys or unique keys, whether there are foreign key relationships between the attributes, similarity of the data types of the attributes, the data stock of the entities, the data increment of the entities, the data volume of the attributes with valid data, the data volume of the associations between the same attributes of different entities, and the similarity between the data of different attributes. The specific calculation method of the above indexes can be set according to the common knowledge in the field and the actual business situation, and will not be described in detail here.
[0054] After the attribute entity association matrix is constructed, the maximum expectation (EM) clustering algorithm of the Gaussian mixture model (GMM) can be used to perform association and similarity analysis to achieve attribute partition clustering. This partition clustering is non-exclusive and allows the same attribute to belong to different regions.
[0055] Step S40, the step of performing non-exclusive partition clustering of the attributes based on the association matrix comprises:
[0056] Taking the attribute as an individual, all the correlation data of the attribute in the correlation matrix are normalized, and Gaussian parameter fitting is performed to form Gaussian distribution data points with source entity, target entity and correlation as the core.
[0057] The number parameter of clusters is obtained or the number of clusters is set according to a preset logic, and Gaussian distribution parameters of each cluster are randomly initialized, where the Gaussian distribution parameters include a mean and a variance.
[0058] Given the Gaussian distribution of each of the clusters, the probability of each of the data points belonging to each of the clusters is calculated.
[0059] And, if the end condition is met, the non-exclusive partition clustering is completed; if the end condition is not met, the Gaussian distribution parameters of each cluster are changed and the probability of each data point belonging to each cluster is recalculated.
[0060] The termination condition includes one or more of the following conditions: the size of the data point probability meets the preset condition (for example, the size of a part of the data point probability exceeds 90%); the difference between the data point probabilities in two adjacent calculations is less than the preset difference; the number of recalculations exceeds the preset number; and, an external input termination instruction is received.
[0061] Step S50 is performed according to the following process: each cluster is constructed as a business object; the attributes corresponding to the data points in each cluster are configured as business attributes of the corresponding business object; and the characteristics of the business attributes are set based on the characteristics of the attributes, such as data type, length, non-null, primary key, unique key, etc.
[0062] Since non-exclusive partition clustering is performed, the relationship between each business object can also be determined based on the common attributes. That is, in a preferred embodiment, the step of building a business model based on the partition clustering result also includes: if different business objects contain the same business attributes, establishing a foreign key association between the same business attributes of the business objects.
[0063] Finally, the business model is outputted through step S60 to complete the autonomous business modeling.
[0064] It can be understood that the above steps S10 to S60 can be executed before the business is created or during the business execution, so as to continuously iterate and optimize the business logic so that the data model always matches the actual business scenario.
[0065] In order to make the above process clearer, a set of sample data is used to perform self-learning business modeling. The process is as follows.
[0066] 1. The original entities, attributes and data are shown in Table 2.
[0067] Table 2 Original entities, attributes and data
[0068]
[0069] In this sample data, there are 4 entities, namely E1, E2, E3 and E4; E1 has three attributes, A1, A2 and A3; E2 has three attributes, A4, A5 and A6; E3 has three attributes, A7, A8 and A9; and E4 has three attributes, A10, A11 and A12. "ShangHai 240012.5" is a specific piece of data.
[0070] 2. Calculate the association matrix, as shown in Table 3.
[0071] Table 3 Correlation Matrix
[0072]
[0073] Taking the data 0.75 in the first row and second column of the A1 matrix as an example, 0.75 means that the correlation degree of the attribute A1 in the E1 and E2 entities is 0.75.
[0074] 3. Perform clustering and obtain the clustering results, as shown in Table 4.
[0075] Table 4 Clustering results
[0076]
[0077] The above are several clusters generated after clustering. Each cluster contains a set of attributes and a similarity. The higher the similarity value, the higher the correlation of the attributes in the cluster. The higher the correlation, the greater the business relevance of a set of attributes.
[0078] 4. The final generated business model is shown in Table 5.
[0079] Table 5 Business model
[0080]
[0081] According to the results of clustering in the previous step, remove clusters with low similarity (such as less than 0.5), and generate a business object model according to clusters with higher similarity. The model attributes are the attributes in the cluster. In this business object model, in addition to the attributes contained in the cluster, you can also add other attributes belonging to the same entity as these attributes according to your needs.
[0082] This embodiment also provides a readable storage medium, on which a program is stored, and when the program is run, the above-mentioned business modeling method is executed. The readable storage medium can be used as a carrier of the program, and can also solve the problems existing in the prior art.
[0083] The operating framework of this embodiment after being applied to the system is as follows Figure 2 As shown. Metadata is collected in the application system, and data is continuously injected during the operation of the system. Thus, an association matrix is established or updated, and then clustering is performed. Then, based on the clustering results, business relationships are identified, business objects are separated, and a business model is generated. In the business model, the same attributes of different objects are also associated with foreign keys, so as to further match the inherent logic of the actual business. Through the continuous updating of the present invention, a business model is output to guide the construction of the application system. The specific construction process is not the focus of the description of this application, so it will not be described in detail.
[0084] In summary, this embodiment provides a business modeling method and a readable storage medium. The business modeling method includes: obtaining metadata, confirming the entities and attributes of the metadata; wherein the metadata comes from different data interfaces and different hardware and software devices. For each of the attributes, the association matrix between the entities is calculated. Based on the association matrix, non-exclusive partition clustering of the attributes is performed. Based on the partition clustering results, a business model is constructed. And, the business model is output. With such configuration, on the one hand, the business model is automatically constructed by an algorithm, which reduces the time cost and labor cost of manual construction, and avoids the problem of mismatch between the data model and the actual business scenario caused by the defects of the builder himself; on the other hand, it can be synchronized with the business development process. When the business changes, the business model can be adaptively changed by the change of the input data, avoiding the problem of mismatch between the data model and the actual business scenario caused by the long time span; and it also provides a prerequisite for the expansion functions such as the relevance of the business model. This embodiment solves the problem of mismatch between the data model and the actual business scenario caused by specific defects in the prior art.
[0085] Before this method was applied, the process of business modeling required professionals who were very proficient in business processes to manually analyze various metadata and data of the original application system and summarize all business processes to form a business model suitable for the enterprise. The whole process was inefficient and not very accurate. At the same time, since data analysis based on business processes involves different business departments and different knowledge fields, it is often difficult for one person to fully master this knowledge, which greatly increases the difficulty, cycle and accuracy of business modeling.
[0086] The self-learning business modeling method based on massive data completely abandons the traditional modeling method. It starts from the core business data of business modeling, uses machine learning methods, and continuously injects massive business data to independently complete the identification of business objects and the sorting of business relationships, and then automatically completes the construction and optimization of the business model.
[0087] This method gets rid of the manual method, relies on massive business data, integrates machine learning algorithms into the autonomous modeling process, can quickly realize enterprise-level business modeling, and at the same time, it also has the ability to autonomously optimize business models. The application of this method will bring major technological changes to the field of business modeling.
[0088] The above description is only a description of the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the technical solution of the present invention.
Claims
1. A business modeling method, characterized in that: include: Obtaining metadata and confirming the entity and attributes of the metadata; wherein the metadata is derived from different data interfaces and different software and hardware devices; For each of the attributes, calculating the association matrix between the entities; Performing non-exclusive partition clustering of the attributes based on the association matrix; Based on the partition clustering results, construct a business model; and, outputting the business model; Wherein, the correlation matrix is calculated based on the index factor, and the correlation matrix is calculated according to the following formula: , Among them, Cm i,j represents the correlation coefficient of the i-th row and j-th column in the m-th correlation matrix, Cm i,j It also represents the correlation between the mth attribute in the ith entity and the jth entity, θ represents the correction coefficient, b represents the offset, p represents the total number of index factors, f(k) represents the custom adjustment function of the kth index factor, X i,k represents the kth index factor of the mth attribute with respect to the ith entity, Y i,k represents the kth index factor of the mth attribute with respect to the jth entity, α i represents the weight of the i-th entity, β j represents the weight of the j-th entity, γ i,j represents the difference coefficient between the i-th entity and the j-th entity; θ, b, f(k) and γ i,j They are collectively referred to as correction parameters; The step of performing non-exclusive partition clustering of the attributes based on the association matrix comprises: Taking the attribute as an individual, normalizing all the correlation data of the attribute in the correlation matrix, performing Gaussian parameter fitting, and forming Gaussian distribution data points with source entity, target entity and correlation as the core; Obtaining a number parameter of clusters or setting the number of clusters according to a preset logic, and randomly initializing Gaussian distribution parameters of each cluster, wherein the Gaussian distribution parameters include a mean and a variance; Given the Gaussian distribution of each of the clusters, calculating the probability that each of the data points belongs to each of the clusters; and, If the end condition is met, the non-exclusive partition clustering is completed; if the end condition is not met, the Gaussian distribution parameter of each cluster is changed and the probability of each data point belonging to each cluster is recalculated; The step of constructing a business model based on the partition clustering result includes: Each of the clusters is constructed as a business object; The attributes corresponding to the data points in each of the clusters are configured as business attributes of the corresponding business object; and, The characteristics of the business attributes are set based on the characteristics of the attributes.
2. The business modeling method according to claim 1, characterized in that: Before calculating the association matrix, the obtained metadata is cleaned.
3. The business modeling method according to claim 1, characterized in that: The index factors include at least one of the following indexes: similarity of the functions of the entities, similarity of the meanings of the attributes, whether the attributes are primary keys or unique keys, whether there are foreign key relationships between the attributes, similarity of the data types of the attributes, the data stock of the entities, the data increment of the entities, the amount of data of the attributes with valid data, the amount of associated data between the same attributes of different entities, and the similarity between data of different attributes.
4. The business modeling method according to claim 3, characterized in that: The association matrix is calculated based on at least the index factors of the entities, the weights of the entities and a modification parameter.
5. The business modeling method according to claim 1, characterized in that: The termination condition includes one or more of the following conditions: The magnitude of the probability of the data point meets the preset conditions; The difference between the probabilities of the data points in two adjacent calculations is less than a preset difference; The number of recalculations exceeds the preset number; as well as, Received an end command from external input.
6. The business modeling method according to claim 1, characterized in that: The step of constructing a business model based on the partition clustering result further includes: If different business objects contain the same business attributes, a foreign key association is established between the same business attributes of the business objects.
7. A readable storage medium, characterized in that: The readable storage medium stores a program, and when the program is run, the business modeling method according to any one of claims 1 to 6 is executed.
