Inventory reserve analysis method, device, equipment and storage medium

By building an inventory reserve analysis model and using sample inventory flow data to generate demand data, the problem of low accuracy and low efficiency in inventory reserve analysis in the existing technology is solved, and efficient and low-cost inventory scheduling is achieved.

CN114862323BActive Publication Date: 2024-09-10PING AN BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210591526.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-28
Publication Date
2024-09-10
Estimated Expiration
2042-05-28

AI Technical Summary

Technical Problem

In the existing technology, banks' scheduling plans for inventory reserves mainly rely on the experience of business experts, resulting in poor accuracy, low efficiency, high cost and poor applicability of analytical data.

Method used

An inventory reserve analysis method is adopted to obtain sample inventory flow data of multiple sample users, generate sample inventory demand data, and build an inventory reserve analysis model, including a reserve analysis model and a regression analysis model, to improve the analysis efficiency and effectiveness of inventory reserves. accuracy and reduce scheduling costs.

Benefits of technology

It improves the accuracy and efficiency of inventory reserve analysis, reduces inventory scheduling costs, is simple to operate, has high applicability, and can more accurately determine inventory needs and generate reasonable scheduling plans.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114862323B
    Figure CN114862323B
Patent Text Reader

Abstract

The embodiment of the present application discloses an analysis method, device, equipment and storage medium for inventory reserves, which are applied to the field of artificial intelligence, including: obtaining sample inventory flow data of multiple sample users; generating sample inventory demand data of each sample user according to the sample inventory flow data of each sample user; constructing an inventory reserve analysis model based on the sample inventory demand data of each sample user, the inventory reserve analysis model is obtained by combining a reserve analysis model and a regression analysis model, the reserve analysis model is trained by the sample inventory demand data of each sample user, and the regression analysis model is trained by the sample inventory demand data of each sample user and the output data of the reserve analysis model; when the inventory demand data of the user to be analyzed is obtained, the inventory reserve analysis data of the user to be analyzed is output through the inventory reserve analysis model. By adopting the embodiment of the present application, the analysis efficiency and accuracy of inventory reserves can be improved, and the inventory scheduling cost can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and in particular to an inventory reserve analysis method, device, equipment and storage medium. Background Art

[0002] At present, with the continuous development of the economy, the flow speed of goods and funds is accelerating day by day, which requires enterprises or institutions to analyze their own inventory or funds, so as to timely dispatch the inventory or funds and ensure the efficiency of production and operation. For example, in the financial field, a bank often needs to analyze its own operating conditions and inventory reserves (for example, cash reserves), and dispatch inventory reserves between the head office, branches and other peer institutions based on the operating conditions and inventory reserves. In the prior art, banks usually analyze and evaluate the cash demand for the next period by business experts, and determine the scheduling plan of inventory reserves based on this. However, this inventory reserve scheduling plan is usually determined based on the experience of business experts, which is highly subjective, with poor accuracy of inventory reserve analysis data, low efficiency of inventory reserve analysis, high scheduling cost of inventory reserves, and poor applicability. Summary of the invention

[0003] The embodiments of the present application provide an inventory reserve analysis method, device, equipment and storage medium, which can improve the analysis efficiency and accuracy of inventory reserves, reduce inventory scheduling costs, and are simple to operate and highly applicable.

[0004] In a first aspect, an embodiment of the present application provides a method for analyzing inventory reserves, the method comprising:

[0005] Acquire sample inventory flow data of a plurality of sample users, wherein the sample inventory flow data includes at least one of damaged resource data, specified amount transaction data, operating income and expenditure data, interbank resource scheduling data, or transaction day characteristic data;

[0006] Generate sample inventory demand data for each sample user based on at least one sample inventory flow data of the damaged resource data, the specified amount transaction data, the operating income and expenditure data, the inter-bank resource scheduling data or the transaction day characteristic data of each sample user;

[0007] Building an inventory reserve analysis model based on the sample inventory demand data of the sample users, wherein the inventory reserve analysis model is obtained by combining a reserve analysis model and a regression analysis model, the reserve analysis model is trained by the sample inventory demand data of the sample users, and the regression analysis model is trained by the sample inventory demand data of the sample users and the output data of the reserve analysis model;

[0008] When the inventory demand data of the user to be analyzed is obtained, the inventory demand data of the user to be analyzed is input into the inventory reserve analysis model, and the inventory reserve analysis data of the user to be analyzed is output through the inventory reserve analysis model.

[0009] In an embodiment of the present application, sample inventory flow data of multiple sample users can be obtained, and sample inventory demand data of each sample user can be generated based on at least one sample inventory flow data of each sample user. Here, the sample inventory flow data includes at least one of damaged resource data, specified amount transaction data, operating income and expenditure data, peer resource scheduling data, or transaction day feature data. After obtaining the sample inventory demand data of each sample user, an inventory reserve analysis model can be constructed based on the sample inventory demand data of each sample user. Here, the inventory reserve analysis model at least includes a reserve analysis model and a regression analysis model, and the reserve analysis model here can be trained by the sample inventory demand data of each sample user, and the regression analysis model here can be trained by the sample inventory demand data of each sample user and the output data of the reserve analysis model. When the inventory demand data of the user to be analyzed is obtained, the inventory demand data of the user to be analyzed can be input into the inventory reserve analysis model, and then the inventory reserve analysis data of the user to be analyzed can be output through the inventory reserve analysis model. With the embodiment of the present application, the trained inventory reserve analysis model can be used to determine the inventory reserve analysis data of the user to be analyzed based on the inventory demand data of the user to be analyzed, which can improve the analysis efficiency and accuracy of the inventory reserve, while reducing the inventory scheduling cost, and the operation is simple and the applicability is high.

[0010] In combination with the first aspect, in a possible implementation manner, the obtaining of sample inventory flow data of multiple sample users includes:

[0011] Acquire inventory flow data of a plurality of sample users, and determine at least one of the following reference data of each sample user from the inventory flow data of each sample user: an average of the inventory flow data of each sample user, a mode of the inventory flow data of each sample user, or a median of the inventory flow data of each sample user;

[0012] Determine the data fluctuation difference of each sample user based on at least one of the reference data of each sample user and the inventory flow data of each sample user;

[0013] The inventory flow data corresponding to the sample users whose data fluctuation difference is greater than or equal to the fluctuation threshold are screened out to obtain the sample inventory flow data of each sample user.

[0014] In an embodiment of the present application, the inventory flow data of multiple sample users can be obtained, and then the inventory flow data of each sample user can be statistically processed to obtain the reference data of each sample user. Here, the reference data includes at least one of the average of the inventory flow data of each sample user, the mode of the inventory flow data of each sample user, or the median of the inventory flow data of each sample user. It can be understood that the reference data here can be used as a reference for measuring the inventory flow data, that is, the reference data of each sample user can be used to evaluate the quality of the acquired inventory flow data of each sample user, and the inventory flow data of each sample user can be processed. It can be further understood that the data fluctuation difference of each sample user can be determined based on at least one reference data of each sample user and the inventory flow data of each sample user, and the inventory flow data corresponding to the sample user whose data fluctuation difference is greater than or equal to the fluctuation threshold is screened out to obtain the sample inventory flow data of each sample user. The calculation method is simple, and the data quality of the sample inventory flow data of each sample user is improved at the same time, thereby improving the precision and accuracy of the storage and preparation analysis model constructed by the sample inventory flow data, and reducing the inventory scheduling cost.

[0015] In combination with the first aspect, in a possible implementation manner, after filtering out the inventory flow data corresponding to the sample users whose data fluctuation difference is greater than or equal to the fluctuation threshold, the method further includes:

[0016] Determine the missing inventory flow data of each sample user from the inventory flow data of each sample user after screening;

[0017] At least one of the reference data of each of the sample users is used to supplement the missing inventory flow data of each of the sample users, so as to obtain the sample inventory flow data of each of the sample users.

[0018] In combination with the first aspect, in a possible implementation manner, generating the sample inventory demand data of each sample user according to at least one sample inventory flow data of the damaged resource data, the specified amount transaction data, the operating income and expenditure data, the inter-bank resource scheduling data, or the transaction day characteristic data of each sample user includes:

[0019] Based on at least one of the sample inventory flow data of the damaged resource data, the designated amount transaction data, the operating income and expenditure data, the interbank resource scheduling data or the transaction day characteristic data of any sample user, obtain at least one sample inventory derivative data of the data mean, data extreme value, data standard deviation or window sliding data of the sample inventory flow data of any sample user;

[0020] The sample inventory demand data of any of the sample users is determined based on the at least one sample inventory flow data and the at least one sample inventory derivative data to obtain the sample inventory demand data of each of the sample users.

[0021] In an embodiment of the present application, at least one sample inventory flow data of any sample user can be used to obtain at least one sample inventory derivative data of any sample user, and then the sample inventory demand data of each sample user can be determined based on at least one sample inventory flow data and at least one sample inventory derivative data of each sample user. Here, the sample inventory flow data at least includes damaged resource data, specified amount transaction data, operating income and expenditure data, inter-industry resource scheduling data or transaction day characteristic data. Here, the sample inventory derivative data at least includes the data mean, data extreme value, data standard deviation or window sliding data of the sample inventory flow data. By adopting the embodiments provided by the present application, the dimensions of the sample inventory demand data can be enriched, the precision and accuracy of the storage and reserve analysis model constructed through the sample inventory flow data can be further improved, and the inventory scheduling cost can be reduced.

[0022] In combination with the first aspect, in a possible implementation manner, the determining the sample inventory demand data of any one of the sample users based on the at least one sample inventory flow data and the at least one sample inventory derived data includes:

[0023] Normalizing the at least one sample inventory flow data to obtain an embedded feature vector corresponding to the at least one sample inventory flow data;

[0024] Normalizing the at least one sample stock derived data to obtain an embedded feature vector corresponding to the at least one sample stock derived data;

[0025] The embedded feature vector corresponding to the at least one sample inventory flow data and the embedded feature vector corresponding to the at least one sample inventory derivative data are determined as the sample inventory demand data of any one of the sample users.

