Data analysis system diagnostic method, device and medium

By employing a diagnostic engine to provide uncertainty metrics and update data analysis systems, the method addresses performance deficiencies in data analysis systems, enhancing their accuracy and reliability.

JP7571429B2Active Publication Date: 2024-10-23NEC CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2020152861
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-09-12
Filing Date
2020-09-11
Publication Date
2024-10-23
Estimated Expiration
2040-09-11

AI Technical Summary

Technical Problem

Data analysis systems, such as deep neural networks, often fail to perform at the expected level during prediction due to various deficiencies in training and prediction data, making it difficult for developers to identify and address these issues.

Method used

A method and device for diagnosing and optimizing data analysis systems using a diagnostic engine to provide uncertainty metrics, indicating the degree of certainty in prediction results, and updating the analysis engine based on these metrics to improve performance.

Benefits of technology

The method and device help identify defects in data analysis systems, enhancing their accuracy and reliability by adjusting training and prediction data, thereby improving overall system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007571429000013
    Figure 0007571429000013
  • Figure 0007571429000014
    Figure 0007571429000014
  • Figure 0007571429000015
    Figure 0007571429000015
Patent Text Reader

Abstract

To provide a technical proposal for examining and optimizing data analysis systems.SOLUTION: A method for examining a data analysis system includes: acquiring information on an analysis engine to be examined and data to be examined related to the analysis engine; identifying a diagnostic engine corresponding to the analysis engine based on the received information; and providing uncertainty metrics related to at least one of the analysis engine and the data to be examined by processing the data to be examined using the diagnostic engine.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] TECHNICAL FIELD Embodiments of the present disclosure relate to the field of artificial intelligence, and more particularly, to a data analysis system diagnosis method, a data analysis system optimization method, a device, and a computer storage medium. [Background technology]

[0002] With the development of computer technology, data analysis systems have been widely applied in various aspects of people's lives. For example, analysis engines such as deep neural networks are increasingly used for various tasks such as image identification, voice identification, and target detection. Usually, it is necessary to train the analysis engine using training data, but the analysis engine often does not reach the performance of the training stage during prediction. This is undesirable because there may be various reasons that lead to the performance degradation of the analysis engine in the prediction stage, making it difficult for developers to find the defects of the analysis engine and make corresponding improvements. Summary of the Invention [Problem to be solved by the invention]

[0003] The embodiments of the present disclosure provide a technical solution for diagnosing and optimizing a data analysis system. [Means for solving the problem]

[0004] According to a first aspect of the present disclosure, there is provided a method for diagnosing a data analysis system, the method comprising: obtaining information about an analytical engine in a data analysis system to be diagnosed and data to be diagnosed that is related to the analytical engine and includes at least one of training data and prediction data for the analytical engine; identifying a diagnostic engine corresponding to the analytical engine based on the received information; and processing the data to be diagnosed using the diagnostic engine to provide an uncertainty metric related to at least one of the analytical engine and the data to be diagnosed, wherein the uncertainty metric indicates a degree of certainty about a prediction result obtained by the analytical engine processing the data to be diagnosed.

[0005] According to a second aspect of the present disclosure, there is provided a method for optimizing a data analysis system, the method including: providing to a diagnostic system information about an analytical engine in the data analysis system and data to be diagnosed that is related to the analytical engine and includes at least one of training data and prediction data for the analytical engine; receiving from the diagnostic system an uncertainty metric related to at least one of the analytical engine and the data to be diagnosed; and updating the analytical engine based on the uncertainty metric, wherein the uncertainty metric indicates a degree of certainty about a prediction result obtained by the analytical engine processing the data to be diagnosed.

[0006] According to a third aspect of the present disclosure, there is provided a device for diagnosing a data analysis system, the device comprising at least one processing unit and at least one memory connected to the at least one processing unit and storing instructions executed by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the device to perform operations including: obtaining information about an analysis engine in a data analysis system to be diagnosed and data to be diagnosed that is related to the analysis engine and includes at least one of training data and prediction data of the analysis engine; identifying a diagnosis engine corresponding to the analysis engine based on the received information; and processing the data to be diagnosed using the diagnosis engine to provide an uncertainty metric associated with the analysis engine and at least one of the data to be diagnosed, the uncertainty metric indicating a degree of certainty about a prediction result obtained by the analysis engine processing the data to be diagnosed.

[0007] According to a fourth aspect of the present disclosure, there is provided a device for optimizing a data analysis system, the device comprising at least one processing unit and at least one memory connected to the at least one processing unit and storing instructions executed by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the device to perform operations including: providing to a diagnostic system information about an analytical engine in the data analysis system and data to be diagnosed that is related to the analytical engine and includes at least one of training data and prediction data of the analytical engine, receiving from the diagnostic system an uncertainty metric related to the analytical engine and at least one of the data to be diagnosed, and updating the analytical engine based on the uncertainty metric, the uncertainty metric indicating a degree of certainty about a prediction result obtained by the analytical engine processing the data to be diagnosed.

[0008] According to a fifth aspect of the present disclosure there is provided a computer readable storage medium having stored thereon computer readable program instructions for carrying out the method described in the first aspect.

[0009] According to a sixth aspect of the present disclosure there is provided a computer readable storage medium having stored thereon computer readable program instructions for carrying out the method described in the second aspect.

[0010] This Summary is provided to introduce a selection of concepts in a simplified form that are described in more detail below in the specific embodiments. It is not intended to identify key or essential features of the disclosure, nor is it intended to limit the scope of the disclosure. [Brief description of the drawings]

[0011] The above and other objects, features and advantages of the present disclosure will become more apparent as the exemplary embodiments of the present disclosure are described in more detail with reference to the drawings, in which like reference numerals generally refer to like parts.

