Tobacco delivery amount analysis method and system based on neural network
By constructing a cigarette volume model based on the neural network-based tobacco volume research and judgment method, it solves the problem of feedback and adjustment of cigarette volume in the market in the existing technology, improves the accuracy and flexibility of placement, and realizes market feedback-driven Volume adjustment.
Patent Information
- Application Number
- CN202010805041.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-12
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-08-12
AI Technical Summary
The existing tobacco delivery mechanism lacks flexibility and cannot effectively understand the feedback and adjustment of cigarette delivery volume in the market, resulting in insufficient delivery accuracy and flexibility, especially in areas with a large gap between urban and rural areas.
Adopt a method of researching and judging tobacco dosage based on neural networks, build a cigarette dosage model, use a deep learning framework (such as PyTorch) and a big data platform, and combine the characteristic data of cigarettes and customer needs to train a dosage model that meets the requirements and provide Simulate delivery situation and reference delivery volume.
It achieves precise adjustment of the amount of cigarettes placed, improves the accuracy and flexibility of the placement, can adjust the amount of cigarettes based on market feedback, achieves an average effect, and reduces the training time of the neural network model.
Smart Images

Figure CN112001774B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of machine learning and data mining, and in particular to a method and system for determining tobacco delivery amount based on a neural network. Background Art
[0002] The original tobacco market mainly determines the amount of tobacco released in the market by the retailer level or by the tobacco price range. The original tobacco release mechanism lacks flexibility and has certain limitations, especially in cities with relatively large gaps between urban and rural areas, where the disadvantages of the original release mechanism are more obvious. For example, in the Heze area, the retail customers in the township market are at a higher level, and the sales volume is very high, but the actual demand for high-end cigarettes is relatively small. In contrast, although the retailers in the urban market are at a lower level, the actual demand for mid-to-high-end cigarettes is relatively large. According to the original cigarette release model, the accuracy and flexibility of the release of some cigarette brands need to be improved. When the release of specific cigarettes is determined, it is impossible to understand the feedback and effectiveness of this release in the market.
[0003] Therefore, how to obtain feedback and effectiveness of cigarette supply in the current market, and then adjust cigarette supply to achieve an average effect is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The technical task of the present invention is to provide a method and system for determining the amount of tobacco released based on a neural network to solve the problem of how to obtain feedback and effectiveness of the amount of cigarette released in the current market, and then adjust the amount of cigarette released to achieve an average effect.
[0005] The technical task of the present invention is achieved in the following way: a method for determining tobacco delivery based on a neural network, which uses a neural network model to construct a cigarette delivery model. According to the characteristics of the tobacco market, the characteristics of cigarettes are used as reading indicators of the cigarette delivery model. The cigarette delivery model calculates the required cigarette delivery according to the training conditions, and provides customers with simulated weekly delivery of cigarettes under different delivery amounts, that is, according to the user's expected cigarettes to achieve the full order rate, provides the user with a reference delivery amount of cigarettes; the details are as follows:
[0006] S1. Obtaining characteristic data of cigarettes;
[0007] S2, preprocessing the data of relevant characteristics of cigarettes;
[0008] S3, training cigarette delivery model;
[0009] S4. Display and use of cigarette delivery model results.
[0010] Preferably, the characteristic data of cigarettes obtained in step S1 is specifically as follows:
[0011] S101. The user needs to select specific tobacco brand information that he or she expects to simulate according to actual needs, and obtain characteristic data of cigarettes including the number of households that have been put into use, the number of households that have ordered cigarettes, the sufficient order quantity, the total order quantity, the number of households that have ordered cigarettes, and the cigarettes that have ordered cigarettes in sufficient quantity according to the tobacco brand information;
[0012] S102. The cigarette delivery model adds filtering conditions of account manager, city area and customer label to the characteristic data of cigarettes. By using accurate and detailed filtering conditions to select training data for the cigarette delivery model, the cigarette delivery model can more accurately and specifically reflect the real business needs of the predicted customers.
[0013] Preferably, the preprocessing of the data of the relevant characteristics of the cigarette in step S2 is specifically as follows:
[0014] S201, automatically fetching information data of cigarette delivery quantity that meets the conditions from the database according to the task parameters added by the user in step S1;
[0015] S202, summarizing the information data of cigarette delivery amount according to time, and obtaining a set of training data reflecting the weekly delivery amount information that meets the cigarettes selected by the user and the screening conditions;
[0016] S203. Considering that the sales volume and supply volume of cigarettes fluctuate greatly during special periods of each year, in order to increase the accuracy of the research model, the data is standardized and some extreme data are filtered out to make the construction of the cigarette supply volume model more suitable for data in the normal range.
[0017] Preferably, the cigarette delivery amount model training in step S3 is specifically as follows:
[0018] S301, after executing the preprocessing process, the cigarette delivery quantity model automatically calls the computing node in the big data platform;
[0019] S302, the cigarette delivery model uses the deep learning PyTorch framework to write a neural network model;
[0020] S303, the cigarette delivery amount model generates the necessary parameters of the neural network model, that is, a multi-layer neural network prototype with 50 neurons, and uses the relu function as the activation function of the neural network model to process the results calculated by each neuron after each training;
[0021] S304, the cigarette delivery model uses the MSE method as the loss function when the neural network feedbacks the error;
[0022] S305, the cigarette delivery model uses the adam function as an optimization function for the neural network model to continuously adjust the error;
[0023] S306: The cigarette delivery model training cycle is initially set to N times. During the training cycle, if the error between the training cigarette delivery model and the actual data is less than N / 10 11 , then the final available cigarette delivery model is returned; where N is not less than 10 7 .
[0024] Preferably, the display and use of the cigarette delivery amount model results in step S4 are as follows:
[0025] S401, executing the algorithm loop of the cigarette delivery amount model training cycle, and judging whether the expected value is reached: when the cigarette delivery amount model algorithm reaches the expected value, the current loop is stopped, and the model is returned and saved;
[0026] S402, using the trained cigarette delivery model, simulate and generate a test training set, that is, control the other variables of the model to the median value, generate M freely transformable data according to the fluctuation range of the original training set, use the previously trained cigarette delivery model, add the new test set to the cigarette delivery model to test the results; wherein M is not less than 5000;
[0027] S403: De-standardize the data of the results calculated by the cigarette delivery model, and calculate the corresponding tobacco index according to the result set.
[0028] A tobacco delivery amount analysis system based on a neural network, the system comprising:
[0029] A data acquisition unit, used for acquiring characteristic data of cigarettes;
[0030] A data preprocessing unit, used for preprocessing data on relevant characteristics of cigarettes;
[0031] A model training unit, used for training a cigarette delivery quantity model;
[0032] The result display and use unit is used to display and use the results of the cigarette delivery model.
[0033] Preferably, the data acquisition unit comprises:
[0034] The characteristic data acquisition module is used for users to select specific expected simulated tobacco brand information according to actual needs, and obtain the characteristic data of cigarettes such as the number of households put into use, the number of households ordering, the sufficient order quantity, the total order quantity, the number of households ordering enough, and the sufficient customer order quantity according to the tobacco brand information;
[0035] The screening module is used to add the screening conditions of account manager, city area and customer label to the characteristic data of cigarettes in the cigarette delivery model. By using accurate and detailed screening conditions to select training data for the cigarette delivery model, the cigarette delivery model can more accurately and specifically reflect the real business needs of the predicted customers.
[0036] The data preprocessing unit comprises:
[0037] A capture module, used to automatically capture information data of cigarette delivery quantity that meets the conditions from the database according to the task parameters added by the user of the data acquisition unit;
[0038] The summary module is used to summarize the information data of cigarette delivery according to time, and obtain a set of training data reflecting the weekly delivery information that meets the user's selection of cigarettes and screening conditions; considering that the sales volume and delivery volume of cigarettes fluctuate greatly during special periods of each year, in order to increase the accuracy of the research model, the data is standardized and some extreme data in the data are filtered out, so that the construction of the cigarette delivery model can better fit the data in the normal range.
[0039] More preferably, the model training unit includes:
[0040] The node calling module is used for the cigarette delivery model to automatically call the computing nodes in the big data platform after executing the preprocessing process;
[0041] Writing module for writing neural network models using the deep learning PyTorch framework;
[0042] The result calculation module is used to generate the necessary parameters of the neural network model, that is, a prototype of a multi-layer neural network with 50 neurons, and uses the relu function as the activation function of the neural network model to process the results calculated by each neuron after each training;
[0043] A feedback module is used to use the MSE method as the loss function when the neural network feedbacks the error;
[0044] Error optimization module, used to use the adam function as the optimization function for continuously adjusting the error of the neural network model;
[0045] The error judgment module is used to initially set the cigarette delivery model training cycle to N times. During the training cycle, if the error between the training cigarette delivery model and the actual data is less than N / 10 11 , then the final available cigarette delivery model is returned; where N is not less than 10 7 ;
[0046] The result display and use unit includes:
[0047] The expected value judgment module is used to execute the algorithm loop of the cigarette delivery model training cycle and judge whether the expected value is reached: when the cigarette delivery model algorithm reaches the expected value, the current loop is stopped, and the model is returned and saved;
[0048] The result test module is used to simulate and generate a test training set using the trained cigarette delivery model, that is, other variables of the control model are controlled to be median values, and the delivery variable is used to generate M freely transformable data according to the fluctuation range of the original training set. The previously trained cigarette delivery model is used to add the new test set to the cigarette delivery model for result testing; wherein M is not less than 5000;
[0049] The de-standardization module is used to perform data de-standardization processing on the results calculated by the cigarette delivery model, and calculate the corresponding tobacco indicators based on the result set.
[0050] An electronic device comprising: a memory and at least one processor;
[0051] Wherein, the memory stores computer-executable instructions;
[0052] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the above-mentioned method for determining the amount of tobacco delivery based on a neural network.
[0053] A computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the above-mentioned method for determining tobacco delivery amount based on a neural network is implemented.
[0054] The tobacco delivery amount determination method and system based on neural network of the present invention have the following advantages:
[0055] (I) The neural network model can be used to simulate the cigarette delivery volume under different delivery conditions, which can assist and enrich the existing cigarette delivery mechanism, allowing customers to observe the impact of different delivery quantities under different conditions in the market before deploying delivery policies;
[0056] (ii) The neural network model provides customers with a set of rules for judging the amount of cigarettes released, that is, it determines the main factors that affect the amount of cigarettes released. After strict screening and adjustment, these main factors have the characteristics of being observable, adjustable, and simulatable, providing a benchmark and reference for the neural network model or any future tobacco market research;
[0057] (III) The present invention provides users with market simulation results of different tobacco delivery amounts, that is, based on the changes in delivery amounts, the model deduces and simulates the average effect that this cigarette brand can achieve in the current market situation;
[0058] (IV) The present invention provides customers with a set of standardized and executable research and calculation standards for cigarette delivery through a neural network model, that is, in constructing a model for predicting cigarette delivery, after reasonable and scientific screening, the number of cigarette delivery households, the number of ordering households, the sufficient order quantity, the total order quantity, the number of fully ordered households, and the fully ordered customer order quantity are used as the judgment criteria and key influencing conditions for calculating the weekly cigarette delivery;
[0059] (V) The present invention uses the deep learning framework PyTorch and utilizes highly efficient big data distributed cluster computing nodes as a model training method, which greatly reduces the training time of the neural network model;
[0060] (VI) The present invention simulates the different effects that can be achieved by the weekly delivery of a certain type of cigarettes at different delivery amounts, that is, the model is first calculated based on the expected full order rate of cigarettes added by the user when starting the task, and then the full order rate achieved by different delivery amounts is calculated, and finally a query method is provided for the customer to return the delivery amount value that the customer considers to be the most reasonable. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The present invention is further described below in conjunction with the accompanying drawings.
[0062] Attached Figure 1 This is a flowchart of the method for determining tobacco delivery amount based on neural network;
[0063] Attached Figure 2 Added interface screenshots for the cigarette delivery model task;
[0064] Attached Figure 3 This is a screenshot of the interface for returning the results of the cigarette delivery model task;
[0065] Attached Figure 4 This is a flowchart of the working process of the tobacco delivery amount analysis system based on neural network. DETAILED DESCRIPTION
[0066] The tobacco delivery amount analysis method and system based on neural network of the present invention are described in detail below with reference to the drawings and specific embodiments of the specification.
[0067] Embodiment 1:
[0068] As attached Figure 1As shown, the tobacco delivery amount determination method based on neural network of the present invention uses a neural network model to construct a cigarette delivery amount model. According to the characteristics of the tobacco market, the characteristics of cigarettes are used as reading indicators of the cigarette delivery amount model. The cigarette delivery amount model calculates the required cigarette delivery amount according to the training conditions, and provides customers with simulated weekly delivery conditions of cigarettes under different delivery amounts, that is, according to the condition that the user expects the cigarettes to reach the full order rate, provides the user with a reference delivery amount of cigarettes; the details are as follows:
[0069] S1. Obtain characteristic data of cigarettes; the details are as follows:
[0070] S101. The user needs to select specific tobacco brand information that he or she expects to simulate according to actual needs, and obtain characteristic data of cigarettes including the number of households that have been put into use, the number of households that have ordered cigarettes, the sufficient order quantity, the total order quantity, the number of households that have ordered cigarettes, and the cigarettes that have ordered cigarettes in sufficient quantity according to the tobacco brand information;
[0071] S102. The cigarette delivery model adds filtering conditions of account manager, city area and customer label to the characteristic data of cigarettes. By using accurate and detailed filtering conditions to select training data for the cigarette delivery model, the cigarette delivery model can more accurately and specifically reflect the real business needs of the predicted customers.
[0072] S2. Preprocess the data of relevant characteristics of cigarettes; the details are as follows:
[0073] S201, automatically fetching information data of cigarette delivery quantity that meets the conditions from the database according to the task parameters added by the user in step S1;
[0074] S202, summarizing the information data of cigarette delivery amount according to time, and obtaining a set of training data reflecting the weekly delivery amount information that meets the cigarettes selected by the user and the screening conditions;
[0075] S203. Considering that the sales volume and supply volume of cigarettes fluctuate greatly during special periods of each year, in order to increase the accuracy of the research model, the data is standardized and some extreme data are filtered out to make the construction of the cigarette supply volume model more suitable for data in the normal range.
[0076] S3. Training the cigarette delivery model; the details are as follows:
[0077] S301, after executing the preprocessing process, the cigarette delivery quantity model automatically calls the computing node in the big data platform;
[0078] S302, the cigarette delivery model uses the deep learning PyTorch framework to write a neural network model;
[0079] S303, the cigarette delivery amount model generates the necessary parameters of the neural network model, that is, a multi-layer neural network prototype with 50 neurons, and uses the relu function as the activation function of the neural network model to process the results calculated by each neuron after each training;
[0080] S304, the cigarette delivery model uses the MSE method as the loss function when the neural network feedbacks the error;
[0081] S305, the cigarette delivery model uses the adam function as an optimization function for the neural network model to continuously adjust the error;
[0082] S306: The cigarette delivery model training cycle is initially set to N times. During the training cycle, if the error between the training cigarette delivery model and the actual data is less than N / 10 11 , then the final available cigarette delivery model is returned; where N is not less than 10 7 .
[0083] S4. Display and use of cigarette delivery model results; details are as follows:
[0084] S401, execute the algorithm cycle of the cigarette delivery model training cycle, and determine whether the expected value is reached:
[0085] When the cigarette delivery model algorithm reaches the expected value, the current cycle is stopped, and the model is returned and saved;
[0086] S402, using the trained cigarette delivery model, simulate and generate a test training set, that is, control the other variables of the model to the median value, generate M freely transformable data according to the fluctuation range of the original training set, use the previously trained cigarette delivery model, add the new test set to the cigarette delivery model to test the results; wherein M is not less than 5000;
[0087] S403: De-standardize the data of the results calculated by the cigarette delivery model, and calculate the corresponding tobacco index according to the result set.
[0088] Embodiment 2:
[0089] As attached Figure 4 As shown, the tobacco delivery amount judging system based on neural network of the present invention comprises:
[0090] A data acquisition unit is used to acquire characteristic data of cigarettes; the data acquisition unit includes:
[0091] The characteristic data acquisition module is used for users to select specific expected simulated tobacco brand information according to actual needs, and obtain the characteristic data of cigarettes such as the number of households put into use, the number of households ordering, the sufficient order quantity, the total order quantity, the number of households ordering enough, and the sufficient customer order quantity according to the tobacco brand information;
[0092] The screening module is used to add the screening conditions of account manager, city area and customer label to the characteristic data of cigarettes in the cigarette delivery model. By using accurate and detailed screening conditions to select training data for the cigarette delivery model, the cigarette delivery model can more accurately and specifically reflect the real business needs of the predicted customers.
[0093] The data preprocessing unit is used to preprocess the data of the relevant characteristics of the cigarette; the data preprocessing unit includes:
[0094] A capture module, used to automatically capture information data of cigarette delivery quantity that meets the conditions from the database according to the task parameters added by the user of the data acquisition unit;
[0095] The summary module is used to summarize the information data of cigarette delivery according to time, and obtain a set of training data reflecting the weekly delivery information that meets the user's selection of cigarettes and screening conditions; considering that the sales volume and delivery volume of cigarettes fluctuate greatly during special periods of each year, in order to increase the accuracy of the research model, the data is standardized and some extreme data in the data are filtered out, so that the construction of the cigarette delivery model can better fit the data in the normal range.
[0096] The model training unit is used to train the cigarette delivery quantity model; the model training unit includes:
[0097] The node calling module is used for the cigarette delivery model to automatically call the computing nodes in the big data platform after executing the preprocessing process;
[0098] Writing module for writing neural network models using the deep learning PyTorch framework;
[0099] The result calculation module is used to generate the necessary parameters of the neural network model, that is, a prototype of a multi-layer neural network with 50 neurons, and uses the relu function as the activation function of the neural network model to process the results calculated by each neuron after each training;
[0100] A feedback module is used to use the MSE method as the loss function when the neural network feedbacks the error;
[0101] Error optimization module, used to use the adam function as the optimization function for continuously adjusting the error of the neural network model;
[0102] The error judgment module is used to initially set the cigarette delivery model training cycle to N times. During the training cycle, if the error between the training cigarette delivery model and the actual data is less than N / 10 11 , then the final available cigarette delivery model is returned; where N is not less than 10 7 ;
[0103] The result display and use unit is used for displaying and using the results of the cigarette delivery model; the result display and use unit includes:
[0104] The expected value judgment module is used to execute the algorithm loop of the cigarette delivery model training cycle and judge whether the expected value is reached: when the cigarette delivery model algorithm reaches the expected value, the current loop is stopped, and the model is returned and saved;
[0105] The result test module is used to simulate and generate a test training set using the trained cigarette delivery model, that is, other variables of the control model are controlled to be median values, and the delivery variable is used to generate M freely transformable data according to the fluctuation range of the original training set. The previously trained cigarette delivery model is used to add the new test set to the cigarette delivery model for result testing; wherein M is not less than 5000;
[0106] The de-standardization module is used to perform data de-standardization processing on the results calculated by the cigarette delivery model, and calculate the corresponding tobacco indicators based on the result set.
[0107] The working process is as follows:
[0108] (1) Add task conditions, such as Figure 2 As shown;
[0109] (2) Obtain relevant data;
[0110] (3) Filter abnormal data and standardize the processed data;
[0111] (4) Retrieve the Pytorch framework from the computing node of the big data platform;
[0112] (5) Construct a cigarette delivery model;
[0113] (6) Train and save the amount of cigarettes delivered, and simulate and generate new data;
[0114] (7) Retrieving and using the amount of cigarettes to be put in;
[0115] (8) De-standardization of cigarette delivery results;
[0116] (9) Display the query results, as shown in the attached Figure 3 shown.
[0117] Embodiment 3:
[0118] An embodiment of the present invention further provides an electronic device, comprising: a memory and at least one processor;
[0119] Wherein, the memory stores computer-executable instructions;
[0120] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the tobacco delivery amount determination method based on neural network as in Example 1.
[0121] Embodiment 4:
[0122] The embodiment of the present invention further provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are loaded by a processor, so that the processor executes the method for determining the amount of tobacco delivery based on a neural network in any embodiment of the present invention. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code for implementing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
[0123] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0124] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0125] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0126] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or written to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for determining tobacco delivery amount based on neural network. It is characterized in that The method is to use a neural network model to build a cigarette delivery model. According to the characteristics of the tobacco market, the characteristics of cigarettes are used as reading indicators of the cigarette delivery model. The cigarette delivery model calculates the required cigarette delivery according to the training conditions, and provides customers with simulated weekly delivery of cigarettes under different delivery amounts, that is, according to the user's expected cigarette ordering rate, the user is provided with a reference delivery amount of cigarettes; the details are as follows: S1. Obtain characteristic data of cigarettes; the details are as follows: S101. The user needs to select specific tobacco brand information that he or she expects to simulate according to actual needs, and obtain characteristic data of cigarettes including the number of households that have been put into use, the number of households that have ordered cigarettes, the sufficient order quantity, the total order quantity, the number of households that have ordered cigarettes, and the cigarettes that have ordered cigarettes in sufficient quantity according to the tobacco brand information; S102. The cigarette delivery model adds the filtering conditions of account manager, city area and customer label to the characteristic data of cigarettes. By using accurate and detailed filtering conditions to select training data for the cigarette delivery model, the cigarette delivery model can more accurately and specifically reflect the real business needs of the predicted customers. S2. Preprocess the data of relevant characteristics of cigarettes; the details are as follows: S201, automatically fetching information data of cigarette delivery quantity that meets the conditions from the database according to the task parameters added by the user in step S1; S202, summarizing the information data of cigarette delivery amount according to time, and obtaining a set of training data reflecting the weekly delivery amount information that meets the cigarettes selected by the user and the screening conditions; S203, standardizing the data and filtering out some extreme value data in the data, so that the construction of the cigarette delivery amount model is more suitable for data in a normal range; S3. Training the cigarette delivery model; the details are as follows: S301, after executing the preprocessing process, the cigarette delivery quantity model automatically calls the computing node in the big data platform; S302, the cigarette delivery model uses the deep learning PyTorch framework to write a neural network model; S303, the cigarette delivery amount model generates the necessary parameters of the neural network model, that is, a multi-layer neural network prototype with 50 neurons, and uses the relu function as the activation function of the neural network model to process the results calculated by each neuron after each training; S304, the cigarette delivery model uses the MSE method as the loss function when the neural network feedbacks the error; S305, the cigarette delivery model uses the adam function as an optimization function for the neural network model to continuously adjust the error; S306: The cigarette delivery model training cycle is initially set to N times. During the training cycle, if the error between the training cigarette delivery model and the actual data is less than N / 10 11 , then the final available cigarette delivery model is returned; where N is not less than 10 7 ; S4. Display and use of cigarette delivery model results; details are as follows: S401, execute the algorithm cycle of the cigarette delivery model training cycle, and determine whether the expected value is reached: When the cigarette delivery model algorithm reaches the expected value, the current cycle is stopped, and the model is returned and saved; S402, using the trained cigarette delivery model, simulate and generate a test training set, that is, control the other variables of the model to the median value, generate M freely transformable data according to the fluctuation range of the original training set, use the previously trained cigarette delivery model, add the new test set to the cigarette delivery model to test the results; wherein M is not less than 5000; S403: De-standardize the data of the results calculated by the cigarette delivery model, and calculate the corresponding tobacco index according to the result set.
2. A tobacco delivery amount analysis system based on neural network, It is characterized in that The system includes, A data acquisition unit, used for acquiring characteristic data of cigarettes; A data preprocessing unit, used for preprocessing data on relevant characteristics of cigarettes; A model training unit, used for training a cigarette delivery quantity model; Result display and use unit, used for display and use of cigarette delivery model results; Wherein, the data acquisition unit includes: The characteristic data acquisition module is used for users to select specific expected simulated tobacco brand information according to actual needs, and obtain the characteristic data of cigarettes such as the number of households put into use, the number of households ordering, the sufficient order quantity, the total order quantity, the number of households ordering enough, and the sufficient customer order quantity according to the tobacco brand information; The screening module is used to add the screening conditions of account manager, city area and customer label to the characteristic data of cigarettes in the cigarette delivery model. By using accurate and detailed screening conditions to select training data for the cigarette delivery model, the cigarette delivery model can more accurately and specifically reflect the real business needs of the predicted customers. The data preprocessing unit comprises: A capture module, used to automatically capture information data of cigarette delivery quantity that meets the conditions from the database according to the task parameters added by the user of the data acquisition unit; The aggregation module is used to aggregate the information data of cigarette delivery quantity according to time, and obtain a set of training data reflecting the weekly delivery quantity information that meets the cigarettes selected by the user and the screening conditions; the data is standardized and some extreme value data in the data are filtered out, so that the construction of the cigarette delivery quantity model is more suitable for the data in the normal range; The model training unit includes: The node calling module is used for the cigarette delivery model to automatically call the computing nodes in the big data platform after executing the preprocessing process; Writing module for writing neural network models using the deep learning PyTorch framework; The result calculation module is used to generate the necessary parameters of the neural network model, that is, a prototype of a multi-layer neural network with 50 neurons, and uses the relu function as the activation function of the neural network model to process the results calculated by each neuron after each training; A feedback module is used to use the MSE method as the loss function when the neural network feedbacks the error; Error optimization module, used to use the adam function as the optimization function for continuously adjusting the error of the neural network model; The error judgment module is used to initially set the cigarette delivery model training cycle to N times. During the training cycle, if the error between the training cigarette delivery model and the actual data is less than N / 10 11 , then the final available cigarette delivery model is returned; where N is not less than 10 7 ; The result display and use unit includes: The expected value judgment module is used to execute the algorithm loop of the cigarette delivery model training cycle and judge whether the expected value is reached: when the cigarette delivery model algorithm reaches the expected value, the current loop is stopped, and the model is returned and saved; The result test module is used to simulate and generate a test training set using the trained cigarette delivery model, that is, other variables of the control model are controlled to be median values, and the delivery variable is used to generate M freely transformable data according to the fluctuation range of the original training set. The previously trained cigarette delivery model is used to add the new test set to the cigarette delivery model for result testing; wherein M is not less than 5000; The de-standardization module is used to perform data de-standardization processing on the results calculated by the cigarette delivery model, and calculate the corresponding tobacco indicators based on the result set.
3. An electronic device, It is characterized in that include: memory and at least one processor; Wherein, the memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the tobacco delivery amount analysis method based on neural network as described in claim 1.
4. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method for determining tobacco delivery amount based on a neural network as claimed in claim 1 is implemented.
