Data analysis method and system based on data warehouse

Through systematic demand analysis and automated data processing processes, the data warehouse model is quickly constructed, which solves the problem of low data integration and cleaning efficiency in traditional methods, improves analysis accuracy and efficiency, and meets the high requirements of corporate decision-making.

CN118535660AInactive Publication Date: 2024-08-23NANJING HENGZHONG INFORMATION TECH CO LTD

Patent Information

Application Number
CN202410906370.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional data analysis methods based on data warehouse are inefficient when processing multi-source, multi-format, and multi-quality data, and are difficult to quickly integrate and clean. This results in a long data warehouse construction cycle and high cost, and cannot effectively capture the complexity between key business dimensions. Relationships and dynamic changes affect decision-making timeliness and analysis accuracy.

Method used

Quickly build a data warehouse model through a systematic demand analysis process, use data cleaning and conversion technology to combine automated and intelligent data processing processes, identify complex relationships between key business dimensions, optimize the data warehouse architecture and analysis algorithms, and reduce data preparation stage time and cost, and improve analysis accuracy and efficiency.

Benefits of technology

It effectively reduces the time and cost in the data preparation phase, improves analysis accuracy and efficiency, significantly improves the accuracy and security of data analysis, and provides higher performance and cost savings for corporate decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535660A
    Figure CN118535660A
Patent Text Reader

Abstract

The invention relates to the technical field of data analysis, and discloses a data warehouse-based data analysis method and system, and the method comprises the steps: obtaining and analyzing a business demand, and determining a business demand target; constructing a data warehouse, obtaining a data source and performing data processing to obtain target data information of the business demand; and performing data analysis to obtain an analysis result of the business demand, and outputting and optimizing the business analysis result. According to the method, service requirements can be quickly converted, the data warehouse model can be quickly constructed, the data quality is ensured, the complex relation between service key dimensions can be more accurately identified, the analysis precision is improved, meanwhile, unnecessary resource consumption is reduced by optimizing a data warehouse framework and an analysis algorithm, and the service quality is improved. The operation efficiency and the cost effectiveness of the whole system are improved, and the efficiency, the accuracy and the safety of data analysis are remarkably 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 analysis, and in particular to a data analysis method and system based on a data warehouse. Background Art

[0002] A data warehouse is a subject-oriented, integrated, stable, and time-varying data collection used to support decision-making in operations management. It is the process of extracting, cleaning, and converting data from business systems and loading it into a data warehouse. The purpose is to integrate the scattered, disorganized, and non-uniform data in the enterprise and provide an analytical basis for the enterprise's decision-making.

[0003] A data warehouse collects, organizes, and structures data from the entire enterprise according to a certain data model to support specific analysis. In the field of enterprise decision analysis, traditional data warehouse-based data analysis methods face a series of challenges. These challenges mainly stem from the explosive growth of data, the rapid changes in business needs, and the high requirements for analysis accuracy and real-time performance. There are usually the following technical defects: they are often inefficient when processing data from different sources, formats, and qualities, and it is difficult to quickly and accurately integrate and clean data, resulting in a long data warehouse construction cycle and high costs; there is a lack of flexible business demand analysis processes. When faced with frequently changing business scenarios, existing systems often cannot quickly adjust data warehouse models and analysis strategies, affecting the timeliness of decision-making; at the same time, they cannot effectively capture the complex relationships and dynamic changes between key business dimensions, resulting in inaccurate and incomplete analysis results. Summary of the invention

[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0005] In view of the above existing problems, the present invention is proposed. Therefore, the present invention provides a data warehouse-based data analysis method to solve the problem of how to build a matching data warehouse model and data analysis for business needs.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: In a first aspect, the present invention provides a data analysis method based on a data warehouse, comprising: Obtain and analyze business requirements and determine business requirements goals; Based on the business requirements, a data warehouse is built, data sources are acquired and data is processed to obtain target data information required by the business requirements; Data analysis is performed based on the target data information to obtain analysis results of the business needs, and the business analysis results are output and optimized.