[0012] [Figure 1] FIG. 1 is a schematic diagram illustrating an environment in which embodiments of the present disclosure can be implemented. [Diagram 2] 1 is a flowchart illustrating a process for diagnosing a data analysis system according to an embodiment of the present disclosure. [Diagram 3] 1 is a flowchart illustrating a process for identifying a diagnosis engine according to an embodiment of the present disclosure. [Figure 4] 1 is a flowchart illustrating a process of providing adjustment instructions according to an embodiment of the present disclosure. [Diagram 5] FIG. 1 is a schematic diagram illustrating the distribution of uncertainty metrics across different features according to an embodiment of the present disclosure. [Figure 6] 1 is a flowchart illustrating a process for optimizing a data analysis system according to an embodiment of the present disclosure. [Figure 7A] FIG. 2 is a schematic diagram illustrating an example uncertainty metric according to an embodiment of the present disclosure. [Figure 7B] FIG. 2 is a schematic diagram illustrating an example uncertainty metric according to an embodiment of the present disclosure. [Figure 7C] FIG. 2 is a schematic diagram illustrating an example uncertainty metric according to an embodiment of the present disclosure. [Figure 7D] FIG. 2 is a schematic diagram illustrating an example uncertainty metric according to an embodiment of the present disclosure. [Figure 7E] FIG. 2 is a schematic diagram illustrating an example uncertainty metric according to an embodiment of the present disclosure. [Figure 7F] FIG. 2 is a schematic diagram illustrating an example uncertainty metric according to an embodiment of the present disclosure. [Figure 8] FIG. 1 is a block diagram illustrating a schematic of an example device capable of implementing embodiments of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, more preferred embodiments of the present disclosure will be described in detail with reference to the drawings. Although the drawings show preferred embodiments of the present disclosure, it should be understood that the present disclosure can be realized in various forms and is not limited to the embodiments described herein. On the other hand, these embodiments are provided to make the present disclosure clearer and more complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0014] As used herein, the term "including" and variations thereof are open ended, i.e., meaning "including, but not limited to." Unless otherwise noted, the term "and" means "and / or." The term "based on" means "based at least in part on." The terms "one exemplary embodiment" and "one embodiment" mean "at least one exemplary embodiment." The term "another embodiment" means "at least one other embodiment." Terms such as "first," "second," etc. may refer to different objects or the same object. Other explicit and implicit definitions may be included below.

[0015] As mentioned above, with the development of computer technology, data analysis systems have already been widely applied in various aspects of people's lives. For example, analysis engines such as deep neural networks are increasingly being used for various tasks such as image identification, voice identification and target detection. People are increasingly relying on the results that data analysis systems predict for data, and the reliability and stability of the prediction results are becoming more important, especially in key areas such as medical diagnosis, financial investment, and business and public policy decisions. However, analysis engines often fall short of the performance of the training phase during prediction. Therefore, attention has been focused on how to identify and correspondingly improve defects in analysis engines and training data / prediction data in data analysis systems.

[0016] Some embodiments of the present disclosure provide a technical solution for diagnosing a data analysis system. In the technical solution, first, information about an analysis engine in a data analysis system to be diagnosed and data to be diagnosed related to the analysis engine and including at least one of training data and prediction data for the analysis engine can be obtained. Then, based on the received information, a diagnosis engine corresponding to the analysis engine can be identified, and the data to be diagnosed can be processed using the diagnosis engine to provide an uncertainty metric related to at least one of the analysis engine and the data to be diagnosed, where the uncertainty metric indicates a degree of certainty about a prediction result obtained by the analysis engine processing the data to be diagnosed. In this way, the diagnosis engine corresponding to the analysis engine can be used to determine the impact of a model or the data to be diagnosed, including the training data and prediction data, on the accuracy of prediction by the analysis engine in the data analysis system, and further provide assistance to a user to identify defects that may exist in the model or the data to be diagnosed. Furthermore, by diagnosing the data analysis system using a separate diagnosis engine, when the normal operation of the data analysis system may be affected, a diagnosis advice for the data analysis system can be provided to a developer.

[0017] Some other embodiments of the present disclosure further provide a technical solution for optimizing a data analysis system. In the technical solution, first, information about an analysis engine in the data analysis system and data to be diagnosed related to the analysis engine are provided to a diagnosis system, where the data to be diagnosed includes at least one of training data and prediction data for the analysis engine. Then, an uncertainty metric related to at least one of the analysis engine and the data to be diagnosed is received from the diagnosis system, where the uncertainty metric indicates a degree of certainty about a prediction result obtained by the analysis engine processing the data to be diagnosed. Then, the analysis engine can be updated based on the uncertainty metric. In this way, the analysis engine can be updated based on the uncertainty metric determined by the analysis engine, and the performance of the data analysis system can be further improved.

[0018] Example Environment Hereinafter, the embodiments of the present disclosure will be described in detail with reference to the drawings. FIG. 1 is a schematic diagram showing an exemplary environment 100 in which some embodiments of the present disclosure can be implemented. As shown in FIG. 1, the exemplary environment 100 includes a data analysis system 110 and a diagnostic system 140. The data analysis system 110 includes an analysis engine 125 that can learn certain knowledge and capabilities from existing data to process new data. The analysis engine 125 can be designed to perform various tasks, such as image classification, target detection, voice recognition, machine translation, content filtering, etc. Examples of the analysis engine 125 include, but are not limited to, various deep neural networks (DNNs), convolutional neural networks (CNNs), support vector machines (SVMs), decision trees, random forest models, etc.

[0019] As shown in FIG. 1 , the data analysis system 110 further includes training data 115 for training the analysis engine 125 and prediction data 120 predicted by the analysis engine 125. In some embodiments, the training data 115 and the prediction data 120 applied to the analysis engine 125 are data such as images, medical data, business data, etc., and the analysis engine 125 can provide a result obtained by data analysis (also referred to as a prediction result). Specifically, the analysis engine 125 can perform at least one of prediction, identification, classification, mode analysis, feature detection and extraction operations on the input data including the training data 115 and the prediction data 120. In some embodiments, the analysis engine 125 can provide an identification prediction for the input data, for example, when the input data is an image, the prediction can be an identification result for the image (e.g., a result that the object included in the image is a cat or a dog). In some embodiments, the analytics engine 125 can provide predictions for the input data; for example, if the input data is business data, the predictions can be predictive analysis by the analytics engine 125 for sales, customer churn rates, ad click-through rates, etc.