[0026] In the embodiment of the present application, at least one sample inventory flow data can be normalized to obtain an embedded feature vector corresponding to at least one sample inventory flow data, and at least one sample inventory derivative data can be normalized to obtain an embedded feature vector corresponding to at least one sample inventory derivative data, thereby obtaining sample inventory demand data of any sample user. By using the embodiment provided by the present application, discrete sample inventory flow data and sample inventory derivative data can be converted into continuous embedded feature vectors, thereby constructing an inventory reserve analysis model, thereby improving the precision and accuracy of the inventory reserve analysis model.

[0027] In combination with the first aspect, in a possible implementation manner, building the inventory reserve analysis model based on the sample inventory demand data of each sample user includes:

[0028] Building a reserve analysis model based on the sample inventory demand data of each sample user, and obtaining output data of the reserve analysis model for the sample inventory demand data;

[0029] Based on the output data of the reserve analysis model and the sample inventory demand data of each sample user, the regression analysis model is trained using a linear regression algorithm to obtain the inventory reserve analysis model.

[0030] In combination with the first aspect, in a possible implementation manner, after determining the inventory reserve analysis data of the user to be analyzed by using the inventory reserve analysis model, the method further includes:

[0031] Determine the basic inventory reserve data, holiday inventory reserve data or emergency inventory reserve data of the user to be analyzed based on the inventory reserve analysis data of the user to be analyzed;

[0032] Generate a basic inventory scheduling plan, a holiday inventory scheduling plan or a temporary inventory scheduling plan for the user to be analyzed based on the basic inventory reserve data, holiday inventory reserve data or temporary inventory reserve data of the user to be analyzed;

[0033] An inventory scheduling instruction is sent to the user to be analyzed based on the basic inventory scheduling plan, holiday inventory scheduling plan or temporary inventory scheduling plan of the user to be analyzed.

[0034] In an embodiment of the present application, the basic inventory reserve data, holiday inventory reserve data or emergency inventory reserve data of the user to be analyzed can be determined based on the inventory reserve analysis data of the user to be analyzed, and then the basic inventory scheduling plan, holiday inventory scheduling plan or temporary inventory scheduling plan for the user to be analyzed can be generated, and inventory scheduling instructions can be sent to the user to be analyzed, so as to further improve the efficiency and accuracy of the inventory reserve analysis and reduce the inventory scheduling cost.

[0035] In a second aspect, an embodiment of the present application provides an inventory reserve analysis device, the device comprising:

[0036] A sample acquisition module, used to acquire sample inventory flow data of multiple sample users, wherein the sample inventory flow data includes at least one of damaged resource data, specified amount transaction data, operating income and expenditure data, inter-bank resource scheduling data, or transaction day feature data;

[0037] A data processing module, used for generating sample inventory demand data of each sample user according to at least one sample inventory flow data of the damaged resource data of each sample user, the specified amount transaction data, the operating income and expenditure data, the inter-bank resource scheduling data or the transaction day characteristic data;

[0038] A model training module is used to construct an inventory reserve analysis model based on the sample inventory demand data of the sample users, wherein the inventory reserve analysis model is obtained by combining a reserve analysis model and a regression analysis model, the reserve analysis model is obtained by training the sample inventory demand data of the sample users, and the regression analysis model is obtained by training the sample inventory demand data of the sample users and the output data of the reserve analysis model;

[0039] The inventory analysis module is used to input the inventory demand data of the user to be analyzed into the inventory reserve analysis model when the inventory demand data of the user to be analyzed is obtained, and output the inventory reserve analysis data of the user to be analyzed through the inventory reserve analysis model.

[0040] In an embodiment of the present application, the device can obtain sample inventory flow data of multiple sample users, and generate sample inventory demand data of each sample user based on at least one sample inventory flow data of each sample user. Here, the sample inventory flow data includes at least one of damaged resource data, specified amount transaction data, operating income and expenditure data, inter-industry resource scheduling data, or transaction day feature data. After obtaining the sample inventory demand data of each sample user, an inventory reserve analysis model can be constructed based on the sample inventory demand data of each sample user. Here, the inventory reserve analysis model at least includes a reserve analysis model and a regression analysis model. The reserve analysis model here can be trained by the sample inventory demand data of each sample user, and the regression analysis model here can be trained by the sample inventory demand data of each sample user and the output data of the reserve analysis model. When the inventory demand data of the user to be analyzed is obtained, the device can input the inventory demand data of the user to be analyzed into the inventory reserve analysis model, and then output the inventory reserve analysis data of the user to be analyzed through the inventory reserve analysis model. By adopting the embodiments of the present application, the device can use the trained inventory reserve analysis model to determine the inventory reserve analysis data of the user to be analyzed based on the inventory demand data of the user to be analyzed, which can improve the analysis efficiency and accuracy of the inventory reserve, while reducing the inventory scheduling cost, with simple operation and high applicability.

[0041] In a third aspect, an embodiment of the present application provides a terminal device, the terminal device includes a processor and a memory, the processor and the memory are connected to each other. The memory is used to store a computer program that supports the terminal device to execute the method provided by the first aspect and / or any possible implementation of the first aspect, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method provided by the first aspect and / or any possible implementation of the first aspect.

[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program includes program instructions, which, when executed by a processor, enable the processor to execute the method provided by the above-mentioned first aspect and / or any possible implementation method of the first aspect.

[0043] In an embodiment of the present application, sample inventory flow data of multiple sample users can be obtained, and sample inventory demand data of each sample user can be generated based on at least one sample inventory flow data of each sample user. Here, the sample inventory flow data includes at least one of damaged resource data, specified amount transaction data, operating income and expenditure data, peer resource scheduling data, or transaction day feature data. After obtaining the sample inventory demand data of each sample user, an inventory reserve analysis model can be constructed based on the sample inventory demand data of each sample user. Here, the inventory reserve analysis model at least includes a reserve analysis model and a regression analysis model, and the reserve analysis model here can be trained by the sample inventory demand data of each sample user, and the regression analysis model here can be trained by the sample inventory demand data of each sample user and the output data of the reserve analysis model. When the inventory demand data of the user to be analyzed is obtained, the inventory demand data of the user to be analyzed can be input into the inventory reserve analysis model, and then the inventory reserve analysis data of the user to be analyzed can be output through the inventory reserve analysis model. With the embodiment of the present application, the trained inventory reserve analysis model can be used to determine the inventory reserve analysis data of the user to be analyzed based on the inventory demand data of the user to be analyzed, which can improve the analysis efficiency and accuracy of the inventory reserve, while reducing the inventory scheduling cost, and the operation is simple and the applicability is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0045] Figure 1 It is a flow chart of the inventory reserve analysis method provided in the embodiment of the present application;

[0046] Figure 2 It is a flowchart of a method for generating sample inventory demand data provided in an embodiment of the present application;

[0047] Figure 3 is another flow chart of the inventory reserve analysis method provided in an embodiment of the present application;

[0048] Figure 4 It is a structural schematic diagram of an inventory reserve analysis device provided in an embodiment of the present application;

[0049] Figure 5 It is a structural diagram of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0051] The inventory reserve analysis method provided in the embodiment of the present application (or simply the method provided in the embodiment of the present application) is suitable for constructing a model of inventory demand data in a certain field using artificial intelligence (AI) technology, and can better obtain the user's inventory reserve analysis data based on the user's inventory demand data, and generate the user's inventory scheduling plan based on the user's inventory reserve analysis data, and then send inventory scheduling instructions to the user based on the inventory scheduling plan. In other words, by constructing an inventory reserve analysis model for the user's inventory demand data, the inventory reserve analysis model can be used to more accurately determine the user's corresponding inventory reserve analysis data, generate an inventory scheduling plan based on the user's corresponding inventory reserve analysis data, and then send an inventory scheduling instruction to the user based on the inventory scheduling plan, or display or send the inventory scheduling plan to the user's parent user, etc. For example, in a scenario of analyzing a bank's cash inventory reserves, the inventory reserve analysis data of a bank branch or a region's bank branches can be obtained (for example, the amount of cash that needs to be reserved in the next day, the next week, or a period of time in the future) based on the inventory demand data of a bank branch or a region's bank branches (for example, the amount of cash in stock reserves of the bank branch, the average daily cash transaction volume of the bank branch, etc.), and an inventory scheduling plan can be generated (for example, the amount of cash, cash denomination, scheduling time, etc. that the bank branch needs to transport and schedule from other bank branches or cash vaults in the next day, the next week, or a period of time in the future), and then based on the inventory scheduling plan, an inventory scheduling instruction can be sent to the bank branch, or the inventory scheduling plan can be displayed or sent to the bank branch's upper-level bank branch (for example, the inventory scheduling plan of the branch branch is sent to the head office in a unified manner), etc. Alternatively, in the analysis scenario of the inventory reserve of goods at the business point of an enterprise, the inventory reserve analysis data of the business point (for example, the amount of goods to be reserved in the next week or a period of time in the future) can be obtained based on the inventory demand data of the business point of an enterprise or a business point in a region (such as the inventory reserve of goods at the business point, the average monthly goods transaction volume of the business point, etc.), and an inventory scheduling plan can be generated (for example, the number of goods, types of goods, delivery time, etc. that the business point needs to transport and schedule from other business points or warehouses in the next week or a period of time in the future), and then based on the inventory scheduling plan, an inventory scheduling instruction can be sent to the business point, or the inventory scheduling plan can be displayed or sent to the upper-level business point of the business point (for example, the inventory scheduling plan of the business points in various districts of a city is uniformly sent to the main business point in the urban area), etc. It can be seen that the scope of application of model construction and prediction using the model is very wide.

[0052] Artificial Intelligence (AI) is the theory, method, technology and application system of using digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. Basic artificial intelligence technologies generally include technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. Artificial intelligence software technology mainly includes computer vision technology, robotics, biometrics, speech processing technology, natural language processing technology, and machine learning / deep learning. Any scenario based on artificial intelligence technology to obtain and model relevant data can be included in the embodiments provided in this application. For the convenience of description, the embodiments of this application will be explained in the financial field for the inventory reserve analysis model construction of inventory demand data as an application scenario. The model construction of other types of other data in other fields or financial fields is essentially the same as the embodiments provided in this application, and will not be repeated here.

[0053] In the embodiments of the present application, for the convenience of expression, an inventory reserve analysis system or an inventory reserve analysis device (hereinafter referred to as the system or device) is used as the execution subject to construct an inventory reserve analysis model, and the inventory reserve analysis data of the user to be analyzed is determined by the inventory reserve analysis model as an example to illustrate the inventory reserve analysis method and device provided in the embodiments of the present application.