[0007] As a preferred solution of the data warehouse-based data analysis method described in the present invention, obtaining business requirements and analyzing them includes: Collect business requirements, perform demand analysis on the business requirements, and extract and transform the demand content in the business requirements; The requirements in the business requirements include: business topics, business time periods, and data volumes. The business topics are classified to generate a business topic set, and business key dimensions are defined according to the business topics to generate a business key dimension set. The business key dimension data is classified and prioritized, and the correlation between dimensions is set according to the business key dimensions.

[0008] As a preferred solution of the data warehouse-based data analysis method described in the present invention, determining the business demand target includes: Set business demand goals based on the business demand theme and business target preset thresholds; Define business metrics according to the business subject and generate evaluation conditions for the business demand objectives; Analyze the business demand objectives, build a target evaluation model, and determine the importance of the business demand objectives; The target evaluation model is expressed as: ; ;

[0009] in, Indicates The number of dimensions under each business requirement target, Indicates Business demand objectives Dimensions and The correlation of the dimensions , 、 Respectively represent Business demand objectives Dimensions, The current state value of the dimension, , Respectively represent Business demand objectives Dimensions, The target state value of the dimension, Indicates The first business requirement goal The contribution of each dimension, Represents the weighted coefficient of the business time period, Indicates the weighting coefficient of the preset threshold of the business target.

[0010] As a preferred solution of the data analysis method based on data warehouse described in the present invention, the construction of data warehouse includes: Design a data warehouse model based on business requirements and define preset tables of the data warehouse; The preset tables of the data warehouse include fact tables and dimension tables, and the preset tables are partitioned or sharded for optimization according to the classification of the business requirements or the classification of the business dimensions; Define a fact table, build a fact table based on the business subject, use the business measure of the business requirement as the measure column of the fact table, and set the dimension foreign key. The same type of business key dimensions are set in the same fact table. When accessing data, the priority of the business key dimensions is prioritized for query; Define a dimension table. Create a dimension table for each business subject based on the business subject and business key dimensions. The dimension table contains descriptive information and a unique identifier is set for each dimension. The fact table is associated with each dimension table through a dimension foreign key to form a snowflake model. The preset table of the data warehouse is compared with the preset correlation threshold through the correlation of the business key dimension, and a connection table is set to perform strength correlation.

[0011] As a preferred solution of the data analysis method based on data warehouse described in the present invention, obtaining the target data information of the business demand includes: Obtain data sources, including internal historical data and external historical data; According to the data warehouse model, extract the data to be analyzed from the data source, perform data cleaning, and perform data conversion; The cleaned and converted data is loaded into the fact table and dimension table of the data warehouse, and data security mechanism and access control are set up to encrypt the data and update the data warehouse data regularly.

[0012] As a preferred solution of the data warehouse-based data analysis method described in the present invention, obtaining the analysis result of the business demand includes: Based on the data in the data warehouse, the importance level of the business demand target is calculated, and the business demand is analyzed in a priority level by level manner; According to the business theme, execute the query statements of the data warehouse, query and extract relevant metric data from the data warehouse, perform data standardization, obtain the target data set, and analyze the extracted data to identify the basic trends and changes of the data; Conduct statistical analysis on each metric and conduct comparative analysis on metrics of different dimensions; According to the preset business goal threshold, the achievement degree of the business demand goal is calculated, the key dimensions and factors that have the greatest impact on business metrics are identified, and the analysis results of business needs are obtained through feature extraction and model training.

[0013] As a preferred solution of the data warehouse-based data analysis method of the present invention, outputting and optimizing the business analysis results includes: Perform data visualization output and display of business analysis results, and prepare analysis reports; Provide business improvement measures or strategy adjustment suggestions based on the analysis results; Adjust data warehouse models and analytical models, optimize algorithms, and regularly check data quality in the data warehouse based on business feedback and newly collected data.