[0020] The data analysis system 110 may provide information 130 about the analysis engine 125 and data 135 to be diagnosed to the diagnosis system 140 through an interface therebetween, where the data to be diagnosed includes at least one of the training data 115 and the prediction data 120. In some embodiments, the interface between the data analysis system 110 and the diagnosis system 140 may be a physical communication interface. Optionally, the interface between the data analysis system 110 and the diagnosis system 140 may be a data communication interface implemented by software. In some embodiments, the information 130 may include information indicative of the type and network configuration of the analysis engine 125. For example, if the analysis engine 125 includes a deep neural network, the information 130 may include information indicative of a specific configuration of the deep neural network, for example, the information may indicate that the neural network includes a three-layer multilayer perceptron (MLP) and the number of hidden units in each layer is 45, 135, and 405, respectively. It should be understood that the information 130 need not include information of specific weights in the analysis engine 125 .

[0021] As shown in FIG. 1, the diagnosis system 140 includes a diagnosis engine 145. Similar to the analysis engine 125, the diagnosis engine 145 can also learn certain knowledge and capabilities from existing data to process new data. In some embodiments, the diagnosis engine 145 provides a degree of uncertainty about a predicted outcome in a quantitative manner (hereinafter referred to as an “uncertainty metric”). In some embodiments, in response to the analysis engine 125 including a neural network module, the diagnosis system 140 builds the neural network module based on the received information 130 about the analysis engine 125 and updates the neural network module with probability estimates to make it a part of the diagnosis engine 145. In the diagnosis engine 145, the weights are represented by a specific distribution rather than a fixed value. In some embodiments, for example, the diagnosis engine 145 may include a Bayesian neural network (BNN). The diagnosis system 140 can provide an uncertainty metric 150 by processing the received data 135 to be diagnosed using the diagnosis engine 145. After receiving the uncertainty metric 150, the data analysis system 110 can update the analysis engine accordingly. The process by which the diagnostic system 140 generates the uncertainty metric 150 and the process by which the data analysis system 110 optimizes the analysis engine 125 based on the uncertainty metric 150 determined by the diagnostic system 140 are described in detail below.

[0022] Data Analysis System Diagnostics The process of diagnosing a data analysis system will now be described in more detail with reference to Figures 2 to 4. Figure 2 is a flow chart illustrating a process 200 of diagnosing a data analysis system according to some embodiments of the present disclosure. The process 200 may be implemented by the diagnosis system 140 of Figure 1. For convenience of explanation, the process 200 will also be described with reference to Figure 1.

[0023] As shown in FIG. 2, in block 202, the diagnostic system 140 obtains information 130 regarding the analysis engine 125 in the data analysis system 110 to be diagnosed and data to be diagnosed 135 related to the analysis engine 125, where the data to be diagnosed 135 includes at least one of training data 115 and prediction data 120 for the analysis engine 125.

[0024] In some embodiments, the data analysis system 110 is, for example, deployed on a cloud platform, and correspondingly, information 130 about the analysis engine 125, the training data 115, and the prediction data 120 are also stored on the cloud platform. A user can access the cloud platform to, for example, perform a corresponding data analysis task on the data analysis system 110.

[0025] In some embodiments, the diagnostic system 140 is deployed on the same cloud platform as the data analysis system 110, allowing the diagnostic system 140 to access the cloud platform's storage to obtain information about the analysis engine 125 and the data 135 to be diagnosed.

[0026] In some embodiments, the diagnostic system 140 may be deployed to be communicatively coupled to the data analysis system 110 to receive information about the analysis engine 125 and the data 135 to be diagnosed from the data analysis system 110 via a wired or wireless network.

[0027] In block 204, the diagnostic system 140 identifies a diagnostic engine 145 that corresponds to the analysis engine 125 based on the received information. In some embodiments, the diagnostic engine 145 may be constructed to include, for example, a pre-configured Bayesian neural network module.

[0028] The process of block 204 will now be described with reference to FIG. 3. FIG. 3 is a flow chart illustrating a process 300 for identifying a diagnostic engine 145 according to an embodiment of the present disclosure. As shown in FIG. 3, in block 302, the diagnostic system 140 may determine whether the analysis engine 125 includes a neural network module based on the received information 130. In response to identifying in block 302 that the analysis engine 125 includes a neural network module, the process 300 proceeds to block 304, where the diagnostic system 140 may construct a neural network module based on the received information. For example, the information 130 may indicate the number of layers, the number of nodes, etc. in the neural network module, and the diagnostic system 140 may construct an untrained neural network module based on the information 130.

[0029] In block 306, the diagnostic system 140 may obtain a probabilistic neural network module by updating the neural network module with the probability estimate. Unlike a conventional deterministic neural network, in which parameters are expressed as specific numerical values, a probabilistic neural network may better determine an uncertainty metric for a predicted outcome by expressing parameters in the network as distributions. In some embodiments, the diagnostic system 140 may update the neural network module with the Bayesian estimate such that all probabilistic data network modules include a Bayesian neural network. Optionally, the diagnostic system 140 may also update the neural network module with the frequency estimate. In block 308, the diagnostic system 140 may construct the diagnostic engine 145 to include the obtained probabilistic neural network module.

[0030] Optionally, if in block 302 the analysis engine 125 determines that it does not include a neural network module, the process 300 proceeds to block 310, where the diagnostic system 140 configures the diagnostic engine 145 to include a pre-deployed probabilistic neural network module.

[0031] 2, in block 206, the diagnostic system 140 utilizes the diagnostic engine 145 to process the data 135 to be diagnosed, thereby providing an uncertainty metric 150 associated with at least one of the analysis engine 125 and the data 135 to be diagnosed, where the uncertainty metric 150 indicates the degree of certainty about a prediction result obtained by the analysis engine 125 processing the data 135 to be diagnosed.