[0054] See also Figure 1 , Figure 1 1 is a flow chart of an inventory reserve analysis method provided in an embodiment of the present application. The method provided in an embodiment of the present application may include the following steps:

[0055] S101: Obtain at least one sample inventory flow data of damaged resource data, specified amount transaction data, operating income and expenditure data, inter-industry resource scheduling data or transaction day characteristic data of multiple sample users.

[0056] S102: Generate sample inventory demand data for each sample user based on at least one sample inventory flow data of each sample user's damaged resource data, designated amount transaction data, operating income and expenditure data, peer resource scheduling data, or transaction day characteristic data.

[0057] In some feasible implementations, the system may obtain sample inventory flow data of multiple sample users, and generate sample inventory demand data of each sample user based on the sample inventory flow data of each sample user, and then use the sample inventory demand data of each sample user to build an inventory reserve analysis model.

[0058] For details, please refer to Figure 2 , Figure 2 1 is a flow chart of a method for generating sample inventory demand data provided in an embodiment of the present application. The method for generating sample inventory demand data may include the implementation methods provided in each of the following steps S201 to S207.

[0059] S201: Obtain inventory flow data of multiple sample users, and determine at least one of the following reference data of each sample user from the inventory flow data of each sample user: the average of the inventory flow data of each sample user, the mode of the inventory flow data of each sample user, or the median of the inventory flow data of each sample user.

[0060] S202: Determine a data fluctuation difference of each sample user based on at least one reference data of each sample user and the inventory flow data of each sample user.

[0061] S203: Screening out the inventory flow data corresponding to the sample users whose data fluctuation difference is greater than or equal to the fluctuation threshold, so as to obtain the inventory flow data of each sample user after screening out.

[0062] In some feasible implementations, the system can obtain the inventory flow data of the sample user. Optionally, the system can obtain the inventory flow data of the sample user from the database of the inventory reserve application (for example, a bank system application (in the embodiment provided in this application, it is a bank system application, and it can also be a shopping application or other application with the function of recording inventory reserves)). Here, the inventory flow data includes but is not limited to the existing inventory data, reserve outbound data, and reserve inbound data entered by the user or the warehouse on the web page of the inventory reserve application or the business operation page of the client, and the reserve outbound data and reserve inbound data entered by the user during the production and operation through the web page of the inventory reserve application or the business operation page of the client, etc. Here, each inventory reserve analysis scenario can correspond to different inventory flow data, and the system can determine the inventory flow data corresponding to the inventory reserve analysis scenario according to the inventory reserve analysis scenario. It can be understood that the inventory reserve analysis scenario provided in this application includes but is not limited to the analysis scenario of the bank's cash inventory reserve or the analysis scenario of the goods inventory reserve of the business point of the enterprise, and other scenarios that require analysis of inventory reserves.

[0063] It can be further understood that the analysis scenario of the bank's cash inventory reserves corresponds to inventory flow data that can reflect the cash reserve demand (for example, the inventory reserve cash amount of a bank branch, the average daily cash transaction volume and other inventory flow data), and the analysis scenario of the goods inventory reserves of the business point of the enterprise corresponds to the inventory flow data that can reflect the goods reserve demand (for example, the inventory reserve goods amount of a business point, the average monthly goods transaction volume and other inventory flow data). The following will take the analysis scenario of the bank's cash inventory reserves as an example to illustrate the inventory reserve analysis method and device provided in the embodiment of the present application. Here, the inventory flow data corresponding to the analysis scenario of the bank's cash inventory reserve may include: damaged resource data (for example, the number and denomination of damaged cash banknotes in the inventory of a bank branch within one day, one week, or other transaction cycles), specified amount transaction data (for example, the number of cash of various denominations received and / or spent by a bank branch within one day, one week, or other transaction cycles (for example, working days within a week or a transaction cycle such as a National Day holiday)), operating income and expenditure data (for example, the amount of cash received and / or taken out of the warehouse by a bank branch within one day, one week, or other transaction cycles), interbank resource scheduling data (for example, the number and denomination of cash transported to the superior bank branch and / or the number and denomination of cash transported to the subordinate bank branch within one day, one week, or other transaction cycles) or transaction day characteristic data (for example, the transaction date of each transaction is on a day of the week, whether it is a holiday, the number of days before the holiday, etc.), one or more of which can be determined according to the actual application scenario and are not limited here. Specifically, the trading day characteristic data can be found in Table 1, which is a statistical table of trading day characteristic data. As shown in Table 1, the first column indicates which day of the week the trading day of a transaction is (0-6 represents Monday to Sunday), the second column indicates whether the trading day of a transaction is a working day (1 for yes, 0 for no), and the third column indicates the number of days between the trading day of a transaction and the holiday.

[0064] Table 1 Statistics of trading day characteristic data

[0065]

[0066]

[0067] In some feasible implementations, after obtaining the inventory flow data of multiple sample users (e.g., bank branches), the system may perform statistical processing on the inventory flow data of each sample user to obtain reference data of each sample user. Here, the reference data includes at least one of the average of the inventory flow data of each sample user, the mode of the inventory flow data of each sample user, the median of the inventory flow data of each sample user, or other statistics that can be used as a reference for the inventory flow data of each sample user. It can be understood that the reference data here can be used as a reference for measuring the inventory flow data, that is, the reference data of each sample user can be used to evaluate the quality of the acquired inventory flow data of each sample user, and the inventory flow data of each sample user can be processed. Here, the system can determine the data fluctuation difference of each sample user based on at least one reference data of each sample user and the inventory flow data of each sample user, and filter out the inventory flow data corresponding to the sample users whose data fluctuation difference is greater than or equal to the fluctuation threshold, so as to obtain the inventory flow data of each sample user after filtering. Here, the reference data can represent the reference value of each item of inventory flow data, and the fluctuation difference can represent the difference between an item of inventory flow data and its corresponding reference data. Here, the fluctuation threshold can be a value set in advance by the user, or it can be a value set according to the standard deviation or variance of the inventory flow data of each sample user, etc., which describes the quality of the inventory flow data of each sample user. In other words, if the difference between the inventory flow data of a sample user and the reference data is greater than or equal to a certain threshold, it may indicate that there is an abnormality in this inventory flow data, which may lead to poor quality of the inventory flow data of this sample user, and the system can eliminate the data with poor quality. It can be further understood that the system can also jointly use several reference data of a sample user to evaluate the quality of the inventory flow data of this sample user. For example, the system can screen out the data of the inventory flow data of a sample user whose difference from the mean exceeds 3 times the standard deviation. Using the embodiment provided by the present application, the calculation method is simple, and at the same time, the data quality of the inventory flow data of each sample user after screening is improved, thereby improving the precision and accuracy of the storage and preparation analysis model constructed by the sample inventory flow data, and reducing the inventory scheduling cost.

[0068] S204: Determine the missing inventory flow data of each sample user from the inventory flow data of each sample user after screening.

[0069] S205: Using at least one reference data of each sample user to supplement the missing inventory flow data of each sample user, so as to obtain sample inventory flow data of each sample user.

[0070] In some feasible implementations, after obtaining the inventory flow data of each sample user (e.g., bank branch) after screening, the system may perform statistical processing on the inventory flow data of each sample user to obtain the missing inventory flow data of each sample user. Here, the missing inventory flow data may be the data missing in the acquisition stage of the inventory flow data of each sample user. For example, the system may not obtain the number or denomination data of damaged cash banknotes in the inventory of a bank branch on a certain day, then it can be considered that the number or denomination data of damaged cash banknotes in the inventory of this bank branch on this day is the missing inventory flow data of this bank branch. Here, the missing inventory flow data may also be the data missing after screening in the inventory flow data of each sample user. For example, the system may delete it due to the large data fluctuation difference of the amount of cash entering and / or leaving the warehouse of a bank branch on a certain day, resulting in the missing amount of cash entering and / or leaving the warehouse of this bank branch on this day, then it can be considered that the amount of cash entering and / or leaving the warehouse of this bank branch on this day is the missing inventory flow data of this bank branch. It can be understood that after determining the missing inventory flow data of each sample user, the system can use at least one reference data of each sample user to supplement the missing inventory flow data of each sample user to obtain the sample inventory flow data of each sample user. Here, the reference data can be one or more of the average of the inventory flow data of each sample user, the mode of the inventory flow data of each sample user, and the median of the inventory flow data of each sample user calculated in step S201, or other statistics that can be used as references for the inventory flow data of each sample user. Using reference data to supplement the missing inventory flow data can avoid introducing errors when supplementing the inventory flow data without reducing the data dimension of the inventory flow data. In this way, the error of the sample inventory flow data obtained is small, and the data quality of the sample inventory flow data of each sample user is improved, thereby improving the precision and accuracy of the storage and preparation analysis model constructed by the sample inventory flow data, and reducing the inventory scheduling cost.

[0071] In some feasible implementations, the system may determine the sample inventory flow data of each sample user based on the inventory flow data of each sample user, and execute steps S206 and S207 to further determine the sample inventory demand data of each sample user based on the sample inventory flow data of each sample user.

[0072] S206: Based on at least one of the sample inventory flow data of any sample user, including the damaged resource data, specified amount transaction data, operating income and expenditure data, inter-industry resource scheduling data or transaction day characteristic data, obtain the data mean, data extreme value, data standard deviation or at least one of the sample inventory derivative data of the sample inventory flow data of any sample user, including the window sliding data.