[0014] In a second aspect, the present invention provides a data analysis system based on a data warehouse, comprising: The acquisition module is used to obtain and analyze business requirements and determine business requirement goals; A construction module is used to construct a data warehouse based on the business requirements, obtain data sources and perform data processing to obtain target data information required by the business requirements; The analysis module is used to perform data analysis based on the target data information, obtain analysis results of the business needs, and output and optimize the business analysis results.

[0015] In a third aspect, the present invention provides an electronic device, comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the data warehouse-based data analysis method are implemented.

[0016] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the data warehouse-based data analysis method.

[0017] Compared with the prior art, the present invention has the following beneficial effects: the present invention can quickly transform business needs and build data warehouse models through a systematic demand analysis process, and adopts data cleaning and conversion technology, combined with automated and intelligent data processing processes, to effectively reduce the time and cost of the data preparation stage and ensure data quality; and can more accurately identify the complex relationships between key business dimensions and improve analysis accuracy. At the same time, by optimizing the data warehouse architecture and analysis algorithms, it reduces unnecessary resource consumption, improves the operating efficiency and cost-effectiveness of the overall system, and significantly improves the efficiency, accuracy and security of data analysis, which brings significant performance improvements and cost savings to enterprise decision support, while meeting the growing business needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them: Figure 1 A schematic diagram of the overall process of a data analysis method based on a data warehouse according to an embodiment of the present invention; Figure 2 The figure is a schematic diagram of the overall process of a data analysis method based on a data warehouse according to an embodiment of the present invention. DETAILED DESCRIPTION

[0019] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0020] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0021] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0022] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0023] Embodiment 1:

[0024] Reference Figure 1 , as an embodiment of the present invention, provides a data analysis method based on a data warehouse, comprising: S100, obtain and analyze business requirements and determine business requirement goals.

[0025] Preferably, obtaining business requirements and analyzing them includes: Collect business requirements, analyze business requirements, extract and transform the requirements in business requirements; The requirements in business requirements include: business topics, business time periods, and data volumes. Business topics are classified to generate business topic sets, and business key dimensions are defined based on business topics to generate business key dimension sets. Classify and prioritize business-critical dimension data, and set the correlation between dimensions based on business-critical dimensions.

[0026] Specifically, collect requirements from business departments, including but not limited to business processes, improvement points, etc., convert business requirements into data requirements, identify the type of data that needs to be collected and analyzed, and identify and determine several themes of business requirements based on the preliminary requirements collected. Specifically, business requirements can be sales, inventory, customer satisfaction, user behavior, marketing effectiveness, etc. Clarify the time range of business data analysis, which can be real-time, historical or predictive requirements, and define key dimensions for each business theme, which can be product category, region, time, location, sales data, user type, etc. Classify and prioritize business dimensions according to application scenarios and actual needs, provide basic support for subsequent optimization of table structure for building data warehouse, and facilitate data query and analysis.

[0027] For example, a business requirement may be to improve the user conversion rate and average order value of an online sales platform. According to the business demand analysis, it is necessary to analyze the user's behavior pattern on the website to identify factors that affect the user's purchase decision, or to evaluate the impact of marketing activities on sales. The data required includes user access data (page views, click-through rate, dwell time, etc.), user transaction data (order quantity, order value, purchase frequency, etc.) or marketing activity data (activity type, time, budget, participation, etc.). Business needs can also be to optimize inventory management, reduce inventory backlogs, and improve the inventory turnover rate of popular products. According to the business demand analysis, it is necessary to analyze the inventory level of each store, identify inventory backlogs and out-of-stock situations, and evaluate the sales trends of different products. The data required includes inventory data of each store (inventory volume, inventory turnover rate, backlog days, etc.), commodity sales data (sales volume, sales, return rate, etc.), and supply chain data (replenishment cycle, logistics cost, supplier information, etc.).