[0032] In some embodiments, data to be diagnosed 135 includes both training data 115 and prediction data 120. The uncertainty metric 150 determined by the diagnosis system 140 may include at least one of a model uncertainty metric, a data uncertainty metric, and a distribution uncertainty metric.

[0033] The model uncertainty metric indicates at least the impact on the performance of the analysis engine 125 due to the degree of fit between the complexity of the analysis engine 125 and the scale of the data 135 to be diagnosed. For example, the model uncertainty metric indicates whether the scale of the training data 115 and the complexity of the analysis engine 125 are compatible. For example, when the scale of the training data 115 is relatively large but the model included in the analysis engine 125 is relatively simple, the degree of fit is considered to be poor.

[0034] The data uncertainty metric indicates at least an impact on the performance of the analysis engine due to the quality of the data to be diagnosed 135. For example, the quality of the data to be diagnosed 135 may indicate at least one of whether the data to be diagnosed 135 is predictive, contains a lot of noise, or has a lot of missing data.

[0035] The distribution uncertainty metric indicates at least the impact on the performance of the analytical engine due to the degree of matching of the distributions of the predicted data 120 and the training data 115. For example, because the analytical engine 125 is trained on the training data 115, the difference in the distributions of the predicted data 120 and the training data 115 may be large.

[0036] The process of determining the model uncertainty metric, the data uncertainty metric, and the distribution uncertainty metric will be described below by taking the Bayesian neural network as an example. For example, the Bayesian neural network module included in the diagnosis engine 145 may be TIFF0007571429000001.tif3154 Let us denote the Bayesian neural network by , where θ denotes the parameters of the network, x denotes the input to the network, and ŷ denotes the output of the network.

[0037] In order to separate the three types of uncertainty metrics, the likelihood function of the output y is decomposed as follows: TIFF0007571429000002.tif76150(1) However, x * denotes a data item in the prediction data 120, D denotes the training data 115, and the third term p(θ|D) in equation (1) denotes the posterior distribution of the model parameters. * indicates whether or not the distribution of D is satisfied, and the second term p(φ|x * ,θ) satisfies the Bernoulli distribution, and φ=1 means that x * shows that D is distributed, and φ=0 means that x * does not fit the distribution of D. ε represents the uncertainty of the data, and the fourth term in equation (1), p(ε|D), represents the posterior distribution of ε. The first term in equation (1), p(y|φ,ε), represents the distribution of the output y.

[0038] In some embodiments, the diagnosis engine 145 includes a Bayesian neural network module, where the Bayesian neural network can distinguish whether data is within a particular distribution or not. (1) The Bayesian neural network is trained to perform well on data prediction, similar to the analysis engine 125. In some embodiments, the training goal can be realized by implementing a general Bayesian neural network objective function. (2) The Bayesian neural network is further trained to distinguish whether input data satisfies the distribution of the training data D. In some embodiments, the training goal can be achieved by constructing negative samples by adding random noise to the training data that satisfies the distribution, and then training the Bayesian neural network with a combination of the positive and negative samples. In this way, the Bayesian neural network can distinguish whether certain input data satisfies a particular distribution.

[0039] In some embodiments, the uncertainty metric may be represented by any of mutual information (MI), entropy, and variance. Compared to representing the uncertainty alone by an absolute value, mutual information can better reflect the association that the model uncertainty metric, the data uncertainty metric, and the distribution uncertainty metric may have with each other.

[0040] In some embodiments, the diagnostic system 140 may process the data 135 to be diagnosed using the diagnostic engine 145 to determine a total uncertainty metric for the diagnostic engine 145, and provide at least one of a model uncertainty metric, a data uncertainty metric, and a distribution uncertainty metric based on the total uncertainty metric. Specifically, the model uncertainty metric may be determined by the following formula: TIFF0007571429000003.tif70154(2)

[0041] The data uncertainty metric is specified by the following formula: TIFF0007571429000004.tif74141(3)

[0042] The distribution uncertainty metric is specified by the following formula: TIFF0007571429000005.tif66154(4)

[0043] In formulas (2) to (4), TIFF0007571429000006.tif3363 denotes the total uncertainty metric of the Bayesian neural network, and in Eq. TIFF0007571429000007.tif45100 denotes the remaining uncertainty metric after the network parameters θ are known, and in Eq. (3), TIFF0007571429000008.tif4287 indicates the remaining uncertainty metric after the data uncertainty information is known, and in Eq. (4), TIFF0007571429000009.tif4187 denotes the remaining uncertainty metric after the distribution information of the data is known.

[0044] For each item in equations (2) to (4), p(y|φ,ε), p(φ|x,θ), q(θ|D) and p(ε|D) can be determined after the training of the Bayesian neural network is completed using the training data 115. Then, based on the decomposition of the likelihood function in equation (1), p(y|D,θ), p(y|D,φ) and p(y|D,ε) can be determined, so that the values ​​of the model uncertainty metric, the data uncertainty metric and the distribution uncertainty metric can be determined in equations (2) to (4), respectively.

[0045] In some embodiments, the diagnosis system 140 transmits the identified uncertainty metric 150 to the data analysis system 110, which enables the data analysis system 110 to adjust at least one of the analysis engine 125 and the data 135 to be diagnosed based on the uncertainty metric 150.

[0046] In some embodiments, the diagnostic system 140 may further provide instructions to adjust at least one of the analysis engine 125 and the data 135 to be diagnosed. As described above, different uncertainty metrics indicate different factors affecting the performance of the model prediction. For example, when the uncertainty metric of the model is relatively high, the diagnostic system 140 may provide instructions to increase the training data. When the uncertainty metric of the data is relatively high, the diagnostic system 140 may provide instructions to, for example, discard the data to be diagnosed. When the uncertainty metric of the distribution is relatively high, the diagnostic system 140 may provide instructions to retrain the analysis engine 125 using the prediction data 120. In some embodiments, the diagnostic system 140 may compare the identified uncertainty metric with a predetermined threshold and provide the instructions if the uncertainty metric is greater than the predetermined threshold.