[0073] In some feasible implementations, the system can obtain at least one sample inventory derivative data of any sample user based on at least one sample inventory flow data of any sample user, and then determine the sample inventory demand data of each sample user according to at least one sample inventory flow data and at least one sample inventory derivative data of each sample user. Here, the sample inventory flow data at least includes damaged resource data, specified amount transaction data, operating income and expenditure data, inter-bank resource scheduling data, or transaction day characteristic data. Here, the sample inventory derivative data at least includes the data mean of the sample inventory flow data (for example, calculating the average value of the amount of cash of various denominations received and / or spent by a bank branch every day within a week, and using this average value as a sample inventory derivative data of this bank branch), data extreme value (for example, determining the maximum or minimum value of the amount of cash of various denominations received and / or spent by a bank branch every day within a week, and using this maximum or minimum value as a sample inventory derivative data of this bank branch), data standard deviation (for example, calculating the standard deviation of the amount of cash of various denominations received and / or spent by a bank branch every day within a week, and using this standard deviation as a sample inventory derivative data of this bank branch) or window sliding data (for example, calculating the amount of cash of various denominations received and / or spent by a bank branch every day within a window period, and using this standard deviation as a sample inventory derivative data of this bank branch). Specifically, the window sliding data can be seen in Table 2, which is a schematic statistical table of window sliding data. As shown in Table 2, there is a total of 15 days of sample inventory flow data of a sample user in Table 2 (here as an example, the sample inventory flow data can be the total daily cash transaction value of a bank branch. It can be understood that the sample inventory flow data can also be other sample inventory flow data or statistical values ​​of sample inventory flow data, etc.), the window length is 6, the first column is the first 6 items of sample inventory flow data intercepted by the original window (which can be the total value of 6 daily cash transactions or other sample inventory flow data or statistical values ​​of sample inventory flow data, etc.), the second column to the seventh column respectively represent 6 items of sample inventory flow data intercepted 4 times by window translation 1 step to 4 steps, and the device can calculate the average value A1 of the first column, the average value A2 of the second column, the average value A3 of the third column, the average value A4 of the fourth column and the average value A5 of the fifth column, and then obtain the mean sliding data of the 10 items of sample inventory flow data equal to (A1+A2+A3+A4+A5) / 5, and use this mean sliding data as a window sliding data in the sample inventory derivative data of the sample user.

[0074] Table 2 Schematic statistics of window sliding data

[0075] Window 1 Window 2 Window 3 Window 4 Window 5 1.48362e 5.68672e 4.62307e 3.66462e 5.15087e 1.44811e 1.48362e 5.68672e 4.62307e 3.66462e 5.85689e 1.44811e 1.48362e 5.68672e 4.62307e 5.24589e 5.85689e 1.44811e 1.48362e 5.68672e 3.22724e 5.24589e 5.85689e 1.44811e 1.48362e 3.61273e 3.22724e 5.24589e 5.85689e 1.44811e

[0076] In some feasible implementations, the system may also analyze the window sliding data or other sample inventory derived data through an autoregressive moving average model (ARMA algorithm) to obtain additional sample inventory derived data. For example, if the window size of the window sliding data is 7, the window sliding data in the 7-item window may be used as the input of the ARMA algorithm, the output of the ARMA algorithm may be used as the 8th window sliding data, and the 8-item window sliding data may also be used as sample inventory derived data, thereby increasing the feature dimension of the sample inventory demand data of the sample user in subsequent processing.

[0077] By adopting the embodiments provided in the present application, the dimensions of sample inventory demand data can be enriched, the precision and accuracy of the storage and inventory analysis model constructed through sample inventory flow data can be further improved, and the inventory scheduling cost can be reduced.

[0078] S207: Determine sample inventory demand data of any sample user based on at least one sample inventory flow data and at least one sample inventory derivative data to obtain sample inventory demand data of each sample user.

[0079] In some feasible implementations, the system may normalize at least one sample inventory flow data to obtain an embedded feature vector corresponding to at least one sample inventory flow data. The system may also normalize at least one sample inventory derivative data to obtain an embedded feature vector corresponding to at least one sample inventory derivative data. After obtaining the embedded feature vector corresponding to at least one sample inventory flow data and the embedded feature vector corresponding to at least one sample inventory derivative data, the system may determine it as the sample inventory demand data of any sample user. Here, normalizing the sample inventory flow data or the sample inventory derivative data may be to uniformly represent the data of different dimensions in the sample inventory flow data or the sample inventory derivative data with numbers between (0,1), that is, to map the data of the same dimension to between (0,1), and finally all the data of different dimensions can be represented in the form between (0,1). For example, Monday is mapped to 0,1, Sunday is mapped to 0.7, 10,000 yuan is mapped to 0.1, and 90,000 yuan is mapped to 0.9, so that the data of different dimensions are mapped between (0,1), and the discrete form of the data is converted into a continuous form, which is convenient for the model to learn the data during the subsequent construction.

[0080] In some feasible implementations, after the system obtains inventory flow data of multiple sample users and generates sample inventory demand data of each sample user based on the inventory flow data of each sample user, the system can construct an inventory reserve analysis model based on the sample inventory demand data of each sample user, and use the inventory reserve analysis model to analyze the inventory demand data of the user to be analyzed, as shown in steps S103-S104:

[0081] S103: Building an inventory reserve analysis model based on the sample inventory demand data of each sample user.

[0082] In some feasible implementations, the system can construct an inventory reserve analysis model based on the sample inventory demand data of each sample user. Here, the inventory reserve analysis model can be a combined model composed of a reserve analysis model and a regression analysis model. Here, the regression analysis model can determine the inventory demand data of the user to be analyzed based on the output data of the reserve analysis model. Compared with the output data of the reserve analysis model, the inventory demand data of the user to be analyzed output by the sample inventory demand data constructed by the combined model is smoother and more accurate. Specifically, the system can construct a reserve analysis model in the inventory reserve analysis model based on the sample inventory demand data of the sample user through an analysis algorithm to obtain the model parameters of the reserve analysis model. Among them, the analysis algorithm can adopt the Xgboost algorithm, which is an improved gradient boosting algorithm. Its basic idea is to first construct a decision tree, then calculate the difference between the output result of the decision tree and the true value of the sample (that is, the residual), and then construct a decision tree to correct the difference, and calculate the difference between the output of the decision tree and the sum of the outputs of all previous decision trees and the true value of the sample, and continue to construct decision trees to correct the difference, and finally take the sum of the output results of all decision trees in the constructed model as the output of the model. Among them, the decision tree in the model built by the Xgboost algorithm can be a weak decision tree, that is, a decision tree with slightly better analysis ability than random classification (the analysis accuracy is slightly greater than 1 / 2). By continuously superimposing weak decision trees, the analysis results of the model are corrected, thereby greatly improving the overall analysis accuracy of the model. Using this method to build a reserve analysis model can reduce the complexity of the model and improve the calculation speed of the model. Specifically, XGBRegressor is a tool that can adjust the model built by the Xgboost algorithm. The system can use XGBRegressor to perform hyperparameter model tuning on the constructed reserve analysis model. For example, the system can use XGBRegressor to traverse all possible hyperparameter combinations of the reserve analysis model through grid search, and find the hyperparameter combination with the smallest generalization error as the parameter of the reserve analysis model.

[0083] In some feasible implementations, the system can use a linear regression algorithm or other regression algorithms to construct a regression analysis model in the inventory reserve analysis model. Specifically, the system can use the output data of the reserve analysis model as the input of the regression analysis model, and adjust the parameters of the regression analysis model according to the sample inventory demand data of each sample user, thereby obtaining the inventory reserve analysis model. Using the embodiment provided by the present application, the output data obtained by the reserve analysis model can be used as the input of the regression analysis model, and the output data of the reserve analysis model can be smoothed, thereby improving the accuracy of the inventory reserve analysis model.

[0084] S104: When the inventory demand data of the user to be analyzed is obtained, the inventory demand data of the user to be analyzed is input into the inventory reserve analysis model, and the inventory reserve analysis data of the user to be analyzed is output through the inventory reserve analysis model.

[0085] In some feasible implementations, when the inventory demand data of the user to be analyzed is obtained, the system can input the inventory demand data of the user to be analyzed into the inventory reserve analysis model, and output the inventory reserve analysis data of the user to be analyzed through the inventory reserve analysis model. For example, in the analysis scenario of a bank's cash inventory reserves, the inventory reserve analysis data of the user to be analyzed may be the basic inventory reserve data of a bank branch (for example, the cash reserve quantity, denomination, etc. data required by the bank branch on weekdays), holiday inventory reserve data (for example, the cash reserve quantity, denomination, etc. data required by the bank branch on holidays), or emergency inventory reserve data (for example, the cash reserve quantity, denomination, etc. data that the bank branch can temporarily transfer up and down in an emergency); in the analysis scenario of the goods inventory reserves of an enterprise's business point, the inventory reserve analysis data of the user to be analyzed may be the basic inventory reserve data of a business point (for example, the goods reserve quantity, types, etc. data required by the business point on weekdays), holiday inventory reserve data (for example, the goods reserve quantity, types, etc. data required by the business point on holidays), or emergency inventory reserve data (for example, the goods reserve quantity, types, etc. data that the business point can temporarily transfer up and down during promotion periods).

[0086] By adopting the embodiments of the present application, the trained inventory reserve analysis model can be used to determine the inventory reserve analysis data of the user to be analyzed based on the inventory demand data of the user to be analyzed, which can improve the analysis efficiency and accuracy of the inventory reserve, while reducing the inventory scheduling cost, with simple operation and high applicability.

[0087] See also Figure 3 , Figure 3 This is another flowchart of the inventory reserve analysis method provided in an embodiment of the present application.

[0088] S301: Obtain at least one sample inventory flow data of damaged resource data, specified amount transaction data, operating income and expenditure data, inter-industry resource scheduling data or transaction day characteristic data of multiple sample users.

[0089] In some feasible implementations, the system can obtain the inventory flow data of the sample user. Optionally, the system can obtain the inventory flow data of the sample user from the database of the inventory reserve application (for example, a bank system application (in the embodiment provided in this application, it is a bank system application, and it can also be a shopping application or other application with the function of recording inventory reserves)). Here, the inventory flow data includes but is not limited to the existing inventory data, reserve outbound data, and reserve inbound data entered by the user or the warehouse on the web page of the inventory reserve application or the business operation page of the client, and the reserve outbound data and reserve inbound data entered by the user during the production and operation through the web page of the inventory reserve application or the business operation page of the client, etc. Here, each inventory reserve analysis scenario can correspond to different inventory flow data, and the system can determine the inventory flow data corresponding to the inventory reserve analysis scenario according to the inventory reserve analysis scenario. It can be understood that the inventory reserve analysis scenario provided in this application includes but is not limited to the analysis scenario of the bank's cash inventory reserve or the analysis scenario of the goods inventory reserve of the business point of the enterprise, and other scenarios that require analysis of inventory reserves.

