Data attribution method and device, program product, equipment and storage medium

Through automated query statement generation and fluctuation parameter calculation, fast and accurate data fluctuation attribution analysis is realized, which solves the time-consuming and high-cost problems in the existing technology and reduces the technical requirements for analysts.

CN118606345APending Publication Date: 2024-09-06BEIJING QIYI CENTURY SCI & TECH CO LTD

Patent Information

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

AI Technical Summary

Technical Problem

In the existing technology, data fluctuation attribution analysis is time-consuming and costly. Especially when the data has many dimensions or elements, it is difficult to accurately locate the main cause, which increases the burden and complexity of analysts.

Method used

By generating query statements, we can obtain indicator data in the database, calculate fluctuation parameter values, filter analysis results, automatically locate the causes of abnormal data fluctuations, and reduce manual analysis operations.

Benefits of technology

It improves the efficiency and accuracy of data fluctuation attribution, reduces analysis costs, enables non-professional users to perform complex data attribution analysis, and saves manpower and time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606345A
    Figure CN118606345A
Patent Text Reader

Abstract

The invention relates to the technical field of data analysis, and discloses a data attribution method and device, a program product, equipment and a storage medium. The method comprises the following steps: filling an analysis condition input by a user into a reserved position of a target query template to generate a query statement; the analysis conditions at least comprise dimensions, indexes, a first time period and a target time period; executing the query statement, and obtaining the index data of the first time period and the index data of the target time period from a database; determining a fluctuation parameter value corresponding to each element in each dimension according to the index data of the target time period and the index data of the first time period; and based on the fluctuation parameter value corresponding to each element in each dimension, screening each element to obtain an analysis result. By adopting the method, the technical requirements of data abnormal fluctuation analysis on analysts can be reduced, the manpower and time costs are saved, and the data fluctuation attribution efficiency and the accuracy of analysis results are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data analysis technology, and in particular to a data attribution method, apparatus, program product, device and storage medium. Background Art

[0002] In the era of big data, data analysis is a technology widely used on the Internet. Data analysis on the Internet is mainly conducted on the data generated by Internet users. Internet users generate a large amount of data every day, involving behavioral data, consumption data, and so on. Analyzing the user data of a product can provide an in-depth understanding of the user's behavior patterns, preferences, and needs, help optimize the product to provide a better user experience, or set personalized marketing strategies for users. Analyzing user data can also help obtain user feedback and help improve product functions. In social networking sites, it is often necessary to conduct abnormal fluctuation attribution analysis, that is, to analyze the reasons for abnormal fluctuations (sudden increases or decreases) in a certain indicator data, so as to help improve social products and enhance user experience. Usually, data attribution analysis is carried out by manual analysis, and analysts conduct statistics and analysis on each possible dimension and its combination, and finally locate the main reasons for abnormal data fluctuations. However, this method has the following disadvantages:

[0003] (1) Manual analysis takes a long time. If the work related to volatility attribution occurs frequently, it will consume a lot of manpower costs.

[0004] (2) When there are many data dimensions or many elements in a dimension, manual analysis may not be able to accurately locate the main cause. In addition, when the number of data dimensions or elements in a dimension increases, the complexity of the data increases, and the difficulty and time of manual analysis also increase accordingly, which requires higher capabilities of data analysts.

[0005] Therefore, how to improve the efficiency of data fluctuation attribution and reduce analysis costs is a problem that needs to be solved at present. Summary of the invention

[0006] In view of this, the present application aims to propose a data attribution method, apparatus, program product, device and storage medium to improve the efficiency of data fluctuation attribution and reduce analysis costs.

[0007] To achieve the above purpose, the technical solution of this application is as follows:

[0008] A first aspect of an embodiment of the present application provides a data attribution method, including:

[0009] Fill the analysis conditions input by the user into the reserved position of the target query template to generate a query statement; the analysis conditions at least include: dimensions, indicators, a first time period and a target time period; wherein each dimension includes multiple elements; the target time period is a time period in which abnormal data fluctuations occur, and the start time of the target time period is not earlier than the end time of the first time period;

[0010] Execute the query statement to obtain the indicator data of the first time period and the indicator data of the target time period from the database;

[0011] Determining the fluctuation parameter value corresponding to each element in each dimension according to the indicator data of the target time period and the indicator data of the first time period;

[0012] Based on the fluctuation parameter values ​​corresponding to each element in each dimension, each element is screened to obtain an analysis result; the analysis result is used to indicate the reason why the indicator data generates abnormal data fluctuations within the target time period; the analysis result includes at least one of the following: the dimension that causes the abnormal fluctuation or the element that causes the abnormal fluctuation.

[0013] According to a second aspect of an embodiment of the present application, a data attribution device is provided, for implementing the data attribution method as described in the first aspect of the embodiment of the present application, the device comprising:

[0014] The assembly module is configured to fill the analysis conditions input by the user into the reserved position of the target query template to generate a query statement; the analysis conditions at least include: dimensions, indicators, a first time period and a target time period; wherein each dimension includes multiple elements; the target time period is a time period in which abnormal data fluctuations occur, and the start time of the target time period is not earlier than the end time of the first time period;

[0015] A query module, configured to execute the query statement and obtain the indicator data of the first time period and the indicator data of the target time period from a database;

[0016] The analysis module is configured to determine the fluctuation parameter value corresponding to each element in each dimension based on the indicator data of the target time period and the indicator data of the first time period; based on the fluctuation parameter value corresponding to each element in each dimension, screen each element to obtain an analysis result; the analysis result is used to indicate the reason why the indicator data generates abnormal data fluctuations within the target time period; the analysis result includes at least one of the following: the dimension causing the abnormal fluctuation or the element causing the abnormal fluctuation.

[0017] According to a third aspect of an embodiment of the present application, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps in the data attribution method as described in the first aspect of the embodiment of the present application.

[0018] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the data attribution method described in the first aspect of the embodiment of the present application are implemented.

[0019] According to the fifth aspect of the embodiments of the present application, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the data attribution method as described in the first aspect of the embodiments of the present application are implemented.