[0047] In some embodiments, diagnostic system 140 may select the uncertainty metric that has the highest value by comparing the model uncertainty metric, the data uncertainty metric, and the distribution uncertainty metric, and provide instructions corresponding to that type of uncertainty metric. For example, when the data uncertainty metric is the largest, diagnostic system 140 may provide instructions to increase the training data.

[0048] In some embodiments, the diagnostic system 140 may further provide instructions to adjust at least one of the analysis engine 125 and the data to be diagnosed 135 by comparing the uncertainties identified based on the training data 115 and the uncertainties identified based on the prediction data 120. In particular, FIG. 4 is a flow chart illustrating a process 400 for providing adjustment instructions according to an embodiment of the present disclosure.

[0049] 4, in block 402, diagnostic system 140 may obtain a first uncertainty metric by processing training data 115 using diagnostic engine 145. For example, training data 115 may be, for example, a first season of data, and diagnostic system 140 may determine, based on training data 115, that a model uncertainty metric for the first season of training data is 0.6, a data uncertainty metric is 1.2, and a distribution uncertainty metric is 0.3.

[0050] At block 404, diagnostic system 140 may obtain a second uncertainty metric by processing forecast data 120 using diagnostic engine 145. For example, forecast data 120 may be data for a second season to be forecasted, and diagnostic system 140 may determine, based on forecast data 120, that a model uncertainty metric for the second season of forecast data is 0.5, a data uncertainty metric is 1.0, and a distribution uncertainty metric is 0.6.

[0051] In block 406, the diagnostic system 140 can provide instructions to adjust at least one of the analysis engine 125 and the data to be diagnosed 135 by comparing the first uncertainty metric with the second uncertainty metric. For example, by comparing the first uncertainty metric for the training data of the first season with the second uncertainty metric for the forecast data of the second season, it is found that the change in the distribution uncertainty metric is the largest (0.3), and the diagnostic system 140 can then provide instructions to, for example, retrain the analysis engine 125 using the forecast data 120.

[0052] In some embodiments, the input of the diagnostic engine 145 includes multiple data items each related to a different feature. For example, in a home power consumption prediction scene, the data items for training and / or the data items for prediction may include multiple data items related to different features, such as, for example, temperatures in different rooms (e.g., bedroom, living room, kitchen, etc.), humidity in different rooms (e.g., bedroom, living room, kitchen, etc.), outdoor temperature, and outdoor humidity. These different data items are, for example, collected by sensors located at different positions.

[0053] In some embodiments, the diagnostic system 140 may further determine a contribution of at least one of the plurality of data items to the uncertainty metric based on the uncertainty metric. For example, for a determined uncertainty metric u, the contribution of the data item to the uncertainty metric (hereinafter also referred to as the feature uncertainty metric) can be determined by differentiating as follows: TIFF0007571429000010.tif3358(5) where u denotes the uncertainty metric, TIFF0007571429000011.tif2138 denotes a data item associated with the jth feature in the i-th input. Since the contribution of a particular data item determined based on each input to the uncertainty metric may differ, the contribution of at least one data item of the plurality of data items to the uncertainty metric is determined by averaging. TIFF0007571429000012.tif4071(6) where N denotes the number of inputs. For example, in the case of a data uncertainty metric, N may denote the number of training samples.

[0054] For example, Figure 5 is a schematic diagram 500 illustrating the contribution of data items associated with different features to a distribution uncertainty metric according to an embodiment of the present disclosure. As shown in Figure 5, in the example, the input of the diagnosis engine 145 includes data items associated with 23 features, and the contribution 502 of each data item to the distribution uncertainty metric may be different. For example, in the example, the data item corresponding to the fifth feature has the largest contribution.

[0055] In some embodiments, the diagnostic system 140 can further provide instructions to adjust at least one of the plurality of data items based on the contribution of the identified at least one data item to the uncertainty metric. For example, in the example of FIG. 5, the diagnostic system 140 can provide instructions to adjust the data item corresponding to the fifth feature based on the largest contribution of the data item corresponding to the fifth feature, e.g., to have the data analysis system 110 remove, replace, or adjust the data item.

[0056] According to the above-mentioned method for diagnosing a data analysis system, the embodiment of the present disclosure can use a diagnostic engine corresponding to the analytical engine to identify the impact of a model or data to be diagnosed (including training data and prediction data) on the accuracy of prediction by the analytical engine in the data analysis system, and can further assist a user in selecting an appropriate data analysis model in the data analysis system or identifying defects that may exist in the data to be diagnosed. In addition, by diagnosing the data analysis system using a separate diagnostic engine, when the normal operation of the data analysis system may be affected, diagnostic advice for the data analysis system can be provided to the developer.

[0057] Optimizing your data analysis system According to another aspect of the present disclosure, an embodiment of the present disclosure further provides a method for optimizing a data analysis system. Figure 6 is a flow chart illustrating a process 600 for optimizing a data analysis system according to some embodiments of the present disclosure. The process 600 may be implemented by the data analysis system 110 of Figure 1. For convenience of explanation, the process 600 will be described with reference to Figure 1.

[0058] In block 602, the data analysis system 110 provides information 130 related to the analysis engine 125 in the data analysis system 110 and data to be diagnosed 135 related to the analysis engine 125 to the diagnosis system 140, where the data to be diagnosed 135 includes at least one of the training data 115 and the prediction data 120 for the analysis engine 125. As described with reference to block 202 in the process 200 above, in some examples, the data analysis system 110 can provide the information 130 and the data to be diagnosed 135 to the diagnosis system 140 via a wired network or a wireless network. Optionally, the data analysis system 110 and the diagnosis system 140 can be deployed on, for example, the same cloud platform, and the diagnosis system 140 can obtain the information 130 and the data to be diagnosed 135 from the cloud platform.