[0028] Specifically, based on the nature and objectives of the business, the topics are divided into several categories, such as products, sales, finance, human resources, etc. After obtaining the data from the data warehouse, the original data is standardized and the topic categories are identified through clustering algorithms. , introducing classification indicators Evaluate each topic Belongs to category The fitness of is expressed as: in, Indicates the subject and The similarity score can be calculated by semantic similarity. represents an exponential function, if the subject and If they belong to the same category, it is 1, otherwise it is 0. represents the parameter for adjusting the similarity contribution, Indicates the total number of business topics.

[0029] For example, use For each topic Classify and eventually form a business theme collection , define a set of business-critical dimensions for each business topic ,in , after classifying the dimensions, evaluate each dimension The priority is expressed as: ; in, Indicates the business time period, Indicates the weight of a time point, reflecting the importance of time. Representation Dimension At the point in time The numerical value of , The dimensions are The mean and standard deviation of .

[0030] Exemplarily, setting the correlation between dimensions according to business key dimensions includes: Defining the correlation between dimensions ,in , expressed as: ; in, Representation Dimension and The Pearson correlation coefficient between and Respectively represent dimensions and The standard deviation of Preferably, determining the business demand objectives includes: Set business demand goals based on business demand themes and business goal preset thresholds; Define business metrics based on business themes, which can be sales, profits, quantity, visits, etc., to generate evaluation conditions for business demand goals. Since business demand goals need to be achieved, they are all analyzed and determined through calculations of certain metrics; Analyze business demand objectives, build a target evaluation model, and determine the importance of business demand objectives; The target evaluation model is expressed as: ; ; in, Indicates The number of dimensions under each business requirement target, Indicates Business demand objectives Dimensions and The correlation of the dimensions , 、 Respectively represent Business demand objectives Dimensions, The current state value of the dimension, , Respectively represent Business demand objectives Dimensions, The target state value of the dimension, Indicates The first business requirement goal The contribution of each dimension, Represents the weighted coefficient of the business time period, Indicates the weighting coefficient of the preset threshold of the business target.

[0031] For example, when calculating the target evaluation, it is necessary to integrate the contribution of each dimension into the overall evaluation score, taking into account the influence of the time period and the preset threshold, and define a time weighting coefficient and a threshold weighting factor , which are respectively expressed as: ; ;

[0032] in, Indicates The business time period of each subject, Represents the business time period of all business topics, Indicates The degree of deviation of a topic from its preset threshold, Indicates the degree of deviation of all business topics, The time weighting coefficient reflects the relative importance of the current theme time period relative to the longest period. When the time period of a theme is shorter, its A smaller value means that the change of the topic will receive more attention on the total score. On the contrary, if the time period is longer, the impact of its change on the total score will be relatively weakened. The calculated threshold weighting coefficient reflects the relative severity of the current topic deviation relative to the maximum deviation. If the deviation of a dimension is large, its The value will also be higher, which means that in the overall evaluation, the anomalies of this topic will be given more attention; conversely, the influence of topics with small deviations in the overall score will be reduced accordingly.

[0033] Specifically, the business demand goals need to be set according to the following rules: Specifically: Determine the optimization direction of the business goal according to the business theme; Measurable: By setting a specific percentage to improve the goal, in this embodiment, it is determined according to the preset threshold of the business goal, and the threshold is adjusted according to the actual business scenario; Achievable: Evaluate the feasibility of the goal based on historical data and market trends; Time limit: Set a clear time frame, in this embodiment, it is determined according to the business time cycle. Exemplarily, the business demand goal can be to set specific goals to improve user conversion rate and average order value, for example: increase user conversion rate by 2% and average order value by 5%.