[0020] The data attribution method provided in this application has usage scenarios including but not limited to attribution analysis of video data on social networking sites. Taking the analysis of video playback volume as an example, the reasons for the abnormal increase or decrease in the video playback volume on the website can be accurately located. Using the data attribution method provided in this application, the user only needs to enter the analysis conditions, and the system can automatically assemble query statements to extract relevant indicator data from the database for attribution analysis of relevant dimensions and elements to obtain analysis results. There is no need to manually perform complex statistical analysis operations, which greatly reduces the technical requirements of data fluctuation attribution analysis for analysts and saves manpower and time costs. In addition, this method can well cope with situations with high data complexity such as more dimensions and more elements in the dimensions, and can quickly and accurately locate the main reasons for abnormal data fluctuations in indicators, thereby improving the efficiency of data fluctuation attribution and the accuracy of analysis results. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Figure 1 is a flow chart of a data attribution method proposed in one embodiment of the present application;

[0023] Figure 2 is a schematic diagram of a user interface in an embodiment of the present application;

[0024] Figure 3 is one of the flow charts for determining the fluctuation parameter value in one embodiment of the present application;

[0025] Figure 4 This is the second flow chart of determining the fluctuation parameter value in one embodiment of the present application;

[0026] Figure 5 This is the third flow chart of determining the fluctuation parameter value in one embodiment of the present application;

[0027] Figure 6 is a flow chart of data fluctuation attribution analysis in one embodiment of the present application;

[0028] Figure 7 is a schematic diagram of a data attribution device proposed in an embodiment of the present application;

[0029] Figure 8 It is a schematic diagram of an electronic device proposed in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0031] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0032] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as described in detail in the present application.

[0034] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.

[0035] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments.

[0036] Figure 1 is a flow chart of a data attribution method proposed in one embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0037] S1: Fill the analysis conditions input by the user into the reserved position of the target query template to generate a query statement; the analysis conditions at least include: dimension, indicator, first time period and target time period; wherein each dimension includes multiple elements; the target time period is the time period when abnormal data fluctuation occurs, and the start time of the target time period is not earlier than the end time of the first time period;

[0038] S2: executing the query statement to obtain the index data of the first time period and the index data of the target time period from the database;

[0039] S3: determining the fluctuation parameter value corresponding to each element in each dimension according to the indicator data of the target time period and the indicator data of the first time period;

[0040] S4: Based on the fluctuation parameter values ​​corresponding to each element in each dimension, each element is screened to obtain an analysis result; the analysis result is used to indicate the reason why the indicator data generates abnormal data fluctuations within the target time period; the analysis result includes at least one of the following: the dimension causing the abnormal fluctuation or the element causing the abnormal fluctuation.

[0041] In this embodiment, the index data of the first time period and the target time period are obtained from the database through query statements. The pre-trained time series model is used to predict the index data in the next time period (i.e., the target time period) based on the index data in the previous time period (i.e., the first time period). When the predicted value of the index data in the target time period is inconsistent with the true value, it is determined that the index data has abnormally fluctuated. Based on the abnormal fluctuation of the index data, the first time period (before the fluctuation) and the target time period (after the fluctuation) to be analyzed are determined, and the abnormal fluctuation of the index data is further attribution analyzed.

[0042] First, the user needs to input the analysis conditions, including: dimension, indicator, first time period and target time period. Among them, the indicator is the specific data that the user needs to analyze and that has fluctuated. For example, when analyzing video data on a social networking site, the indicator can be the video's playback volume, like volume, forwarding volume, etc. The first time period is the time period before the target time period that produces abnormal data fluctuations and does not overlap with the target time period. In actual applications, users can customize the first time period and target time period as needed.

[0043] Dimensions are angles from which attribution analysis needs to be performed. For example, dimensions can be set to playback platforms, content categories, etc. After determining the dimensions, the elements in the dimensions can be further determined. For example, when the dimension is set to playback platform, the elements in the dimension may include: mobile phone, TV, and Pad; when the dimension is set to content category, the elements in the dimension may include: comedy category, animation category, game category, and life category.

[0044] In this embodiment, each element in the dimension corresponds to a component of the indicator data. For example, for the dimension of playback platform, based on the "play volume" indicator, the elements "mobile phone, TV and Pad" in this dimension each correspond to a component of playback volume, and the sum of the playback volume of all elements in this dimension is the indicator data of the "play volume" indicator. For the content category dimension, the sum of the playback volume corresponding to all elements in this dimension (funny category, animation category, game category, life category) is the indicator data of the "play volume" indicator.

[0045] In addition to dimensions, indicators, and the time period before and after the fluctuation (first time period, target time period), users can also enter entities. Entities are user-specified filtering conditions for limiting indicators. In this embodiment, the content uploaded by users to the social platform can be videos, audio, pictures, etc. When entering the analysis conditions, enter the entity to further limit the precise scope of the data attribution analysis. For example, set the entity to video, and then filter out audio and picture data during data attribution analysis, and only analyze the videos on the platform.

[0046] Then, fill the analysis conditions entered by the user into the reserved position of the target query template to generate a query statement. Execute the query statement to obtain the indicator data for analysis from the database. In this embodiment, a target query template is pre-set for quickly generating query statements to retrieve the indicator data to be analyzed from the database. For example, when the indicator is "play volume", the entity is "video", and the dimension is "play platform, content category", by executing the query statement, the video play volume of all playback platforms (including: mobile phone, TV, Pad, etc.) in the database, as well as the video play volume of all content categories (including: funny categories, animation categories, game categories, life categories, etc.) are read out as indicator data.

[0047] Execute the generated query statement to obtain the indicator data of the dimension specified in the analysis condition from the database (including the indicator data before and after the fluctuation). Based on the obtained indicator data, determine the fluctuation parameter value corresponding to each element in the dimension specified in the analysis condition. Based on the fluctuation parameter value corresponding to each element in each dimension, screen each element and finally obtain the analysis result of abnormal data fluctuation. Specifically, the analysis result is used to indicate the specific dimension or element that causes the abnormal fluctuation of the indicator data.

[0048] In this embodiment, a query statement is generated based on a preset target query template, and the multi-dimensional indicator data to be analyzed is read from the database, and then the obtained indicator data is analyzed. There is no need to manually perform data attribution analysis operations, which can well cope with situations with high data complexity such as many dimensions and many elements in the dimensions, and improve the efficiency of data fluctuation attribution analysis. In addition, the user's customized input of the dimensions, entities, indicators and time periods before and after the fluctuation to be analyzed can meet the user's customized needs, thereby improving the adaptability to various analysis scenarios.