[0090] It can be further understood that the analysis scenario of the bank's cash inventory reserves corresponds to inventory flow data that can reflect the cash reserve demand (for example, the inventory reserve cash amount of a bank branch, the average daily cash transaction volume and other inventory flow data), and the analysis scenario of the goods inventory reserves of the business point of the enterprise corresponds to the inventory flow data that can reflect the goods reserve demand (for example, the inventory reserve goods amount of a business point, the average monthly goods transaction volume and other inventory flow data). The following will take the analysis scenario of the bank's cash inventory reserves as an example to illustrate the inventory reserve analysis method and device provided in the embodiment of the present application. Here, the inventory flow data corresponding to the analysis scenario of the bank's cash inventory reserve may include: damaged resource data (for example, the number and denomination of damaged cash banknotes in the inventory of a bank branch within one day, one week, or other transaction cycles), specified amount transaction data (for example, the number of cash of various denominations received and / or spent by a bank branch within one day, one week, or other transaction cycles (for example, working days within a week or a transaction cycle such as a National Day holiday)), operating income and expenditure data (for example, the amount of cash received and / or taken out of the warehouse by a bank branch within one day, one week, or other transaction cycles), interbank resource scheduling data (for example, the number and denomination of cash transported to the superior bank branch and / or the number and denomination of cash transported to the subordinate bank branch within one day, one week, or other transaction cycles) or transaction day characteristic data (for example, the transaction date of each transaction is on a day of the week, whether it is a holiday, the number of days before the holiday, etc.), one or more of which can be determined according to the actual application scenario and are not limited here.

[0091] In some feasible implementations, after obtaining the inventory flow data of multiple sample users (e.g., bank branches), the system may perform statistical processing on the inventory flow data of each sample user to obtain reference data of each sample user. Here, the reference data includes at least one of the average of the inventory flow data of each sample user, the mode of the inventory flow data of each sample user, the median of the inventory flow data of each sample user, or other statistics that can be used as a reference for the inventory flow data of each sample user. It can be understood that the reference data here can be used as a reference for measuring the inventory flow data, that is, the reference data of each sample user can be used to evaluate the quality of the acquired inventory flow data of each sample user, and the inventory flow data of each sample user can be processed. Here, the system can determine the data fluctuation difference of each sample user based on at least one reference data of each sample user and the inventory flow data of each sample user, and filter out the inventory flow data corresponding to the sample users whose data fluctuation difference is greater than or equal to the fluctuation threshold, so as to obtain the inventory flow data of each sample user after filtering. Here, the reference data can represent the reference value of each item of inventory flow data, and the fluctuation difference can represent the difference between an item of inventory flow data and its corresponding reference data. Here, the fluctuation threshold can be a value set in advance by the user, or it can be a value set according to the standard deviation or variance of the inventory flow data of each sample user, etc., which describes the quality of the inventory flow data of each sample user. In other words, if the difference between the inventory flow data of a sample user and the reference data is greater than or equal to a certain threshold, it may indicate that there is an abnormality in this inventory flow data, which may lead to poor quality of the inventory flow data of this sample user, and the system can eliminate the data with poor quality. It can be further understood that the system can also jointly use several reference data of a sample user to evaluate the quality of the inventory flow data of this sample user. For example, the system can screen out the data of the inventory flow data of a sample user whose difference from the mean exceeds 3 times the standard deviation. Using the embodiment provided by the present application, the calculation method is simple, and at the same time, the data quality of the inventory flow data of each sample user after screening is improved, thereby improving the precision and accuracy of the storage and preparation analysis model constructed by the sample inventory flow data, and reducing the inventory scheduling cost.

[0092] In some feasible implementations, after obtaining the inventory flow data of each sample user (e.g., bank branch) after screening, the system may perform statistical processing on the inventory flow data of each sample user to obtain the missing inventory flow data of each sample user. Here, the missing inventory flow data may be the data missing in the acquisition stage of the inventory flow data of each sample user. For example, the system may not obtain the number or denomination data of damaged cash banknotes in the inventory of a bank branch on a certain day, then it can be considered that the number or denomination data of damaged cash banknotes in the inventory of this bank branch on this day is the missing inventory flow data of this bank branch. Here, the missing inventory flow data may also be the data missing after screening in the inventory flow data of each sample user. For example, the system may delete it due to the large data fluctuation difference of the amount of cash entering and / or leaving the warehouse of a bank branch on a certain day, resulting in the missing amount of cash entering and / or leaving the warehouse of this bank branch on this day, then it can be considered that the amount of cash entering and / or leaving the warehouse of this bank branch on this day is the missing inventory flow data of this bank branch. It can be understood that after determining the missing inventory flow data of each sample user, the system can use at least one reference data of each sample user to supplement the missing inventory flow data of each sample user to obtain the sample inventory flow data of each sample user.

[0093] S302: Generate sample inventory demand data for each sample user based on at least one sample inventory flow data of each sample user's damaged resource data, designated amount transaction data, operating income and expenditure data, peer resource scheduling data, or transaction day characteristic data.

[0094] In some feasible implementations, the system can obtain at least one sample inventory derivative data of any sample user based on at least one sample inventory flow data of any sample user, and then determine the sample inventory demand data of each sample user according to at least one sample inventory flow data and at least one sample inventory derivative data of each sample user. Here, the sample inventory flow data at least includes damaged resource data, specified amount transaction data, operating income and expenditure data, inter-bank resource scheduling data, or transaction day characteristic data. Here, the sample inventory derivative data at least includes the data mean of the sample inventory flow data (for example, calculating the average value of the amount of cash of various denominations received and / or spent by a bank branch every day within a week, and using this average value as a sample inventory derivative data of this bank branch), data extreme values ​​(for example, determining the maximum or minimum value of the amount of cash of various denominations received and / or spent by a bank branch every day within a week, and using this maximum or minimum value as a sample inventory derivative data of this bank branch), data standard deviation (for example, calculating the standard deviation of the amount of cash of various denominations received and / or spent by a bank branch every day within a week, and using this standard deviation as a sample inventory derivative data of this bank branch) or window sliding data (for example, calculating the amount of cash of various denominations received and / or spent by a bank branch every day within a window period, and using this standard deviation as a sample inventory derivative data of this bank branch).

[0095] S303: Building a reserve analysis model based on the sample inventory demand data of each sample user, and obtaining output data of the reserve analysis model for the sample inventory demand data.

[0096] In some feasible implementations, the system can construct an inventory reserve analysis model based on the sample inventory demand data of each sample user. Here, the inventory reserve analysis model can be a combined model composed of a reserve analysis model and a regression analysis model. Here, the regression analysis model can determine the inventory demand data of the user to be analyzed based on the output data of the reserve analysis model. Compared with the output data of the reserve analysis model, the inventory demand data of the user to be analyzed output by the sample inventory demand data constructed by the combined model is smoother and more accurate. Specifically, the system can construct a reserve analysis model in the inventory reserve analysis model based on the sample inventory demand data of the sample user through an analysis algorithm to obtain the model parameters of the reserve analysis model. Among them, the analysis algorithm can adopt the Xgboost algorithm, which is an improved gradient boosting algorithm. Its basic idea is to first construct a decision tree, then calculate the difference between the output result of the decision tree and the true value of the sample (that is, the residual), and then construct a decision tree to correct the difference, and calculate the difference between the output of the decision tree and the sum of the outputs of all previous decision trees and the true value of the sample, and continue to construct decision trees to correct the difference, and finally take the sum of the output results of all decision trees in the constructed model as the output of the model. Among them, the decision tree in the model built by the Xgboost algorithm can be a weak decision tree, that is, a decision tree with slightly better analysis ability than random classification (the analysis accuracy is slightly greater than 1 / 2). By continuously superimposing weak decision trees, the analysis results of the model are corrected, thereby greatly improving the overall analysis accuracy of the model. Using this method to build a reserve analysis model can reduce the complexity of the model and improve the calculation speed of the model. Specifically, XGBRegressor is a tool that can adjust the model built by the Xgboost algorithm. The system can use XGBRegressor to perform hyperparameter model tuning on the constructed reserve analysis model. For example, the system can use XGBRegressor to traverse all possible hyperparameter combinations of the reserve analysis model through grid search, and find the hyperparameter combination with the smallest generalization error as the parameter of the reserve analysis model.

[0097] S304: Based on the output data of the reserve analysis model and the sample inventory demand data of each sample user, a regression analysis model is trained using a linear regression algorithm to obtain an inventory reserve analysis model.

[0098] In some feasible implementations, the system can use a linear regression algorithm or other regression algorithms to construct a regression analysis model in the inventory reserve analysis model. Specifically, the system can use the output data of the reserve analysis model as the input of the regression analysis model, and adjust the parameters of the regression analysis model according to the sample inventory demand data of each sample user, thereby obtaining the inventory reserve analysis model. Using the embodiment provided by the present application, the output data obtained by the reserve analysis model can be used as the input of the regression analysis model, and the output data of the reserve analysis model can be smoothed, thereby improving the accuracy of the inventory reserve analysis model.

[0099] S305: When the inventory demand data of the user to be analyzed is obtained, the inventory demand data of the user to be analyzed is input into the inventory reserve analysis model, and the inventory reserve analysis data of the user to be analyzed is output through the inventory reserve analysis model.

[0100] In some feasible implementations, the system can obtain the inventory flow data of the user to be analyzed, and generate the inventory demand data of the user to be analyzed based on the inventory flow data of the user to be analyzed. Optionally, the system can obtain the inventory flow data of the user to be analyzed from the database of the inventory reserve application (for example, a bank system application (in the embodiment provided in this application, it is a bank system application, and it can also be a shopping application or other application with the function of recording inventory reserves)). Here, the inventory flow data includes but is not limited to the existing inventory data, reserve outbound data, and reserve inbound data entered by the user or the warehouse on the web page of the inventory reserve application or the business operation page of the client, and the reserve outbound data and reserve inbound data entered by the user during the production and operation period through the web page of the inventory reserve application or the business operation page of the client, etc. Here, each analysis scenario of the inventory reserve can correspond to different inventory flow data, and the system can determine the inventory flow data corresponding to the analysis scenario of the inventory reserve according to the analysis scenario of the inventory reserve. Here, the inventory flow data corresponding to the analysis scenario of the bank's cash inventory reserve may include: damaged resource data (for example, the number and denomination of damaged cash banknotes in the inventory of a bank branch within one day, one week, or other transaction cycles), specified amount transaction data (for example, the number of cash of various denominations received and / or spent by a bank branch within one day, one week, or other transaction cycles (for example, working days within a week or a transaction cycle such as a National Day holiday)), operating income and expenditure data (for example, the amount of cash received and / or taken out of the warehouse by a bank branch within one day, one week, or other transaction cycles), interbank resource scheduling data (for example, the number and denomination of cash transported to the superior bank branch and / or the number and denomination of cash transported to the subordinate bank branch by a bank branch within one day, one week, or other transaction cycles) or one or more of the following: transaction day characteristic data (for example, the transaction date of each transaction is on which day of the week, whether it is a holiday, the number of days before the holiday, etc.).