[0034] It should be noted that business themes, business time cycles, and data volumes are the starting points for building a data warehouse. They clarify the business areas that need to be focused on, the required time frames, and the expected scale of data to be processed, ensuring that the design of the data warehouse can closely fit actual business needs and avoid waste of resources and directional deviations. Business theme classification generates a business theme set. By breaking down business needs into different themes, for example, using "sales," "inventory," and "customer relationships" as different themes, it helps to make subsequent data warehouse design and data analysis more focused and efficient. Define business key dimensions and generate a business key dimension set. Dimensions are the basic units in data analysis. Defining key dimensions can help understand and explore data from multiple perspectives. For example, under the theme of "sales", possible key dimensions include "time", "region", "product category", etc., which help to conduct more detailed analysis and insights; data classification and priority setting, classifying business key dimension data helps to manage and query data, especially in large data warehouses, classification can make data retrieval faster and more accurate; prioritizing data according to business importance and urgency can ensure that resources are effectively allocated to the most critical data analysis tasks; setting the correlation between dimensions according to business key dimensions is crucial to understanding the inherent connections between data. By identifying which dimensions have strong correlations, valuable business connections can be revealed to guide more effective decision-making.

[0035] Assess the importance of business demand goals. Among the many business needs, some goals may be more urgent or have higher strategic value than others. Through evaluation, it can be determined which needs are most worthy of resources to meet, which helps optimize resource allocation and ensures that data warehouse and data analysis projects focus on areas with the greatest impact. Setting the importance level of demand goals can provide effective support for the data warehouse in terms of reasonable resource allocation, risk management, and continuous optimization and improvement.

[0036] S200, based on business needs, build a data warehouse, obtain data sources and perform data processing to obtain target data information required by business needs.

[0037] In this embodiment, preferably, building a data warehouse includes: Design data warehouse model based on business requirements and define preset tables of data warehouse; The preset tables of the data warehouse include fact tables and dimension tables, and the preset tables are partitioned or sharded according to the classification of business requirements or the classification of business dimensions; Define fact tables to store measure values ​​and foreign keys pointing to dimension tables. Build fact tables based on business topics, use business measures required by business requirements as measure columns of fact tables, and set dimension foreign keys. Business-critical dimensions of the same type are set in the same fact table. When accessing data, query based on the priority of business-critical dimensions. Create indexes on measure columns and foreign key columns to speed up aggregate queries. Define dimension tables to store descriptive information and associate them with fact tables through foreign keys. Create dimension tables for each business subject through business subjects and business key dimensions, which contain descriptive information. Set a unique identifier for each dimension. The fact table is associated with each dimension table through dimension foreign keys to form a snowflake model to facilitate fast query and aggregation. In this model, create indexes on primary keys and columns frequently used for queries. The preset tables of the data warehouse are compared with the preset correlation threshold through the correlation of business key dimensions, and the connection table is set to perform strength correlation.

[0038] Preferably, the data warehouse is partitioned / sharded optimally. Fact table partitioning: partition the fact table according to the data of the actual application scenario, such as time period, to optimize query performance and data management; secondly, the dimension table can be sharded. If the dimension table has a large amount of data, horizontal sharding can be performed based on dimension classification or business logic (such as geographic location, product category).

[0039] It should be noted that high-priority dimensions and business topics should be indexed first, and the data access mode should be adjusted according to the correlation between dimensions to optimize the query path and response time.

[0040] Preferably, the target data information required for obtaining the business includes: Obtain data sources, including internal historical data and external historical data; According to the data warehouse model, extract the data to be analyzed from the data source, perform data cleaning, remove duplicates, missing values ​​and outliers to ensure data quality, and perform data conversion to convert data from different sources into a unified format for subsequent processing. Specifically, use the ETL (Extract, Transform, Load) process to extract data from the source system, convert it into a format suitable for the data warehouse, and then load it into the data warehouse; Load the cleaned and converted data into the fact tables and dimension tables of the data warehouse, and set up data security mechanisms and access controls to ensure that only authorized users can access sensitive data. At the same time, adopt appropriate audit mechanisms to track data access and modification, encrypt data, and regularly update data warehouse data to ensure data timeliness and accuracy. At the same time, monitor data warehouse performance and optimize query speed.