[0049] As an implementation manner of the present application, before generating the query statement, the method further includes:

[0050] S11: Displaying analysis conditions selectable by the user on the user interface;

[0051] S12: Determine the number of dimensions, indicators, and entities corresponding to the analysis conditions input by the user;

[0052] S13: Obtain a basic query template from the database, and modify the number of reserved positions in the basic query template according to the corresponding numbers of the dimensions, indicators, and entities in the analysis conditions to obtain the target query template.

[0053] In one embodiment, in order to facilitate non-professional users to perform attribution analysis of abnormal data fluctuations, optional analysis conditions are provided for users to choose from. Specifically, analysis conditions such as dimensions, indicators, entities, and comparison time periods before and after fluctuations that can be used for analysis are displayed on the user interface for users to select and input. In actual applications, users can quickly input analysis conditions by clicking or dragging to start data attribution analysis.

[0054] Figure 2 Schematic diagram of a user interface in an embodiment of the present application. Figure 2As shown, the user interface displays optional analysis conditions, including dimensions, indicators, entities, the first time period (comparison start time-comparison end time) and the target time period (target start time-target end time). When entering the analysis conditions, the user can drag the corresponding optional items in the user interface into the corresponding input box according to the indicators to be attributed and the dimensions to be drilled down for analysis as needed. The dimensions that users can choose include but are not limited to: playback platform, content category, upload entry, video main tag, video content level, nickname; the optional indicators include but are not limited to: the number of uploaded videos, playback volume, playback time, number of likes, and number of reposts; the optional entities include but are not limited to: video, audio, graphics, and creators.

[0055] In this embodiment, the analysis conditions displayed in the user interface are pre-stored in the database in the form of a multi-dimensional data table. Optionally, when storing the analysis conditions, a data table structure is constructed based on a star model, and the entity table (e.g., user information table), dimension table, and indicator table in the database are associated through user IDs.

[0056] By pre-configuring optional items in the user interface, the technical capability requirements for data fluctuation attribution analysis are reduced, so that ordinary users who are not professional analysts can also easily perform data abnormal fluctuation attribution analysis, saving manpower and time costs and improving product usability.

[0057] In this embodiment, a basic query template is generated in advance based on the SQL language and stored in the database. A reserved position for filling in the analysis condition is set in the basic query template. The basic query template is respectively provided with a reserved position for 1 indicator, 1 dimension and 1 entity. When the user inputs the analysis condition through the user interface, the number of corresponding reserved positions required in the query statement is determined according to the number of indicators, dimensions and entities in the analysis condition.

[0058] For example, when the analysis conditions input by the user include 1 indicator, 2 dimensions, and 1 entity, it is determined that reserved positions for 2 dimensions are required in the query statement; when the analysis conditions input by the user include 2 indicators, 1 dimension, and 1 entity, it is determined that reserved positions for 2 indicators are required in the query statement.

[0059] Obtain the pre-stored basic query template from the database, and modify the number of each reserved position in the basic query template according to the number of reserved positions required for each data in the query conditions entered by the user to obtain the target query template. Fill the indicators, dimensions, and entities entered by the user into the reserved positions of the target query template to generate a query statement. Execute the query statement to obtain the indicator data corresponding to the dimension from the database.

[0060] For example, when the analysis condition indicator is "play volume", the entity is "video", and the dimension is "play platform, content category", the query statement for "obtaining video play volume data in the play platform dimension and content category dimension from the database" is finally generated, as follows:

[0061] SELECT

[0062] NVL(platform,'ALL')AS platform,

[0063] NVL(user_channel,'ALL')AS user_channel,

[0064] SUM(vv)AS vv_sum

[0065] FROM

[0066] qube_dw.dm_d_all_episode_play_tbl

[0067] WHERE

[0068] dt = '2024-04-05'

[0069] GROUP BY

[0070] GROUPING SETS(

[0071] (platform,user_channel),--Group by playback platform and content category

[0072] (platform), -- only group by playback platform

[0073] (user_channel), --group only by content category

[0074] () -- Get the total without grouping

[0075] ).

[0076] The above query statement describes querying the video playback volume data in the playback platform dimension and content category dimension from the data table qube_dw.dm_d_all_episode_play_tbl, and performing classification and aggregation to generate four query result sets: all video playback volume, video playback volume in the content category dimension, video playback volume in the playback platform dimension, and video playback volume in the content category dimension and playback platform dimension.

[0077] As an implementation manner of the present application, obtaining the indicator data of the first time period and the indicator data of the target time period from the database includes:

[0078] S21: taking the accumulated value of the indicator data in the first time period as the indicator data of the first time period; taking the accumulated value of the indicator data in the target time period as the indicator data of the target time period; or,

[0079] S22: taking the average value of the indicator data in the first time period as the indicator data of the first time period; taking the average value of the indicator data in the target time period as the indicator data of the target time period.

[0080] In one embodiment, the indicator data of the first time period and the indicator data of the target time period are determined in different ways. Specifically, the cumulative value of the indicator data obtained from the database in the first time period and the target time period can be used as the indicator data to be analyzed. For example, the cumulative value of the video playback volume in the time period from 2023-07-21 to 2023-07-27 is obtained as the indicator data of the first time period, and the cumulative value of the video playback volume in the time period from 2023-07-28 to 2023-08-03 is obtained as the indicator data of the target time period.

[0081] It is also possible to calculate an average value of the indicator data obtained from the database within the first time period and the target time period, and use the average value as the indicator data to be analyzed.

[0082] Optionally, the index data within the first time period and the target time period are captured at a preset interval, and the average value of the index data captured within the corresponding period is calculated, and the average value is used as the index data to be analyzed. For example, the calculation can be performed at a preset interval of "daily", and the average value of the daily video playback volume in the time period from 2023-07-21 to 2023-07-27 is obtained as the index data for the first time period, and the average value of the daily video playback volume in the time period from 2023-07-28 to 2023-08-03 is obtained as the index data for the target time period; the overall average value of the video playback volume in the entire period in the two time periods can also be further calculated as the index data to be analyzed.

