Method and device for generating virtual control group and analysis system
By attributing the characteristics of the first region sample in the A/B experiment of the supply chain industry and optimizing the synthetic gap of the second region sample, a more reliable virtual control group is generated, which solves the problem of virtual control in the supply chain A/B experiment. The problem of unreliable control groups improves the accuracy of experimental results and corporate decisions.
Patent Information
- Application Number
- CN202310609412.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-26
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-05-26
AI Technical Summary
Due to geographical attributes, A/B experiments in the supply chain industry cause samples to be non-independent and identically distributed and cannot be randomly grouped, making the virtual control group unreliable and affecting the accuracy of experimental results and corporate decision-making.
Through attribution analysis of sample characteristics in the first region, important feature information is determined, and the sample synthesis experimental group in the second region is used to determine the characteristic information related to the synthetic impact and optimize the feature importance based on the optimization solution method of the synthesis gap. coefficient to generate a more reliable virtual control group.
It improves the accuracy of A/B experiment results and corporate decision-making, provides a reliable virtual control group, and solves the problem of unreliable virtual control groups.
Smart Images

Figure CN116340891B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data analysis, in particular to supply chain fields such as inventory or transportation, and more particularly to a method and device for generating a virtual control group and an analysis system. Background Art
[0002] A / B test is generally used to test the difference in users' reactions to the two versions A and B of the same element of a product (other elements are the same), so that the company can make choices about the element. In A / B experiment, the product using the improved solution is called the experimental group, and the product using the original solution is called the control group. By comparing the value indicator data of the experimental group and the control group, it can be determined whether the improved solution used by the experimental group meets expectations, so that the company can decide whether to adopt the improved solution.
[0003] Different from Internet A / B experiments, supply chain industry A / B experiments are aimed at offline entities, such as regions, warehouses, routes, packages, etc. In addition to network attributes, offline supply chain entities also have regional attributes, which leads to non-independent and identically distributed samples and incomparability between samples in different regions. As a result, offline supply chain A / B experiments cannot be randomly grouped like Internet A / B experiments, and it is impossible to find a suitable control group.
[0004] Some related technologies perform linear combination of potential control groups to construct a virtual control group. However, related technologies lack reliability testing of the virtual control group. If the virtual control group is unreliable, it will directly affect the accuracy of the A / B experiment results, and further affect the accuracy of corporate decision-making. Summary of the invention
[0005] The disclosed embodiment performs attribution analysis on the characteristics of each sample in the first region based on the characteristics of each sample before / after the experiment in the first region, so as to determine important characteristic information (i.e., first sample characteristic group information) that has a greater impact on the experiment; uses samples from the second region to synthesize the samples after the experiment in the first region in the experimental group, and determines important characteristic information (i.e., second sample characteristic group information) that has a greater impact on the synthesis based on an optimization solution method for the synthesis gap; then, uses the important characteristic information determined by the attribution analysis to optimize the important characteristic information used in the synthesis control, and determines a target synthesis coefficient based on the optimized second sample characteristic group information; based on the target synthesis coefficient, uses samples from different regions from the experimental group to synthesize virtual samples (i.e., virtual control group) of the region to which the experimental group belongs, so as to generate a more reliable virtual control group for the experimental group, thereby solving the problem that the accuracy of the A / B experimental results and the accuracy of corporate decision-making are affected by the unreliability of the virtual control group.
[0006] Some embodiments of the present disclosure propose a method for generating a virtual control group, including: performing attribution analysis on each sample feature in the first region according to each sample feature before and after an experiment in the first region, so as to determine first sample feature group information related to the experimental impact; synthesizing the samples after the first region experiment in the experimental group using samples from the second region, and determining second sample feature group information related to the synthetic impact based on an optimization solution method for the synthetic gap; updating the second sample feature group information according to the first sample feature group information; determining a target synthesis coefficient according to the updated second sample feature group information; and synthesizing virtual samples of the first region according to the target synthesis coefficient using samples from the second region to form a virtual control group corresponding to the experimental group.
[0007] In some embodiments, determining the first sample feature group information related to the experimental impact includes: inputting a sample feature time series of a preset length before any first time point before the first regional experiment into a feature prediction model to predict the sample feature prediction value at the first time point before the first regional experiment; determining the degree to which the corresponding sample feature is affected by the experiment based on the difference between the sample feature prediction value at the first time point before the first regional experiment and the sample feature actual value at the first time point after the first regional experiment; and determining the first sample feature group information related to the experimental impact based on the degree to which each sample feature is affected by the experiment.
[0008] In some embodiments, it also includes: inputting a sample feature time series of a preset length before any second time point before the first regional experiment into a machine learning model, and outputting a predicted value of the sample feature at the second time point before the first regional experiment; determining the loss based on the difference between the predicted value of the sample feature at the second time point before the first regional experiment and the actual value of the sample feature; iteratively updating the parameters of the machine learning model based on the loss, and determining the trained machine learning model as a feature prediction model.
[0009] In some embodiments, determining the first sample feature group information related to the experimental impact based on the degree to which each sample feature is affected by the experiment includes: determining the first sample feature group information related to the experimental impact based on ranking information of the degree to which each sample feature is affected by the experiment and / or whether it is greater than an experimental impact threshold.
[0010] In some embodiments, determining the second sample feature group information related to the synthetic influence includes: constructing an optimization function for the synthetic gap based on the sample feature characterization after the first region experiment, the sample feature characterization of the second region, the synthetic coefficient characterization, and the feature importance coefficient characterization; determining a set of pending feature importance coefficients based on the optimization function for the synthetic gap; and determining the second sample feature group information related to the synthetic influence based on the pending feature importance coefficients.
[0011] In some embodiments, determining a set of pending feature importance coefficients includes: optimizing the optimization function of the synthesis gap based on each given set of feature importance coefficients according to the sample characteristics after the first region experiment and the sample characteristics of the second region, to obtain a set of candidate synthesis coefficients; determining the synthesis value using the value index data of the samples in the second region according to each set of candidate synthesis coefficients; selecting a target candidate synthesis coefficient from each set of candidate synthesis coefficients according to the value difference between the corresponding synthesis value of each set of candidate synthesis coefficients and the value index data of the corresponding samples after the first region experiment; optimizing the optimization function of the synthesis gap based on the target candidate synthesis coefficient according to the sample characteristics after the first region experiment and the sample characteristics of the second region, to obtain a set of pending feature importance coefficients.
[0012] In some embodiments, determining the second sample feature group information related to the synthetic influence based on the feature importance coefficient to be determined includes: determining the second sample feature group information related to the synthetic influence based on the ranking information of the feature importance coefficient to be determined and / or whether it is greater than the feature importance threshold.
[0013] In some embodiments, updating the second sample feature group information according to the first sample feature group information includes: when the first sample feature group information includes the first sample feature and the second sample feature group information does not include the first sample feature, increasing the feature importance coefficient of the first sample feature, reordering the first sample feature and each sample feature in the second sample feature group information based on the feature importance coefficient, and updating the second sample feature group information based on the reordering result.
[0014] In some embodiments, increasing the feature importance coefficient of the first sample feature includes: setting the feature importance coefficient of the first sample feature to the inverse of the variance of the first sample feature.
[0015] In some embodiments, updating the second sample feature group information based on the first sample feature group information includes: when the ranking of the second sample feature in the first sample feature group information is inconsistent with the ranking in the second sample feature group information, adjusting the feature importance coefficient of the second sample feature, reordering the second sample feature and each sample feature in the second sample feature group information based on the feature importance coefficient, and updating the second sample feature group information based on the reordering result.
[0016] In some embodiments, adjusting the feature importance coefficient of the second sample feature includes: if the ranking of the second sample feature in the second sample feature group information lags behind its ranking in the first sample feature group information, increasing the feature importance coefficient of the second sample feature; or, if the ranking of the second sample feature in the second sample feature group information is ahead of its ranking in the first sample feature group information, reducing the feature importance coefficient of the second sample feature.
[0017] In some embodiments, the updated second sample feature group information includes the sample features in the first sample feature group information; or, the updated second sample feature group information includes the sample features in the first sample feature group information, and the ranking of the sample features in the first sample feature group information is consistent with the ranking in the second sample feature group information.
[0018] In some embodiments, determining the target synthesis coefficient based on the updated second sample feature group information includes: optimizing the optimization function of the synthesis gap based on the sample characteristics after the first regional experiment, the sample characteristics of the second region, and the feature importance coefficients of each sample feature in the updated second sample feature group information to obtain a set of target synthesis coefficients, wherein the optimization function of the synthesis gap is constructed based on the sample feature characterization after the first regional experiment, the sample feature characterization of the second region, the synthesis coefficient characterization, and the feature importance coefficient characterization.
[0019] In some embodiments, constructing an optimization function for the synthetic gap includes: constructing a first product representation of a synthetic coefficient representation and a sample feature representation of a second region, constructing a difference representation of the sample feature representation after the first region experiment and the first product representation, constructing a second product representation of a feature importance coefficient representation and the difference representation, and constructing an optimization function for the synthetic gap based on the sample feature mean representation of the second product representation.
[0020] In some embodiments, it also includes: using a fixed effect regression model to calculate the correlation between the value index of the sample and each sample feature, and screening out sample features related to the value index based on the correlation, so as to perform attribution analysis and synthesis based on the screened sample features.
[0021] In some embodiments, the method further includes: segmenting each sample according to a seasonal cycle so as to perform attribution analysis and synthesis based on samples of the same segment.
[0022] In some embodiments, it also includes: performing a comparative analysis on the experimental group and the virtual control group to evaluate whether the improved solution used by the experimental group meets expectations.
[0023] In some embodiments, the sample is a sample with regional attributes.
[0024] In some embodiments, the samples are samples related to offline entities in the supply chain.
[0025] In some embodiments, the sample is a shipping or inventory related sample.
[0026] Some embodiments of the present disclosure provide a device for generating a virtual control group, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the method for generating a virtual control group of each embodiment based on instructions stored in the memory.
[0027] Some embodiments of the present disclosure propose a device for generating a virtual control group, comprising: an attribution analysis unit, configured to perform attribution analysis on each sample feature in the first region according to each sample feature before and after the experiment in the first region, so as to determine first sample feature group information related to the experimental impact; a synthesis control unit, configured to synthesize the samples after the first region experiment in the experimental group using samples from the second region, and determine second sample feature group information related to the synthetic impact based on an optimization solution method for the synthetic gap; a feature updating unit, configured to update the second sample feature group information according to the first sample feature group information; a synthesis coefficient determination unit, configured to determine a target synthesis coefficient according to the updated second sample feature group information; and a sample synthesis unit, configured to synthesize virtual samples in the first region according to the target synthesis coefficient using samples from the second region, so as to form a virtual control group corresponding to the experimental group.
[0028] Some embodiments of the present disclosure propose an analysis system, including: a virtual control group generation device, configured to execute the virtual control group generation method of each embodiment; an analysis device, configured to compare and analyze the experimental group and the virtual control group to evaluate whether the improvement plan used by the experimental group meets expectations.
[0029] Some embodiments of the present disclosure provide a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for generating a virtual control group of each embodiment. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The following is a brief introduction to the drawings required for use in the embodiments or related technical descriptions. The present disclosure can be more clearly understood according to the following detailed description with reference to the drawings.
[0031] Obviously, the drawings described below are only some embodiments of the present disclosure, and a person skilled in the art can obtain other drawings based on these drawings without creative work.
[0032] Figure 1 A schematic flow chart showing a method for generating a virtual control group according to some embodiments of the present disclosure.
[0033] Figure 2 A schematic diagram showing a process of determining first sample feature group information in some embodiments of the present disclosure.
[0034] Figure 3A schematic diagram showing a process of determining second sample feature group information in some embodiments of the present disclosure.
[0035] Figure 4 A schematic diagram showing a flow chart of the analysis method according to some embodiments of the present disclosure.
[0036] Figure 5 A schematic diagram showing an analysis system according to some embodiments of the present disclosure.
[0037] Figure 6 A schematic diagram showing a device for generating a virtual control group according to some embodiments of the present disclosure.
[0038] Figure 7 A schematic diagram showing a device for generating a virtual control group according to some embodiments of the present disclosure. DETAILED DESCRIPTION
[0039] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure.
[0040] Unless otherwise specified, descriptions such as “first” and “second” in the present disclosure are used to distinguish different objects and are not used to indicate meanings such as size or time sequence.
[0041] Figure 1 A schematic flow chart showing a method for generating a virtual control group according to some embodiments of the present disclosure.
[0042] like Figure 1 As shown, the method for generating a virtual control group in this embodiment includes steps 110-150, and may further include step 100 as needed.
[0043] In step 100, samples and features used for attribution analysis and synthesis are preprocessed. According to the needs, the samples are preprocessed, or the features are preprocessed, or both the samples and the features are preprocessed, or neither the samples nor the features are preprocessed, which will be described in detail later.
[0044] In some embodiments, feature preprocessing includes, for example: using a fixed effects regression model to calculate the correlation between the value index of the sample and each sample feature, and screening out sample features related to the value index based on the correlation, so as to perform attribution analysis and synthesis based on the screened sample features, thereby reducing the complexity of the attribution analysis and synthesis.
[0045] For example, the time series of the value index of the sample and the time series of each sample feature of the sample are input into the fixed effect regression model, and the fixed effect regression model can output the correlation information between the value index and the sample feature, and then select the sample feature with greater correlation from the numerous sample features as the sample feature related to the value index. Among them, greater correlation can be, for example: the correlation ranking is greater than the ranking threshold, or the correlation information is greater than the correlation threshold, etc. Among them, the value index data and sample feature data at different time points constitute the time series of the value index and the time series of the sample features of a sample. The time series of the value index and the time series of the sample features of each sample can be obtained by collecting historical data.
[0046] The fixed effect regression model assumes that each sample has its own unique differences (or fixed effects). Therefore, when the value index is regressed on the characteristics of each sample based on the fixed effect regression model, an additional fixed effect value is added to each sample for regression. When the individual differences of the samples are relatively large, for example, samples from different regions, the fixed effect regression model can be selected for regression.
[0047] In practice, the number of sample features is often very large. Through the above-mentioned feature preprocessing, sample features with a relatively large correlation with value indicators can be screened out for subsequent attribution analysis and synthesis processing, thereby reducing the complexity of attribution analysis and synthesis processing.
[0048] Those skilled in the art will appreciate that if the number of original sample features is not too large, or if the processing capability of a computer can accept a huge number of sample features, it is also possible to choose not to perform the above-mentioned feature screening process.
[0049] The value indicators of samples and related sample characteristics are related to specific application scenarios. Each application scenario can correspond to its own value indicators and related sample characteristics. For example, the "fulfillment rate" value indicator may be related to sample characteristics such as transaction costs of goods and order default penalties. For another example, the "income" value indicator may be related to sample characteristics such as order volume, discounts, goods prices, and costs. For another example, the warehouse picking efficiency value indicator may be related to sample characteristics such as the number of picking equipment, picking paths, and order types (such as single item, single item, multiple items, multiple items, and multiple items).
[0050] In some embodiments, sample preprocessing includes, for example: segmenting each sample according to a seasonal cycle so as to perform attribution analysis and synthesis based on samples of the same segment, thereby avoiding uncertainty factors caused by seasonal effects.
[0051] For various time series of samples, the additive model of seasonal_decompose decomposition method is used to obtain the seasonality of the series. According to the total length of the series and the seasonal cycle, the total length of the series is divided by the seasonal cycle to get the number of segments.
[0052] By using the above sample preprocessing method, the time series of samples before / after the experiment in the same region (such as the time series of value indicators and the time series of sample characteristics) can be seasonally segmented, and the time series of samples in different regions (such as the time series of value indicators and the time series of sample characteristics) can also be seasonally segmented.
[0053] Those skilled in the art will appreciate that it is possible to choose whether to perform seasonal segmentation processing of the above samples based on whether the value indicator is affected by the season. For example, in a business scenario where the value indicator is the annual income of a person that is basically not affected by the season, it is possible to choose not to perform seasonal segmentation processing of the above samples. For another example, some quarters have large-scale promotional activities, while some quarters do not. The quarterly sales volume value indicator is a business scenario affected by the season, so it is possible to choose to perform seasonal segmentation processing of the above samples to avoid the uncertainty factors caused by seasonal influences.
[0054] In step 110, based on the characteristics of each sample before and after the experiment in the first region, attribution analysis is performed on each sample characteristic in the first region to determine first sample characteristic group information related to the impact of the experiment, thereby determining important characteristic information that has a greater impact on the experiment.
[0055] In some embodiments, Figure 2 As shown, step 110 includes steps 111-114.
[0056] In step 111, a feature prediction model is obtained. Each sample feature corresponds to a feature prediction model. If there are multiple sample features, there are multiple feature prediction models. The following takes one of the sample features as an example to illustrate the method for obtaining the feature prediction model of the sample feature. The method for obtaining the feature prediction models corresponding to other sample features is the same as the method for obtaining the feature prediction model of the sample feature. Those skilled in the art can perform simple adaptive processing and refer to the method for obtaining the feature prediction model of the sample feature to obtain the feature prediction models corresponding to other sample features.
[0057] In some embodiments, the feature prediction model can be obtained through a model training method.
[0058] First, obtain the training data of a certain sample feature. The sample feature time series is constructed by collecting the sample feature data at various time points before the first regional experiment. The sample feature time series is segmented according to the preset window length, and each segment can be used as a training sample. Assuming the window length is 13, the first 12 sample features in the window are used as data features for training, and the 13th sample feature in the window is used as a data label for training.
[0059] Then, a machine learning model is trained based on the training data of a certain sample feature to obtain a feature prediction model of the sample feature. The machine learning model includes, but is not limited to, an XGBoost (eXtreme Gradient Boosting) model, a GBDT (Gradient Boosting Decision Tree) model, a LightGBM (Light Gradient Boosting Machine) model, etc.
[0060] Specifically, a sample feature time series of a preset length before any second time point before the first regional experiment is input into the machine learning model, and a sample feature prediction value at the second time point before the first regional experiment is output. For example, the first 12 sample features of a training sample before the first regional experiment are input into the machine learning model, and a sample feature prediction value at the 13th position is output; then, the loss is determined based on the difference between the sample feature prediction value at the second time point before the first regional experiment and the actual value of the sample feature, for example, the loss is determined based on the difference between the sample feature prediction value at the 13th position of each training sample before the first regional experiment and the actual value of the sample feature at the 13th position; then, the parameters of the machine learning model are iteratively updated based on the loss, and finally the trained machine learning model is determined as the feature prediction model. The feature prediction model can predict the sample feature data at the target time point based on the sample feature data for a period of time before the target time point.
[0061] In step 112, a sample feature time series of a preset length before any first time point before the first regional experiment is input into the feature prediction model to predict the sample feature prediction value at the first time point before the first regional experiment. The preset length of the sample feature time series input into the feature prediction model involved in the prediction stage and the training stage should be consistent.
[0062] In step 113, the degree to which the corresponding sample feature is affected by the experiment is determined according to the difference between the predicted value of the sample feature at the first time point before the first regional experiment and the actual value of the sample feature at the first time point after the first regional experiment.
[0063] If there are multiple such first time points, a difference can be calculated for each first time point, and the average of the differences of the multiple first time points is determined as the degree to which the corresponding sample feature is affected by the experiment. The larger the average of the differences, the greater the degree to which the corresponding sample feature is affected by the experiment.
[0064] In step 114, first sample feature group information related to the impact of the experiment is determined according to the degree to which each sample feature is affected by the experiment.
[0065] In some embodiments, first sample feature group information related to the experimental impact is determined based on the ranking information of the degree of impact of each sample feature on the experiment and / or whether it is greater than the experimental impact threshold. The first sample feature group information includes the determined sample features, and may also include information such as the ranking of these sample features, the degree of impact of the experiment, etc.
[0066] For example, the sample features and their rankings of the top 5 affected by the experiment are taken as the first sample feature group information. For another example, the sample features and their rankings of the experiment affected by a degree greater than 30% of the experiment impact threshold are taken as the first sample feature group information. For another example, the sample features and their rankings of the top 5 affected by the experiment and greater than 30% of the experiment impact threshold are taken as the first sample feature group information. However, the present invention is not limited to the examples given.
[0067] Using machine learning models for feature prediction can improve the accuracy of feature prediction, thereby improving the accuracy of important feature information determined by attribution analysis.
[0068] In step 120, samples after the first region experiment in the second region sample synthesis experiment group are used, and based on the optimization solution method for synthesis gap, second sample feature group information related to synthesis influence is determined, thereby determining important feature information with greater synthesis influence.
[0069] The second region is one or more regions different from the first region. The scope of the region can be set according to business needs, for example, a region can be a province, a city, or other areas.
[0070] In some embodiments, Figure 3 As shown, step 120 includes: steps 121-126.
[0071] In step 121, an optimization function of the synthesis gap is constructed based on the sample feature representation after the first region experiment, the sample feature representation of the second region, the synthesis coefficient representation, and the feature importance coefficient representation.
[0072] Specifically, constructing the optimization function of the synthetic gap includes the following steps.
[0073] First, a first product representation of the synthesis coefficient representation and the sample feature representation of the second region is constructed. For example, the synthesis coefficient representation of the i-th sample in the second region is multiplied by the h-th feature representation of the i-th sample in the second region to obtain a first product representation, wherein the sum of the synthesis coefficient representations of each sample can be constrained to be 1.
[0074] Next, a difference representation is constructed between the sample feature representation after the first regional experiment and the first product representation. For example, the h-th feature representation of the sample to be synthesized after the first regional experiment minus the first product representation. The resulting initial difference representation or the square of the initial difference representation can be used as the difference representation between the two.
[0075] Next, a second product representation of the feature importance coefficient representation and the difference representation is constructed. For example, the feature importance coefficient representation corresponding to the h-th sample feature is multiplied by the aforementioned difference representation to obtain the second product representation.
[0076] Next, an optimization function of the composite gap is constructed based on the sample feature mean representation of the second product representation. For example, on each sample feature, the corresponding second product representations are summed and represented, and the summed representation is squared to obtain the optimization function of the composite gap. The optimization function of the composite gap is a function with the composite coefficient representation and the feature importance coefficient representation as variables.
[0077] Then, according to the optimization function of the synthetic gap, a set of pending feature importance coefficients is determined, for example, see steps 122-125.
[0078] In step 122, according to the sample features after the experiment in the first region and the sample features in the second region, based on the given importance coefficients of each group of features, the optimization function of the synthesis gap is optimized to obtain a group of candidate synthesis coefficients.
[0079] As mentioned above, the optimization function of the composite gap is a function with composite coefficient representation and feature importance coefficient representation as variables. If a set of feature importance coefficients is given, the only variable of the optimization function is the composite coefficient representation. Then, by combining the input sample characteristics after the first region experiment and the sample characteristics of the second region, the optimization function can be optimized based on the composite coefficient representation, and a set of composite coefficients that minimizes the function value of the optimization function is used as a set of candidate composite coefficients. Obviously, if multiple sets of feature importance coefficients are given, multiple corresponding sets of candidate composite coefficients can be obtained.
[0080] In step 123, the synthesis value is determined according to each set of candidate synthesis coefficients using the value indicator data of the samples in the second region.
[0081] For a set of candidate synthesis coefficients, the product of the synthesis coefficient of the i-th sample in the second region and the value index data of the i-th sample in the second region is calculated, and the products of each sample in the second region are summed up. The sum obtained is the synthesis value, which is used to characterize the value index fitting data of the sample to be synthesized after the experiment in the first region.
[0082] In step 124, a target candidate synthesis coefficient is selected from each group of candidate synthesis coefficients according to the value difference between the synthesis value corresponding to each group of candidate synthesis coefficients and the value index data of the corresponding sample after the first regional experiment.
[0083] For a set of candidate synthesis coefficients, the corresponding synthesis value (i.e., the value index fitting data of the sample to be synthesized) is subtracted from the value index real data of the sample to be synthesized after the first regional experiment to obtain a value difference between the two. If there are multiple sets of candidate synthesis coefficients, multiple value differences are obtained accordingly. The candidate synthesis coefficient that minimizes the value difference is taken as the target candidate synthesis coefficient.
[0084] In step 125, according to the sample features after the experiment in the first region and the sample features in the second region, based on the target candidate synthesis coefficient, the optimization function of the synthesis gap is optimized to obtain a set of pending feature importance coefficients.
[0085] As mentioned above, the optimization function of the composite gap is a function with the composite coefficient representation and the feature importance coefficient representation as variables. If the target candidate composite coefficient is given, the variable of the optimization function is only the feature importance coefficient representation. Then, combining the sample characteristics after the input experiment in the first region and the sample characteristics in the second region, the optimization function can be optimized based on the feature importance coefficient representation. A set of feature importance coefficients that minimize the function value of the optimization function is used as a set of pending feature importance coefficients.
[0086] In step 126, second sample feature group information related to the synthetic impact is determined according to the feature importance coefficient to be determined.
[0087] In some embodiments, second sample feature group information related to the synthetic impact is determined based on the ranking information of the feature importance coefficient to be determined and / or whether it is greater than the feature importance threshold. The second sample feature group information includes the determined sample features, and may also include information such as the ranking of these sample features, feature importance coefficients, etc.
[0088] For example, the sample features ranked in the top 10 by feature importance coefficient and their rankings are taken as the second sample feature group information. For another example, the sample features whose feature importance coefficients are greater than a set feature importance threshold and their rankings are taken as the second sample feature group information. For another example, the sample features ranked in the top 10 by feature importance coefficients and greater than a set feature importance threshold and their rankings are taken as the second sample feature group information. However, the present invention is not limited to the examples given.
[0089] In step 130, the second sample feature group information is updated according to the first sample feature group information. Thus, the important feature information determined by the attribution analysis is used to optimize the important feature information used in the synthetic control, so as to generate a more reliable virtual control group for the experimental group.
[0090] In some embodiments, updating the second sample feature group information according to the first sample feature group information includes: when the first sample feature group information includes the first sample feature and the second sample feature group information does not include the first sample feature, increasing the feature importance coefficient of the first sample feature, reordering the first sample feature and each sample feature in the second sample feature group information based on the adjusted feature importance coefficient, and updating the second sample feature group information based on the reordering result, for example, still determining the new second sample feature group information according to the ordering information of the feature importance coefficient and / or whether it is greater than the feature importance threshold. The updating process can be performed iteratively until the updated second sample feature group information includes the sample feature in the first sample feature group information.
[0091] Increasing the feature importance coefficient of the first sample feature, for example, includes: setting the feature importance coefficient of the first sample feature to the inverse of the variance of the first sample feature, or other increasing methods, for example, increasing by a preset amplitude each time.
[0092] In some embodiments, updating the second sample feature group information according to the first sample feature group information includes: when the ranking of the second sample feature in the first sample feature group information is inconsistent with the ranking in the second sample feature group information, adjusting the feature importance coefficient of the second sample feature, reordering the second sample feature and each sample feature in the second sample feature group information based on the adjusted feature importance coefficient, and updating the second sample feature group information based on the reordering result, for example, still determining the new second sample feature group information according to the ranking information of the feature importance coefficient and / or whether it is greater than the feature importance threshold. The updating process can be performed iteratively until the updated second sample feature group information includes the sample features in the first sample feature group information, and the ranking of the sample features in the first sample feature group information is consistent with the ranking in the second sample feature group information.
[0093] Among them, adjusting the feature importance coefficient of the second sample feature includes: if the ranking of the second sample feature in the second sample feature group information lags behind its ranking in the first sample feature group information, increasing the feature importance coefficient of the second sample feature; or if the ranking of the second sample feature in the second sample feature group information is ahead of its ranking in the first sample feature group information, reducing the feature importance coefficient of the second sample feature.
[0094] Of the two aforementioned methods for updating the second sample feature group information, the latter method has a higher degree of optimization than the former method, and the corresponding generated virtual control group has a higher reliability.
[0095] In step 140, a target synthesis coefficient is determined according to the updated second sample feature group information.
[0096] In some embodiments, determining the target synthesis coefficient based on the updated second sample feature group information includes: optimizing the optimization function of the synthesis gap based on the sample characteristics after the first region experiment, the sample characteristics of the second region, and the feature importance coefficients of each sample feature in the updated second sample feature group information to obtain a set of target synthesis coefficients, wherein, as described above, the optimization function of the synthesis gap is constructed based on the sample feature characterization after the first region experiment, the sample feature characterization of the second region, the synthesis coefficient characterization, and the feature importance coefficient characterization.
[0097] As mentioned above, the optimization function of the composite gap is a function with composite coefficient representation and feature importance coefficient representation as variables. If a set of feature importance coefficients of each sample feature is determined based on the updated second sample feature group information, the only variable of the optimization function is the composite coefficient representation. Then, combining the input sample characteristics after the first region experiment and the sample characteristics of the second region, the optimization function can be optimized based on the composite coefficient representation, and a set of composite coefficients that minimize the function value of the optimization function will be used as a set of target composite coefficients.
[0098] In step 150, the virtual samples of the first region are synthesized using the samples of the second region according to the target synthesis coefficient to form a virtual control group corresponding to the experimental group. Thus, based on the target synthesis coefficient, the virtual samples of the region to which the experimental group belongs (i.e., the virtual control group) can be synthesized using samples of regions different from the experimental group.
[0099] In some embodiments, the sample data (sample characteristics or value indicator data) of each sample in the second region is multiplied by the target synthesis coefficient and summed to obtain the sample data (sample characteristics or value indicator data) of the virtual sample in the first region.
[0100] The samples after the experiment in the first region constitute the experimental group, the real samples in the second region are regarded as the potential control group, and the virtual samples in the first region synthesized based on the samples in the second region constitute the virtual control group corresponding to the experimental group. Thus, the virtual control group is obtained by combining the real potential control data to avoid the inaccuracy caused by the prediction itself.
[0101] The above embodiment performs attribution analysis on the characteristics of each sample in the first region according to the characteristics of each sample before / after the experiment in the first region, so as to determine the important characteristic information (i.e., the first sample characteristic group information) that has a greater impact on the experiment; the samples after the experiment in the first region in the experimental group are synthesized using the samples in the second region, and based on the optimization solution method for the synthesis gap, the important characteristic information (i.e., the second sample characteristic group information) that has a greater impact on the synthesis is determined; then, the important characteristic information determined by the attribution analysis is used to optimize the important characteristic information used in the synthesis control, and the target synthesis coefficient is determined based on the optimized second sample characteristic group information. Based on the target synthesis coefficient, virtual samples (i.e., the virtual control group) of the region to which the experimental group belongs can be synthesized using samples from different regions from the experimental group, so that a more reliable virtual control group can be generated for the experimental group, thereby solving the problem that the accuracy of the A / B experimental results and the accuracy of corporate decision-making are affected by the unreliability of the virtual control group.
[0102] In some embodiments, the samples in the embodiments of the present disclosure are samples with regional attributes, such as samples related to entities offline in the supply chain, such as samples related to transportation or inventory, such as samples related to entities such as regions, warehouses, routes, and packages. The method for generating a virtual control group in the embodiments of the present disclosure can provide a suitable control group for an offline A / B experiment in the supply chain. The following is an example.
[0103] For example, for a certain transportation optimization experiment, the method for generating a transportation optimization virtual control group includes: performing attribution analysis on each transportation optimization related sample feature in the first region according to each transportation optimization related sample feature before and after the transportation optimization experiment in the first region, so as to determine the first sample feature group information related to the impact of the transportation optimization experiment; synthesizing the transportation optimization related samples after the transportation optimization experiment in the first region in the transportation optimization experiment group using the transportation optimization related samples in the second region, and determining the second sample feature group information related to the synthetic impact based on the optimization solution method of the synthetic gap; updating the second sample feature group information according to the first sample feature group information; determining the target synthesis coefficient according to the updated second sample feature group information; synthesizing the transportation optimization related virtual samples in the first region according to the target synthesis coefficient using the transportation optimization related samples in the second region, so as to form a transportation optimization virtual control group corresponding to the transportation optimization experiment group. Among them, the samples and sample features related to transportation optimization include, for example, the length of the transportation route, the price of oil, the transportation volume, the transportation cost, etc., but are not limited to the examples given.
[0104] For another example, for a certain inventory adjustment experiment, the method for generating an inventory adjustment virtual control group includes: performing attribution analysis on each inventory adjustment related sample feature in the first region according to each inventory adjustment related sample feature before and after the inventory adjustment experiment in the first region, so as to determine the first sample feature group information related to the impact of the inventory adjustment experiment; synthesizing the inventory adjustment related samples in the first region after the inventory adjustment experiment in the inventory adjustment experiment group using the inventory adjustment related samples in the second region, and determining the second sample feature group information related to the synthetic impact based on the optimization solution method of the synthetic gap; updating the second sample feature group information according to the first sample feature group information; determining the target synthesis coefficient according to the updated second sample feature group information; synthesizing the inventory adjustment related virtual samples in the first region according to the target synthesis coefficient using the inventory adjustment related samples in the second region, so as to form the inventory adjustment virtual control group corresponding to the inventory adjustment experiment group. Among them, the samples and sample features related to the inventory adjustment include, for example, inventory location, inventory adjustment amount, inventory adjustment cycle, inventory adjustment cost, etc., but are not limited to the examples given.
[0105] In some application examples, it is assumed that 11 sample features related to a certain value indicator are screened out through feature preprocessing in step 100, and features 1-11 are, for example, gasoline price, industrial producer price index, rate of return, number of orders, actual income cost, pre-discount income, profit, online retail, regional GDP, discount (but not limited to the examples given), and the important sample features and their rankings determined by the attribution analysis in step 110 are shown in Table 1. The importance in Table 1 is represented by the degree of experimental influence. The important sample features and their rankings determined by the initial synthesis analysis in step 120 are shown in Table 2. The importance in Table 2 is represented by the feature importance coefficient. If the rankings of the important sample features in Table 2 and Table 1 are inconsistent, then according to the method in step 130, the important feature information determined by the attribution analysis is used to optimize the important feature information used in the synthetic control. After several iterative optimizations, the important sample features and their rankings of the final synthetic control are obtained as shown in Table 3. Table 3 is consistent with the important sample features and their rankings in Table 1.
[0106] Table 1
[0107]
[0108] Table 2
[0109]
[0110] Table 3
[0111]
[0112] Figure 4A schematic diagram showing a flow chart of the analysis method according to some embodiments of the present disclosure.
[0113] like Figure 4 As shown, the analysis method of this embodiment includes steps 410-420.
[0114] In step 410, an experimental group and a virtual control group are obtained.
[0115] As mentioned above, the samples after the experiment in the first region constitute the experimental group, the real samples in the second region are regarded as the potential control group, and the virtual samples of the first region synthesized based on the samples in the second region constitute the virtual control group corresponding to the experimental group. The data of the experimental group and the real potential control group can be obtained through data collection, and the data of the virtual control group can be obtained by the synthesis method of the above embodiment.
[0116] The experimental group used the improved plan, and the real potential control group used the original plan. Therefore, the virtual control group synthesized based on the real potential control group also used the original plan.
[0117] In step 420, a comparative analysis is performed on the experimental group and the virtual control group. By comparing the value indicator data of the experimental group and the control group, it is evaluated whether the improvement plan used by the experimental group meets expectations, so that the enterprise can decide whether to adopt the improvement plan.
[0118] If the value indicator data of the experimental group is better than that of the control group and meets the experimental expectations, then you can consider adopting the improvement plan. Otherwise, if it does not meet the experimental expectations, then you can consider not adopting the improvement plan.
[0119] Based on the comparative analysis of A / B experiments between the experimental group and the reliable virtual control group, the accuracy of A / B experimental results and the accuracy of corporate decision-making can be improved, and the problem of the accuracy of A / B experimental results and corporate decision-making being affected by the unreliability of the virtual control group can be solved.
[0120] Figure 5 A schematic diagram showing an analysis system according to some embodiments of the present disclosure.
[0121] like Figure 5 As shown, the analysis system 500 of this embodiment includes devices 510-520.
[0122] The virtual control group generating device 510 is configured to execute the virtual control group generating method of each embodiment.
[0123] The analyzing device 520 is configured to perform comparative analysis on the experimental group and the virtual control group to evaluate whether the improvement plan used by the experimental group meets expectations.
[0124] Based on the comparative analysis of A / B experiments between the experimental group and the reliable virtual control group, the accuracy of A / B experimental results and the accuracy of corporate decision-making can be improved, and the problem of the accuracy of A / B experimental results and corporate decision-making being affected by the unreliability of the virtual control group can be solved.
[0125] Figure 6 A schematic diagram showing a device for generating a virtual control group according to some embodiments of the present disclosure.
[0126] like Figure 6 As shown, the device 600 for generating a virtual control group in this embodiment includes: a memory 610 and a processor 620 coupled to the memory 610 , and the processor 620 is configured to execute the method for generating a virtual control group in each embodiment based on instructions stored in the memory 610 .
[0127] The device 600 may further include an input / output interface 630 , a network interface 640 , a storage interface 650 , etc. These interfaces 630 , 640 , 650 , the memory 610 , and the processor 620 may be connected via a bus 660 , for example.
[0128] The memory 610 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.
[0129] The processor 620 may be implemented by a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistors and other discrete hardware components.
[0130] Among them, the input and output interface 630 provides a connection interface for input and output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 640 provides a connection interface for various networked devices. The storage interface 650 provides a connection interface for external storage devices such as SD cards and USB flash drives. The bus 660 can use any bus structure among a variety of bus structures. For example, the bus structure includes but is not limited to the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MCA) bus, and the Peripheral Component Interconnect (PCI) bus.
[0131] Figure 7 A schematic diagram showing a device for generating a virtual control group according to some embodiments of the present disclosure.
[0132] like Figure 7 As shown, the device 700 for generating a virtual control group in this embodiment includes: units 710 - 750 , and may also include 760 or 770 .
[0133] The attribution analysis unit 710 is configured to perform attribution analysis on each sample feature of the first region according to each sample feature before and after the experiment in the first region, so as to determine first sample feature group information related to the impact of the experiment;
[0134] The synthesis control unit 720 is configured to use the samples of the second region to synthesize the samples after the first region experiment in the experimental group, and determine the second sample feature group information related to the synthesis impact based on the optimization solution method of the synthesis gap;
[0135] The feature updating unit 730 is configured to update the second sample feature group information according to the first sample feature group information;
[0136] The synthesis coefficient determination unit 740 is configured to determine a target synthesis coefficient according to the updated second sample feature group information;
[0137] The sample synthesis unit 750 is configured to synthesize virtual samples of the first region using samples of the second region according to a target synthesis coefficient, so as to form a virtual control group corresponding to the experimental group.
[0138] In some embodiments, the attribution analysis unit 710 is configured to:
[0139] Inputting a sample feature time series of a preset length before any first time point before the first regional experiment into a feature prediction model, and predicting a sample feature prediction value at the first time point before the first regional experiment;
[0140] Determine the degree to which the corresponding sample feature is affected by the experiment according to the difference between the predicted value of the sample feature at the first time point before the first regional experiment and the actual value of the sample feature at the first time point after the first regional experiment;
[0141] According to the degree to which each sample feature is affected by the experiment, first sample feature group information related to the experimental impact is determined.
[0142] In some embodiments, the attribution analysis unit 710 is configured to:
[0143] Inputting a sample feature time series of a preset length before any second time point before the first regional experiment into a machine learning model, and outputting a predicted value of the sample feature at the second time point before the first regional experiment;
[0144] determining the loss according to the difference between the predicted value of the sample characteristic at the second time point before the first regional experiment and the actual value of the sample characteristic;
[0145] The parameters of the machine learning model are iteratively updated according to the loss, and the trained machine learning model is determined as a feature prediction model.
[0146] In some embodiments, the attribution analysis unit 710 is configured to determine the first sample feature group information related to the experimental impact based on the ranking information of the degree of impact of the experiment on each sample feature and / or whether it is greater than the experimental impact threshold.
[0147] In some embodiments, the synthesis control unit 720 is configured to:
[0148] According to the sample feature representation after the experiment in the first region, the sample feature representation in the second region, the synthesis coefficient representation, and the feature importance coefficient representation, an optimization function of the synthesis gap is constructed;
[0149] According to the optimization function of the synthetic gap, a set of pending feature importance coefficients is determined;
[0150] According to the feature importance coefficient to be determined, second sample feature group information related to the synthetic impact is determined.
[0151] In some embodiments, the synthesis control unit 720 is configured to: construct a first product representation of the synthesis coefficient representation and the sample feature representation of the second region,
[0152] Construct the difference representation between the sample feature representation after the first regional experiment and the first product representation,
[0153] Construct the second product representation of the feature importance coefficient representation and the difference representation,
[0154] The optimization function of synthetic gap is constructed based on the sample feature mean representation represented by the second product.
[0155] In some embodiments, the synthesis control unit 720 is configured to:
[0156] According to the sample characteristics after the experiment in the first region and the sample characteristics in the second region, based on the given importance coefficients of each group of features, the optimization function of the synthesis gap is optimized to obtain a group of candidate synthesis coefficients;
[0157] Determine the synthesis value using the value indicator data of the samples in the second region according to each set of candidate synthesis coefficients;
[0158] Selecting a target candidate synthesis coefficient from each group of candidate synthesis coefficients according to the value difference between the synthesis value corresponding to each group of candidate synthesis coefficients and the value indicator data of the corresponding sample after the first regional experiment;
[0159] According to the sample characteristics after the first region experiment and the sample characteristics of the second region, based on the target candidate synthesis coefficient, the optimization function of the synthesis gap is optimized to obtain a set of pending feature importance coefficients.
[0160] In some embodiments, the synthesis control unit 720 is configured to determine the second sample feature group information related to the synthesis impact according to the ranking information of the feature importance coefficient to be determined and / or whether it is greater than the feature importance threshold.
[0161] In some embodiments, the feature updating unit 730 is configured to increase the feature importance coefficient of the first sample feature when the first sample feature group information includes the first sample feature and the second sample feature group information does not include the first sample feature, reorder the first sample feature and each sample feature in the second sample feature group information based on the feature importance coefficient, and update the second sample feature group information based on the reordering result.
[0162] In some embodiments, the feature updating unit 730 is configured to increase the feature importance coefficient of the first sample feature, including: setting the feature importance coefficient of the first sample feature to the inverse of the variance of the first sample feature.
[0163] In some embodiments, the feature updating unit 730 is configured to adjust the feature importance coefficient of the second sample feature when the ranking of the second sample feature in the first sample feature group information is inconsistent with the ranking in the second sample feature group information, reorder the second sample feature and each sample feature in the second sample feature group information based on the feature importance coefficient, and update the second sample feature group information based on the reordering result.
[0164] In some embodiments, the feature updating unit 730 is configured to increase the feature importance coefficient of the second sample feature if the ranking of the second sample feature in the second sample feature group information lags behind its ranking in the first sample feature group information; or to reduce the feature importance coefficient of the second sample feature if the ranking of the second sample feature in the second sample feature group information is ahead of its ranking in the first sample feature group information.
[0165] In some embodiments, the synthesis coefficient determination unit 740 is configured to optimize the optimization function of the synthesis gap according to the sample characteristics after the first regional experiment, the sample characteristics of the second region, and the feature importance coefficients of each sample feature in the updated second sample feature group information, so as to obtain a set of target synthesis coefficients, wherein the optimization function of the synthesis gap is constructed according to the sample feature representation after the first regional experiment, the sample feature representation of the second region, the synthesis coefficient representation, and the feature importance coefficient representation.
[0166] In some embodiments, the sample synthesis unit 750 is configured to multiply the sample data (sample characteristics or value indicator data) of each sample in the second region by the target synthesis coefficient and perform a sum operation to obtain the sample data (sample characteristics or value indicator data) of the virtual sample in the first region.
[0167] The device 700 for generating the virtual control group also includes: a feature processing unit 760, which is configured to use a fixed effect regression model to calculate the correlation between the value index of the sample and each sample feature, and to screen out the sample features related to the value index based on the correlation, so as to perform attribution analysis and synthesis based on the screened sample features.
[0168] The device 700 for generating the virtual control group further includes: a sample processing unit 770 configured to segment each sample according to a seasonal cycle so as to perform attribution analysis and synthesis based on samples of the same segment.
[0169] Some embodiments of the present disclosure provide a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for generating a virtual control group of each embodiment.
[0170] (1) A method for generating a virtual control group, comprising:
[0171] According to the characteristics of each sample before and after the experiment in the first region, attribution analysis is performed on each sample characteristic in the first region to determine the first sample characteristic group information related to the impact of the experiment;
[0172] Using the samples of the second region after the experiment in the first region in the synthetic experimental group, and determining the second sample feature group information related to the synthetic impact based on the optimization solution method of the synthetic gap;
[0173] According to the first sample feature group information, update the second sample feature group information;
[0174] Determining a target synthesis coefficient according to the updated second sample feature group information;
[0175] The virtual samples of the first region are synthesized using the samples of the second region according to the target synthesis coefficient to form a virtual control group corresponding to the experimental group.
[0176] (2) According to (1), the first sample feature group information related to the experimental impact is determined to include:
[0177] Inputting a sample feature time series of a preset length before any first time point before the first regional experiment into a feature prediction model, and predicting a sample feature prediction value at the first time point before the first regional experiment;
[0178] Determine the degree to which the corresponding sample feature is affected by the experiment according to the difference between the predicted value of the sample feature at the first time point before the first regional experiment and the actual value of the sample feature at the first time point after the first regional experiment;
[0179] According to the degree to which each sample feature is affected by the experiment, first sample feature group information related to the experimental impact is determined.
[0180] (3) According to (2), it also includes:
[0181] Inputting a sample feature time series of a preset length before any second time point before the first regional experiment into a machine learning model, and outputting a predicted value of the sample feature at the second time point before the first regional experiment;
[0182] determining the loss according to the difference between the predicted value of the sample characteristic at the second time point before the first regional experiment and the actual value of the sample characteristic;
[0183] The parameters of the machine learning model are iteratively updated according to the loss, and the trained machine learning model is determined as a feature prediction model.
[0184] (4) According to (2) or (3), based on the degree to which each sample feature is affected by the experiment, determining the first sample feature group information related to the experimental impact includes:
[0185] According to the ranking information of the degree of influence of the experiment on each sample feature and / or whether it is greater than the experiment influence threshold, the first sample feature group information related to the experiment influence is determined.
[0186] (5) According to any one of (1) to (4), determining the second sample feature group information related to the synthetic impact includes:
[0187] According to the sample feature representation after the experiment in the first region, the sample feature representation in the second region, the synthesis coefficient representation, and the feature importance coefficient representation, an optimization function of the synthesis gap is constructed;
[0188] According to the optimization function of the synthetic gap, a set of pending feature importance coefficients is determined;
[0189] According to the feature importance coefficient to be determined, second sample feature group information related to the synthetic impact is determined.
[0190] (6) According to (5), a set of undetermined feature importance coefficients are determined, including:
[0191] According to the sample characteristics after the experiment in the first region and the sample characteristics in the second region, based on the given importance coefficients of each group of features, the optimization function of the synthesis gap is optimized to obtain a group of candidate synthesis coefficients;
[0192] Determine the synthesis value using the value indicator data of the samples in the second region according to each set of candidate synthesis coefficients;
[0193] Selecting a target candidate synthesis coefficient from each group of candidate synthesis coefficients according to the value difference between the synthesis value corresponding to each group of candidate synthesis coefficients and the value indicator data of the corresponding sample after the first regional experiment;
[0194] According to the sample characteristics after the first region experiment and the sample characteristics of the second region, based on the target candidate synthesis coefficient, the optimization function of the synthesis gap is optimized to obtain a set of pending feature importance coefficients.
[0195] (7) According to (5) or (6), based on the feature importance coefficient to be determined, the second sample feature group information related to the synthetic impact is determined to include:
[0196] According to the ranking information of the feature importance coefficient to be determined and / or whether it is greater than the feature importance threshold, the second sample feature group information related to the synthetic influence is determined.
[0197] (8) According to any one of (1) to (7), updating the second sample feature group information according to the first sample feature group information includes: when the first sample feature group information includes the first sample feature and the second sample feature group information does not include the first sample feature, increasing the feature importance coefficient of the first sample feature, reordering the first sample feature and each sample feature in the second sample feature group information based on the feature importance coefficient, and updating the second sample feature group information based on the reordering result.
[0198] (9) According to any one of (1) to (7), updating the second sample feature group information according to the first sample feature group information includes:
[0199] When the ranking of the second sample feature in the first sample feature group information is inconsistent with the ranking in the second sample feature group information, adjust the feature importance coefficient of the second sample feature, reorder the second sample feature and each sample feature in the second sample feature group information based on the feature importance coefficient, and update the second sample feature group information based on the reordering result.
[0200] (10) According to (9), the feature importance coefficient of the second sample feature is adjusted to include:
[0201] If the ranking of the second sample feature in the second sample feature group information lags behind the ranking in the first sample feature group information, increasing the feature importance coefficient of the second sample feature; or,
[0202] If the ranking of the second sample feature in the second sample feature group information is ahead of its ranking in the first sample feature group information, the feature importance coefficient of the second sample feature is reduced.
[0203] (11) According to (8) or (10), increasing the feature importance coefficient of the first sample feature includes: setting the feature importance coefficient of the first sample feature to the inverse of the variance of the first sample feature.
[0204] (12) According to any one of (1) to (11), the updated second sample feature group information includes the sample features in the first sample feature group information; or, the updated second sample feature group information includes the sample features in the first sample feature group information, and the ranking of the sample features in the first sample feature group information is consistent with the ranking in the second sample feature group information.
[0205] (13) According to any one of (1) to (12), determining the target synthesis coefficient according to the updated second sample feature group information includes:
[0206] According to the sample features after the first region experiment, the sample features of the second region, and the feature importance coefficients of each sample feature in the updated second sample feature group information, the optimization function of the synthesis gap is optimized to obtain a set of target synthesis coefficients.
[0207] Among them, the optimization function of the synthetic gap is constructed according to the sample feature representation after the first region experiment, the sample feature representation of the second region, the synthetic coefficient representation, and the feature importance coefficient representation.
[0208] (14) According to any one of (5) to (13), the optimization function for constructing the composite gap includes:
[0209] Construct a first product representation of the synthesis coefficient representation and the sample characteristic representation of the second region,
[0210] Construct the difference representation between the sample feature representation after the first regional experiment and the first product representation,
[0211] Construct the second product representation of the feature importance coefficient representation and the difference representation,
[0212] The optimization function of synthetic gap is constructed based on the sample feature mean representation represented by the second product.
[0213] (15) According to any one of (1) to (14), it also includes: using a fixed effect regression model to calculate the correlation between the value indicator of the sample and each sample feature, and screening out the sample features related to the value indicator based on the correlation, so as to perform attribution analysis and synthesis based on the screened sample features.
[0214] (16) According to any one of (1) to (15), it also includes: segmenting each sample according to the seasonal cycle so as to perform attribution analysis and synthesis based on samples of the same segment.
[0215] (17) The method according to any of items (1) to (16) also includes: conducting a comparative analysis between the experimental group and the virtual control group to evaluate whether the improvement plan used by the experimental group meets expectations.
[0216] (18) According to any one of (1) to (17), the sample is a sample with regional attributes.
[0217] (19) According to any of (1) to (18), the sample is related to offline entities in the supply chain.
[0218] (20) According to any of (1) to (19), the sample is a transportation or inventory-related sample.
[0219] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0220] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more non-transient computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer program code.
[0221] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0222] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0223] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0224] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. A method for generating a virtual control group, characterized in that: include: The first-region experiment includes a first-region transportation optimization experiment or a first-region inventory adjustment experiment; According to the characteristics of each transportation optimization related sample before and after the transportation optimization experiment in the first region, attribution analysis is performed on each transportation optimization related sample characteristic in the first region to determine the first sample characteristic group information related to the impact of the transportation optimization experiment, and the transportation optimization related samples and transportation optimization related sample characteristics include: transportation route length, fuel price, transportation volume, and transportation cost; Using the transportation optimization related samples of the second region to synthesize the transportation optimization related samples after the transportation optimization experiment of the first region in the transportation optimization experiment group, and determining the second sample feature group information related to the synthetic impact based on the optimization solution method of the synthetic gap; According to the first sample feature group information, update the second sample feature group information; Determining a target synthesis coefficient according to the updated second sample feature group information; Using the transportation optimization related samples of the second region to synthesize the transportation optimization related virtual samples of the first region according to the target synthesis coefficient, so as to form a transportation optimization virtual control group corresponding to the transportation optimization experimental group; Conduct comparative analysis between the transportation optimization experimental group and the transportation optimization virtual control group to evaluate whether the improvement plan used by the transportation optimization experimental group meets expectations; or, According to the characteristics of each inventory adjustment-related sample before and after the inventory adjustment experiment in the first region, attribution analysis is performed on each inventory adjustment-related sample characteristic in the first region to determine first sample characteristic group information related to the impact of the inventory adjustment experiment, the inventory adjustment-related samples and inventory adjustment-related sample characteristics including: inventory location, inventory adjustment amount, inventory adjustment cycle, and inventory adjustment cost; Using the inventory adjustment related samples of the second region to synthesize the inventory adjustment related samples after the inventory adjustment experiment of the first region in the inventory adjustment experiment group, and determining the second sample feature group information related to the synthetic impact based on the optimization solution method of the synthetic gap; According to the first sample feature group information, update the second sample feature group information; Determining a target synthesis coefficient according to the updated second sample feature group information; Using the inventory adjustment related samples of the second region to synthesize the inventory adjustment related virtual samples of the first region according to the target synthesis coefficient, so as to form an inventory adjustment virtual control group corresponding to the inventory adjustment experimental group; A comparative analysis was conducted between the inventory adjustment experimental group and the inventory adjustment virtual control group to evaluate whether the improvement plan used by the inventory adjustment experimental group met expectations. Among them, the feature prediction model obtained by training the machine learning model is used to determine the first sample feature group information related to the impact of the transportation optimization experiment or the first sample feature group information related to the impact of the inventory adjustment experiment.
2. The method according to claim 1, characterized in that: Determining the first sample feature group information includes: Inputting a sample feature time series of a preset length before any first time point before the first regional experiment into a feature prediction model, and predicting a sample feature prediction value at the first time point before the first regional experiment; Determine the degree to which the corresponding sample feature is affected by the experiment according to the difference between the predicted value of the sample feature at the first time point before the first regional experiment and the actual value of the sample feature at the first time point after the first regional experiment; According to the degree to which each sample feature is affected by the experiment, first sample feature group information related to the experimental impact is determined.
3. The method according to claim 2, characterized in that Also includes: Inputting a sample feature time series of a preset length before any second time point before the first regional experiment into a machine learning model, and outputting a predicted value of the sample feature at the second time point before the first regional experiment; determining the loss according to the difference between the predicted value of the sample characteristic at the second time point before the first regional experiment and the actual value of the sample characteristic; The parameters of the machine learning model are iteratively updated according to the loss, and the trained machine learning model is determined as a feature prediction model.
4. The method according to claim 2, characterized in that: According to the degree to which each sample feature is affected by the experiment, the first sample feature group information related to the experimental impact is determined to include: According to the ranking information of the degree of influence of the experiment on each sample feature and / or whether it is greater than the experiment influence threshold, the first sample feature group information related to the experiment influence is determined.
5. The method according to claim 1, characterized in that Determining the second sample feature group information includes: According to the sample feature representation after the experiment in the first region, the sample feature representation in the second region, the synthesis coefficient representation, and the feature importance coefficient representation, an optimization function of the synthesis gap is constructed; According to the optimization function of the synthetic gap, a set of pending feature importance coefficients is determined; According to the feature importance coefficient to be determined, second sample feature group information related to the synthetic impact is determined.
6. The method according to claim 5, characterized in that Determining a set of pending feature importance coefficients includes: According to the sample characteristics after the experiment in the first region and the sample characteristics in the second region, based on the given importance coefficients of each group of features, the optimization function of the synthesis gap is optimized to obtain a group of candidate synthesis coefficients; Determine the synthesis value using the value indicator data of the samples in the second region according to each set of candidate synthesis coefficients; Selecting a target candidate synthesis coefficient from each group of candidate synthesis coefficients according to the value difference between the synthesis value corresponding to each group of candidate synthesis coefficients and the value indicator data of the corresponding sample after the first regional experiment; According to the sample characteristics after the first region experiment and the sample characteristics of the second region, based on the target candidate synthesis coefficient, the optimization function of the synthesis gap is optimized to obtain a set of pending feature importance coefficients.
7. The method according to claim 5, characterized in that According to the feature importance coefficient to be determined, determining the second sample feature group information related to the synthetic impact includes: According to the ranking information of the feature importance coefficient to be determined and / or whether it is greater than the feature importance threshold, the second sample feature group information related to the synthetic influence is determined.
8. The method according to claim 1, characterized in that Also includes: The feature importance coefficients for increasing the first sample feature include: The feature importance coefficient of the first sample feature is set to the inverse of the variance of the first sample feature.
9. The method according to claim 1, characterized in that: Updating the second sample feature group information according to the first sample feature group information includes: When the ranking of the second sample feature in the first sample feature group information is inconsistent with the ranking in the second sample feature group information, adjust the feature importance coefficient of the second sample feature, reorder the second sample feature and each sample feature in the second sample feature group information based on the feature importance coefficient, and update the second sample feature group information based on the reordering result.
10. The method according to claim 9, characterized in that Adjusting the feature importance coefficients of the second sample features includes: If the ranking of the second sample feature in the second sample feature group information lags behind the ranking in the first sample feature group information, increasing the feature importance coefficient of the second sample feature; or, If the ranking of the second sample feature in the second sample feature group information is ahead of its ranking in the first sample feature group information, the feature importance coefficient of the second sample feature is reduced.
11. The method according to claim 1, characterized in that: The updated second sample feature group information includes the sample features in the first sample feature group information; or, The updated second sample feature group information includes the sample features in the first sample feature group information, and the ranking of the sample features in the first sample feature group information is consistent with the ranking in the second sample feature group information.
12. The method according to claim 1, characterized in that Determining the target synthesis coefficient according to the updated second sample feature group information includes: According to the sample features after the first region experiment, the sample features of the second region, and the feature importance coefficients of each sample feature in the updated second sample feature group information, the optimization function of the synthesis gap is optimized to obtain a set of target synthesis coefficients. Among them, the optimization function of the synthetic gap is constructed according to the sample feature representation after the first region experiment, the sample feature representation of the second region, the synthetic coefficient representation, and the feature importance coefficient representation.
13. The method according to claim 5 or 12, characterized in that: The optimization function for constructing the synthetic gap includes: Construct a first product representation of the synthesis coefficient representation and the sample characteristic representation of the second region, Construct the difference representation between the sample feature representation after the first regional experiment and the first product representation, Construct the second product representation of the feature importance coefficient representation and the difference representation, The optimization function of synthetic gap is constructed based on the sample feature mean representation represented by the second product.
14. The method according to claim 1, characterized in that Also includes: The fixed effects regression model is used to calculate the correlation between the sample's value index and each sample feature, and the sample features related to the value index are screened out based on the correlation, so as to perform attribution analysis and synthesis based on the screened sample features.
15. The method according to claim 1, characterized in that Also includes: Each sample is segmented according to the seasonal cycle to facilitate attribution analysis and synthesis based on samples in the same segment.
16. A device for generating a virtual control group, characterized in that: include: Memory; as well as A processor coupled to the memory, wherein the processor is configured to execute the method for generating a virtual control group according to any one of claims 1 to 15 based on instructions stored in the memory.
17. A non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for generating a virtual control group according to any one of claims 1 to 15.