[0041] Specifically, real-time data stream processing is used to achieve real-time data ingestion and processing through Apache Kafka or Amazon Kinesis to provide support for immediate decision-making; historical data analysis uses OLAP tools to conduct multi-dimensional analysis of large amounts of historical data to obtain long-term trends and patterns.

[0042] It should be noted that this embodiment optimizes the data cleaning and conversion process, can improve data quality, select appropriate data storage technology, specifically relational databases, NoSQL databases, etc., and implement data tiered storage strategies to optimize query performance and costs, verify data in the data warehouse, and ensure data accuracy and completeness; continuously monitor the performance of the data warehouse, optimize it according to changes in business needs, use incremental loading, parallel processing and data compression technology through the ETL process to reduce data latency and improve data quality, integrate website logs, etc. for easy analysis.

[0043] S300, performing data analysis based on target data information, obtaining analysis results of business requirements, and outputting and optimizing the business analysis results.

[0044] Preferably, the analysis results of the business requirements include: Based on the data in the data warehouse, calculate the importance of business demand targets and analyze business needs in a prioritized and level-by-level manner; According to the business theme, execute the query statements of the data warehouse, query and extract relevant measurement data from the data warehouse, perform data standardization, obtain the target data set, and analyze the extracted data to identify the basic trends and changes of the data; Perform statistical analysis on each metric, calculate statistics, and conduct comparative analysis on metrics of different dimensions to identify the dimensions that contribute most to business requirements or have problems; According to the preset business goal threshold, calculate the degree of achievement of business demand goals, apply statistical analysis and machine learning models, such as cluster analysis and regression analysis, to identify the key dimensions and factors that have the greatest impact on business metrics, and obtain the analysis results of business needs through feature extraction and model training.

[0045] Exemplarily, statistical analysis is performed on each metric, and the statistics of each metric are calculated, which is expressed as: ; in, Represents the average value of the metric, calculated by dividing the sum of all metric values ​​by the number of metric values. Indicates The measure of the observations, Represents the standard deviation of the measurement value, which measures the degree of dispersion of the data distribution. represents the total number of observations; For example, the comparative analysis of metrics in different dimensions is expressed as: ; in, Representation Dimension and The percentage difference between the measurements , Respectively represent , The measurement value of a.

[0046] Preferably, outputting and optimizing the business analysis results includes: Conduct data visualization output of business analysis results. Specifically, the analysis results can be intuitively displayed in the form of charts and dashboards. Interactive dashboards can be designed to allow users to customize views and conduct in-depth analysis, and to produce analysis reports. Provide business improvement measures or strategy adjustment suggestions based on the analysis results. Specifically, adjust the output method and content according to the feedback, gradually optimize the presentation effect, ensure the responsiveness of data visualization tools and platforms, avoid long loading times that lead to a decline in user experience, optimize website layout, adjust product portfolio, and increase personalized promotions; Adjust data warehouse models and analytical models, optimize algorithms, and regularly check data quality in the data warehouse based on business feedback and newly collected data.

[0047] It should be noted that the present invention can quickly transform business needs and quickly build data warehouse models through a systematic demand analysis process. It adopts data cleaning and conversion technology, combined with automated and intelligent data processing processes, effectively reducing the time and cost of the data preparation stage and ensuring data quality; and can more accurately identify the complex relationships between key business dimensions and improve analysis accuracy. At the same time, by optimizing the data warehouse architecture and analysis algorithms, it reduces unnecessary resource consumption, improves the operating efficiency and cost-effectiveness of the overall system, and significantly improves the efficiency, accuracy and security of data analysis, bringing significant performance improvements and cost savings to the company's decision support system, while meeting the growing business needs.

[0048] The above is a schematic scheme of a data analysis method based on a data warehouse in this embodiment. It should be noted that the technical scheme of the data analysis system based on a data warehouse and the technical scheme of the data analysis method based on a data warehouse are of the same concept. For details not described in detail in the technical scheme of the data analysis system based on a data warehouse in this embodiment, please refer to the description of the technical scheme of the data analysis method based on a data warehouse.