[0083] Figure 3 This is one of the flow charts for determining the fluctuation parameter value in one embodiment of the present application. Figure 3 As shown, as a first implementation mode of the present application, the fluctuation parameter value corresponding to each element in each dimension is determined according to the indicator data of the target time period and the indicator data of the first time period, including:

[0084] S311: Based on the first time period and the target time period, calculating the fluctuation value component corresponding to each element in each dimension, and calculating the fluctuation value of the indicator data;

[0085] S312: Calculate the contribution of each element based on the fluctuation value component of each element; the contribution is used to represent the fluctuation proportion of the element in the dimension to which it belongs;

[0086] S313: Determine the contribution as the fluctuation parameter value corresponding to the element.

[0087] In this embodiment, the proportion of the fluctuation generated by the component of the index data corresponding to each element in the overall fluctuation of the index data is measured, so as to determine the contribution of the fluctuation of each element to the overall fluctuation.

[0088] First, determine the indicator data before and after the fluctuation, that is, determine the indicator data in the first time period and the indicator data in the target time period respectively. Calculate the fluctuation value based on the indicator data before and after the fluctuation. Then, based on the component of the indicator data of each element in each dimension in the first time period and the target time period, calculate the fluctuation value component of each element. Further, based on the fluctuation value of the indicator data (for example, the amount of playback) and the fluctuation value component of each element in each dimension, calculate the contribution of each element. The steps for calculating the contribution are as follows:

[0089] (1) Obtain the indicator data before and after the fluctuation of indicator M. The normal predicted value of indicator M output by the time series model in the target time period is recorded as F(m), and the actual value of indicator M with abnormal fluctuation in the target time period is recorded as A(m). Then the fluctuation value of indicator M is: A(m)-(m).

[0090] (2) The elements in the dimension are represented by E ij , where i indicates the dimension to which the element belongs and j indicates the element itself. All elements in any dimension can be represented as the element set E i ={E i1, ,i2... ij}.

[0091] In this application, a time series model is used to detect abnormal fluctuations in indicator data. The indicator data in the previous time period is input into the time series model, and the time series model predicts and outputs the predicted value of the indicator data in the next time period based on the input data. In this embodiment, the input data of the time series model is accurate to the indicator data component corresponding to each element in the dimension. For an element E ij , the normal prediction value of the target time period output by the time series model is recorded as F ij (), the actual value of the element that experiences abnormal fluctuations during the target time period is recorded as A ij(), then the fluctuation value component corresponding to this element is: A ij (m)- ij ().

[0092] (3) Calculation element E ij The contribution EP under dimension M is the proportion of the fluctuation change of EP corresponding to indicator M in the overall fluctuation change, that is:

[0093]

[0094] The sum of the contributions of all elements in each dimension is equal to 100%. Normally, the contribution of an element ranges from 0% to 100%. If the value of the element's contribution exceeds 100% or is less than 0%, it means that the current fluctuation of the element is in the opposite trend to the overall fluctuation of the dimension to which it belongs. In this embodiment, the contribution can be expressed in different forms, such as a constant, a percentage, an absolute value, etc.

[0095] For example, determine the fluctuation value of the playback volume within the comparison time period, as well as the fluctuation value components of "mobile phone", "TV" and "Pad" in the playback platform dimension, and on this basis further calculate the contribution of each element in this dimension to the fluctuation of the playback volume.

[0096] (4) The contribution of each element is taken as the fluctuation parameter value corresponding to the element.

[0097] Optionally, based on the fluctuation parameter value corresponding to each element in each dimension, each element is screened to obtain analysis results, including:

[0098] S411: Aggregate the elements in all dimensions to obtain a first element set;

[0099] S412: sorting the elements in the first element set from high to low according to contribution;

[0100] S413: Starting from the dimension to which the element with the highest contribution degree belongs, a first threshold number of dimensions are screened out as dimensions to be output;

[0101] S414: Determine at least one element to be output in each dimension to be output, and the sum of the contribution of all elements to be output in each dimension to be output is not less than a second threshold;

[0102] S415: Obtain a first analysis result according to each dimension to be output and the corresponding element to be output.

[0103] The higher the proportion (contribution) of an element in the data fluctuation, the more likely it is that it is the cause of the abnormal fluctuation of the indicator data. In this embodiment, the elements with higher contribution in each dimension are screened to determine the cause of the abnormal fluctuation of the indicator data. Specifically, the elements in all dimensions are aggregated to obtain a first element set. All elements in the first element set are sorted from high to low according to the contribution, and starting from the dimension to which the element with the highest contribution belongs, the first threshold number of dimensions is screened out as the dimensions to be output. The user can flexibly set the first threshold according to the needs of the actual application to control the number of dimensions in the analysis results.

[0104] For example, the elements are sorted by contribution as follows: 12 ,E 13 ,E 25 ,E 61 ,E 42}, and its corresponding dimension order is {D1, D2, D6, D4}. According to the first threshold number 3, three dimensions to be output are determined: D1, D2, and D6.

[0105] Further, based on each dimension to be output, the elements to be output in the dimension are determined. In this embodiment, for the elements in each dimension, the elements are screened from high to low according to their contribution, and the user can flexibly set the second threshold to screen the elements to be output that make the main contribution to the fluctuation of the indicator data based on the second threshold. When the sum of the contributions of multiple elements with higher contributions in one dimension reaches the second threshold, it can be determined that these elements are the main factors causing abnormal fluctuations in the indicator data, and the elements that meet the requirements are used as elements to be output. Normally, the second threshold can be set to 70%.

[0106] Finally, a first analysis result is generated based on all dimensions to be output and elements to be output in the dimensions.

[0107] Optionally, the first analysis result may also include contribution information of the elements to be output in each dimension to be output, and an evaluation conclusion obtained based on the information of the dimension and the element. In practical applications, the indicator values ​​before and after the abnormal data fluctuation may also be included.

[0108] For example, the contribution of the elements is ranked from high to low as follows: mobile phone, game, funny, pad, level Lv4, API entry, and the dimensions to which the elements belong are determined as follows: playback platform, content category, content level, and upload entry. When the first threshold is set to 3, the dimensions to be output are determined as follows: playback platform, content category, content level. For each dimension, the elements are screened from high to low according to their contribution until the sum of the contributions of the elements reaches the second threshold (70%), and the screened elements are used as the elements to be output in that dimension. Based on the dimensions to be output and the elements to be output, a first analysis result is generated. The first analysis result is as follows:

