Cigarette market state comprehensive index prediction method based on interpretable artificial intelligence
By constructing a cigarette market forecast model and using interpretable artificial intelligence technology to analyze the comprehensive index of market status, the problem of inaccurate traditional forecasts has been solved, the pertinence and effectiveness of market regulation has been improved, and the optimization of market status has been ensured.
Patent Information
- Application Number
- CN202410646855.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-03
AI Technical Summary
The comprehensive index prediction of traditional cigarette market status is not accurate enough, resulting in unoptimized market regulation guidance and failure to improve sales efficiency and market competitiveness.
Using a method based on explainable artificial intelligence, we build a cigarette market prediction model, obtain status data, select target features, analyze the relationship between the market status comprehensive index, and select the optimal control strategy to improve prediction accuracy and interpretability.
It improves the forecast accuracy of the cigarette market status comprehensive index, provides more solid market decision support, helps companies better understand and respond to market changes, and ensures that the market status remains at the ideal level.
Smart Images

Figure CN118586956A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of market management, and in particular to a method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence. Background Art
[0002] Controlling the cigarette market situation is crucial for the tobacco industry. Accurately predicting the cigarette market situation and conducting corresponding evaluation and regulation can help companies with decision support, production optimization, supply chain management, and improve sales efficiency and market competitiveness.
[0003] In order to establish and improve a multi-channel market information monitoring system, a scientific market status evaluation model should be constructed according to the five types of brand market performance, namely "hot, tight, flat, loose, and soft", to quantify the status evaluation indicators, dynamically adjust and optimize the supply release strategy, and improve the pertinence, timeliness, and effectiveness of regulation. Industrial enterprises should actively cooperate with commercial enterprises, closely monitor the market status of brands in different regions, and have a clear understanding of the market performance of their own brands (specifications). For brands (specifications) with poor market performance, industrial enterprises should take timely regulatory measures. The market status composite index is often used to evaluate the market status, but the market status composite index (MSCI) predicted by traditional methods is not accurate enough, resulting in the selected regulatory guidance for the cigarette market not being the optimal regulatory plan, and failing to improve sales efficiency and market competitiveness. Summary of the invention
[0004] In view of this, the present invention provides a prediction method for a comprehensive index of the cigarette market status based on explainable artificial intelligence to solve the problem of inaccurate prediction of the comprehensive index of the market status of the cigarette market.
[0005] In a first aspect, the present invention provides a method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence, the method comprising:
[0006] Obtaining cigarette market status data, which includes input indicators and a comprehensive market status index;
[0007] A prediction model for the cigarette market is constructed based on the status data, the input index is the input of the prediction model, and the comprehensive index of the market status is the output of the prediction model;
[0008] Select target features from input indicators according to preset rules, and obtain the relationship between target features and comprehensive market status index based on the prediction model;
[0009] According to the relationship between the target characteristics and the comprehensive index of market status obtained by the prediction model, the optimal control strategy is selected from the preset control strategies.
[0010] The method for predicting the comprehensive index of the cigarette market status based on explainable artificial intelligence provided by the present invention constructs a prediction model for the cigarette market by taking indicators reflecting the market status as input indicators, which is conducive to quickly and accurately predicting the market status and improving the prediction accuracy of the comprehensive index of the cigarette market status. The relationship between the target characteristics and the comprehensive index of the market status is used to improve the interpretability of the prediction model, which is convenient for selecting the optimal regulation strategy.
[0011] In an optional implementation, building a prediction model for the cigarette market based on the status data includes:
[0012] Divide the state data into training set and test set according to the preset ratio;
[0013] Using the input indicators in the training set as the input of multiple initial prediction models, using the comprehensive market status index in the training set as the output of multiple initial prediction models, and training to obtain multiple candidate prediction models;
[0014] The performance of multiple candidate prediction models is evaluated, and the optimal prediction model is determined based on the evaluation results.
[0015] The method for predicting the comprehensive index of the cigarette market status based on explainable artificial intelligence provided by the present invention is conducive to analyzing the relationship between the basic indicators, ratio indicators and the comprehensive index of the market status in the cigarette market by constructing a prediction model, thereby making the prediction results of the comprehensive index of the market status using the basic indicators and ratio indicators in the cigarette market more accurate.
[0016] In an optional implementation, multiple candidate prediction models are obtained through training, including:
[0017] Input the input indicators in the test set into each initial prediction model for training to obtain the predicted value of the comprehensive index of market status;
[0018] Calculate the mean absolute error and root mean square error between the predicted value of the market status comprehensive index and the actual value of the market status comprehensive index in the test set;
[0019] The mean absolute error and root mean square error are used as performance metrics, and the preset optimization strategy is used to adjust the parameters of each initial test model to obtain multiple candidate prediction models.
[0020] The method for predicting the comprehensive index of cigarette market status based on explainable artificial intelligence provided by the present invention takes the mean absolute error and root mean square error of the comprehensive index of market status as performance metrics, optimizes the parameters of the prediction model, improves the generalization ability of the model, and the prediction model after parameter optimization predicts the comprehensive index of market status more accurately.
[0021] In an optional implementation, a plurality of candidate prediction models are subjected to performance evaluation, and an optimal prediction model is determined according to the evaluation results, including:
[0022] Calculate the mean absolute error and root mean square error of the market status composite index using multiple candidate forecasting models;
[0023] Determine a performance metric value of each candidate prediction model based on the mean absolute error and the root mean square error obtained from the multiple candidate prediction models;
[0024] According to the performance measurement value of each candidate prediction model, the optimal prediction model for the cigarette market is determined from multiple candidate prediction models.
[0025] The method for predicting the comprehensive index of cigarette market status based on explainable artificial intelligence provided by the present invention uses multiple candidate prediction models to calculate the average absolute error and root mean square error of the comprehensive index of market status, and measures the performance of the multiple candidate prediction models accordingly to obtain an initial prediction model that is more in line with the cigarette market status. The average absolute error and root mean square error of the initial prediction model finally obtained are optimal as a whole, indicating that the prediction error of the initial prediction model is small and the predicted comprehensive index of market status is the most accurate.
[0026] In an optional implementation, selecting a target feature from the input index according to a preset rule includes:
[0027] Determine the correlation between each input indicator and the comprehensive index of market status according to preset rules;
[0028] One or more target features are determined according to the magnitude of the correlation.
[0029] The method for predicting the comprehensive index of cigarette market status based on explainable artificial intelligence provided by the present invention selects the indicator with the highest correlation with the comprehensive index of market status from multiple input indicators as the target feature, without the need to analyze all the input indicators, thus simplifying the analysis process and ensuring the accuracy of the prediction results of the comprehensive index of market status.
[0030] In an optional implementation, obtaining the relationship between the target feature and the comprehensive index of the market status based on the prediction model includes:
[0031] Using the forecasting model, the conditional expected value of the comprehensive index of market status is calculated when the target feature takes different values;
[0032] One or more partial dependence diagrams are drawn with one or more target characteristics as the horizontal axis and the conditional expected value of the corresponding market status comprehensive index as the vertical axis to intuitively display the relationship between the one or more target characteristics and the market status comprehensive index.
[0033] The method for predicting the comprehensive index of the cigarette market status based on explainable artificial intelligence provided by the present invention uses a prediction model to obtain the relationship between the target feature and the comprehensive index of the market status, which is conducive to concretizing and visualizing the impact of the target feature on the market status, facilitating the selection of the optimal value of the target feature, and then determining the regulation strategy.
[0034] In an optional implementation, the relationship between the target feature and the comprehensive index of the market status is obtained according to the prediction model, and the optimal control strategy is selected from the preset control strategies, including:
[0035] Analyze the partial dependence graph to obtain the analysis results;
[0036] Based on the analysis results, identify the optimal match between target characteristics and comprehensive market status index;
[0037] The optimal control strategy is selected according to the optimal match, and the optimal control strategy is to set the target feature to the optimal value.
[0038] The method for predicting the comprehensive index of cigarette market status based on explainable artificial intelligence provided by the present invention determines the optimal regulation strategy by analyzing the partial dependence diagram of the comprehensive index of market status, thereby providing solid data support for market decision-making, helping to better understand and respond to market changes, and ensuring that the market status remains at an ideal level.
[0039] In a second aspect, the present invention provides a device for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence, the device comprising:
[0040] A data acquisition module is used to acquire the status data of the cigarette market, the status data including input indicators and a comprehensive market status index;
[0041] A prediction model building module is used to build a prediction model for the cigarette market based on the status data, the input index is the input of the prediction model, and the market status comprehensive index is the output of the prediction model;
[0042] The feature impact module is used to select the target feature from the input indicators according to the preset rules, and obtain the relationship between the target feature and the comprehensive index of market status based on the prediction model;
[0043] The control guidance module is used to obtain the relationship between the target characteristics and the comprehensive index of the market status according to the prediction model, and select the optimal control strategy from the preset control strategies.
[0044] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0045] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to cause a computer to execute the method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 is a flow chart of a method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence according to an embodiment of the present invention;
[0048] Figure 2 is a flow chart of another method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence according to an embodiment of the present invention;
[0049] Figure 3 is a PDP diagram of product specification 1 in an embodiment of a method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence according to an embodiment of the present invention;
[0050] Figure 4 is a PDP diagram of product specification 2 in an embodiment of a method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence according to an embodiment of the present invention;
[0051] Figure 5 is a PDP diagram of product specification three in an embodiment of a method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence according to an embodiment of the present invention;
[0052] Figure 6 is a structural block diagram of a device for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence according to an embodiment of the present invention;
[0053] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0055] An embodiment of the present invention provides a method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence, which achieves the effect of accurately predicting the comprehensive index of market status by constructing a prediction model of the comprehensive index of cigarette market status based on explainable artificial intelligence and finding its partial dependencies.
[0056] The construction of MSCI integrates multi-dimensional data of "quantity, price, and inventory", providing the market with a more comprehensive and dynamic analytical perspective. This comprehensive index pays special attention to market dynamics, supply and demand, price fluctuations, inventory levels and other factors when evaluating and regulating market status. At the same time, the construction of the comprehensive market status index includes the quantification and standardization of key indicators, making the monitoring of market status more accurate and real-time. Specifically: on the one hand, "quantity", "price" and "inventory" influence each other and work together, and are indispensable in determining the comprehensive market status index; on the other hand, the circulation of cigarettes reflects the state of the market to a certain extent, and the inflow and outflow should be used as an effective correction to the comprehensive market status index. Therefore, the overall evaluation of the market status should be based on the "quantity, price, and inventory" comprehensive index corrected by circulation.
[0057] The process of constructing the three sub-indicators of "quantity, price, and inventory" includes the selection of original indicators, the establishment and standardization of indexes. The construction process of the three sub-indicators is as follows:
[0058] (1) Construction of quantity sub-indicators, including the selection of all original indicators related to quantity, the establishment of quantity indexes, and the normalization of quantity indexes to the range [0, 1].
[0059] 1.1 Selection of quantity indicators. This paper selects all the original indicators about quantity and finds that the three original indicators of strategic quantity, order quantity and demand quantity are closely related to the supply and demand relationship in the market. From the supply perspective, the order quantity directly reflects the degree of response of the demand side to the strategic quantity of the supplier; from the demand perspective, the order quantity directly reflects the degree of satisfaction of the supplier to the demand side's demand.
[0060] 1.2 Establishment of volume index
[0061]
[0062] Among them, the strategic order rate = order quantity / strategic quantity, the demand satisfaction rate = order quantity / demand quantity, and (1-demand satisfaction rate) is called the demand shortage rate. When the strategic order rate and the demand shortage rate are higher, the indicator measuring the "quantity" of the market status is larger, indicating that the market is tighter. In order to avoid information interference caused by the partial market release of standard cigarettes, the square root of "demand dissatisfaction rate × demand customer proportion" is used as a correction coefficient. At this time, the meaning of the "quantity" indicator represents the degree of tension in the market supply and demand relationship.
[0063] 1.3 Standardization of quantity index
[0064] The strategic order fulfillment rate and the proportion of out-of-stock customers in the quantity index both take values between [0,1]. The existing formula already satisfies the final value between [0,1], so standardization has been completed.
[0065] (2) Construction of price sub-indicators, including selecting all original price indicators, establishing price indexes, and standardizing price indexes.
[0066] 2.1 Selection of price index: The relationship between cigarette prices and market conditions is that prices should reflect the market conditions through profitability or profit levels. Analysis of existing price indices shows that none of them truly reflects the market conditions and profit margins of cigarettes. In particular, when cigarettes are circulated in the market, it is unknown how the profits of the circulation link affect the market conditions. Therefore, the present invention selects the retail price, wholesale price, guide price and circulation price related to the cigarette sales link and circulation link, and examines the profit level of cigarettes from two aspects: normal operation and circulation impact.
[0067] 2.2 Construction of price index
[0068]
[0069] Among them, "retail price / guide price" reflects price changes in the sales link. The larger the value, the tighter the market conditions for cigarettes of this specification; "circulation price / wholesale price" reflects price changes in the circulation link. As a correction to the retail price index, when the circulation price is greater than the wholesale price, it positively promotes the retail price index; when the circulation price is less than the wholesale price, it negatively reduces the retail price index.
[0070] 2.3 Standardization of price index
[0071] ① Retail price index standardization
[0072]
[0073] ②Price index standardization
[0074]
[0075] (3) Selection of storage indicators
[0076] 3.1 “Inventory” reflects the overall inventory level of cigarettes in the market and the number of days that the existing cigarette inventory can be sold. Through screening and research one by one, it is finally determined that the customer inventory-to-sales ratio is selected as the key indicator for calculating the inventory index. Among them,
[0077]
[0078] 3.2 Correction of inventory-to-sales ratio: The inventory-to-sales ratio only reflects the number of days available for sales for customers who are not out of stock, but for customers who are out of stock, the corresponding inventory-to-sales ratio is 0. In order to objectively reflect the true situation of the inventory-to-sales ratio, the present invention uses the out-of-stock rate to correct it, as follows:
[0079] Inventory-to-sales ratio_correction = Inventory-to-sales ratio × (1-out-of-stock rate) + 0 × out-of-stock rate
[0080] = Inventory-to-sales ratio × (1-out-of-stock rate)
[0081] Among them, the out-of-stock rate indicates the proportion of customers who have demand and whose inventory was 0 last week, and whose orders were 0 both this week and last week, to all customers.
[0082] 3.3 Construction of inventory index: The customer inventory-to-sales ratio is generally between 0 and 100. The smaller the value, the tighter the market situation. For ease of explanation, the present invention selects the inverse of the customer inventory-to-sales ratio to calculate the inventory index, which is as follows:
[0083]
[0084] When the inventory-to-sales ratio_correction < 1, it corresponds to the situation where the inventory is insufficient to maintain 1 day's sales. The inventory index is very large, indicating that the market is very tight, and is set to 1; when the customer inventory-to-sales ratio_correction is very large, the inventory index is very small, indicating that the market is very loose, and is set to 0.01. In summary, the value range of the inventory index is between [0.01,1].
[0085] 3.4 Standardization of storage index: In order to weaken the influence of skewed distribution and correct the data to normal distribution as much as possible, the present invention adopts the following logarithmic transformation:
[0086] Storage index_correction = log 10 Deposit Index
[0087] The modified storage index is between [-2, 0], and the present invention uses the following transformation to normalize it to between [0, 1]:
[0088] Storage index_normalized = (storage index_corrected + 2) / 2
[0089] (4) After the three sub-indicators are constructed, the market status comprehensive index is constructed using the three sub-indicators. The market status comprehensive index reflects the severity of the contradiction between market supply and demand. If the quantity index of a specification is larger (the greater the strategy satisfaction rate, the greater the demand shortage rate), the higher the premium level, and the smaller the total social inventory, then the greater the contradiction between supply and demand of the specification, the greater the market status index.
[0090] In the construction, the present invention follows the basic principle that the market state is composed of three factors: "volume, price, and inventory", each factor is equally important and affects each other, and is corrected by the "flow" factor. Finally, the present invention defines the following market state composite index (MSCI):
[0091]
[0092] (5) After constructing the comprehensive market status index, the "flow" factor is used to correct the comprehensive market status index. The "inflow and outflow" volume reflects the supply and demand relationship of the regional market to a certain extent. When there is an outflow seizure volume in the market, the present invention believes that the current market demand for cigarettes is weak and the market status has become loose; when there is an inflow seizure volume in the market, the present invention believes that the current market demand for cigarettes is strong and the market status has become tight. Based on this, the present invention uses the "flow" factor as a correction reference for the comprehensive market status index and adjusts it in sections. The following is the correction process of the "inflow / outflow seizure volume" for the market status:
[0093] 5.1 Definition of market activity level thresholds:
[0094]
[0095] Among them, t reflects the proportion of annual circulation seizure volume to market sales volume, which serves as a judgment benchmark.
[0096] 5.2 Correction of market status by inflow and seizure volume
[0097] When the market activity level threshold meets the following conditions:
[0098]
[0099] The inflow revised the market status composite index upward. Accordingly, the market status rating was revised upward by one level.
[0100] 5.3 Correction of market status by outflow and seizure volume
[0101] When the market activity level threshold meets the following conditions:
[0102]
[0103] The outflow revised the market status index downward. Accordingly, the market status rating was revised downward by one level.
[0104] The comprehensive market status index obtained after the correction is completed is used as the comprehensive market status index in the present invention to reflect the severity of the contradiction between market supply and demand.
[0105] According to an embodiment of the present invention, an embodiment of a method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0106] In this embodiment, a method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence is provided, which can be used in the above-mentioned computer device. Figure 1 is a flow chart of a method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence according to an embodiment of the present invention, such as Figure 1 As shown, the process includes the following steps:
[0107] Step S101, obtaining status data of the cigarette market, where the status data includes input indicators and a comprehensive market status index.
[0108] Specifically, the input indicators include basic indicators and ratio indicators, which reflect factors such as quantity, price, and inventory. This embodiment includes 10 basic indicators, namely, order quantity, strategy quantity, market comprehensive index, sales volume, sales revenue, demand volume, the number of customers with order quantity greater than 0, the number of customers with strategy quantity greater than 0, the number of fully ordered customers, and inventory volume; it also includes 9 ratio indicators, namely, full order rate, sales volume growth rate, sales revenue growth rate, sales-demand ratio, sales-order ratio, ordering surface, sufficient ordering surface, sufficient ordering rate, and order fulfillment rate. All indicators use previous data and current data.
[0109] Step S102, constructing a prediction model for the cigarette market based on the status data, the input index is the input of the prediction model, and the market status comprehensive index is the output of the prediction model.
[0110] Specifically, 70% of the status data set of each cigarette specification is randomly selected as the training set of the prediction model, and the remaining 30% is used as the test set of the prediction model. In this embodiment, the status data set of each cigarette specification is repeatedly divided ten times, and the average value of the performance indicators in the test set is taken as the final result.
[0111] Step S103, selecting target features from the input indicators according to preset rules, and obtaining the relationship between the target features and the comprehensive index of market status based on the prediction model.
[0112] Specifically, an explainable artificial intelligence technology, namely the partial dependency plot (PDP), is embedded on the basis of the prediction model. According to the predicted value of MSCI obtained by the prediction model, combined with the PDP technology, the MSCI is regulated and optimized to a certain extent by adjusting the value of the target feature. The target feature here is the strategy class, which is only used as an example, but not limited to this.
[0113] PDP is an explainable artificial intelligence technology. It mainly shows how one or two features affect model predictions. By analyzing the average impact of features on predictions, PDP reveals the relationship between specific features and prediction results. Its functions include: revealing the impact of features (single or two) on the model, showing how changes in feature values affect predictions; simplifying model interpretation through graphical intuitive display, and improving non-technical personnel's understanding of model behavior. In practical applications, PDP is used to guide decision-making. For example, in the regulation and optimization of the comprehensive market status index, by analyzing the average impact of specific strategy quantities on the market status index, companies are guided to adjust their market strategies.
[0114] Step S104, obtaining the relationship between the target feature and the comprehensive index of the market status according to the prediction model, and selecting the optimal control strategy from the preset control strategies.
[0115] Specifically, the preset control strategy includes multiple different combinations when multiple input indicators take different values. The relationship between the target characteristics and the comprehensive index of market status is obtained according to the prediction model, and the corresponding value of the target characteristics when the comprehensive index of market status is optimal is determined, so as to determine the optimal control strategy according to the value of the target status.
[0116] The method for predicting the comprehensive index of cigarette market status based on explainable artificial intelligence provided in this embodiment constructs a prediction model for the cigarette market by taking indicators reflecting the market status as input indicators, thereby improving the prediction accuracy of the comprehensive index of market status. The relationship between the target characteristics and the comprehensive index of market status is used to improve the interpretability of the prediction model, thereby facilitating the selection of the optimal regulation strategy.
[0117] In this embodiment, a method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence is provided, which can be used in the above-mentioned computer device. Figure 2 is a flow chart of a method for predicting a comprehensive index of cigarette market status based on explainable artificial intelligence according to an embodiment of the present invention, such as Figure 2 As shown, the process includes the following steps:
[0118] Step S201, obtain the status data of the cigarette market, the status data includes input indicators and market status comprehensive index. Figure 1Step S101 of the illustrated embodiment will not be described in detail here.
[0119] Step S202, constructing a prediction model for the cigarette market based on the status data, the input index is the input of the prediction model, and the market status comprehensive index is the output of the prediction model.
[0120] Specifically, the above step S202 includes:
[0121] Step S2021, dividing the state data into a training set and a test set according to a preset ratio.
[0122] Specifically, 70% of the state data set of each cigarette specification is randomly selected as the training set of the prediction model, and the remaining 30% is used as the test set of the prediction model, which is only for example but not limited to this.
[0123] Step S2022, using the input indicators in the training set as the input of multiple initial prediction models, using the comprehensive index of market status in the training set as the output of multiple prediction models, and training to obtain multiple candidate prediction models.
[0124] Specifically, the indicators are input into the LightGBM model. The key is to optimize the parameter settings of LightGBM to improve the prediction accuracy. This embodiment uses the Mean Absolute Deviation (MAE) and the Root Mean Squared Error (RMSE) as performance metrics. The optimization strategy for the LightGBM model includes adjusting the learning rate, the depth of the tree, the number of leaf nodes, and the regularization parameter. In addition, cross-validation will be used to avoid overfitting and ensure the generalization ability of the model. The performance of the optimized LightGBM model is compared with models built based on XGBoost, regression trees, and random forests to evaluate their relative effects. The lower the MAE and RMSE, the higher the prediction accuracy of the model.
[0125] In some optional implementations, the above step S2022 includes:
[0126] Step a1: Input the input indicators in the test set into each initial prediction model for training to obtain the predicted value of the comprehensive index of market status.
[0127] Step a2, calculate the mean absolute error and root mean square error between the predicted value of the market status comprehensive index and the actual value of the market status comprehensive index in the test set.
[0128] In step a3, the mean absolute error and the root mean square error are used as performance metrics, and the preset optimization strategy is used to adjust the parameters of each initial test model to obtain multiple candidate prediction models.
[0129] Specifically, the training and parameter adjustment processes for different initial prediction models are carried out separately, and the specific process is not repeated here. The training set data used in the training and parameter adjustment process is the same, ensuring the consistency of the original data, and the subsequent performance evaluation results of the model are more accurate.
[0130] The prediction method for the comprehensive index of cigarette market status based on explainable artificial intelligence provided in this embodiment takes the mean absolute error and root mean square error of the comprehensive index of market status as performance metrics, optimizes the parameters of the prediction model, improves the generalization ability of the model, and the prediction model after parameter optimization predicts the comprehensive index of market status more accurately.
[0131] Step S2023, performing performance evaluation on multiple candidate prediction models, and determining the optimal prediction model based on the evaluation results.
[0132] The prediction method for the comprehensive index of cigarette market status based on explainable artificial intelligence provided in this embodiment is conducive to analyzing the relationship between the basic indicators, ratio indicators and the comprehensive index of market status in the cigarette market by constructing a prediction model, thereby making the prediction results of the comprehensive index of market status using the basic indicators and ratio indicators in the cigarette market more accurate.
[0133] In some optional implementations, the above step S2023 includes:
[0134] Step b1, using the multiple candidate prediction models to calculate the mean absolute error and root mean square error of the market status comprehensive index.
[0135] Specifically, in order to more effectively predict the market status, four candidate prediction models, LightGBM, XGboost, regression tree and random forest, were selected. The performance was compared and evaluated by calculating and comparing the MAE and RMSE of the four models. For the LightGBM model, the optimal parameters were obtained through the above optimization strategy: the number of leaf nodes per tree was 31, the bagging frequency was 31, the learning rate step was 0.01, and the maximum depth was 5. The parameters of the random forest model: the estimator was 100 and the random state was 42. The parameters of the Xgboost model: the estimator was 1000, the maximum depth was 25, the reg alpha was 5, the reg lambda was 5, the minimum subweight was 5, the gamma was 5, the learning rate was 0.5, and the colsample bytree was 0.1. All experiments were implemented using Python 3.8.
[0136] Step b2: determining a performance metric value of each candidate prediction model according to the mean absolute error and the root mean square error obtained by the multiple candidate prediction models.
[0137] Specifically, MAE is a measurement method used to evaluate the average absolute error between the predicted value and the actual value. The model with the smallest MAE indicates a smaller absolute error and higher accuracy. The root mean square error is another method used to measure the difference between the predicted value and the actual value. The smaller the RMSE, the smaller the model prediction error and the higher the accuracy. The calculation formulas for MAE and RMSE are:
[0138]
[0139]
[0140] Among them, y i represents the real value y of period i i , n represents the number of calculated data, which is 2 here.
[0141] Tables 1 and 2 show the test results (MAE and RMSE values) of the four candidate prediction models on the datasets of 25 brands, respectively. The minimum value on each dataset is highlighted in bold. The last row in both tables provides the average ranking of each model among different brands and the specific advantages of all four different models on each dataset.
[0142] Table 1 Model test results (1) - MAE evaluation
[0143]
[0144] Table 2 Model test results (2) - RMSE evaluation
[0145]
[0146] Step b3, determining the optimal prediction model for the cigarette market from the multiple candidate prediction models according to the performance metric values of the candidate prediction models.
[0147] Specifically, the prediction accuracy errors of the four candidate prediction models in the two performance indicators of MAE and RMSE are all below 0.2, which shows good performance. Among them, the average MAE and RMSE of the LightGBM model are 1.76 and 1.84 respectively, which performs best. Compared with the other models, the LightGBM model has a smaller relative error.
[0148] The LightGBM model performs best on 15 datasets with MAE metric, outperforming the other three models. The number of best performing Xgboost, regression tree, and random forest in MAE measurement is 5, 4, and 1, respectively. The number of best performing LightGBM models, Xgboost, regression tree, and random forest in RMSE measurement is 3, 3, and 4, respectively. In most cases, the LightGBM model can more accurately predict the value of the target variable.
[0149] In order to demonstrate the superiority of LightGBM in terms of statistical significance, the experiment first performed a Friedman test on the prediction accuracy of the four models: In the RMSE measurement, the p-value is 0.011. For the MAE measure, the p-value is 0.0114, so the null hypothesis can be rejected. Holm's post hoc test is further applied to point out the differences. Table 3 shows the results of the Holm test, showing the Z statistic, p-value, comparison threshold (Threshold), and decision. It can be seen from Table 3 that at the 10% significance level, the LightGBM model is significantly better than the other three methods.
[0150] Table 3 Model test results (3) - Holm statistical test results
[0151]
[0152] The prediction method for the comprehensive index of cigarette market status based on explainable artificial intelligence provided in this embodiment uses multiple candidate prediction models to calculate the average absolute error and root mean square error of the comprehensive index of market status, and measures the performance of multiple candidate prediction models based on this to obtain an initial prediction model that is more in line with the cigarette market status. The average absolute error and root mean square error of the initial prediction model finally obtained are optimal as a whole, indicating that the prediction error of the initial prediction model is small and the predicted comprehensive index of market status is the most accurate.
[0153] Step S203, selecting target features from the input indicators according to preset rules, and obtaining the relationship between the target features and the comprehensive index of market status based on the prediction model.
[0154] Specifically, the above step S203 includes:
[0155] Step S2031, determining the correlation between each input indicator and the comprehensive market status index according to a preset rule.
[0156] Specifically, the preset rules are used to find the impact of the input indicators on the comprehensive index of market status. The preset rules can be that when the input indicator size is changed by adjusting the step size in the same proportion, the correlation is determined according to the rate of change of the comprehensive index of market status. This is only an example, but not limited to this.
[0157] Step S2032, determining one or more target features according to the magnitude relationship of the association degree.
[0158] Specifically, the greater the correlation, the greater the impact of the input indicator on the comprehensive index of market status, and vice versa. The smaller the correlation, the smaller the impact of the input indicator on the comprehensive index of market status. One or more input indicators with the largest correlation are found as target features. In this embodiment, the strategy quantity is used as an example for explanation, but it is not limited to this.
[0159] Step S2033, using the prediction model, calculate the conditional expected value of the comprehensive index of market status when the target feature takes different values.
[0160] Specifically, the prediction model, namely the LightGBM model, is used to calculate the predicted value when the target feature takes different values as the conditional expected value. When the strategy quantity takes different values, the corresponding market status comprehensive index is calculated.
[0161] Step S2034, draw one or more partial dependence diagrams with one or more target features as the horizontal coordinates and the conditional expected value of the corresponding market status comprehensive index as the vertical coordinate, so as to intuitively display the relationship between the one or more target features and the market status comprehensive index.
[0162] Specifically, this embodiment uses conditional expected value in combination with partial dependency plot (PDP) technology to change the comprehensive index of market status by adjusting the strategy amount.
[0163] PDP is an explainable artificial intelligence technology. It mainly shows how one or two features affect model predictions. By analyzing the average impact of features on predictions, PDP reveals the relationship between specific features and prediction results. Its functions include: revealing the impact of features (single or two) on the model, showing how changes in feature values affect predictions; simplifying model interpretation through graphical intuitive display, and improving non-technical personnel's understanding of model behavior. In practical applications, PDP is used to guide decision-making. For example, in the regulation and optimization of the comprehensive market status index, by analyzing the average impact of specific strategy quantities on the market status index, companies are guided to adjust their market strategies.
[0164] Taking the strategy volume as the independent variable and the conditional expected value of the market status comprehensive index as the dependent variable, when the strategy volume takes different values, the process of calculating the conditional expected value and generating the PDP curve is as follows:
[0165] (1) PDP can show the marginal effect of features on the prediction results of machine learning models. The partial dependence function used for regression is defined as:
[0166]
[0167] Among them, x S represents the strategy quantity, which is the feature whose partial dependence function should be plotted, x C In the machine learning model The other features used in . Typically, there are only one or two features in the set S, and the features in S are those whose impact on the prediction we want to understand. The feature vector x S (strategy amount) and x CThe combined total feature space x. Partial dependence works by marginalizing the machine learning model output on the distribution of features in set C, so the function shows the relationship between the features in the set S of interest and the predicted outcome. By marginalizing out the other features, we get a function that depends only on the features in S and their interactions with other features.
[0168] (2) Calculate the partial dependency value: For each possible value of the policy variable, calculate its average impact on the prediction result, which is done by averaging the prediction results over all other features. Partial dependency function It is estimated by calculating the average value in the training data, also known as the Monte Carlo method:
[0169]
[0170] The partial dependence function tells us what the average marginal effect of a given value of feature S is on the prediction. In the above formula, x C is the actual feature value of the feature we are not interested in in the dataset, and n is the number of instances in the dataset. For the selected target feature (strategy quantity), in the python environment, call the PartialDependenceDisplay toolkit in the sklearn library, which will create a series of data points whose values on the feature cover its possible range, while other features maintain the values in the original data. The data points generated using the above method are predicted by the LightGBM model, and then for each feature value, the PartialDependenceDisplay toolkit is used to draw its corresponding average prediction result.
[0171] (3) Generate a PDP curve. Its main purpose is to visualize the relationship between the target feature (such as strategy volume) and the prediction result. Curve drawing: Use the partial dependence value calculated in the previous step to draw a curve graph, with the horizontal axis representing the value of the strategy volume and the vertical axis representing the prediction result of the market comprehensive status index, that is, the conditional expected value.
[0172] The prediction method of the comprehensive index of the cigarette market status based on explainable artificial intelligence provided in this embodiment selects the indicator with the highest correlation with the comprehensive index of the market status from multiple input indicators as the target feature, without the need to analyze all input indicators, which simplifies the analysis process and ensures the accuracy of the prediction results of the comprehensive index of the market status. The relationship between the target feature and the comprehensive index of the market status is obtained by using the prediction model, which is conducive to the specificization and visualization of the impact of the target feature on the market status, and is convenient for selecting the optimal value of the target feature, and then determining the regulation strategy.
[0173] Step S204, obtaining the relationship between the target feature and the comprehensive index of the market status according to the prediction model, and selecting the optimal control strategy from the preset control strategies.
[0174] Specifically, the above step S204 includes:
[0175] Step S2041, analyzing the partial dependence graph to obtain analysis results.
[0176] Step S2042, clarifying the optimal match between the target characteristics and the comprehensive index of market status based on the analysis results.
[0177] Step S2043, selecting an optimal control strategy according to the optimal match, where the optimal control strategy is to set the target feature to an optimal value.
[0178] Specifically, combined with the example diagrams of the three specifications, the influence of different strategy quantities on MSCI is elaborated in detail, such as Figure 3-5 As shown in the figure, the horizontal axis "QTY_UPPER_LIMIT_T1" represents the strategy volume, and the vertical axis "E[f(x)|QTY_UPPER_LIMIT_T1]" represents the conditional expected value of the market composite index under the corresponding strategy volume value. The gray bar chart below the figure represents the actual distribution of the strategy volume, that is, the frequency of occurrence of different values of this feature in the data set. The PDP chart shows how the value of the strategy volume affects the expected value of the market state composite index prediction result when all other features remain unchanged.
[0179] like Figure 3 As shown in the figure, it is the PDP diagram of Specification 1. When the value of the strategy volume is between 0 and about 6000, the expected value of the market composite index forecast increases with the increase of the strategy volume. At about 6000, the expected value of the forecast has a significant jump, and then as the strategy volume continues to increase, the expected value remains roughly constant. In the range of strategy volume values greater than 8000, the expected value of the forecast basically reaches the maximum value and tends to converge, which may indicate an upper limit of the model prediction.
[0180] MSCI is regulated based on the analysis results. The specific regulation process needs to be determined in combination with historical data. For example, when the MSCI forecast result of the product specification does not meet expectations, first find out the specific strategy volume of the product specification (such as around 4000), and determine the range in which the strategy volume can be optimized based on the PDP curve (4000-8000 in this case). Combined with specific needs and business experience, appropriately increase the strategy volume of the product specification within this range (4000-8000) to regulate its MSCI index.
[0181] like Figure 4As shown in the figure, it is the PDP diagram of Specification 2. When the value of the strategy volume is between 0 and about 5000, the expected value of the market composite index forecast increases with the increase of the strategy volume. After about 6000, as the strategy volume continues to increase, the expected value remains roughly constant. In the range of strategy volume values greater than 10000, the expected value of the forecast gradually decreases within a smaller range and tends to converge.
[0182] MSCI is regulated based on the analysis results. The specific regulation process needs to be determined in combination with historical data. For example, when the MSCI forecast result of the product specification does not meet expectations, first find out the specific strategy volume of the product specification (such as around 3000), and determine the interval in which the strategy volume can be optimized based on the PDP curve (3000-5000 in this case). Combined with specific needs and business experience, appropriately increase the strategy volume of the product specification within this interval (3000-5000) to regulate its MSCI index.
[0183] like Figure 5 As shown in the figure, it is the PDP diagram of product specification 3. When the strategy volume is between 0 and about 2000, the expected value of the market composite index forecast increases with the increase of strategy volume. Subsequently, when the strategy volume is between about 2000 and 4500, the expected value remains stable. When the strategy volume is greater than 4500, a threshold effect occurs, that is, the forecast changes significantly at this point. Before this point, the forecast value remains at a high level (about 0.57), and after this point, the forecast value decreases in a step-like manner as the strategy volume increases.
[0184] MSCI is regulated based on the analysis results. The specific regulation process needs to be determined in combination with historical data. For example, when the MSCI forecast result of the product specification does not meet expectations, first find out the specific strategy quantity of the product specification (such as around 5000), and determine the interval in which the strategy quantity can be optimized based on the PDP curve (2000-5000 in this case). Combined with specific needs and business experience, appropriately reduce the strategy quantity of the product specification within this interval (2000-5000) to regulate its MSCI index.
[0185] Due to the complex composition of the market status comprehensive index, it is not feasible to regulate it in an all-round way, and it can only be adjusted in a directional manner through partial means. The method of adjusting the strategy volume is the most direct and operational method. At the same time, combined with the theoretical significance and analytical value of the PDP method, it is reasonable and explainable to adjust the market status comprehensive index by adjusting the strategy volume.
[0186] The above PDP curve analysis process will provide companies with specific guidance on how to adjust their market strategies to achieve better market performance. For example, if it is found that the strategy volume has a significant positive impact on the market index within a certain range, the company can consider adjusting the launch strategy of the product specification so that it can operate within this range. PDP curve analysis provides a visual display of the complex relationship between market status and sales strategy. Through these visualizations, companies can formulate strategies more effectively, such as rationally planning production plans, optimizing supply chain management, and avoiding problems such as excess inventory or insufficient supply. Ultimately, this will help companies optimize the comprehensive market status index and achieve healthy and sustainable development of the cigarette market.
[0187] The prediction method for the comprehensive index of cigarette market status based on explainable artificial intelligence provided in this embodiment determines the optimal regulation strategy by analyzing the partial dependence diagram of the comprehensive index of market status, thereby providing solid data support for market decision-making, helping to better understand and respond to market changes, and ensuring that the market status remains at an ideal level.
[0188] In this embodiment, a prediction device for a comprehensive index of the cigarette market status based on explainable artificial intelligence is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0189] This embodiment provides a prediction device for a comprehensive index of cigarette market status based on explainable artificial intelligence, such as Figure 6 As shown, including:
[0190] The data acquisition module 601 is used to acquire the status data of the cigarette market, and the status data includes input indicators and a comprehensive market status index.
[0191] The prediction model building module 602 is used to build a prediction model of the cigarette market based on the status data. The input index is the input of the prediction model, and the market status comprehensive index is the output of the prediction model.
[0192] The feature impact module 603 is used to select target features from the input indicators according to preset rules, and obtain the relationship between the target features and the comprehensive index of market status based on the prediction model.
[0193] The control guidance module 604 is used to obtain the relationship between the target characteristics and the comprehensive index of the market status according to the prediction model, and select the optimal control strategy from the preset control strategies.
[0194] In some optional implementations, the prediction model building module 602 includes:
[0195] The data preprocessing unit is used to divide the state data into a training set and a test set according to a preset ratio.
[0196] The model training unit is used to use the input indicators in the training set as the input of multiple initial prediction models, use the comprehensive index of market status in the training set as the output of multiple prediction models, and train multiple candidate prediction models.
[0197] The performance evaluation unit is used to perform performance evaluation on multiple candidate prediction models and determine the optimal prediction model based on the evaluation results.
[0198] In some optional implementations, the feature impact module 603 includes:
[0199] The correlation determination unit is used to determine the correlation between each input indicator and the market status comprehensive index according to a preset rule.
[0200] The target feature determination unit is used to determine one or more target features according to the magnitude relationship of the correlation degree.
[0201] The prediction value calculation unit is used to use the prediction model to calculate the conditional expected value of the market status comprehensive index when the target feature takes different values.
[0202] The relationship determination unit is used to draw one or more partial dependence diagrams with one or more target features as horizontal coordinates and the conditional expected value of the corresponding market status comprehensive index as vertical coordinates, so as to intuitively display the relationship between one or more target features and the market status comprehensive index.
[0203] In some optional implementations, the control and guidance module 604 includes:
[0204] The result analysis unit is used to analyze the partial dependence diagram to obtain the analysis result.
[0205] The optimal matching determination unit is used to clarify the optimal matching between the target characteristics and the comprehensive index of the market status based on the analysis results.
[0206] The optimal control strategy determination unit is used to select the optimal control strategy according to the optimal match, and the optimal control strategy is to set the target feature to the optimal value.
[0207] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0208] The prediction device for the comprehensive index of cigarette market status based on explainable artificial intelligence in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0209] The embodiment of the present invention also provides a computer device having the above Figure 6 The predictive device for the comprehensive index of cigarette market status based on explainable artificial intelligence is shown.
[0210] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.
[0211] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0212] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0213] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0214] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0215] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0216] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0217] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for predicting the comprehensive index of cigarette market status based on explainable artificial intelligence, characterized in that: The method comprises: Acquiring cigarette market status data, wherein the status data includes input indicators and a comprehensive market status index; Constructing a prediction model of the cigarette market based on the status data, wherein the input index is the input of the prediction model, and the market status comprehensive index is the output of the prediction model; Selecting a target feature from the input index according to a preset rule, and obtaining a relationship between the target feature and the comprehensive index of the market status based on the prediction model; The relationship between the target feature and the comprehensive index of the market status is obtained according to the prediction model, and the optimal control strategy is selected from the preset control strategies.
2. The method according to claim 1, characterized in that The constructing the prediction model of the cigarette market based on the status data comprises: Dividing the state data into a training set and a test set according to a preset ratio; Using the input indicators in the training set as inputs of multiple initial prediction models, using the comprehensive market status index in the training set as outputs of multiple initial prediction models, and training to obtain multiple candidate prediction models; The performance of multiple candidate prediction models is evaluated, and the optimal prediction model is determined based on the evaluation results.
3. The method according to claim 2, characterized in that The training obtains multiple candidate prediction models, including: Inputting the input indicators in the test set into each of the initial prediction models for training to obtain the predicted value of the market status comprehensive index; Calculate the mean absolute error and the root mean square error between the predicted value of the market status comprehensive index and the actual value of the market status comprehensive index in the test set; The mean absolute error and the root mean square error are used as performance metrics, and the parameters of each of the initial test models are adjusted using a preset optimization strategy to obtain multiple candidate prediction models.
4. The method according to claim 2, characterized in that: The step of performing performance evaluation on multiple candidate prediction models and determining the optimal prediction model according to the evaluation results includes: Calculating the mean absolute error and the root mean square error of the market status comprehensive index using the multiple candidate prediction models; Determining a performance metric value of each candidate prediction model based on the mean absolute error and the root mean square error obtained from the multiple candidate prediction models; According to the performance metric values of the candidate prediction models, the optimal prediction model for the cigarette market is determined from the multiple candidate prediction models.
5. The method according to claim 1, characterized in that The selecting target features from the input indicators according to preset rules includes: Determine the correlation between each input indicator and the market status comprehensive index according to preset rules; One or more target features are determined according to the magnitude relationship of the correlation degree.
6. The method according to claim 1, characterized in that The obtaining, based on the prediction model, of the relationship between the target feature and the comprehensive index of the market status includes: Using the prediction model, respectively calculating the conditional expected value of the market status comprehensive index when the target feature takes different values; One or more partial dependence diagrams are drawn with one or more of the target features as the horizontal coordinates and the conditional expected value of the corresponding market status comprehensive index as the vertical coordinate to intuitively display the relationship between one or more of the target features and the market status comprehensive index.
7. The method according to claim 6, characterized in that The step of obtaining the relationship between the target feature and the comprehensive index of the market status according to the prediction model and selecting the optimal control strategy from the preset control strategies includes: Analyzing the partial dependence graph to obtain analysis results; Determine the optimal match between the target feature and the comprehensive index of market status based on the analysis result; An optimal control strategy is selected according to the optimal match, and the optimal control strategy is to set the target feature to an optimal value.
8. A device for predicting the comprehensive index of cigarette market status based on explainable artificial intelligence, characterized in that: The device comprises: A data acquisition module, used to acquire status data of the cigarette market, wherein the status data includes input indicators and a comprehensive market status index; A prediction model building module, used to build a prediction model of the cigarette market based on the status data, wherein the input index is the input of the prediction model, and the market status comprehensive index is the output of the prediction model; A feature influence module, used to select a target feature from the input index according to a preset rule, and obtain a relationship between the target feature and the market status comprehensive index based on the prediction model; The control guidance module is used to obtain the relationship between the target feature and the comprehensive index of the market status according to the prediction model, and select the optimal control strategy from the preset control strategies.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.