[0049] The data analysis system based on the data warehouse in this embodiment includes: The acquisition module is used to obtain and analyze business requirements and determine business requirement goals; The construction module is used to build a data warehouse based on business needs, obtain data sources and process data to obtain target data information required by business needs; The analysis module is used to perform data analysis based on target data information, obtain analysis results of business needs, and output and optimize the business analysis results.

[0050] This embodiment further provides an electronic device, which is applicable to data analysis based on a data warehouse, and includes: Memory and processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the data warehouse-based data analysis method proposed in the above embodiment.

[0051] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the data analysis method based on the data warehouse proposed in the above embodiment is implemented.

[0052] The storage medium proposed in this embodiment and the data analysis method based on the data warehouse proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be found in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0053] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer's floppy disk, read-only memory (ReadOnly, Memory, ROM), random access memory (RandomAccess Memory, RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform the methods of various embodiments of the present invention.

[0054] Embodiment 2:

[0055] Referring to Table 1, an embodiment of the present invention provides a data analysis method based on a data warehouse. In order to verify its beneficial effects, comparison results of two solutions are provided.

[0056] In this embodiment, by implementing the method of the present invention to carry out simulation experiments and comparing with other traditional methods, it is proved that the data analysis method based on the data warehouse can more effectively extract valuable information when processing complex data sets. Specifically, a specific business scenario is selected, such as improving sales or customer conversion rate, and two sets of data sets are prepared or generated: one set is used for training and adjusting model parameters, and the other set is used for testing and verifying the model. The analysis results and performance indicators of the two methods under the same conditions are recorded. The specific results are shown in Table 1.

[0057] Table 1: Comparison index results Evaluation indicators Method of the present invention Traditional methods Difference ratio Response time (s) 120 180 -33.3% Analytical accuracy (%) 89 75 +14% accuracy(%) 98.6 89.2 +9.4% Resource consumption rate (%) 40 38 +2% Cost-effectiveness ($) 5000 7000 -28.6% It can be seen from the data in Table 1 that the present invention can provide higher quality analysis results, help to better support business decisions, reduce the time required for business analysis, improve work efficiency, and provide more accurate results when processing data. By optimizing resource usage and improving efficiency, both processing speed and resource management perform well. The method of the present invention reduces overall costs and provides a higher rate of return.

[0058] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A data analysis method based on a data warehouse, characterized in that: include: Obtain and analyze business requirements and determine business requirements goals; Based on the business requirements, a data warehouse is built, data sources are acquired and data is processed to obtain target data information required by the business requirements; Data analysis is performed based on the target data information to obtain analysis results of the business needs, and the business analysis results are output and optimized.

2. The data analysis method based on data warehouse according to claim 1, characterized in that: Obtaining business requirements and conducting analysis include: Collect business requirements, perform demand analysis on the business requirements, and extract and transform the demand content in the business requirements; The requirements in the business requirements include: business topics, business time periods, and data volumes. The business topics are classified to generate a business topic set, and business key dimensions are defined according to the business topics to generate a business key dimension set. The business key dimension data is classified and prioritized, and the correlation between dimensions is set according to the business key dimensions.

3. The data analysis method based on data warehouse according to claim 1 or 2, characterized in that: Determining business needs objectives includes: Set business demand goals based on the business demand theme and business target preset thresholds; Define business metrics according to the business subject and generate evaluation conditions for the business demand objectives; Analyze the business demand objectives, build a target evaluation model, and determine the importance of the business demand objectives; The target evaluation model is expressed as: ; ; in, Indicates The number of dimensions under each business requirement target, Indicates Business demand objectives Dimensions and The correlation of the dimensions , 、 Respectively represent Business demand objectives Dimensions, The current state value of the dimension, , Respectively represent Business demand objectives Dimensions, The target state value of the dimension, Indicates The first business requirement goal The contribution of each dimension, Represents the weighted coefficient of the business time period, Indicates the weighting coefficient of the preset threshold of the business target.