[0109] Indicator data in the first time period: 79878.86;

[0110] Indicator data within the target time period: 81966.14;

[0111] From the perspective of the playback platform, the fluctuations were mainly affected by the mobile phone side (26.5%), the Pad side (-13.9%)...;

[0112] From the perspective of content categories, the fluctuations were mainly affected by games (24.3%), comedy (-16.2%), and so on;

[0113] From the content level point of view, the fluctuation is mainly affected by Lv4 (13.8%), Lv3 (12.9%)...;

[0114] Evaluation results: The abnormal fluctuations in playback data are mainly affected by the playback platform, among which the playback volume on mobile phones has the greatest impact on the fluctuations.

[0115] Figure 4 This is the second flow chart for determining the fluctuation parameter value in one embodiment of the present application. Figure 4 As shown, as a second implementation of the present application, the fluctuation parameter value corresponding to each element in each dimension is determined according to the indicator data of the target time period and the indicator data of the first time period, including:

[0116] S321: Based on the first time period and the target time period, calculate the consistency of each element in each dimension; the consistency is used to indicate the degree of fluctuation of the element;

[0117] S322: Determine the consistency as the fluctuation parameter value corresponding to the element.

[0118] In this embodiment, the difference between the components of the index data corresponding to the elements in each dimension before and after the fluctuation is measured, and the consistency of each element is calculated to determine the abnormal (severe) degree of fluctuation of each element. The specific steps for determining the fluctuation parameter value are as follows:

[0119] (1) First, calculate the consistency of the elements in each dimension. For element E ij , use p ij Indicates the predicted proportion, the calculation expression is as follows:

[0120]

[0121] Among them, F(m) is the normal prediction value of indicator M, F ij (m) is element E ij normal predicted value.

[0122] For each element E ij , use q ij It represents the actual proportion, and its calculation expression is as follows:

[0123]

[0124] Among them, A(m) is the true value of indicator M, A ij (m) is element E ij The true value of .

[0125] After obtaining the predicted proportion and the actual proportion, the JSD divergence is used to measure the difference between the two and determine the consistency. The consistency reflects the severity of the element fluctuation. The higher the consistency of the element, the more severe the fluctuation of the element. ij The consistency S ij The calculation expression is as follows:

[0126]

[0127] Among them, p is the predicted proportion of the element, and q is the actual proportion of the element.

[0128] (2) The consistency of each element is used as the fluctuation parameter value corresponding to the element.

[0129] Optionally, based on the fluctuation parameter value corresponding to each element in each dimension, each element is screened to obtain analysis results, including:

[0130] S421: Aggregate elements in all dimensions to generate a second element set;

[0131] S422: sorting the elements in the second element set from high to low according to the consistency;

[0132] S423: Starting from the dimension to which the element with the highest consistency belongs, a third threshold number of dimensions are screened out as dimensions to be output;

[0133] S424: Determine at least one element to be output in each dimension to be output, wherein the consistency of each element to be output in each dimension to be output is not less than a fourth threshold;

[0134] S425: Obtain a second analysis result according to each dimension to be output and the corresponding element to be output.

[0135] The higher the abnormality (i.e., the higher the consistency) of an element, the more likely it is that it is the cause of abnormal fluctuations in the indicator data. In this embodiment, after calculating the consistency of each element in each dimension, the elements with higher consistency in each dimension are screened to determine the cause of abnormal fluctuations in the indicator data.

[0136] Specifically, the elements in all dimensions are aggregated to obtain a second element set. All elements in the second element set are sorted from high to low according to the consistency, and starting from the dimension to which the element with the highest consistency belongs, the dimensions of the third threshold number are screened out as the dimensions to be output. The user can flexibly set the third threshold according to the needs of the actual application to control the number of dimensions in the analysis results.

[0137] For example, the elements are sorted by contribution as follows: 12 ,E 25 ,E 13 ,E 42 ,E 61}, and its corresponding dimension order is {D1, D2, D4, D6}. According to the third threshold number 3, three dimensions to be output are determined: D1, D2, and D4.

[0138] Further, based on each dimension to be output, the elements to be output in the dimension are determined. In this embodiment, for the elements in each dimension, the elements are screened from high to low according to the consistency of the elements. The user can flexibly set the fourth threshold value, and screen out the elements to be output that produce drastic fluctuations based on the fourth threshold value. When the consistency of an element reaches the fourth threshold value, it can be determined that the element is the main factor causing the abnormal data fluctuation of the indicator, and the elements that meet the requirements are used as the elements to be output.

[0139] Finally, a second analysis result is generated based on all dimensions to be output and elements to be output in the dimensions.

[0140] Optionally, the second analysis result may also include contribution information of the elements to be output in each dimension to be output, and an evaluation conclusion obtained based on the information of the dimension and the element. In practical applications, the indicator values ​​before and after the abnormal data fluctuation may also be included.

[0141] For example, the order from high to low according to the change in the consistency of the elements is: mobile phone, Pad, game, funny, TV, client entrance, level Lv4, and the order of the dimensions to which the elements belong is determined as: playback platform, content category, upload entrance and content level. When the third threshold is set to 2, the dimensions to be output are determined as: playback platform, content category. For each dimension, the elements are screened according to the change in the consistency of the elements, and the elements whose change reaches the fourth threshold (for example, 10%) are taken as the elements to be output in the dimension. Based on the dimensions to be output and the elements to be output, a second analysis result is generated. The second analysis result is as follows:

[0142] Indicator data in the first time period: 79878.86;

[0143] Indicator data within the target time period: 81966.14;

[0144] From the perspective of playback platforms, the fluctuations were mainly affected by mobile phones (up 19.8%), Pads (down 13.2%), TVs (up 10.8%), etc.;

[0145] From the perspective of content categories, it was mainly affected by games (up 12.7%), comedy (down 11.3%)...;

[0146] Evaluation results: The abnormal fluctuations in playback data are mainly affected by the playback platform, among which the playback volume on mobile phones has the greatest impact on the fluctuations.