[0101] In some feasible implementations, after obtaining the inventory flow data of the user to be analyzed, the system can determine at least one of the following reference data of the user to be analyzed from the inventory flow data of the user to be analyzed: the average of the inventory flow data of the user to be analyzed, the mode of the inventory flow data of the user to be analyzed, or the median of the inventory flow data of the user to be analyzed. The system can determine the data fluctuation difference of the user to be analyzed based on at least one reference data of the user to be analyzed and the inventory flow data of the user to be analyzed, and filter out the inventory flow data corresponding to the user to be analyzed whose data fluctuation difference is greater than or equal to the fluctuation threshold, so as to obtain the inventory flow data of the user to be analyzed after filtering out. At the same time, the system can determine the missing inventory flow data of the user to be analyzed from the inventory flow data of the user to be analyzed after filtering out, and then use at least one reference data of the user to be analyzed to supplement the missing inventory flow data of the user to be analyzed, so as to obtain the inventory flow data of the user to be analyzed. The system can also obtain at least one inventory derivative data of the data mean, data extreme value, data standard deviation or window sliding data of the inventory flow data to be analyzed of the user to be analyzed based on at least one inventory flow data to be analyzed among the damaged resource data, designated amount transaction data, operating income and expenditure data, peer resource scheduling data or transaction day characteristic data of the user to be analyzed. The system can determine the inventory demand data of any user to be analyzed based on at least one inventory flow data to be analyzed and at least one inventory derivative data to obtain the inventory demand data of each user to be analyzed.

[0102] In some feasible implementations, when the inventory demand data of the user to be analyzed is obtained or generated, the system can input the inventory demand data of the user to be analyzed into the inventory reserve analysis model, and output the inventory reserve analysis data of the user to be analyzed through the inventory reserve analysis model.

[0103] S306: Determine basic inventory reserve data, holiday inventory reserve data, or emergency inventory reserve data of the user to be analyzed based on the inventory reserve analysis data of the user to be analyzed.

[0104] S307: Generate a basic inventory scheduling plan, a holiday inventory scheduling plan or a temporary inventory scheduling plan for the user to be analyzed based on the basic inventory reserve data, the holiday inventory reserve data or the temporary inventory reserve data of the user to be analyzed.

[0105] In some feasible implementations, after obtaining the inventory reserve analysis data of the user to be analyzed, the system may obtain an inventory scheduling plan for the user to be analyzed based on the inventory reserve analysis data of the user to be analyzed. For example, in the analysis scenario of a bank's cash inventory reserves, the inventory reserve analysis data of the user to be analyzed may be a bank branch's basic inventory reserve data (e.g., the cash reserve quantity, denomination, and other data required by the bank branch on weekdays), holiday inventory reserve data (e.g., the cash reserve quantity, denomination, and other data required by the bank branch on holidays), or emergency inventory reserve data (e.g., the cash reserve quantity, denomination, and other data that the bank branch can temporarily transfer up and down in an emergency), and the inventory scheduling plan of the user to be analyzed may be a bank branch's basic inventory scheduling plan (e.g., the cash reserve quantity, denomination, and scheduling time that the bank branch dispatches from other bank branches or cash vaults on weekdays), a holiday inventory scheduling plan (e.g., the cash reserve quantity, denomination, and scheduling time that the bank branch dispatches from other bank branches or cash vaults on holidays), or a temporary inventory scheduling plan (e.g., the cash reserve quantity, denomination, and scheduling time that the bank branch temporarily transfers up and down with other bank branches or cash vaults in an emergency). In the analysis scenario of the inventory reserve of goods at the business point of the enterprise, the inventory reserve analysis data of the user to be analyzed may be the basic inventory reserve data of a business point (for example, the quantity and type of goods reserve data required by the business point on weekdays), holiday inventory reserve data (for example, the quantity and type of goods reserve data required by the business point on holidays) or emergency inventory reserve data (for example, the quantity and type of goods reserve data that can be temporarily transferred between the business point and the warehouse during the promotion period), and the inventory scheduling plan of the user to be analyzed may be a basic inventory scheduling plan of a business point (for example, the quantity, type, scheduling time and other plans of goods reserve that the business point dispatches from other business points or warehouses on weekdays), holiday inventory scheduling plan (for example, the quantity, type, scheduling time and other plans of goods reserve that the business point dispatches from other business points or warehouses on holidays) or a temporary inventory scheduling plan (for example, the quantity, type, scheduling time and other plans of goods reserve that the business point temporarily transfers between the business point and other business points or warehouses during the promotion period).

[0106] S308: Sending an inventory scheduling instruction to the user to be analyzed based on the basic inventory scheduling plan, holiday inventory scheduling plan, or temporary inventory scheduling plan of the user to be analyzed.

[0107] In some feasible implementations, after obtaining the inventory scheduling scheme of the user to be analyzed, the system may send an inventory scheduling instruction to the user to be analyzed, or display or send the inventory scheduling scheme to the user's upper-level user, etc. For example, in the analysis scenario of the cash inventory reserve of a bank, the inventory reserve analysis data of a bank branch or a bank branch in a region (such as the inventory reserve cash amount of the bank branch, the average daily cash transaction volume of the bank branch, etc.) can be obtained, and an inventory scheduling scheme can be generated (for example, the cash amount, cash face value, scheduling time, etc. that the bank branch needs to transport and schedule from other bank branches or cash vaults in the next day, next week, or a period of time in the future), and then based on the inventory scheduling scheme, an inventory scheduling instruction is sent to the bank branch, or the inventory scheduling scheme is displayed or sent to the upper-level bank branch of the bank branch (for example, the inventory scheduling scheme of the branch branch is uniformly sent to the head office), etc. Alternatively, in an analysis scenario of the inventory reserves of goods at an enterprise's business locations, the inventory reserve analysis data of an enterprise's business location or a region's business locations can be obtained (for example, the amount of goods that need to be reserved in the next week or a period of time in the future) based on the inventory demand data of the business location or a region's business locations (for example, the inventory reserve goods volume of the business location, the average monthly goods transaction volume of the business location, etc.), and an inventory scheduling plan can be generated (for example, data such as the quantity, type, and delivery time of goods that the business location needs to transport and schedule from other business locations or warehouses in the next week or a period of time in the future), and then based on the inventory scheduling plan, an inventory scheduling instruction can be sent to the business location, or the inventory scheduling plan can be displayed or sent to the business location at the next level of the business location (for example, the inventory scheduling plans of business locations in various districts of a city are uniformly sent to the main business location in the urban area), etc.

[0108] In an embodiment of the present application, the system can determine the basic inventory reserve data, holiday inventory reserve data or emergency inventory reserve data of the user to be analyzed based on the inventory reserve analysis data of the user to be analyzed, and then generate a basic inventory scheduling plan, holiday inventory scheduling plan or temporary inventory scheduling plan for the user to be analyzed, and send inventory scheduling instructions to the user to be analyzed, so as to further improve the efficiency and accuracy of inventory reserve analysis and reduce inventory scheduling costs.

[0109] See also Figure 4 , Figure 4 It is a schematic diagram of the structure of the inventory reserve analysis device provided in an embodiment of the present application.

[0110] The sample acquisition module 401 is used to obtain sample inventory flow data of multiple sample users, where the sample inventory flow data includes at least one of damaged resource data, specified amount transaction data, operating income and expenditure data, inter-industry resource scheduling data or transaction day characteristic data.

[0111] In some feasible implementations, the sample acquisition module 401 can obtain the sample user's inventory flow data. Optionally, the sample acquisition module 401 can obtain the sample user's inventory flow data from the database of the inventory reserve application (for example, the bank sample acquisition module 401 application (in the embodiment provided in this application, the bank sample acquisition module 401 application, or other applications with the function of recording inventory reserves, such as shopping applications)). Here, the inventory flow data includes but is not limited to the existing inventory data, reserve outbound data, and reserve inbound data entered by the user or warehouse on the web page of the inventory reserve application or the business operation page of the client, and the reserve outbound data and reserve inbound data entered by the user on the web page of the inventory reserve application or the business operation page of the client during the production and operation period, and so on. Here, the inventory flow data corresponding to the analysis scenario of the bank's cash inventory reserve may include: damaged resource data (for example, the number and denomination of damaged cash banknotes in the inventory of a bank branch within one day, one week, or other transaction cycles), specified amount transaction data (for example, the number of cash of various denominations received and / or spent by a bank branch within one day, one week, or other transaction cycles (for example, working days within a week or a transaction cycle such as a National Day holiday)), operating income and expenditure data (for example, the amount of cash received and / or taken out of the warehouse by a bank branch within one day, one week, or other transaction cycles), interbank resource scheduling data (for example, the number and denomination of cash transported to the superior bank branch and / or the number and denomination of cash transported to the subordinate bank branch within one day, one week, or other transaction cycles) or transaction day characteristic data (for example, the transaction date of each transaction is on a day of the week, whether it is a holiday, the number of days before the holiday, etc.), one or more of which can be determined according to the actual application scenario and are not limited here.

[0112] The data processing module 402 is used to generate sample inventory demand data for each sample user based on at least one sample inventory flow data of each sample user's damaged resource data, specified amount transaction data, operating income and expenditure data, inter-industry resource scheduling data or transaction day characteristic data.

[0113] In some feasible implementations, after acquiring the inventory flow data of multiple sample users (e.g., bank branches), the data processing module 402 may perform statistical processing on the inventory flow data of each sample user to obtain reference data of each sample user. Here, the reference data at least includes the average of the inventory flow data of each sample user, the mode of the inventory flow data of each sample user, the median of the inventory flow data of each sample user, or one of other statistics that can be used as a reference for the inventory flow data of each sample user. It can be understood that the reference data here can be used as a reference for measuring the inventory flow data, that is, the reference data of each sample user can be used to evaluate the quality of the acquired inventory flow data of each sample user, and the inventory flow data of each sample user can be processed. In other words, the data processing module 402 can determine the data fluctuation difference of each sample user based on at least one reference data of each sample user and the inventory flow data of each sample user, and filter out the inventory flow data corresponding to the sample users whose data fluctuation difference is greater than or equal to the fluctuation threshold, so as to obtain the inventory flow data of each sample user after filtering.

