A method and device for online identification of factor effects based on hierarchical error control
By constructing real-time design matrices and Bootstrap samples in an online data-driven simulation model, combined with LORD1 rules, the error control problem in the identification of factor effects and interaction effects in the existing technology is solved, and the effects of real-time identification and economic improvement are achieved.
Patent Information
- Application Number
- CN202210047863.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-17
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-01-17
AI Technical Summary
The existing technology is difficult to identify factor effects and interaction effects in real time in online data-driven simulation models. Especially when the factor value range changes, it is unable to effectively control the error level and meet the efficiency and effectiveness requirements of real-time simulation experimental analysis.
Using an online identification method of factor effects based on hierarchical error control, a real-time design matrix is constructed to obtain base effect samples of changing factors, and Bootstrap samples are used for hypothesis testing to calculate the p-values of main effects and interaction effects, and the LORD1 rule is used to control errors. level, identifying the importance of factor effects in real time.
It realizes the real-time identification of important factor effects and interactive effects when the factor value range changes, simplifies the design matrix of the Morris basis effect method, improves economy, and provides unbiased hypothesis testing results to meet the preferences of different decision makers. Identify important influencing factors of the simulation system in real time.
Smart Images

Figure CN114492007B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of simulation modeling and analysis, and in particular relates to an online factor effect identification method and device based on hierarchical error control. Background Art
[0002] In the context of Industry 4.0, technologies such as the Internet of Things, business intelligence, 5G and cloud computing are integrated into large-scale applications to achieve real-time data transmission, processing and feedback. Digital twins, as a system modeling method based on real-time data and models, are currently the most advanced digital research paradigm. Digital twins build a digital world through simulation modeling and dynamically update simulation model parameters through real-time data; one of the characteristics of the digital world is control, which discovers dynamics that are difficult to detect in different time dimensions based on digital-analog linkage simulation, and then transmits action instructions to achieve value-added of physical entities. This online data-driven simulation requires more powerful tools to resolve the internal complexity of the system and observe its dynamic characteristics to support real-time decision-making.
[0003] Factor effect identification / sensitivity analysis is an important technical means to describe the potential input / output relationship of the simulation system. It can combine experimental design, sampling and statistical inference to identify factors (inputs) that have a significant impact on the system output. Among them, the sequential branching method and the Morris basis effect method are generally considered to be the two most effective factor effect identification methods. However, most traditional factor effect identification studies focus on offline simulation models under static data, which are limited to controlling the probability of two types of errors in a global sensitivity analysis. In online data-driven simulation models, the value range of factors may change continuously. For example, if the production volume is reduced due to equipment failure in an intelligent manufacturing workshop, the original importance classification of factors to system performance may also change accordingly, that is, the significance of the main effect and interaction (nonlinear) effect of the factors changes. If the offline factor effect identification method is simply applied to the online setting, it is difficult to meet the efficiency and effectiveness requirements of real-time simulation experimental analysis.
[0004] As online real-time decision-making has received widespread attention in recent years, the rise of real-time error control research has provided a solution for the present invention. The most advanced real-time error control methods currently include monotonic generalized alpha investment rules, discard-spend algorithms, etc., but these methods are all based on the independence assumption at different time points and do not consider the situation of testing multiple hypotheses with correlation at the same time point (such as the main effect assumption and interaction effect assumption considered in the real-time identification of factor effects). Therefore, it is necessary to develop an adaptive online method to identify the important effects of the changing factors in real time and control the overall error level. Summary of the invention
[0005] In view of the shortcomings of the current online data-driven simulation and analysis technology under the background of digital twins, the present invention proposes an online identification method and device for factor effects based on hierarchical error control. By adopting a hierarchical structure, the importance of factor effects is identified online and the error of the judgment result is controlled, thereby solving the real-time hypothesis testing problem of the dependence of the main effect and interaction effect (the present invention uniformly refers to the interaction or nonlinear effect as interaction effect) hypotheses that arrive in real time.
[0006] In order to achieve the above technical objectives, the present invention adopts the following technical solutions:
[0007] An online identification method of factor effects based on hierarchical error control, comprising:
[0008] Step 1: Initialize the parameters for main effect identification and interaction effect identification according to the FDR level η of the overall factor effect identification;
[0009] Step 2: For the k factors in the online data-driven simulation model, obtain the single factor whose value range changes at any observation point t in the model, and record it as the change factor l t , and then construct a real-time design matrix; among them, the change factor l t ∈{1, 2, …, k};
[0010] Step 3, input the real-time design matrix into the simulation model to obtain simulation output and calculate the base effect of the variable factor;
[0011] Step 4: Based on the original base effect samples of the variable factors, convert and obtain new base effect samples for the main effect hypothesis test and new base effect samples for the interaction effect test:
[0012] Step 5: independently sample N times with replacement from the new base effect samples of the main effect hypothesis test to obtain the bootstrap samples of the main effect hypothesis test, and independently sample N times with replacement from the new base effect samples of the interaction effect test to obtain the bootstrap samples of the interaction effect hypothesis test;
[0013] This step 5 is repeated B times to obtain B bootstrap samples for main effect hypothesis tests and B bootstrap samples for interaction effect hypothesis tests respectively;
[0014] Step 6: Count the Bootstrap samples of each main effect hypothesis test and each interactive effect hypothesis test respectively to obtain the corresponding test statistics;
[0015] Step 7: Calculate the p-value of the main effect test by comparing the bootstrap sample statistic of the main effect hypothesis test with the main effect statistic of the primordial effect sample. And calculate the p-value of the interaction effect test by comparing the bootstrap sample statistic of the interaction effect hypothesis test with the primordial effect sample interaction effect statistic
[0016] Step 8: Determine the observation point at which the most important main effect was identified Observation points with significant interaction effects Use the LORD1 rule to obtain the test level of the main effect layer of observation point t and the test level of the interaction effect layer
[0017] Step 9: Determine the p-value of the main effect layer Is it greater than the inspection level of this layer? If so, determine the change factor l t There is no important main effect, otherwise the change factor l t There are important main effects; and the p-value for judging the interaction effect layer Is it greater than the inspection level of this layer? If so, determine the change factor l t There is no important interaction effect, otherwise the change factor l t Has important interaction effects; completes any observation point t on the change factor l t identification.
[0018] Furthermore, the parameters for main effect identification and interaction effect identification are initialized as follows:
[0019] Step 1.1: Assign the FDR level for main effect identification based on the FDR level η for overall factor effect identification The FDR level for identifying interaction effects and meet
[0020] Step 1.2: Identify the maximum test level at the initial observation point t = 1 for the main effect and defines the maximum increment of the test level when identifying main effects Maximum test level at initial observation point t = 1 for interaction effect identification and defines the maximum increment of the test level when identifying interaction effects
[0021] Furthermore, the method for constructing the real-time design matrix in step 2 is: obtaining the change factor l t N sampling matrices of random form Then vertically stitch together to build a real-time design matrix
[0022] The sampling matrix is of random form It is a 2×k dimensional matrix, where one row is a factor combination Another behavioral factor combination Δ is the combination of two rows of factors The difference on .
[0023] Furthermore, each sampling matrix is randomly formed The acquisition process is:
[0024] Step A1, construct a (k+1)×k dimensional sampling matrix B consisting of 0 and 1, so that the j+1th row and the 1st row in the jth column differ by 1, and define the sampling matrix B as follows:
[0025]
[0026] Step A2: Convert the sampling matrix B into the i-th random form required for observation point t So that each factor j∈{1, 2, ..., k} can only take values at p discrete positions in its value range [-1, 1], that is, x j ∈{-1, -1+2 / (p-1), ..., 1}, the transformation formula is defined as follows:
[0027]
[0028] Among them, D * is a k-dimensional diagonal matrix whose diagonal elements are either 1 or -1; x * Each factor x in j The value range of J is {-1, -1+2 / (p-1), ..., 1-Δ}; k+1,k is a (k+1)×k dimensional matrix whose elements are all 1; P * is a k×k random permutation matrix, in which each row and column has only one element of 1 and the rest are 0;
[0029] Step A3, select The 0th row and the change factor l in t The corresponding rows form a new matrix, and the real-time sampling matrix random form is obtained The matrix is only in the lth t The columns differ by Δ.
[0030] Furthermore, the step 3 is specifically as follows: the real-time design matrix The values of each factor in the simulation are denormalized to the real range, and the factor combinations are input into the simulation model row by row to obtain the corresponding simulation output. Finally, the different pairs of factor combinations are calculated. and About the variable factor l t The base effect of The calculation formula is:
[0031]
[0032] in, and The random form of the sampling matrix is The 0th row and the variation factor row of The factor combinations and Simulation output;
[0033] The 0th row, in , differs from every other row by only one column, Δ.
[0034] Furthermore, the specific process of step 4 is as follows:
[0035] Step 4.1: Set the factor main effect threshold Δ ME and the interaction effect threshold Δ IE , set the main effect hypothesis test Interaction effect hypothesis test
[0036] Step 4.2, calculate the N original base effect samples obtained The sample mean of and the sample standard deviation The calculation formula is as follows:
[0037]
[0038]
[0039] Step 4.3: respectively convert the i≤N original base effect samples Convert to the sample required for the main effect hypothesis test according to the following conversion formula Samples required for hypothesis testing of interaction effects
[0040]
[0041]
[0042] Furthermore, in step 6, the calculation method of the test statistic obtained by performing statistics on each Bootstrap sample is:
[0043] Step 6.1: Calculate the Bootstrap Sample for Each Main Effect Hypothesis Test The sample mean of Compute bootstrap samples for each interaction effect hypothesis test The sample mean of and the sample standard deviation
[0044]
[0045]
[0046]
[0047] Where b∈{1,…,B} is used to distinguish different Bootstrap samples for main effect hypothesis tests and different Bootstrap samples for interaction effect hypothesis tests;
[0048] Step 6.2: Calculate the Bootstrap Sample for Each Main Effect Hypothesis Test The test statistic And calculate the bootstrap sample for each interaction effect hypothesis test The test statistic
[0049]
[0050]
[0051] In the formula, Δ IE is the interaction effect threshold of the factors.
[0052] Furthermore, the p-value calculation method for the main effect test and the interaction effect test is:
[0053] Step 7.1: Calculate the main effect statistics for the primordial effect sample and the interaction effect statistic
[0054]
[0055]
[0056] In the formula, and are the sample mean and sample standard deviation of the N original base effect samples respectively.
[0057] Step 7.2: Calculate the change factor l t p-value for the main effect hypothesis test and interaction effect hypothesis test p value
[0058]
[0059]
[0060] Bootstrap sample for the bth main effect hypothesis test The test statistic, Bootstrap sample for the bth interaction effect hypothesis test The test statistic of .
[0061] Furthermore, the step 8 is specifically as follows:
[0062] Step 8.1, generate a monotonically non-increasing non-negative sequence Make
[0063] Step 8.2: Determine the observation point in the first t-1 observation points where a significant main effect was most recently identified. If no significant main effects have been identified in the past, then Calculate the test level for the main effect layer at observation point t
[0064]
[0065] Step 8.3, determine the observation point among the first t-1 observation points that most recently identified a significant interaction effect If no significant interaction effects have been identified in the past, Then calculate the test level of the interaction effect layer at observation point t
[0066]
[0067] A device for online identification of factor effects based on hierarchical error control comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method for online identification of factor effects based on hierarchical error control described in any of the above technical solutions.
[0068] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention provides an online identification method for factor effects based on hierarchical error control. When the value range of a single factor of a dynamic simulation model is observed to change in real time, a base effect sample of a variable factor is obtained by constructing a real-time design matrix and inputting it into a simulation model, and the base effect sample is converted into a Bootstrap sample and compared with the original base effect sample. The p-value of the hypothesis test of the main effect and the interaction effect (nonlinear) effect is calculated, and the test level is assigned to the hypothesis test of the main effect and the interaction effect (nonlinear) effect based on the historical factor effect identification result, so as to control the overall error level while determining the importance of the main effect and the interaction (nonlinear) effect of the factor; the method simplifies the design matrix of the Morris base effect method to be suitable for the identification of a single variable factor effect, and can improve the actual economic efficiency from k / (k+1) to 1 / 2; compared with the Morris base effect method using the expression The method of the present invention uses the main effect of the factor and the interaction effect threshold Δ ME and Δ IE , which has more theoretical basis and explanatory power; for the hypothesis test of main effect and interaction effect, the present invention combines the non-parametric Bootstrap hypothesis test method, and can obtain unbiased results without assuming that the base effect sample obeys the established distribution; for the dependency relationship between the p-values of the main effect layer and the interaction effect layer, the present method adopts a hierarchical structure and combines the LORD1 method to control the error level of factor effect identification in the entire real-time process, which helps to meet the different preferences of different decision makers for the identification of main effect and interaction effect, and identify the important influencing factors of the simulation system in real time, so as to facilitate the government and enterprise departments to improve the key links in time to improve the system performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 It is a schematic diagram of the process of the method of the present invention;
[0070] Figure 2 A flowchart of automobile complaint-recall in an embodiment of the present invention;
[0071] Figure 3 This is a diagram of parameter changes observed in 2020 in an embodiment of the present invention;
[0072] Figure 4 It is a diagram of setting low and high levels of the variation factor in an embodiment of the present invention;
[0073] Figure 5 This is the result of identifying the important effects of the variable factors in the embodiment of the present invention. DETAILED DESCRIPTION
[0074] The following is a detailed description of an embodiment of the present invention. This embodiment is based on the technical solution of the present invention, and provides a detailed implementation method and a specific operation process to further explain the technical solution of the present invention.
[0075] For factors whose value range changes at any point in time, the method of the present invention identifies in real time the significant main effects and interaction (non-linear) effects (referred to as interaction effects in the present invention) of the changed factors. The present invention simplifies the experimental design matrix in the Morris basis effect method, obtains the base effect of the current changing factor by real-time sampling, and estimates the mean and standard deviation of the base effect sample; since the distribution of the base effect sample is unknown, a hypothesis test based on non-parametric Bootstrap is used to obtain the p-value of the hypothesis test of the main effect and interaction effect of the current changing factor; the p-values of the main effect and the interaction effect are divided into two independent layers for processing, and the corresponding significance levels are obtained based on the historical identification results of different effect layers, so as to judge whether the main effect and interaction effect of the current changing factor are significant. The present invention solves the problem of real-time hypothesis testing between the main effect and interaction effect hypotheses that arrive in real time and are not independent of each other by adopting a hierarchical structure to identify the importance of factor effects online and control the error of the judgment results.
[0076] The specific implementation of this patent will be further explained below in conjunction with the drawings and embodiments.
[0077] The embodiment of the present invention provides a method for online identification of factor effects based on hierarchical error control, and the specific steps of implementation are as follows: Figure 1 This embodiment constructs an online automobile recall simulation model, and the specific process from consumer complaints to recall / non-recall based on the model is as follows: Figure 2 As shown; This embodiment also uses the public data of Chinese automobile recalls from 2015 to 2019, initializes the 29 parameters in the model, and uses the 2020 Chinese automobile recall data as real-time input to observe the dynamic changes of the parameters, focusing on the real-time impact of the changing parameters on the system performance (the average process time of complaints in the system), where Figure 3 The changes in parameters of 10 observation points in 2020 are shown. The specific implementation includes the following steps:
[0078] Step 1: Initialize the parameters for main effect identification and interaction effect identification according to the FDR level η of the overall factor effect identification; specifically:
[0079] Step 1.1: Set the FDR level η for overall factor effect identification to 0.05 and assign the FDR level for main effect identification to and FDR level for identifying interaction effects They are 0.025 and 0.025 respectively;
[0080] Step 1.2: Identify the maximum test level at the initial observation point t = 1 for the main effect and defines the maximum increment of the test level when identifying main effects Maximum test level at initial observation point t = 1 for interaction effect identification and defines the maximum increment of the test level when identifying main effects
[0081] Step 2: For the k factors in the online data-driven simulation model, obtain the single factor whose value range changes at any observation point t in the model, and record it as the change factor l t , and then construct the real-time design matrix. Among them, the change factor l t ∈{1, 2,…, k}.
[0082] In a specific embodiment, when the parameter P with sequence number 1 is observed on January 23, 2020 UD The value of changes from 0.0285 to 0.03, marks the current time point as the observation point t = 1, and marks the change factor l1 = 1, obtains N = 200 random sampling matrices with factor l1 = 1 Vertical splicing to build a real-time design matrix where i∈{1, 2, …, 200};
[0083] The sampling matrix is of random form It is a 2×29 dimensional matrix, one of which is a factor combination. Another behavioral factor combination Δ is the combination of two factors The difference on .
[0084] Furthermore, the random form of N sampling matrices with a variation factor l1=1 The acquisition process is as follows and repeated N = 200 times:
[0085] Step A1, construct a (29+1)×29 dimensional sampling matrix B consisting of 0 and 1, so that the difference between the second row and the first row in the first column is 1, and the sampling matrix B is adopted as follows:
[0086]
[0087] Step A2: Convert the sampling matrix B into the i-th random form required for observation point t=1 The 29 factors can only take values at p = 4 discrete positions in their value range [-1, 1], and adopt Δ = 2 / 3, that is, {-1, -1 / 3, 1 / 3, 1}. The conversion formula is as follows:
[0088]
[0089] Among them, D * is a k = 29-dimensional diagonal matrix whose diagonal elements are either 1 or -1; x * Factor combination Make each factor take values only in {-1, -1 / 3, 1 / 3}; J 29+1,29 is a (29+1)×29 dimensional matrix whose elements are all 1; P * It is a 29×29 random permutation matrix, in which each row and each column has only one element of 1, and the rest of the elements are 0;
[0090] Step A3: To calculate the base effect of the variation factor l1=1, select each The initial input row (i.e. row 0) and the row corresponding to factor l1=1 form a new matrix, and the real-time sampling matrix random form is obtained. The matrix differs by Δ only in the l1=1 column; the initial input row is , and each row in the sparse matrix differs from the other rows by only one column.
[0091] Step 3: Input the real-time design matrix into the simulation model to obtain simulation output and calculate the base effect of the variation factor.
[0092] It is defined that the change of each factor from a low level to a high level will not reduce the expectation of the simulation output. At the observation point t=1, all factors take the current level as the low level, and increase (or decrease) the low level by 0.1 as the high level to keep the average process time monotonically unchanged.
[0093] First, the real-time design matrix The values of each factor in the simulation are denormalized to the real range of low and high levels, and then the factor combinations are input into the simulation model row by row to obtain the corresponding simulation output. The value of each factor combination is calculated. and Regarding the base effect of the variable factor l1, define the i-th base effect The calculation formula is:
[0094]
[0095] in, and Corresponding to the random form of the sampling matrix The initial input rows and factor rows of , The factor combinations and Simulation output; finally get the original base effect sample
[0096] Figure 4 Shows the change factor l for 10 observation pointst For example, when the change factor l1=1 decreases from the current level 0.03 (low level) to 0.027 (high level), the average process time does not decrease monotonically.
[0097] The value of each factor x j The formula for denormalization of (j∈{1,…,29}) is as follows:
[0098]
[0099] Step 4: Based on the original base effect samples of the variable factors, convert and obtain new base effect samples for the main effect hypothesis test and new base effect samples for the interaction effect test. The specific process is as follows:
[0100] Step 4.1: Set the factor main effect threshold Δ ME = 0.05 and the interaction effect threshold Δ IE =0.05, setting the main effect hypothesis test Interaction effect hypothesis test
[0101] Step 4.2, calculate the sample mean of all N = 200 original base effect samples and the sample standard deviation The calculation formula is as follows:
[0102]
[0103]
[0104] Step 4.3: respectively assign the i≤200th original base effect samples Convert to the sample required for the main effect hypothesis test Samples required for hypothesis testing of interaction effects The conversion formula is as follows:
[0105]
[0106]
[0107] Step 5: New samples from the base effect of the main effect hypothesis test Bootstrap samples for main effect hypothesis test were obtained by independent sampling with replacement N = 200 times And the new sample of base effect from the interaction effect test Bootstrap samples for interaction effect hypothesis test were obtained by independent sampling with replacement N = 200 times
[0108] This step needs to be repeated B = 1000 times to obtain B = 1000 Bootstrap samples for main effect hypothesis tests. Bootstrap samples for hypothesis testing of interaction effects
[0109] Step 6: Bootstrap samples for each main effect hypothesis test Bootstrap samples for each interaction hypothesis test Perform statistics separately to obtain the corresponding test statistics and Then, the two effect hypothesis tests respectively obtain B Bootstrap statistics and Where b∈{1,…,B}.
[0110] Furthermore, the test statistic and statistics The specific calculation process is as follows:
[0111] Step 6.1: Calculate the Bootstrap Sample for Each Main Effect Hypothesis Test The sample mean of Compute bootstrap samples for each interaction effect hypothesis test The sample mean of and the sample standard deviation
[0112]
[0113]
[0114]
[0115] Where b∈{1,…,B} is used to distinguish different Bootstrap samples for main effect hypothesis tests and different Bootstrap samples for interaction effect hypothesis tests;
[0116] Step 6.2: Calculate the Bootstrap Sample for Each Main Effect Hypothesis Test The test statistic And calculate the bootstrap sample for each interaction effect hypothesis test The test statistic
[0117]
[0118]
[0119] Step 7: Calculate the p-value of the main effect test by comparing the bootstrap sample statistic of the main effect hypothesis test with the main effect statistic of the primordial effect sample. And calculate the p-value of the interaction effect test by comparing the bootstrap sample statistic of the interaction effect hypothesis test with the primordial effect sample interaction effect statistic The calculation process is as follows:
[0120] Step 7.1: Calculate the main effect statistics for the primordial effect sample and the interaction effect statistic
[0121]
[0122]
[0123] Step 7.2: Calculate the p-value for the main effect hypothesis test with the variation factor l1 = 1 and interaction effect hypothesis test p value
[0124]
[0125]
[0126] Step 8: Determine the cutoff observation point t = 1, the observation point at which the most recent important main effect was identified. Observation points with significant interaction effects Use the LORD1 rule to obtain the test level of the main effect layer at observation point t=1 and the test level of the interaction effect layer The specific process is as follows:
[0127] Step 8.1, generate a monotonically non-increasing non-negative sequence Make In this embodiment
[0128] Step 8.2: Because the cutoff observation point t = 1, no significant main effect has been identified, that is, the most recent historical observation point at which an important main effect was identified is Calculate the test level of the main effect layer at observation point t=1
[0129]
[0130] Step 8.3: Because the cutoff observation point t = 1, no significant interaction effect has been identified, that is, the most recent historical observation point for identifying an important interaction effect is Calculate the test level of the interaction effect hypothesis at observation point t=1 The formula is
[0131]
[0132] Step 9: Determine the p-value of the main effect layer Is it greater than the inspection level of this layer? If so, determine the change factor l t There is no important main effect, otherwise the change factor l t There are important main effects; and the p-value for judging the interaction effect layer Is it greater than the inspection level of this layer? If so, determine the change factor l t There is no important interaction effect, otherwise the change factor l t There is an important interaction effect; complete the observation point t on the change factor l t identification.
[0133] Specifically, in the present embodiment, at observation point t=1, Determine the change factor P UD There is no significant main effect; Determine the change factor P UD There is an important interaction effect.
[0134] In this example, a total of 10 change factors are observed in 2020. t is the serial number of the change factor. Repeating the above steps can complete the identification of the single change factor effect of the observation point t.
[0135] It is worth noting that when the distance from observation point t to the most recent historical observation point that identified important main / interactive or The above steps 8.2 and 8.3 need to be calculated based on the historical observation points and the maximum increment of the inspection level. For example, the process of obtaining the inspection level at observation point 2 is as follows:
[0136] Step 8.2: Because the cutoff observation point t = 2, no significant main effect has been identified, that is, the most recent historical observation point at which an important main effect was identified is Calculate the test level of the main effect hypothesis at observation point t=2 The formula is:
[0137]
[0138] Step 8.3, because observation point t = 1 identified an important interaction effect, that is, the most recent observation point where an important interaction effect was identified Calculate the test level of the interaction effect hypothesis at observation point t=2 The formula is
[0139]
[0140] Figure 5 The results of identifying important main / interaction effects of 10 variable factors are shown. Figure 5 It can be seen that the method of the present invention takes into account the mean and standard deviation indicators of the Morris basis effect method, and generates p-values for the main effect and interaction effect hypothesis tests without any parameters. The dynamic allocation of the test level has a certain flexibility, which can accurately identify the important effects of the variable factors, and can facilitate the management department to adjust the key links of the corresponding real system in a timely manner.
[0141] The present invention breaks through the traditional offline factor effect identification method. For the single factor change situation in the online data-driven simulation model, taking into account the unknown characteristics of the base effect sample distribution, the non-parametric Bootstrap hypothesis test method can obtain unbiased results. The hierarchical structure is adopted and combined with the LORD1 method to control the error level of factor effect identification in the entire real-time process, and the important influencing factors of the simulation system are identified in real time and effectively, and the bottleneck link of the real system is found, which is of great significance to the improvement of supply lines, workshops and other systems.
[0142] It should be noted that the values of the various parameters in the above embodiments do not constitute limitations on the protection scope of the present invention, and the values of the various parameters can be set and adjusted according to actual needs.
[0143] The hierarchical structure adopted in the present invention controls the stratified Online-FDR to be lower than the set level, so that the overall Online-FDR is always controlled below η, and will not be affected by the dependence of the p value between the main effect layer and the interaction effect layer. The theoretical basis is the following theorem.
[0144] Theorem: When the Online-FDR of the main effect layer and the interaction effect layer are controlled at and Within and meet The observation point The overall Online-FDR of the hypothesis test satisfies
[0145]
[0146] Proof: At observation point t, if the stratified Online-FDR is controlled at and Within, we can get:
[0147]
[0148] in and are the number of significant main effects and interaction effects identified at the cutoff observation point t, and and are the number of incorrectly identified important main effects and interaction effects. Therefore, for the first 2t factor effect tests, the overall Online-FDR is
[0149]
[0150] The first inequality depends on and The second inequality follows from the premise. Therefore, when When , FDR(t)≤η.
Claims
1. A method for online identification of factor effects based on hierarchical error control, characterized in that: include: Step 1: Initialize the parameters for main effect identification and interaction effect identification according to the FDR level η of the overall factor effect identification; Step 2: For the k factors in the online data-driven simulation model, obtain the single factor whose value range changes at any observation point t in the model, and record it as the change factor l t , and then construct a real-time design matrix; among them, the change factor l t ∈{1, 2, …, k}; Step 3, input the real-time design matrix into the simulation model to obtain simulation output and calculate the base effect of the variable factor; Step 4: Based on the original base effect samples of the variable factors, convert and obtain new base effect samples for the main effect hypothesis test and new base effect samples for the interaction effect test: Step 5: independently sample N times with replacement from the new base effect samples of the main effect hypothesis test to obtain the bootstrap samples of the main effect hypothesis test, and independently sample N times with replacement from the new base effect samples of the interaction effect test to obtain the bootstrap samples of the interaction effect hypothesis test; This step 5 is repeated B times to obtain B bootstrap samples for main effect hypothesis tests and B bootstrap samples for interaction effect hypothesis tests respectively; Step 6: Count the Bootstrap samples of each main effect hypothesis test and each interactive effect hypothesis test respectively to obtain the corresponding test statistics; Step 7: Calculate the p-value of the main effect test by comparing the bootstrap sample statistic of the main effect hypothesis test with the main effect statistic of the primordial effect sample. And calculate the p-value of the interaction effect test by comparing the bootstrap sample statistic of the interaction effect hypothesis test with the primordial effect sample interaction effect statistic Step 8: Determine the observation point at which the most important main effect was identified Observation points with significant interaction effects Use the LORD1 rule to obtain the test level of the main effect layer of observation point t and the test level of the interaction effect layer Step 9: Determine the p-value of the main effect layer Is it greater than the inspection level of this layer? If so, determine the change factor l t There is no important main effect, otherwise the change factor l t There are important main effects; and the p-value for judging the interaction effect layer Is it greater than the inspection level of this layer? If so, determine the change factor l t There is no important interaction effect, otherwise the change factor l t Has important interaction effects; completes any observation point t on the change factor l t identification.
2. The method according to claim 1, characterized in that The parameters for main effect identification and interaction effect identification are initialized as follows: Step 1.1: Assign the FDR level for main effect identification based on the FDR level η for overall factor effect identification The FDR level for identifying interaction effects and meet Step 1.2: Identify the maximum test level at the initial observation point t = 1 for the main effect and defines the maximum increment of the test level when identifying main effects Maximum test level at initial observation point t = 1 for interaction effect identification and defines the maximum increment of the test level when identifying interaction effects 3. The method according to claim 1, characterized in that: The method for constructing the real-time design matrix in step 2 is: obtain the change factor l t N sampling matrices of random form Then vertically stitch together to build a real-time design matrix The sampling matrix is of random form It is a 2×k dimensional matrix, where one row is a factor combination Another behavioral factor combination Δ is the combination of two rows of factors The difference on .
4. The method according to claim 3, characterized in that Each sampling matrix is randomized in the form The acquisition process is: Step A1, construct a (k+1)×k dimensional sampling matrix B consisting of 0 and 1, so that the j+1th row and the 1st row in the jth column differ by 1, and define the sampling matrix B as follows: Step A2: Convert the sampling matrix B into the i-th random form required for observation point t So that each factor j∈{1, 2, ..., k} can only take values at p discrete positions in its value range [-1, 1], that is, x j ∈{-1, -1+2 / (p-1), ..., 1}, the transformation formula is defined as follows: Among them, D * is a k-dimensional diagonal matrix whose diagonal elements are either 1 or -1; x * Each factor x in j The value range of J is {-1, -1+2 / (p-1), ..., 1-Δ}; k+1,k is a (k+1)×k dimensional matrix whose elements are all 1; P * is a k×k random permutation matrix, in which each row and column has only one element of 1 and the rest are 0; Step A3, select The 0th row and the change factor l in t The corresponding rows form a new matrix, and the real-time sampling matrix random form is obtained The matrix is only in the lth t The columns differ by Δ.
5. The method according to claim 1, characterized in that The step 3 is specifically as follows: The values of each factor in the simulation are denormalized to the real range, and the factor combinations are input into the simulation model row by row to obtain the corresponding simulation output. Finally, the value of each pair of different factor combinations is calculated. and About the variable factor l t The base effect of The calculation formula is: in, and The random form of the sampling matrix is The 0th row and the variation factor row of The factor combinations and Simulation output; The 0th row, in , differs from every other row by only one column, Δ.
6. The method according to claim 1, characterized in that The specific process of step 4 is as follows: Step 4.1: Set the factor main effect threshold Δ ME and the interaction effect threshold Δ IE , set the main effect hypothesis test Interaction effect hypothesis test Step 4.2, calculate the N original base effect samples obtained The sample mean of and the sample standard deviation The calculation formula is as follows: Step 4.3: respectively convert the i≤N original base effect samples Convert to the sample required for the main effect hypothesis test according to the following conversion formula Samples required for hypothesis testing of interaction effects 7. The method according to claim 1, characterized in that Step 6: Calculate the test statistic by performing statistics on each Bootstrap sample: Step 6.1: Calculate the Bootstrap Sample for Each Main Effect Hypothesis Test The sample mean of Compute bootstrap samples for each interaction effect hypothesis test The sample mean of and the sample standard deviation Where b∈{1,…,B} is used to distinguish different Bootstrap samples for main effect hypothesis tests and different Bootstrap samples for interaction effect hypothesis tests; Step 6.2: Calculate the Bootstrap Sample for Each Main Effect Hypothesis Test The test statistic And calculate the bootstrap sample for each interaction effect hypothesis test The test statistic In the formula, Δ IE is the interaction effect threshold of the factors.
8. The method according to claim 1, characterized in that The p-value calculation method for the main effect test and the interaction effect test is: Step 7.1: Calculate the main effect statistics for the primordial effect sample and the interaction effect statistic In the formula, and are the sample mean and sample standard deviation of the N original base effect samples; Step 7.2: Calculate the change factor l t p-value for the main effect hypothesis test and interaction effect hypothesis test p value Bootstrap sample for the bth main effect hypothesis test The test statistic, Bootstrap sample for the bth interaction effect hypothesis test The test statistic of .
9. The method according to claim 1, characterized in that: The step 8 is specifically as follows: Step 8.1, generate a monotonically non-increasing non-negative sequence Make Step 8.2: Determine the observation point in the first t-1 observation points where a significant main effect was most recently identified. If no significant main effects have been identified in the past, then Calculate the test level for the main effect layer at observation point t Step 8.3, determine the observation point among the previous t-1 observation points that most recently identified a significant interaction effect If no significant interaction effects have been identified in the past, Then calculate the test level of the interaction effect layer at observation point t 。 10. An online factor effect identification device based on hierarchical error control, comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that: When the computer program is executed by the processor, the processor is caused to implement the method according to any one of claims 1 to 9.