[0147] Figure 5 This is the third flow chart of determining the fluctuation parameter value in one embodiment of the present application. Figure 5 As shown, as a third implementation of the present application, the fluctuation parameter value corresponding to each element in each dimension is determined according to the indicator data of the target time period and the indicator data of the first time period, including:

[0148] S331: Based on the first time period and the target time period, calculating the fluctuation value component corresponding to each element in each dimension, and calculating the fluctuation value of the indicator data;

[0149] S332: Calculate the contribution of each element based on the fluctuation value component of each element; the contribution is used to represent the fluctuation proportion of the element in the dimension to which it belongs;

[0150] S333: Based on the first time period and the target time period, calculate the consistency of each element in each dimension; the consistency is used to indicate the degree of fluctuation of the element;

[0151] S334: Determine the contribution and the consistency as the fluctuation parameter value corresponding to the element.

[0152] In this embodiment, the process of determining the fluctuation parameter value is as follows:

[0153] (1) Calculating the fluctuation value component corresponding to each element in each dimension and the fluctuation value of the indicator data according to the indicator data in the first time period and the target time period obtained from the database;

[0154] (2) Using the contribution calculation method provided in the above embodiment, the contribution of each element is calculated to represent the fluctuation proportion of each element;

[0155] (3) using the method for calculating consistency provided in the above embodiment to calculate the consistency of each element, which is used to represent the fluctuation program of each element;

[0156] (4) The contribution and consistency of the element are determined as the fluctuation parameter value corresponding to the element.

[0157] In this embodiment, the fluctuation parameter value is determined from two dimensions: the fluctuation proportion of the indicator data and the severity of the fluctuation. Then, a comprehensive analysis of the causes of abnormal data fluctuation is performed from these two perspectives to further improve the accuracy of the analysis results.

[0158] Optionally, based on the fluctuation parameter value corresponding to each element in each dimension, each element is screened to obtain analysis results, including:

[0159] S431: For each dimension, filter out the elements whose consistency is not less than a fourth threshold, and obtain a simplest element set corresponding to the dimension;

[0160] S432: Calculate the total contribution of each simplest element set respectively, take the dimension corresponding to the simplest element set whose total contribution is not less than the second threshold as the dimension to be output, and take the elements in the simplest element set as the elements to be output corresponding to the dimension to be output;

[0161] S433: Obtain a third analysis result according to each dimension to be output and the corresponding element to be output.

[0162] In this embodiment, after calculating the contribution and consistency of each element, the elements in each dimension are screened according to the contribution, and then each dimension is screened according to the contribution. The dimensions and elements to be output are determined based on the comprehensive consistency and contribution, and the third analysis result is obtained.

[0163] Figure 6 1 is a flow chart of data fluctuation attribution analysis in one embodiment of the present application. Figure 6 As shown, in one embodiment, data fluctuation attribution analysis is performed on the dimensions {D1, D2, ...Dn} corresponding to the indicator M (for example, the video playback volume), and the specific process is as follows:

[0164] (1) Calculate the contribution and consistency of each element in each dimension {D1, D2, ... Dn};

[0165] (2) Select the elements in each dimension whose consistency is not less than the fourth threshold, and aggregate them to form the simplest element set {A2, A2...An} corresponding to each dimension;

[0166] (3) For the simplest element set corresponding to each dimension, calculate the total contribution of each simplest element set. The total contribution of a simplest element set is the sum of the contributions of all elements in the set;

[0167] (4) Based on the total contribution of each simplest element set, a simplest element set whose total contribution is not less than the second threshold is screened out, thereby determining the specific dimensions corresponding to the multiple elements that contribute more to the abnormal fluctuation of the indicator M. The dimension corresponding to the screened simplest element set is used as the dimension to be output, and all elements in the screened simplest element set are used as the elements to be output in the corresponding dimension;

[0168] (5) For each simplest element set corresponding to the dimension to be output, sort the elements therein from high to low according to the consistency, and determine the display order of the elements in each dimension in the output analysis results;

[0169] (6) Finally, based on all dimensions and elements to be output, a third analysis result is generated.

[0170] As an implementation manner of the present application, the data attribution method further includes:

[0171] S5: Displaying the analysis result on a user interface according to a pre-configured output field; the output field includes at least one of the following: a dimension or an element.

[0172] In one embodiment, the obtained analysis results are displayed on the user interface. In this embodiment, the output fields of the analysis results are pre-configured as dimensions or elements. After the analysis results are obtained, the dimensions or elements that cause abnormal fluctuations in the indicator data are displayed on the user interface according to the sorting in the analysis results. In actual applications, the analysis results of the user interface can be set to display only the analysis results of the dimensions, only the analysis results of the elements, or the detailed analysis results of the dimensions and elements as needed.

[0173] Optionally, more output fields can be displayed in the user interface according to actual needs, including but not limited to: indicators, historical indicator data, abnormal indicator data, dimensions, elements, fluctuation values, contribution and consistency. Through pre-configured output fields, structured analysis results can be clearly presented in the user interface so that users can view the analysis results more intuitively.

[0174] Based on the same inventive concept, an embodiment of the present application provides a data attribution device. Figure 7 , Figure 7 Schematic diagram of a data attribution device 100 proposed in one embodiment of the present application. Figure 7 As shown, the device comprises:

[0175] The assembly module 101 is configured to fill the analysis conditions input by the user into the reserved position of the target query template to generate a query statement; the analysis conditions at least include: dimensions, indicators, a first time period and a target time period; wherein each dimension includes multiple elements; the target time period is a time period in which abnormal data fluctuations occur, and the start time of the target time period is not earlier than the end time of the first time period;

[0176] A query module 102 is configured to execute the query statement to obtain the indicator data of the first time period and the indicator data of the target time period from a database;

[0177] The analysis module 103 is configured to determine the fluctuation parameter value corresponding to each element in each dimension based on the indicator data of the target time period and the indicator data of the first time period; based on the fluctuation parameter value corresponding to each element in each dimension, screen each element to obtain an analysis result; the analysis result is used to indicate the reason why the indicator data generates abnormal data fluctuations within the target time period; the analysis result includes at least one of the following: the dimension causing the abnormal fluctuation or the element causing the abnormal fluctuation.

[0178] Optionally, the data attribution device 100 further includes:

[0179] A display module, configured to display analysis conditions selectable by a user on a user interface;