[0114] In some feasible implementations, after obtaining the inventory flow data of each sample user (e.g., bank branch) after screening, the data processing module 402 may perform statistical processing on the inventory flow data of each sample user to obtain the missing inventory flow data of each sample user. Here, the missing inventory flow data may be data missing in the acquisition phase of the inventory flow data of each sample user, or data missing after screening out the inventory flow data of each sample user. It is understood that after determining the missing inventory flow data of each sample user, the data processing module 402 may use at least one reference data of each sample user to supplement the missing inventory flow data of each sample user to obtain the sample inventory flow data of each sample user.

[0115] In some feasible implementations, the data processing module 402 may obtain at least one sample inventory derivative data of any sample user based on at least one sample inventory flow data of any sample user, and further determine the sample inventory demand data of each sample user according to at least one sample inventory flow data and at least one sample inventory derivative data of each sample user. Here, the sample inventory flow data at least includes damaged resource data, specified amount transaction data, operating income and expenditure data, inter-bank resource scheduling data, or transaction day characteristic data. Here, the sample inventory derivative data at least includes the data mean of the sample inventory flow data (for example, calculating the average value of the amount of cash of various denominations received and / or spent by a bank branch every day within a week, and using this average value as a sample inventory derivative data of this bank branch), data extreme values ​​(for example, determining the maximum or minimum value of the amount of cash of various denominations received and / or spent by a bank branch every day within a week, and using this maximum or minimum value as a sample inventory derivative data of this bank branch), data standard deviation (for example, calculating the standard deviation of the amount of cash of various denominations received and / or spent by a bank branch every day within a week, and using this standard deviation as a sample inventory derivative data of this bank branch) or window sliding data (for example, calculating the amount of cash of various denominations received and / or spent by a bank branch every day within a window period, and using this standard deviation as a sample inventory derivative data of this bank branch).

[0116] Model training module 403 is used to build an inventory reserve analysis model based on the sample inventory demand data of each sample user, wherein the inventory reserve analysis model is obtained by combining a reserve analysis model and a regression analysis model, the reserve analysis model is obtained by training the sample inventory demand data of each sample user, and the regression analysis model is obtained by training the sample inventory demand data of each sample user and the output data of the reserve analysis model.

[0117] In some feasible implementations, the model training module 403 can construct a reserve analysis model in the inventory reserve analysis model based on the sample inventory demand data of the sample user through an analysis algorithm to obtain the model parameters of the reserve analysis model. Among them, the analysis algorithm can use the Xgboost algorithm, which is an improved gradient boosting algorithm. Its basic idea is to first build a decision tree, then calculate the difference between the output of the decision tree and the true value of the sample (that is, the residual), and then build a decision tree to correct the difference, and calculate the difference between the output of the decision tree and the sum of the outputs of all previous decision trees and the true value of the sample, and continue to build a decision tree to correct the difference, and finally use the sum of the output results of all decision trees in the constructed model as the output of the model. Among them, the decision tree in the model constructed using the Xgboost algorithm can be a weak decision tree, that is, a decision tree with slightly stronger analysis ability than random classification (analysis accuracy is slightly greater than 1 / 2), and the analysis results of the model are corrected by continuously superimposing weak decision trees, thereby greatly improving the overall analysis accuracy of the model. By using this method to construct a reserve analysis model, the complexity of the model can be reduced while increasing the calculation speed of the model. Specifically, XGBRegressor is a tool that can adjust the model constructed by the Xgboost algorithm, and the model training module 403 can use XGBRegressor to perform hyperparameter model tuning on the constructed reserve analysis model. For example, the model training module 403 can use XGBRegressor to traverse all possible hyperparameter combinations of the reserve analysis model through grid search, and find the hyperparameter combination with the smallest generalization error as the parameter of the reserve analysis model.

[0118] In some feasible implementations, the model training module 403 can use a linear regression algorithm or other regression algorithms to construct a regression analysis model in the inventory reserve analysis model. Specifically, the model training module 403 can use the output data of the reserve analysis model as the input of the regression analysis model, and adjust the parameters of the regression analysis model according to the sample inventory demand data of each sample user, thereby obtaining the inventory reserve analysis model. Using the embodiment provided by the present application, the output data obtained by the reserve analysis model can be used as the input of the regression analysis model, and the output data of the reserve analysis model can be smoothed, thereby improving the accuracy of the inventory reserve analysis model.

[0119] The inventory analysis module 404 is used to input the inventory demand data of the user to be analyzed into the inventory reserve analysis model when the inventory demand data of the user to be analyzed is obtained, and output the inventory reserve analysis data of the user to be analyzed through the inventory reserve analysis model.

[0120] In some feasible implementations, when the inventory demand data of the user to be analyzed is obtained, the inventory analysis module 404 may input the inventory demand data of the user to be analyzed into the inventory reserve analysis model, and output the inventory reserve analysis data of the user to be analyzed through the inventory reserve analysis model. It is understood that after obtaining the inventory reserve analysis data of the user to be analyzed, the inventory analysis module 404 may obtain the inventory scheduling plan of the user to be analyzed based on the inventory reserve analysis data of the user to be analyzed. For example, in the analysis scenario of a bank's cash inventory reserves, the inventory reserve analysis data of the user to be analyzed may be a bank branch's basic inventory reserve data (e.g., the cash reserve quantity, denomination, and other data required by the bank branch on weekdays), holiday inventory reserve data (e.g., the cash reserve quantity, denomination, and other data required by the bank branch on holidays), or emergency inventory reserve data (e.g., the cash reserve quantity, denomination, and other data that the bank branch can temporarily transfer up and down in an emergency), and the inventory scheduling plan of the user to be analyzed may be a bank branch's basic inventory scheduling plan (e.g., the cash reserve quantity, denomination, and scheduling time that the bank branch dispatches from other bank branches or cash vaults on weekdays), a holiday inventory scheduling plan (e.g., the cash reserve quantity, denomination, and scheduling time that the bank branch dispatches from other bank branches or cash vaults on holidays), or a temporary inventory scheduling plan (e.g., the cash reserve quantity, denomination, and scheduling time that the bank branch temporarily transfers up and down with other bank branches or cash vaults in an emergency). In the analysis scenario of the inventory reserve of goods at the business point of the enterprise, the inventory reserve analysis data of the user to be analyzed may be the basic inventory reserve data of a business point (for example, the quantity and type of goods reserve data required by the business point on weekdays), holiday inventory reserve data (for example, the quantity and type of goods reserve data required by the business point on holidays) or emergency inventory reserve data (for example, the quantity and type of goods reserve data that can be temporarily transferred between the business point and the warehouse during the promotion period), and the inventory scheduling plan of the user to be analyzed may be a basic inventory scheduling plan of a business point (for example, the quantity, type, scheduling time and other plans of goods reserve that the business point dispatches from other business points or warehouses on weekdays), holiday inventory scheduling plan (for example, the quantity, type, scheduling time and other plans of goods reserve that the business point dispatches from other business points or warehouses on holidays) or a temporary inventory scheduling plan (for example, the quantity, type, scheduling time and other plans of goods reserve that the business point temporarily transfers between the business point and other business points or warehouses during the promotion period).

[0121] In some feasible implementations, the sample acquisition module 401 may be used to execute the implementation methods provided by step S101, steps S201-S205 and step S301 in the inventory reserve analysis method embodiment; the data processing module 402 may be used to execute the implementation methods provided by step S102, steps S206-S207 and steps S302-S303; the model training module 403 may be used to execute the implementation methods provided by step S103 and step S304; the inventory analysis module 404 may be used to execute the implementation methods provided by step S104 and steps S305-S308; for details, please refer to the inventory reserve analysis method embodiment, which is not limited here.

[0122] In an embodiment of the present application, the device can use the trained inventory reserve analysis model to determine the inventory reserve analysis data of the user to be analyzed based on the inventory demand data of the user to be analyzed, which can improve the analysis efficiency and accuracy of the inventory reserve, while reducing the inventory scheduling cost, with simple operation and high applicability.

[0123] See also Figure 5 , Figure 5 Schematic diagram of the structure of the terminal device provided in the embodiment of the present application. Figure 5 As shown, the terminal device in this embodiment may include: one or more processors 501 and a memory 502. The processor 501 and the memory 502 are connected via a bus 503. The memory 502 is used to store a computer program, which includes program instructions. The processor 501 is used to execute the program instructions stored in the memory 502 to perform the following operations:

[0124] Acquire sample inventory flow data of a plurality of sample users, wherein the sample inventory flow data includes at least one of damaged resource data, specified amount transaction data, operating income and expenditure data, interbank resource scheduling data, or transaction day characteristic data;

[0125] Generate sample inventory demand data for each sample user based on at least one sample inventory flow data of the damaged resource data, the specified amount transaction data, the operating income and expenditure data, the inter-bank resource scheduling data or the transaction day characteristic data of each sample user;

[0126] Building an inventory reserve analysis model based on the sample inventory demand data of the sample users, wherein the inventory reserve analysis model is obtained by combining a reserve analysis model and a regression analysis model, the reserve analysis model is trained by the sample inventory demand data of the sample users, and the regression analysis model is trained by the sample inventory demand data of the sample users and the output data of the reserve analysis model;

[0127] When the inventory demand data of the user to be analyzed is obtained, the inventory demand data of the user to be analyzed is input into the inventory reserve analysis model, and the inventory reserve analysis data of the user to be analyzed is output through the inventory reserve analysis model.

[0128] In some feasible implementations, the processor 501 is further configured to:

[0129] Acquire inventory flow data of a plurality of sample users, and determine at least one of the following reference data of each sample user from the inventory flow data of each sample user: an average of the inventory flow data of each sample user, a mode of the inventory flow data of each sample user, or a median of the inventory flow data of each sample user;

[0130] Determine the data fluctuation difference of each sample user based on at least one of the reference data of each sample user and the inventory flow data of each sample user;

[0131] The inventory flow data corresponding to the sample users whose data fluctuation difference is greater than or equal to the fluctuation threshold are screened out to obtain the sample inventory flow data of each sample user.