[0059] In block 604, the data analysis system 110 receives an uncertainty metric 150 associated with at least one of the analysis engine 125 and the data to be diagnosed 135 from the diagnosis system 140, the uncertainty metric 150 indicating the degree of certainty of a prediction result obtained by the analysis engine 125 processing the data to be diagnosed 135. As described above, the process of identifying the uncertainty metric 150 has already been described with reference to Figures 2 to 5, and the data analysis system 110 may receive the uncertainty metric 150 from the diagnosis system 140.

[0060] In block 606 , the data analysis system 110 updates at least one of the analysis engine 125 and the data to be diagnosed 135 based on the uncertainty metric 150 .

[0061] In some embodiments, the method 600 further includes block 608, in which the data analysis system 110 can perform data analysis using the updated analysis engine 125. Specifically, the data analysis system 110 receives new data to be analyzed and processes the new data to be analyzed using the updated analysis engine 125, thereby providing predictions for the new data to be analyzed.

[0062] In some embodiments, the received uncertainty metric 150 includes a model uncertainty metric, the model uncertainty metric being indicative of at least the impact of the analytical engine's performance on its compatibility with the complexity of the analytical engine and the scale of the data to be diagnosed. In some embodiments, the data analysis system 110 may compare the model uncertainty metric to a predefined threshold. Upon determining that the model uncertainty metric is greater than the predefined threshold, the data analysis system 110 updates the analytical engine 125 by training the analytical engine 125 using additional training data. In this manner, the impact of model uncertainty on the performance of the analytical engine 125 may be reduced.

[0063] In some embodiments, the received uncertainty metric includes a data uncertainty metric, the data uncertainty metric being indicative of at least an impact on the performance of the analysis engine 125 due to a quality of the data to be diagnosed 135. In some embodiments, the data analysis system 110 may compare the data uncertainty metric to a predefined threshold. Upon determining that the data uncertainty metric is greater than the predefined threshold, the data analysis system 110 may take action on the data to be diagnosed 135 to ensure the quality of the training data, such as discarding the data.

[0064] In some embodiments, the received uncertainty metric includes a distribution uncertainty metric, the distribution uncertainty metric indicating at least an impact on the performance of the analytics engine due to the degree to which the predicted data matches the distribution of the training data. In some embodiments, the data analytics system 110 may compare the distribution uncertainty metric to a predefined threshold. Upon determining that the distribution uncertainty metric is greater than the predefined threshold, the data analytics system 110 may use the predicted data 120 to retrain the analytics engine 125 such that the analytics engine 125 is capable of accurately analyzing the predicted data 120.

[0065] In some embodiments, as described above, the data analysis system 110 may further determine a feature uncertainty metric from the received uncertainty metric, the uncertainty metric indicating the contribution of a plurality of data items to at least one uncertainty metric, and the input of the analysis engine includes a plurality of data items each associated with a different feature. The determination of the feature uncertainty metric may refer to the process described in Equation (5) and Equation (6), and will not be described in detail here. In some embodiments, the data analysis system 110 may compare the received feature uncertainty metric with a predefined threshold. Then, if the feature uncertainty metric is greater than the predefined threshold, the data analysis system 110 may perform at least one of adding more data items to the input of the analysis engine, changing an attribute (e.g., granularity) of the data item corresponding to the feature, or not using at least one data item. For example, in the example of FIG. 5, if data analysis system 110 receives a feature uncertainty metric corresponding to the fifth feature from diagnostic system 140 and determines that the uncertainty metric is greater than a threshold, data analysis system 110 may, for example, discard or replace the data item corresponding to the fifth feature in predicted data 120, thereby reducing the impact of that feature on analysis engine 125 performance.

[0066] According to the method for optimizing a data analysis system described above, an embodiment of the present disclosure updates the analysis engine based on the uncertainty metric determined by the analysis engine to improve the performance of the data analysis system.

[0067] Example Applications Application 1: Credit card fraud analysis system The above-described method for diagnosing and optimizing a data analysis system can be applied to a data analysis system for predicting credit card fraud. For example, a credit card fraud analysis system can include an analysis engine for receiving inputs of example features of data items associated with 25 features and provide a prediction of whether or not fraud is likely. In one embodiment, the analysis engine includes a neural network composed of three layers of MLPs, with the number of hidden units in each layer being 45, 135, and 405, respectively.

[0068] By converting the neural network into a Bayesian neural network with Bayesian estimation, the analysis engine can identify the model uncertainty corresponding to different training data scales. For example, FIG. 7A shows a trend diagram 700A in which the model uncertainty metric changes according to the training data scale, and as can be seen, there is an overall trend of the model uncertainty metric decreasing as the training data increases. Therefore, the trend can help the developer determine whether to increase the training data scale or reduce the complexity of the neural network.

[0069] Moreover, FIG. 7B further shows a schematic diagram 700B of the contribution of the distribution of different features to the uncertainty metric (feature uncertainty metric), and as can be seen from diagram 700B, the feature uncertainty metric associated with the third feature is the largest, so this data may prompt the developer to check whether the collection of the data item corresponding to the third feature is faulty, and whether the data item corresponding to the third feature needs to be replaced or corrected, etc.

[0070] The method for diagnosing and optimizing a data analysis system disclosed herein can identify current performance bottlenecks in a credit card fraud analysis system and improve the performance of the data analysis system accordingly.

[0071] Application 2: Channel Subscription Analysis System The above-described method for diagnosing and optimizing a data analysis system can be applied to a data analysis system for predicting channel subscription. For example, the channel subscription analysis system can include an analysis engine for receiving an input of data items related to 23 features and provide a prediction of whether a user will subscribe to the channel. In one embodiment, the analysis engine includes a neural network composed of two layers of MLP, the number of hidden units in each layer being 12 and 12, respectively.