[0180] The assembly module 101 is specifically configured to determine the corresponding quantities of the dimensions, indicators and entities in the analysis conditions input by the user;

[0181] A basic query template is obtained from the database, and the number of reserved positions in the basic query template is modified according to the corresponding numbers of the dimensions, indicators and entities in the analysis conditions to obtain the target query template.

[0182] Optionally, the query module 102 is configured to perform the following steps:

[0183] The accumulated value of the indicator data in the first time period is used as the indicator data of the first time period; the accumulated value of the indicator data in the target time period is used as the indicator data of the target time period; or,

[0184] The average value of the indicator data in the first time period is used as the indicator data of the first time period; the average value of the indicator data in the target time period is used as the indicator data of the target time period.

[0185] Optionally, the analysis module 103 is configured to determine the fluctuation parameter value corresponding to each element in each dimension according to the indicator data of the target time period and the indicator data of the first time period, specifically including:

[0186] Based on the first time period and the target time period, calculating the fluctuation value component corresponding to each element in each dimension, and calculating the fluctuation value of the indicator data;

[0187] Based on the fluctuation value component of each element, the contribution of the element is calculated; the contribution is used to represent the fluctuation proportion of the element in the dimension to which it belongs;

[0188] The contribution is determined as a fluctuation parameter value corresponding to the element.

[0189] Optionally, the analysis module 103 is configured to screen each element based on the fluctuation parameter value corresponding to each element in each dimension to obtain an analysis result, specifically including:

[0190] Aggregate the elements in all dimensions to obtain the first element set;

[0191] Sort the elements in the first element set from high to low according to their contribution;

[0192] Starting from the dimension to which the element with the highest contribution belongs, the dimensions with a first threshold number are selected as the dimensions to be output;

[0193] Determine at least one element to be output in each dimension to be output, and the sum of the contribution of all elements to be output in each dimension to be output is not less than a second threshold;

[0194] A first analysis result is obtained according to each dimension to be output and the corresponding element to be output.

[0195] Optionally, the analysis module 103 is configured to determine the fluctuation parameter value corresponding to each element in each dimension according to the indicator data of the target time period and the indicator data of the first time period, specifically including:

[0196] Based on the first time period and the target time period, calculating the consistency of each element in each dimension; the consistency is used to indicate the degree of fluctuation of the element;

[0197] The consistency is determined as the fluctuation parameter value corresponding to the element.

[0198] Optionally, the analysis module 103 is configured to screen each element based on the fluctuation parameter value corresponding to each element in each dimension to obtain an analysis result, specifically including:

[0199] Aggregate the elements in all dimensions to generate a second element set;

[0200] Sort the elements in the second element set from high to low according to the consistency;

[0201] Starting from the dimension to which the element with the highest consistency belongs, the third threshold number of dimensions are selected as the dimensions to be output;

[0202] Determine at least one element to be output in each dimension to be output, wherein the consistency of each element to be output in each dimension to be output is not less than a fourth threshold;

[0203] A second analysis result is obtained according to each dimension to be output and the corresponding element to be output.

[0204] Optionally, the analysis module 103 is configured to determine the fluctuation parameter value corresponding to each element in each dimension according to the indicator data of the target time period and the indicator data of the first time period, specifically including:

[0205] Based on the first time period and the target time period, calculating the fluctuation value component corresponding to each element in each dimension, and calculating the fluctuation value of the indicator data;

[0206] Based on the fluctuation value component of each element, the contribution of the element is calculated; the contribution is used to represent the fluctuation proportion of the element in the dimension to which it belongs;

[0207] Based on the first time period and the target time period, calculating the consistency of each element in each dimension; the consistency is used to indicate the degree of fluctuation of the element;

[0208] The contribution degree and the consistency degree are determined as fluctuation parameter values ​​corresponding to the element.

[0209] Optionally, the analysis module 103 is configured to screen each element based on the fluctuation parameter value corresponding to each element in each dimension to obtain an analysis result, specifically including:

[0210] For each dimension, filter out the elements whose consistency is not less than a fourth threshold, and obtain the simplest element set corresponding to the dimension;

[0211] Calculate the total contribution of each simplest element set respectively, take the dimension corresponding to the simplest element set whose total contribution is not less than the second threshold as the dimension to be output, and take the elements in the simplest element set as the elements to be output corresponding to the dimension to be output;

[0212] A third analysis result is obtained according to each dimension to be output and the corresponding element to be output.

[0213] Optionally, the display module is further configured to display the analysis result on a user interface according to a preconfigured output field; the output field includes at least one of the following: a dimension or an element.

[0214] Based on the same inventive concept, an embodiment of the present application provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, it implements the steps in the data attribution method described in any of the above embodiments of the present application.

[0215] Based on the same inventive concept, an embodiment of the present application provides a readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the data attribution method described in any of the above embodiments of the present application are implemented.

[0216] Based on the same inventive concept, an embodiment of the present application provides an electronic device. Figure 8 , Figure 8 FIG. 2 is a schematic diagram of an electronic device 200 according to an embodiment of the present application. Figure 8 As shown, the electronic device includes:

[0217] A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes, the steps in the data attribution method described in any of the above embodiments of the present application are implemented.

[0218] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0219] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

[0220] For the method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and components involved are not necessarily required by the present application.

[0221] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0222] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0223] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0224] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0225] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the present application is interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0226] Finally, 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 terminal 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 terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0227] The data attribution method, apparatus, program product, device and storage medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A data attribution method, characterized in that: include: Fill the analysis conditions entered by the user into the reserved position of the target query template to generate a query statement; The analysis conditions include at least: a dimension, an indicator, a first time period, and a target time period; wherein each dimension includes multiple elements; the target time period is a time period during which abnormal data fluctuations occur, and the start time of the target time period is no earlier than the end time of the first time period; Executing the query statement to obtain the indicator data of the first time period and the indicator data of the target time period from the database; Determining a fluctuation parameter value corresponding to each element in each dimension based on the indicator data of the target time period and the indicator data of the first time period; Based on the fluctuation parameter values ​​corresponding to each element in each dimension, each element is screened to obtain an analysis result; the analysis result is used to indicate the reason why the indicator data generates abnormal data fluctuations within the target time period; the analysis result includes at least one of the following: the dimension that causes the abnormal fluctuation or the element that causes the abnormal fluctuation.