[0132] In some feasible implementations, the processor 501 is configured to:

[0133] Determine the missing inventory flow data of each sample user from the inventory flow data of each sample user after screening;

[0134] At least one of the reference data of each of the sample users is used to supplement the missing inventory flow data of each of the sample users, so as to obtain the sample inventory flow data of each of the sample users.

[0135] In some feasible implementations, the processor 501 is configured to:

[0136] Based on at least one of the sample inventory flow data of the damaged resource data, the designated amount transaction data, the operating income and expenditure data, the interbank resource scheduling data or the transaction day characteristic data of any sample user, obtain at least one sample inventory derivative data of the data mean, data extreme value, data standard deviation or window sliding data of the sample inventory flow data of any sample user;

[0137] The sample inventory demand data of any of the sample users is determined based on the at least one sample inventory flow data and the at least one sample inventory derivative data to obtain the sample inventory demand data of each of the sample users.

[0138] In some feasible implementations, the processor 501 is configured to:

[0139] Normalizing the at least one sample inventory flow data to obtain an embedded feature vector corresponding to the at least one sample inventory flow data;

[0140] Normalizing the at least one sample stock derived data to obtain an embedded feature vector corresponding to the at least one sample stock derived data;

[0141] The embedded feature vector corresponding to the at least one sample inventory flow data and the embedded feature vector corresponding to the at least one sample inventory derivative data are determined as the sample inventory demand data of any one of the sample users.

[0142] In some feasible implementations, the processor 501 is further configured to:

[0143] Building a reserve analysis model based on the sample inventory demand data of each sample user, and obtaining output data of the reserve analysis model for the sample inventory demand data;

[0144] Based on the output data of the reserve analysis model and the sample inventory demand data of each sample user, the regression analysis model is trained using a linear regression algorithm to obtain the inventory reserve analysis model.

[0145] In some feasible implementations, the processor 501 is further configured to:

[0146] Determine the basic inventory reserve data, holiday inventory reserve data or emergency inventory reserve data of the user to be analyzed based on the inventory reserve analysis data of the user to be analyzed;

[0147] Generate a basic inventory scheduling plan, a holiday inventory scheduling plan or a temporary inventory scheduling plan for the user to be analyzed based on the basic inventory reserve data, holiday inventory reserve data or temporary inventory reserve data of the user to be analyzed;

[0148] An inventory scheduling instruction is sent to the user to be analyzed based on the basic inventory scheduling plan, holiday inventory scheduling plan or temporary inventory scheduling plan of the user to be analyzed.

[0149] In some feasible implementations, the processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0150] The memory 502 may include a read-only memory and a random access memory, and provide instructions and data to the processor 501. A portion of the memory 502 may also include a non-volatile random access memory. For example, the memory 502 may also store data of the device type.

[0151] In a specific implementation, the above terminal device can execute the above-mentioned functions through its built-in functional modules. Figures 1 to 3 For the implementation methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.

[0152] In an embodiment of the present application, a trained inventory reserve analysis model can be used to determine the inventory reserve analysis data of the user to be analyzed based on the inventory demand data of the user to be analyzed, which can improve the analysis efficiency and accuracy of the inventory reserve, while reducing the inventory scheduling cost, with simple operation and high applicability.

[0153] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, Figures 1 to 3 The analysis methods of inventory reserves provided in each step may be specifically referred to the implementation methods provided in the above steps, which will not be repeated here.

[0154] The above-mentioned computer-readable storage medium can be the user behavior recognition device based on the prediction model provided by any of the above-mentioned embodiments or the internal storage unit of the above-mentioned terminal device, such as the hard disk or memory of the electronic device. The computer-readable storage medium can also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flashcard), etc. equipped on the electronic device. Further, the computer-readable storage medium can also include both the internal storage unit of the electronic device and the external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.

[0155] The terms "first", "second", "third", "fourth", etc. in the claims, specification and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. Mentioning "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. Displaying the phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments. The term "and / or" used in the present application specification and the attached claims refers to any combination of one or more of the items listed in association and all possible combinations, and includes these combinations.

[0156] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0157] The method and related apparatus provided by the embodiment of the present application are described with reference to the method flow chart and / or structural diagram provided by the embodiment of the present application. Specifically, each process and / or box in the method flow chart and / or structural diagram, as well as the combination of the processes and / or boxes in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the process. Figure 1 A process or multiple processes and / or structures Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or structures Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A flow or multiple flows and / or structures illustrate the steps of the functions specified in one block or multiple blocks.

Claims

1. A method for analyzing inventory reserves, characterized in that: The method comprises: Acquire sample inventory flow data of a plurality of sample users, wherein the sample inventory flow data includes at least one of damaged resource data, specified amount transaction data, operating income and expenditure data, inter-bank resource scheduling data, or transaction day feature data; Generate sample inventory demand data for each sample user based on at least one sample inventory flow data of the damaged resource data, the designated amount transaction data, the operating income and expenditure data, the inter-bank resource scheduling data or the transaction day characteristic data of each sample user; Building an inventory reserve analysis model based on the sample inventory demand data of each sample user, wherein the inventory reserve analysis model is obtained by combining a reserve analysis model and a regression analysis model, the reserve analysis model is obtained by training the sample inventory demand data of each sample user, and the regression analysis model is obtained by training the sample inventory demand data of each sample user and the output data of the reserve analysis model; When the inventory demand data of the user to be analyzed is obtained, the inventory demand data of the user to be analyzed is input into the inventory reserve analysis model, and the inventory reserve analysis data of the user to be analyzed is output through the inventory reserve analysis model.

2. The method according to claim 1, characterized in that The obtaining of sample inventory flow data of multiple sample users includes: Acquire inventory flow data of a plurality of sample users, and determine at least one of the following reference data of each sample user from the inventory flow data of each sample user: an average of the inventory flow data of each sample user, a mode of the inventory flow data of each sample user, or a median of the inventory flow data of each sample user; Determine the data fluctuation difference of each sample user based on at least one of the reference data of each sample user and the inventory flow data of each sample user; The inventory flow data corresponding to the sample users whose data fluctuation difference is greater than or equal to the fluctuation threshold are screened out to obtain the sample inventory flow data of each sample user.

3. The method according to claim 2, characterized in that After filtering out the inventory flow data corresponding to the sample users whose data fluctuation difference is greater than or equal to the fluctuation threshold, the method further includes: Determine the missing inventory flow data of each sample user from the inventory flow data of each sample user after screening; At least one item of the reference data of each sample user is used to supplement the missing inventory flow data of each sample user, so as to obtain the sample inventory flow data of each sample user.

4. The method according to claim 3, characterized in that The generating of the sample inventory demand data of each sample user according to at least one sample inventory flow data of the damaged resource data of each sample user, the designated amount transaction data, the operating income and expenditure data, the inter-bank resource scheduling data or the transaction day characteristic data comprises: Based on at least one sample inventory flow data of the damaged resource data, the designated amount transaction data, the operating income and expenditure data, the interbank resource scheduling data, or the transaction day characteristic data of any sample user, obtain at least one sample inventory derivative data of the data mean, data extreme value, data standard deviation, or window sliding data of the sample inventory flow data of any sample user; The sample inventory demand data of any one of the sample users is determined based on the at least one sample inventory flow data and the at least one sample inventory derivative data to obtain the sample inventory demand data of each sample user.

5. The method according to claim 4, characterized in that The determining of the sample inventory demand data of any sample user based on the at least one sample inventory flow data and the at least one sample inventory derived data comprises: Normalizing the at least one sample inventory flow data to obtain an embedded feature vector corresponding to the at least one sample inventory flow data; Normalizing the at least one sample stock derived data to obtain an embedded feature vector corresponding to the at least one sample stock derived data; The embedded feature vector corresponding to the at least one sample inventory flow data and the embedded feature vector corresponding to the at least one sample inventory derivative data are determined as the sample inventory demand data of any one sample user.

6. The method according to any one of claims 1 to 5, characterized in that: The constructing of the inventory reserve analysis model based on the sample inventory demand data of each sample user comprises: Building a reserve analysis model based on the sample inventory demand data of each sample user, and obtaining output data of the reserve analysis model for the sample inventory demand data; Based on the output data of the reserve analysis model and the sample inventory demand data of each sample user, the regression analysis model is trained using a linear regression algorithm to obtain the inventory reserve analysis model.

7. The method according to claim 6, characterized in that After determining the inventory reserve analysis data of the user to be analyzed by using the inventory reserve analysis model, the method further includes: Determine basic inventory reserve data, holiday inventory reserve data or emergency inventory reserve data of the user to be analyzed based on the inventory reserve analysis data of the user to be analyzed; Generate a basic inventory scheduling plan, a holiday inventory scheduling plan or a temporary inventory scheduling plan for the user to be analyzed based on the basic inventory reserve data, holiday inventory reserve data or temporary inventory reserve data of the user to be analyzed; An inventory scheduling instruction is sent to the user to be analyzed based on the basic inventory scheduling plan, holiday inventory scheduling plan or temporary inventory scheduling plan of the user to be analyzed.

8. An inventory reserve analysis device, characterized in that: The device comprises: A sample acquisition module, used to acquire sample inventory flow data of a plurality of sample users, wherein the sample inventory flow data includes at least one of damaged resource data, specified amount transaction data, operating income and expenditure data, inter-bank resource scheduling data, or transaction day feature data; A data processing module, configured to generate sample inventory demand data for each sample user based on at least one sample inventory flow data of the damaged resource data, the designated amount transaction data, the operating income and expenditure data, the inter-bank resource scheduling data or the transaction day characteristic data of each sample user; A model training module, used for constructing an inventory reserve analysis model based on the sample inventory demand data of each sample user, wherein the inventory reserve analysis model is obtained by combining a reserve analysis model and a regression analysis model, the reserve analysis model is obtained by training the sample inventory demand data of each sample user, and the regression analysis model is obtained by training the sample inventory demand data of each sample user and the output data of the reserve analysis model; The inventory analysis module is used to input the inventory demand data of the user to be analyzed into the inventory reserve analysis model when the inventory demand data of the user to be analyzed is obtained, and output the inventory reserve analysis data of the user to be analyzed through the inventory reserve analysis model.

9. A terminal device, characterized in that: The method comprises a processor and a memory, wherein the processor and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 7.