4. The data analysis method based on data warehouse according to claim 3, characterized in that: The construction of the data warehouse includes: Design a data warehouse model based on business requirements and define preset tables of the data warehouse; The preset tables of the data warehouse include fact tables and dimension tables, and the preset tables are partitioned or sharded for optimization according to the classification of the business requirements or the classification of the business dimensions; Define a fact table, build a fact table based on the business subject, use the business measure of the business requirement as the measure column of the fact table, and set the dimension foreign key. The same type of business key dimensions are set in the same fact table. When accessing data, the priority of the business key dimensions is prioritized for query; Define a dimension table. Create a dimension table for each business subject based on the business subject and business key dimensions. The dimension table contains descriptive information and a unique identifier is set for each dimension. The fact table is associated with each dimension table through a dimension foreign key to form a snowflake model. The preset table of the data warehouse is compared with the preset correlation threshold through the correlation of the business key dimension, and a connection table is set to perform strength correlation.

5. The data analysis method based on data warehouse according to claim 4, characterized in that: The target data information for obtaining the business requirements includes: Obtain data sources, including internal historical data and external historical data; According to the data warehouse model, extract the data to be analyzed from the data source, perform data cleaning, and perform data conversion; The cleaned and converted data is loaded into the fact table and dimension table of the data warehouse, and data security mechanism and access control are set up to encrypt the data and update the data warehouse data regularly.

6. The data analysis method based on data warehouse according to claim 5, characterized in that: The analysis results of the business requirements include: Based on the data in the data warehouse, the importance level of the business demand target is calculated, and the business demand is analyzed in a priority level by level manner; According to the business theme, execute the query statements of the data warehouse, query and extract relevant metric data from the data warehouse, perform data standardization, obtain the target data set, and analyze the extracted data to identify the basic trends and changes of the data; Conduct statistical analysis on each metric and conduct comparative analysis on metrics of different dimensions; According to the preset business goal threshold, the achievement degree of the business demand goal is calculated, the key dimensions and factors that have the greatest impact on business metrics are identified, and the analysis results of business needs are obtained through feature extraction and model training.

7. The data analysis method based on data warehouse according to claim 6, characterized in that: Outputting and optimizing the business analysis results includes: Perform data visualization output and display of business analysis results, and prepare analysis reports; Provide business improvement measures or strategy adjustment suggestions based on the analysis results; Adjust data warehouse models and analytical models, optimize algorithms, and regularly check data quality in the data warehouse based on business feedback and newly collected data.

8. A data warehouse-based data analysis system, applied to the data warehouse-based data analysis method according to any one of claims 1 to 7, characterized in that: include, The acquisition module is used to obtain and analyze business requirements and determine business requirement goals; A construction module is used to construct a data warehouse based on the business requirements, obtain data sources and perform data processing to obtain target data information of the business requirements; The analysis module is used to perform data analysis based on the target data information, obtain analysis results of the business needs, and output and optimize the business analysis results.

9. An electronic device, characterized in that: include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the data warehouse-based data analysis method described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: It stores computer executable instructions, which, when executed by a processor, can implement the steps of the data warehouse-based data analysis method described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Dimension modeling calculation method under data warehouse system, computer equipment and storage medium

    CN112328706A

  • Supervision data processing method and device based on data mart, equipment and medium

    CN115982158A

  • Data processing method and device of power grid data warehouse and computer medium

    CN117453690A

  • Label data layer construction method and system based on data warehouse

    CN118245552A

Cited By

  • Large database construction method and system for international achievement transformation service and medium

    CN118796800A

  • Port single goods type benefit analysis management method and management system thereof

    CN118798738A

  • Intelligent data integration analysis system and method

    CN119046330A

  • Battery test data processing method, device, equipment, medium and program product

    CN121578151A

  • Battery test data processing methods, devices, equipment, media, and procedures.

    CN121578151B