2. The data attribution method according to claim 1, characterized in that: Before generating the query statement, the method further includes: Displaying the analysis conditions that can be selected by the user on the user interface; Determine the corresponding quantity of dimensions, indicators and entities in the analysis conditions entered by the user; A basic query template is obtained from the database, and the number of reserved positions in the basic query template is modified according to the corresponding numbers of dimensions, indicators and entities in the analysis conditions to obtain the target query template.

3. The data attribution method according to claim 1, characterized in that: Obtaining the indicator data of the first time period and the indicator data of the target time period from the database includes: The accumulated value of the indicator data in the first time period is used as the indicator data for the first time period; the accumulated value of the indicator data in the target time period is used as the indicator data for the target time period; or The average value of the indicator data in the first time period is used as the indicator data of the first time period; the average value of the indicator data in the target time period is used as the indicator data of the target time period.

4. The data attribution method according to claim 1 or 3, characterized in that: Determining a fluctuation parameter value corresponding to each element in each dimension according to the indicator data of the target time period and the indicator data of the first time period includes: Based on the first time period and the target time period, calculating the fluctuation value component corresponding to each element in each dimension, and calculating the fluctuation value of the indicator data; Based on the fluctuation value component of each element, the contribution of the element is calculated; the contribution is used to represent the fluctuation proportion of the element in the dimension to which it belongs; The contribution is determined as a fluctuation parameter value corresponding to the element.

5. The data attribution method according to claim 4, characterized in that: Based on the fluctuation parameter values ​​corresponding to each element in each dimension, each element is screened to obtain analysis results, including: Aggregate the elements in all dimensions to obtain the first element set; Sort the elements in the first element set from high to low according to their contribution; Starting from the dimension to which the element with the highest contribution belongs, the first threshold number of dimensions are selected as the dimensions to be output; Determine at least one element to be output in each dimension to be output, where the sum of the contributions of all elements to be output in each dimension to be output is not less than a second threshold; A first analysis result is obtained according to each dimension to be output and the corresponding element to be output.

6. The data attribution method according to claim 1 or 3, characterized in that: Determining a fluctuation parameter value corresponding to each element in each dimension according to the indicator data of the target time period and the indicator data of the first time period includes: Calculating the consistency of each element in each dimension based on the first time period and the target time period; the consistency is used to indicate the degree of fluctuation of the element; The consistency is determined as the fluctuation parameter value corresponding to the element.

7. The data attribution method according to claim 6, characterized in that: Based on the fluctuation parameter values ​​corresponding to each element in each dimension, each element is screened to obtain analysis results, including: Aggregate the elements in all dimensions to generate a second element set; Sort the elements in the second element set from high to low according to the consistency; Starting from the dimension to which the element with the highest consistency belongs, the third threshold number of dimensions are selected as the dimensions to be output; Determine at least one element to be output in each dimension to be output, wherein the consistency of each element to be output in each dimension to be output is not less than a fourth threshold; A second analysis result is obtained according to each dimension to be output and the corresponding element to be output.

8. The data attribution method according to claim 1 or 3, characterized in that: Determining a fluctuation parameter value corresponding to each element in each dimension according to the indicator data of the target time period and the indicator data of the first time period includes: Based on the first time period and the target time period, calculating the fluctuation value component corresponding to each element in each dimension, and calculating the fluctuation value of the indicator data; Based on the fluctuation value component of each element, the contribution of the element is calculated; the contribution is used to represent the fluctuation proportion of the element in the dimension to which it belongs; Calculating the consistency of each element in each dimension based on the first time period and the target time period; the consistency is used to indicate the degree of fluctuation of the element; The contribution and the consistency are determined as the fluctuation parameter values ​​corresponding to the elements.

9. The data attribution method according to claim 8, characterized in that: Based on the fluctuation parameter values ​​corresponding to each element in each dimension, each element is screened to obtain analysis results, including: For each dimension, filter out the elements whose consistency is not less than a fourth threshold, and obtain the simplest element set corresponding to the dimension; Calculate the total contribution of each simplest element set respectively, use the dimension corresponding to the simplest element set whose total contribution is not less than the second threshold as the to-be-output dimension, and use the elements in the simplest element set as the to-be-output elements corresponding to the to-be-output dimension; A third analysis result is obtained according to each dimension to be output and the corresponding element to be output.

10. The data attribution method according to claim 1, characterized in that: Also includes: The analysis results are displayed on a user interface according to pre-configured output fields; the output fields include at least one of the following: a dimension or an element.

11. A data attribution device, characterized in that: The method for implementing any one of claims 1 to 10 comprises: The assembly module is configured to fill the analysis conditions input by the user into the reserved positions of the target query template to generate a query statement; the analysis conditions include at least: a dimension, an indicator, a first time period, and a target time period; wherein each dimension includes multiple elements; the target time period is a time period during which abnormal data fluctuations occur, and the start time of the target time period is no earlier than the end time of the first time period; a query module configured to execute the query statement and obtain the indicator data of the first time period and the indicator data of the target time period from a database; The analysis module is configured to determine the fluctuation parameter value corresponding to each element in each dimension based on the indicator data of the target time period and the indicator data of the first time period; based on the fluctuation parameter value corresponding to each element in each dimension, screen each element to obtain an analysis result; the analysis result is used to indicate the reason why the indicator data generates abnormal data fluctuations within the target time period; the analysis result includes at least one of the following: the dimension causing the abnormal fluctuation or the element causing the abnormal fluctuation.

12. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 10 are implemented.

14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps in the method according to any one of claims 1 to 10 are implemented.

Citation Information

Patent Citations

  • Index fluctuation analysis method and device

    CN108346011A

  • Data fluctuation processing method, device and equipment

    CN110147945A

  • Index data processing method and device, electronic equipment and storage medium

    CN112132362A

  • Index data processing method and device, electronic equipment and storage medium

    CN112132485A

  • Data processing method and device, computer equipment and storage medium

    CN117350868A

Cited By

  • Abnormity attribution method and device based on multi-dimensional data set, electronic equipment and medium

    CN119442113A

  • Data fluctuation reason determination method and device based on large model

    CN121072771A