[0072] By converting the neural network into a Bayesian neural network with Bayesian estimation, the analysis engine can identify the model uncertainty corresponding to different training data scales. For example, FIG. 7C shows a trend diagram 700C in which the model uncertainty metric changes according to the training data scale, and as can be seen, there is an overall trend of the model uncertainty metric decreasing as the training data increases. Therefore, the trend can help the developer determine whether to increase the training data scale or reduce the complexity of the neural network.

[0073] Moreover, FIG. 7D further shows a schematic diagram 700D of the contribution of different feature distributions to the uncertainty metric (feature uncertainty metric), and as can be seen from FIG. 700D, the feature uncertainty metric associated with the fifth feature is the largest, so this data may prompt the developer to check whether the collection of the data item corresponding to the fifth feature is faulty, and whether the data item corresponding to the fifth feature needs to be replaced or corrected, etc.

[0074] The method for diagnosing and optimizing a data analysis system disclosed herein can identify current performance bottlenecks in a channel subscription analysis system and improve the performance of the data analysis system accordingly.

[0075] Application 3: Shopping cost analysis system The above-described method for diagnosing and optimizing a data analysis system can be applied to a data analysis system for predicting shopping costs. For example, a shopping cost analysis system can include an analysis engine for receiving inputs of data items related to nine features, and provide predictions about how much a user will spend, for example, on a shopping promotion. In one embodiment, the analysis engine includes a neural network composed of two layers of MLPs, and the number of hidden units in each layer is 128 and 256, respectively.

[0076] By converting the neural network into a Bayesian neural network with Bayesian estimation, the analysis engine can identify the model uncertainty corresponding to different training data scales. For example, FIG. 7E shows a trend diagram 700E in which the model uncertainty metric changes according to the training data scale, and as can be seen, there is an overall trend of the model uncertainty metric decreasing as the training data increases. Therefore, the trend can help the developer determine whether to increase the training data scale or reduce the complexity of the neural network.

[0077] Moreover, FIG. 7F further shows a schematic diagram 700F of the uncertainty metric contribution of different feature distributions (feature uncertainty metrics), and as can be seen from FIG. 700F, the feature uncertainty metric associated with the first feature is the largest, so this data can prompt the developer to check whether the collection of the data item corresponding to the first feature is faulty, and whether the data item corresponding to the first feature needs to be replaced or corrected, etc.

[0078] The method for diagnosing and optimizing a data analysis system disclosed herein can identify current performance bottlenecks in a shopping cost analysis system and improve the performance of the data analysis system accordingly.

[0079] As described above, it should be understood that the specific data analysis systems given as examples are merely illustrative and do not limit the present disclosure. The technical solution for diagnosing and optimizing a data analysis system according to the present disclosure can be applied to any suitable data analysis system.

[0080] Exemplary Devices FIG. 8 is a block diagram illustrating a schematic diagram of an exemplary device 800 for implementing an embodiment of the present disclosure. For example, the data analysis system 110, the diagnostic analysis system 140, the analysis engine 125, and / or the diagnostic engine 145 illustrated in FIG. 1 can be implemented by the device 800. As illustrated in the drawing, the device 800 includes a central processing unit (CPU) 801 that can perform various appropriate operations and processes based on computer program instructions stored in a read only memory (ROM) 802 or loaded from a storage unit 808 into a random access memory (RAM) 803. The RAM 803 may further store various programs and data required for the device 800 to operate. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0081] A number of components of the device 800, such as an input unit 806, e.g., a keyboard, a mouse, etc., an output unit 807, e.g., various types of displays, a speaker, etc., a storage unit 808, e.g., a magnetic disk, an optical disk, etc., and a communication unit 809, e.g., a network adapter, a modem, a wireless communication transceiver, etc., are connected to the I / O interface 805. The communication unit 809 enables the device 800 to exchange information / data with other devices via a computer network, e.g., the Internet, and / or various communication networks.

[0082] Each of the processes and operations described above, such as process 200 and / or process 600, may be performed by the processing unit 801. For example, in some embodiments, process 200 and / or process 600 may be implemented as a computer software program, tangibly contained in a machine-readable medium, such as the storage unit 808. In some embodiments, some or all of the computer program may be loaded and / or installed into the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the CPU 801, one or more operations of process 200 and / or process 600 described above may be performed.

[0083] The present disclosure may be a method, an apparatus, a system, and / or a computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions stored thereon for carrying out each aspect of the present disclosure.

[0084] A computer readable storage medium may be a physical device that holds and stores instructions for use in an instruction execution device. A computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above devices. More specific examples of computer readable storage media (a non-exhaustive list) include portable computer disks, hard disks, Random Access Memory (RAM), Read Only Memory (ROM), Erasable Programmable Read Only Memory or Flash Memory (EPROM), Static Random-Access Memory (SRAM), CD-ROMs, Digital Video Discs (DVDs), memory sticks, floppy disks, mechanical encoders, such as punch cards or protruding structures in recesses with instructions stored thereon, and any suitable combination of the above. A computer readable storage medium as used herein should not be construed as a transitory signal itself, such as radio waves or other transmittable electromagnetic waves, electromagnetic waves transmitted through a waveguide or other transmission medium (e.g., light pulses through a fiber optic cable), or electrical signals transmitted through wires.

[0085] The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium into each computing / processing device or downloaded to an external computer or external storage device via a network, such as the Internet, a LAN, a WAN, and / or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives and forwards the computer-readable program instructions from the network, such that the computer-readable program instructions are stored in a computer-readable storage medium in each computing / processing device.

[0086] The computer program instructions for carrying out the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code programmed in any combination of one or more programming languages, including target-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The computer-readable program instructions may be entirely executed on the user's computer, partially executed on the user's computer, executed as an independent software package, partially executed on the user's computer and partially executed on a remote computer, or entirely executed on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a LAN or WAN, or may be connected to an external computer (e.g., via the Internet by an Internet Service Provider). In some embodiments, the state information of the computer-readable program instructions is used to customize electronic circuitry, such as a programmable logic circuit, a field-programmable gate array (FPGA) or a programmable logic array (PLA), to be capable of executing the computer-readable program instructions, thereby implementing various aspects of the present disclosure.

[0087] Each aspect of the present disclosure has been described with reference to flowcharts and / or block diagrams of the method, apparatus (system) and computer program product according to the embodiments of the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and each combination thereof, can be realized by computer-readable program instructions.

[0088] These computer-readable program instructions can be provided to a processing unit of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the instructions are executed by the processing unit of the computer or other programmable data processing apparatus to produce a machine that implements the specified functions / operations in one or more of the blocks in the flowcharts and / or block diagrams. These computer-readable program instructions can be stored on a computer-readable storage medium to cause a computer, programmable data processing apparatus, and / or other device to operate in a specific manner such that the computer-readable medium on which the instructions are stored is configured into an article of manufacture containing instructions that implement each aspect of the specified functions / operations in one or more of the blocks in the flowcharts and / or block diagrams.

[0089] The computer readable program instructions may be loaded into a computer, other programmable data processing apparatus, or other device, causing the computer, other programmable data processing apparatus, or other device to execute a series of operational steps to produce a computerized process, such that the instructions executed on the computer, other programmable data processing apparatus, or other device implement a specified function / operation in one or more blocks in the flowcharts and / or block diagrams.

[0090] The flowcharts and block diagrams in the drawings illustrate possible system architectures, functions and operations of the systems, methods and computer program products of the embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams represents a module, program segment or part of instructions, which includes one or more executable instructions for implementing a certain logical function. As some alternatives, the functions marked in the blocks may be performed in a different order than that shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and some such functions may be executed in a reverse order. Each block in the block diagrams and / or flowcharts, and each combination thereof, may be realized by a system with dedicated hardware for executing a certain function or operation, or by a combination of dedicated hardware and computer instructions.

[0091] Although each embodiment of the present disclosure has been described above, the above description is illustrative, not all of the matters mentioned, and is not intended to limit each of the disclosed embodiments. Various amendments and modifications are obvious to those skilled in the art without departing from the scope and spirit of each of the described embodiments. The terms used in this specification are selected to best interpret the principles of each embodiment, and to allow technical improvements in actual applications or markets, or to allow those skilled in the art to understand each embodiment of the present disclosure.

Claims

1. A method for a computer-implemented diagnosis of a data analysis system, comprising: An acquisition means acquires information about an analytical engine in a data analysis system to be diagnosed, and data to be diagnosed that is related to the analytical engine and includes at least one of training data and prediction data of the analytical engine; A step of identifying a diagnostic engine corresponding to the analysis engine based on the received information by an identifying means; providing means for providing an uncertainty metric associated with at least one of the analysis engine and the data to be diagnosed by processing the data to be diagnosed using the diagnosis engine; A data analysis system diagnostic method, wherein the uncertainty metric indicates a degree of certainty about a predicted result obtained by the analysis engine processing the data to be diagnosed.

2. Identifying a diagnostic engine corresponding to the analysis engine based on the information includes: responsive to the information indicating that the analysis engine includes a neural network module, constructing the neural network module based on the information; updating said neural network module with probability estimates to obtain a probabilistic neural network module; and constructing the diagnostic engine to include the obtained probabilistic neural network module.

3. Identifying a diagnostic engine corresponding to the analysis engine based on the information includes:

3. The method of claim 2, further comprising, in response to the information indicating that the analysis engine does not include a neural network module, configuring the diagnosis engine to include a pre-deployed probabilistic neural network module.

4. the data to be diagnosed includes both the training data and the prediction data; Providing the uncertainty metric comprises: determining a total uncertainty metric for the diagnostic engine by processing the data to be diagnosed using the diagnostic engine; providing at least one of a model uncertainty metric, a data uncertainty metric, and a distribution uncertainty metric based on the total uncertainty metric; the model uncertainty metric indicates at least an impact on the performance of the analytical engine due to a match between the complexity of the analytical engine and the scale of the data to be diagnosed; the data uncertainty metric indicates at least an impact of the quality of the data to be diagnosed on the performance of the analysis engine; The method of claim 1 , wherein the distribution uncertainty metric indicates at least an impact on the performance of the analytics engine of how well the predicted data matches a distribution of the training data.

5. the input of the diagnostic engine comprises a plurality of data items each relating to a different feature; Providing the uncertainty metric comprises: The method of claim 1 , further comprising determining a contribution of at least one data item of the plurality of data items to the uncertainty metric based on the uncertainty metric.

6. Furthermore, the providing means The method of claim 5 , comprising providing instructions to adjust at least one data item of the plurality of data items based on the contribution.

7. Furthermore, the providing means The method of claim 1 , further comprising providing instructions for adjusting the at least one of the analysis engine and the data to be diagnosed.

8. Providing instructions for adjusting at least one of the analysis engine and the data to be diagnosed includes: The method of claim 7 , comprising providing the indication in response to the uncertainty metric being greater than a predetermined threshold.

9. the data to be diagnosed includes both the training data and the prediction data; Providing instructions for adjusting at least one of the analysis engine and the data to be diagnosed includes: processing the training data using the diagnosis engine to obtain a first uncertainty metric; utilizing the diagnostic engine to process the prediction data to obtain a second uncertainty metric; and comparing the first uncertainty metric to the second uncertainty metric to provide instructions for adjusting the at least one of the analysis engine and the data to be diagnosed.

10. 1. A device for diagnosing a data analysis system, comprising: At least one processing unit; at least one memory coupled to the at least one processing unit and configured to store instructions for execution by the at least one processing unit; A device which, when said instructions are executed by said at least one processing unit, performs the method of any one of claims 1-9.

11. A computer readable storage medium storing computer readable program instructions for carrying out the method of any one of claims 1-9.

Citation Information

Patent Citations

  • In-advance countermeasure on-line diagnosis in manageable network

    JP2003032253A

  • Medical data analysis method based on deep learning and its intelligent analyzer

    JP2018529134A