Data processing method, device and electronic equipment

By obtaining and calculating consumer product sales information within the e-commerce platform, and using a variety of machine learning algorithms to make predictions, the problem of inaccurate sales trend predictions for beauty and maternal and infant consumer products is solved, and the accuracy of resource information and the e-commerce platform are improved. decision-making ability.

CN113706214BActive Publication Date: 2024-09-03WUHAN ZALL DIGITAL MEDIA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111025644.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-02
Publication Date
2024-09-03
Estimated Expiration
2041-09-02

AI Technical Summary

Technical Problem

It is difficult for e-commerce platforms to accurately predict the sales trends of beauty and maternal and infant consumer goods, resulting in inaccurate resource information predictions.

Method used

By obtaining the name of the consumer product to be forecasted in the current cycle and the transaction information of the previous cycle, we calculate prediction-related parameters, use XGBoost, support vector machine and logistic regression algorithm models to predict, and combine user behavior and seasonal demand differences to predict resource information. .

Benefits of technology

It improves the prediction accuracy of resource information, can more accurately predict the sales trends of beauty and maternal and infant consumer goods, and enhances the decision-making ability of the e-commerce platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113706214B
    Figure CN113706214B
Patent Text Reader

Abstract

The data processing method, device and electronic device provided by the present invention obtain the names of consumer products of the consumer products whose resource information is to be predicted in the current cycle and the transaction information of the consumer products in the previous cycle of the current cycle; based on the transaction information, the prediction related parameters of the resource information of the consumer products in the current cycle are calculated; according to the calculated prediction related parameters, the resource information of the consumer products in the current cycle is predicted, so that the resource information of the consumer products in the current cycle is predicted using the prediction related parameters, which can improve the accuracy of the obtained resource information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a data processing method, device and electronic equipment. Background Art

[0002] At present, e-commerce platforms have become people's first choice for shopping. Female users log in to e-commerce websites through mobile terminals, open the pages of beauty and maternal and child products to browse and make purchases. Summary of the invention

[0003] To solve the above problems, an object of the embodiments of the present invention is to provide a data processing method, device and electronic device.

[0004] In a first aspect, an embodiment of the present invention provides a data processing method, including:

[0005] Obtain the names of the consumer products for which resource information is to be predicted in the current cycle and the transaction information of the consumer products in the previous cycle of the current cycle;

[0006] Based on the transaction information, calculate and obtain prediction parameters related to the resource information of the consumer goods in the current period;

[0007] Based on the calculated prediction-related parameters, the resource information of the consumer goods in the current period is predicted.

[0008] In a second aspect, an embodiment of the present invention further provides a data processing device, including:

[0009] An acquisition module, used to acquire the names of consumer products of the resource information to be predicted in the current cycle and the transaction information of the consumer products in the previous cycle of the current cycle;

[0010] A calculation module, configured to calculate, based on the transaction information, prediction-related parameters of the resource information of the consumer goods in the current period;

[0011] The prediction module is used to predict the resource information of the consumer goods in the current period according to the calculated prediction related parameters.

[0012] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the first aspect are executed.

[0013] In a fourth aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor and one or more programs, wherein the one or more programs are stored in the memory and configured so that the processor executes the steps of the method described in the first aspect.

[0014] In the solutions provided by the first to fourth aspects of the embodiments of the present invention, the names of the consumer goods whose resource information is to be predicted in the current cycle and the transaction information of the consumer goods in the previous cycle of the current cycle are obtained; based on the transaction information, the prediction related parameters of the resource information of the consumer goods in the current cycle are calculated, and the resource information of the consumer goods in the current cycle is predicted using the prediction related parameters, thereby predicting the resource information of the consumer goods in the current cycle using the prediction related parameters, thereby improving the accuracy of the resource information obtained.

[0015] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0017] Figure 1 A flow chart of a data processing method provided by Embodiment 1 of the present invention is shown;

[0018] Figure 2 A schematic diagram showing the structure of a data processing device provided by Embodiment 2 of the present invention is shown;

[0019] Figure 3 A schematic structural diagram of an electronic device provided by Embodiment 3 of the present invention is shown. DETAILED DESCRIPTION

[0020] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0021] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0022] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0023] At present, e-commerce platforms have become people's first choice for shopping. Female users log in to e-commerce websites through mobile terminals, open the pages of beauty and maternal and child products to browse and make purchases.

[0024] Based on this, this embodiment proposes a data processing method, device and electronic device, which obtains the name of the consumer product of the consumer product whose resource information is to be predicted in the current cycle and the transaction information of the consumer product in the previous cycle of the current cycle; based on the transaction information, calculates the prediction related parameters of the resource information of the consumer product in the current cycle, and uses the prediction related parameters to predict the resource information of the consumer product in the current cycle, thereby using the prediction related parameters to predict the resource information of the consumer product in the current cycle, which can improve the accuracy of the resource information obtained.

[0025] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0026] Example 1

[0027] The executor of the data processing method proposed in this embodiment is the backend server of the e-commerce platform.

[0028] See also Figure 1 A data processing method is shown in the figure. This embodiment proposes a data processing method, which includes the following specific steps:

[0029] Step 100: Obtain the names of the consumer products for which resource information is to be predicted in the current cycle and the transaction information of the consumer products in the previous cycle of the current cycle.

[0030] In the above step 100, the transaction information of the consumer goods in the previous cycle of the current cycle includes but is not limited to: the transaction resource information of the consumer goods in the previous cycle of the current cycle, the transaction volume of the consumer goods in the previous cycle of the current cycle, the total transaction resource information of the consumer goods in the previous cycle of the current cycle, the brand store level of the consumer goods, the region where the user who purchased the consumer goods is located, and the current time.

[0031] The consumer products include, but are not limited to: beauty products and maternal and child products.

[0032] The data processing method proposed in this embodiment can predict resource information for any other consumer products in addition to beauty and cosmetics consumer products and maternal and child consumer products, and will not be described in detail here.

[0033] The period for forecasting resource information can be set to any length of time from 1 to 4 months.

[0034] In one embodiment, different consumer products among beauty and cosmetics and maternal and infant consumer products have different seasonal demands, that is, some of the beauty and cosmetics and maternal and infant consumer products have high demands in some seasons and low demands in other seasons.

[0035] Therefore, preferably, the resource information of beauty and cosmetics products and maternal and infant products is predicted based on the months experienced in the approximate seasons.

[0036] Among them, spring is from March to May of the year; summer is from June to August of the year; autumn is from September to November of the year; and winter is from December to February of the following year.

[0037] Then, on the date when a season starts, namely March 1, June 1, September 1 and December 1, the data processing method proposed in this embodiment is executed to predict the resource information of consumer goods in the current period.

[0038] Step 102: Based on the transaction information, calculate and obtain prediction-related parameters of the resource information of the consumer goods in the current period.

[0039] In the above step 102, the prediction-related parameters include, but are not limited to: the transaction volume of the consumer goods in the previous cycle of the current cycle, the sum of the transaction resource information of the consumer goods in the previous cycle of the current cycle, and the brand store level of the consumer goods, the first average value of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the variance of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the maximum value of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the regional identifier of the region where the user who purchased the consumer goods is located, the season identifier of the current season, the second average value of the transaction resource information in the first time period, and the third average value of the transaction resource information in the second time period.

[0040] In the above step 102, in order to calculate the prediction-related parameters of the resource information of the consumer product in the current period based on the transaction information, the following steps (1) to (7) may be performed:

[0041] (1) querying the region identifier of the region where the user who purchased the consumer product is located, determining the current season based on the current time, and querying the season identifier of the current season;

[0042] (2) calculating, based on the transaction resource information of the consumer product in the previous cycle of the current cycle, a first average value of the transaction resource information of the consumer product in the previous cycle of the current cycle and a variance of the transaction resource information of the consumer product in the previous cycle of the current cycle;

[0043] (3) determining the maximum value of the transaction resource information of the consumer product in the previous period of the current period based on the transaction resource information of the consumer product in the previous period of the current period;

[0044] (4) based on the transaction resource information of the consumer product in the previous cycle of the current cycle, calculating a first time period in which the sum of the transaction resource information of the consumer product in the previous cycle of the current cycle is greater than a first transaction resource information sum threshold, and obtaining the transaction resource information in the first time period;

[0045] (5) calculating a second average value of the transaction resource information within the first period;

[0046] (6) based on the transaction resource information of the consumer product in the previous cycle of the current cycle, calculating a second time period in which the sum of the transaction resource information of the consumer product in the previous cycle of the current cycle is less than a second transaction resource information sum threshold, and obtaining the transaction resource information in the second time period;

[0047] (7) Calculating a third average value of the transaction resource information within the second period.

[0048] In the above step (1), the backend server stores the correspondence between regions and regional identifiers, so by traversing the correspondence between regions and regional identifiers using the determined region, the regional identifier of the region where the user who purchases the consumer goods is located can be queried.

[0049] The backend server stores the correspondence between seasons and season identifiers, so the season identifier of the season can be queried by traversing the correspondence between seasons and season identifiers using the determined season.

[0050] In the above step (2), the specific process of calculating the first average value of the transaction resource information of the consumer goods in the previous period of the current cycle and the variance of the transaction resource information of the consumer goods in the previous period of the current cycle based on the transaction resource information of the consumer goods in the previous period of the current cycle is prior art and will not be repeated here.

[0051] In the above step (3), the maximum value of the transaction resource information of the consumer product in the previous cycle of the current cycle includes: the maximum value of the transaction resource information of the consumer product in the previous cycle of the current cycle and the minimum value of the transaction resource information of the consumer product in the previous cycle of the current cycle.

[0052] In the above step (4), the first transaction resource information sum threshold is a preset value and is cached in the background server.

[0053] The first period is when e-commerce companies hold store anniversary events or shopping festivals.

[0054] In the above step (6), the second transaction resource information sum threshold is a preset value and is cached in the backend server. The second transaction resource information sum threshold is much smaller than the first transaction resource information sum threshold.

[0055] The second period is the off-season period of demand.

[0056] Step 104: predict the resource information of the consumer goods in the current period according to the calculated prediction-related parameters.

[0057] In the above step 104, in order to predict the resource information of the consumer goods in the current period according to the calculated prediction related parameters, the following steps (1) to (3) are included:

[0058] (1) Processing prediction-related parameters to obtain a first prediction value of resource information of the consumer product in the current period;

[0059] (2) obtaining a second prediction value and a third prediction value of resource information of the consumer product in the current period;

[0060] (3) Using the first prediction value, the second prediction value, and the third prediction value, predict the resource information of the consumer product in the current period.

[0061] In the above step (1), the following specific process can be performed:

[0062] Using the XGBoost algorithm, the transaction volume of the consumer goods in the previous cycle of the current cycle, the sum of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the brand store level of the consumer goods, the first average value of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the variance of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the maximum value of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the regional identifier of the region where the user who purchased the consumer goods is located, the season identifier of the current season, the second average value of the transaction resource information in the first time period, and the third average value of the transaction resource information in the second time period are processed to obtain a first predicted value of the resource information of the consumer goods in the current cycle.

[0063] In the above step (2), in order to obtain the second prediction value and the third prediction value of the resource information of the consumer product in the current period, the following steps (21) to (23) may be performed:

[0064] (21) According to the name of the consumer product, respectively search for competing consumer products and similar consumer products of the consumer product;

[0065] (22) obtaining a second prediction value of resource information of the consumer product in a current period based on the consumer product, the competing consumer product, and the similar consumer product;

[0066] (23) Obtaining user behavior in a previous cycle of the current cycle, and processing the user behavior to obtain a third prediction value of the resource information of the consumer product in the current cycle.

[0067] In the above step (21), the backend server caches the correspondence between the names of the consumer products, the names of the competing consumer products, and the names of the similar consumer products.

[0068] Therefore, by traversing according to the names of consumer products, competing consumer products and similar consumer products of the consumer products can be queried.

[0069] The competitive consumer products of the consumer products refer to consumer products of other brands that are similar in positioning to the consumer products of the resource information to be predicted.

[0070] The similar consumer products of the consumer product refer to the previous generation or next generation consumer products of the consumer product of the to-be-predicted resource information in the commodity brand to which the consumer product belongs.

[0071] In the above step (22), in order to obtain the second predicted value of the resource information of the consumer product in the current period, the following steps (221) to (222) may be performed:

[0072] (221) obtaining a first search volume of the consumer product in the previous cycle of the current cycle, a second search volume of the competing consumer product in the previous cycle of the current cycle, and a third search volume of the similar consumer product in the previous cycle of the current cycle;

[0073] (222) Inputting the first search volume, the second search volume, and the third search volume into a support vector machine algorithm model, and utilizing the support vector machine algorithm model to process the first search volume, the second search volume, and the third search volume to obtain a second predicted value of the resource information of the consumer product in the current period.

[0074] In the above step (221), the background server stores statistical user behaviors, including: the user's daily search volume for consumer products, the daily click volume for consumer products, and the daily order volume for consumer products. Then, the background server can count and obtain the first search volume of the consumer product in the previous cycle of the current cycle, the second search volume of the competing consumer product in the previous cycle of the current cycle, and the third search volume of the similar consumer product in the previous cycle of the current cycle based on the daily search volume of the consumer product recorded in the user behavior.

[0075] In the above step (222), the specific process of using the support vector machine algorithm model to process the first search volume, the second search volume, and the third search volume to obtain the second predicted value of the resource information of the consumer product in the current period is prior art and will not be repeated here.

[0076] In the above step (23), in order to obtain the third predicted value of the resource information of the consumer product in the current period, the following steps (231) to (232) may be performed:

[0077] (231) obtaining user behaviors in the previous cycle of the current cycle, wherein the user behaviors in the previous cycle of the current cycle include: the first search volume of the consumer product by the user in the previous cycle of the current cycle, the first click volume of the page where the consumer product is located by the user in the previous cycle of the current cycle, and the first order volume of the consumer product by the user in the previous cycle of the current cycle;

[0078] (232) Inputting the first search volume, the first click volume, and the first order volume into a logistic regression algorithm model, and using the logistic regression algorithm model to process the first search volume, the first click volume, and the first order volume, to obtain a third predicted value of the resource information of the consumer product in the current period.

[0079] In the above step (231), the backend server can obtain statistics on the first search volume for the consumer product by users in the previous cycle of the current cycle, the first click volume on the page where the consumer product is located in the previous cycle of the current cycle, and the first order volume for the consumer product by users in the previous cycle of the current cycle based on the daily search volume for the consumer product, the daily click volume for the consumer product, and the daily order volume for the consumer product recorded in the user behavior.

[0080] In the above step (232), the logistic regression algorithm model is formulated as follows:

[0081] z=w T x

[0082] y=sigmoid(z)

[0083]

[0084] The specific process of using the logistic regression algorithm model to process the first search volume, the first click volume, and the first order volume to obtain the third predicted value of the resource information of the consumer product in the current period is prior art and will not be repeated here.

[0085] In the above step (3), using the first prediction value, the second prediction value, and the third prediction value to predict the resource information of the consumer product in the current period includes:

[0086] The resource information of the consumer goods in the current period is predicted by the following formula:

[0087] W(x)=w1f1(x)+w2f2(x)+w3f3(x)

[0088] Wherein, W(x) represents the resource information of the consumer goods in the current period; f1(x) represents the first prediction value; f2(x) represents the second prediction value; f3(x) represents the third prediction value; w1, w2, and w3 are preset values.

[0089] When setting w1, w2, and w3, the following conditions must be met:

[0090] The sum of w1, w2, and w3 is 1; the set values ​​of w2 and w3 should be greater than the set value of w1.

[0091] Through the above content, it can be determined that the prediction of consumer product resource information is carried out by linearly combining the XGBoost algorithm, the support vector machine algorithm model and the logistic regression algorithm model, which makes the prediction of resource information more accurate and further improves the effect.

[0092] After obtaining the predicted resource information of the consumer goods in the current cycle, the following steps (1) to (8) can be continued:

[0093] (1) Displaying the resource information of the consumer goods in the current period obtained by prediction;

[0094] (2) when the predicted duration of displaying the resource information of the consumer product in the current period reaches a preset duration, counting the second search volume of the consumer product by users within the preset duration, the second click volume of the page where the consumer product is located by users within the preset duration, and the second order volume of the consumer product by users within the preset duration;

[0095] (3) when the second search volume is less than a search volume threshold, the second click volume is less than a click volume threshold, and the second order volume is less than an order volume threshold, acquiring transaction resource information of the consumer product in the previous cycle of the current cycle;

[0096] (4) using a bagging algorithm to divide the transaction resource information of the consumer product in the previous cycle of the current cycle into a first data set and a second data set; wherein the first data set and the second data set respectively include: at least two transaction resource information;

[0097] (5) respectively calculating the Euclidean distance between each piece of transaction resource information in at least two pieces of transaction resource information in the first data set and each piece of transaction resource information in at least two pieces of transaction resource information in the second data set;

[0098] (6) sorting the transaction resource information in the first data set in ascending order of Euclidean distance to obtain sorted transaction resource information;

[0099] (7) selecting the first k pieces of transaction resource information from the sorted transaction resource information as candidate resource information, and selecting the candidate resource information with the highest appearance frequency from the candidate resource information as the updated resource information of the consumer product in the current period;

[0100] (8) Using the updated resource information, the resource information of the consumer product in the current period is updated, and the updated resource information of the consumer product in the current period is displayed.

[0101] In the above step (1), the backend server displays the predicted resource information of the consumer goods in the current period on the e-commerce platform.

[0102] In the above step (2), the preset duration is any time length from 7 days to 14 days.

[0103] The time period for counting the second search volume of the consumer product by users within a preset time period, the second click volume of the page where the consumer product is located by users within a preset time period, and the second order volume of the consumer product by users within a preset time period is: the time period within the preset time period starting from the start time point of displaying the predicted resource information of the consumer product in the current period.

[0104] In the above step (3), the search volume threshold, click volume threshold, and order volume threshold are cached in the backend server.

[0105] The search volume threshold is obtained by counting the daily search volume for consumer goods in the daily user behavior of consumer goods; the click volume threshold is obtained by counting the daily click volume for consumer goods in the daily user behavior of consumer goods; and the order volume threshold is obtained by counting the daily orders for consumer goods in the daily user behavior of consumer goods.

[0106] In the above step (4), the specific process of using the Bagging algorithm to divide the transaction resource information of the consumer goods in the previous cycle of the current cycle into the first data set and the second data set is a prior art and will not be repeated here.

[0107] In the above step (5), the specific process of calculating the Euclidean distance is: calculating the square root of the sum of squares of differences between each transaction resource information in at least two transaction resource information in the first data set and each transaction resource information in at least two transaction resource information in the second data set.

[0108] The specific formula is as follows:

[0109]

[0110] Wherein, x represents the first data set; x i represents the second data set; j represents the attributes of the first data set and the second data set.

[0111] Of course, the Euclidean distance between each transaction resource information in the at least two transaction resource information in the first data set and each transaction resource information in the at least two transaction resource information in the second data set can also be obtained by using existing technology, which will not be repeated here.

[0112] Through the process described in the above steps (1) to (8), it can be known that whether the predicted resource information of the consumer product needs to be adjusted is determined based on the user behavior. When the predicted resource information of the consumer product needs to be adjusted, the Euclidean distance calculation can be performed based on the transaction resource information in the previous cycle of the current cycle, so as to determine multiple candidate resource information from the transaction resource information in the previous cycle of the current cycle, and select the candidate resource information with the highest frequency from the multiple candidate resource information as the updated resource information of the resource information of the consumer product in the current cycle and display it, thereby further improving the accuracy of the resource information of the consumer product.

[0113] In summary, this embodiment proposes a data processing method, which obtains the name of the consumer product of the consumer product whose resource information is to be predicted in the current cycle and the transaction information of the consumer product in the previous cycle of the current cycle; based on the transaction information, calculates the prediction related parameters of the resource information of the consumer product in the current cycle, and uses the prediction related parameters to predict the resource information of the consumer product in the current cycle, thereby using the prediction related parameters to predict the resource information of the consumer product in the current cycle, which can improve the accuracy of the resource information obtained.

[0114] Example 2

[0115] This embodiment provides a data processing device for executing the data processing method provided in the above embodiment 1.

[0116] See also Figure 2 The structural diagram of a data processing device shown in FIG. 1 is a schematic diagram of a data processing device. This embodiment provides a data processing device, including:

[0117] An acquisition module 200 is used to acquire the names of the consumer products of the resource information to be predicted in the current cycle and the transaction information of the consumer products in the previous cycle of the current cycle;

[0118] A calculation module 202, configured to calculate prediction-related parameters of resource information of the consumer product in the current period based on the transaction information;

[0119] The prediction module 204 is used to predict the resource information of the consumer goods in the current period according to the calculated prediction related parameters.

[0120] The prediction module 204 is specifically used for:

[0121] Processing prediction-related parameters to obtain a first prediction value of resource information of the consumer product in a current period;

[0122] Obtaining a second prediction value and a third prediction value of resource information of the consumer product in a current period;

[0123] The resource information of the consumer product in the current period is predicted using the first prediction value, the second prediction value, and the third prediction value.

[0124] The prediction module 204 is used to obtain the second prediction value and the third prediction value of the resource information of the consumer product in the current period, including:

[0125] According to the name of the consumer product, respectively search for competing consumer products and similar consumer products of the consumer product;

[0126] Obtaining a second predicted value of resource information of the consumer product in a current period according to the consumer product, the competing consumer product and the similar consumer product;

[0127] The user behavior in the previous cycle of the current cycle is obtained, and the user behavior is processed to obtain a third prediction value of the resource information of the consumable product in the current cycle.

[0128] In summary, this embodiment proposes a data processing device, which obtains the consumer product name of the consumer product whose resource information is to be predicted in the current cycle and the transaction information of the consumer product in the previous cycle of the current cycle; based on the transaction information, calculates the prediction related parameters of the resource information of the consumer product in the current cycle, and uses the prediction related parameters to predict the resource information of the consumer product in the current cycle, thereby using the prediction related parameters to predict the resource information of the consumer product in the current cycle, thereby improving the accuracy of the resource information obtained.

[0129] Example 3

[0130] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data processing method described in the above embodiment 1 are executed. The specific implementation can be found in method embodiment 1, which will not be described in detail here.

[0131] In addition, see Figure 3 The structural diagram of an electronic device shown in FIG. 1 is a schematic diagram of a structure of an electronic device. This embodiment further provides an electronic device, which includes a bus 51 , a processor 52 , a transceiver 53 , a bus interface 54 , a memory 55 and a user interface 56 . The electronic device includes a memory 55 .

[0132] In this embodiment, the electronic device further includes: one or more programs stored in the memory 55 and executable on the processor 52, and configured so that the processor executes the one or more programs to perform the following steps (1) to (3):

[0133] (1) Obtaining the names of the consumer products for which resource information is to be predicted in the current cycle and the transaction information of the consumer products in the previous cycle of the current cycle;

[0134] (2) based on the transaction information, calculating prediction parameters related to resource information of the consumer product in the current period;

[0135] (3) Predicting resource information of the consumer goods in the current period based on the calculated prediction-related parameters.

[0136] The transceiver 53 is used to receive and send data under the control of the processor 52.

[0137] Among them, the bus architecture (represented by bus 51), bus 51 can include any number of interconnected buses and bridges, and bus 51 links various circuits including one or more processors represented by processor 52 and memory represented by memory 55. Bus 51 can also link various other circuits such as peripherals, voltage regulators, and power management circuits together, which are all well known in the art, so this embodiment will not be further described. Bus interface 54 provides an interface between bus 51 and transceiver 53. Transceiver 53 can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. For example: transceiver 53 receives external data from other devices. Transceiver 53 is used to send data processed by processor 52 to other devices. Depending on the nature of the computing system, a user interface 56, such as a keypad, display, speaker, microphone, joystick, can also be provided.

[0138] The processor 52 is responsible for managing the bus 51 and general processing, such as running a general operating system as mentioned above, while the memory 55 can be used to store data used by the processor 52 when performing operations.

[0139] Optionally, the processor 52 may be, but is not limited to: a central processing unit, a single-chip microcomputer, a microprocessor or a programmable logic device.

[0140] It can be understood that the memory 55 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 55 of the system and method described in the present embodiment is intended to include, but is not limited to, these and any other suitable types of memory.

[0141] In some implementations, the memory 55 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: an operating system 551 and application programs 552 .

[0142] The operating system 551 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 552 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 552.

[0143] In summary, this embodiment proposes a computer-readable storage medium and an electronic device, which obtains the name of a consumer product of the consumer product whose resource information is to be predicted in the current cycle and the transaction information of the consumer product in the previous cycle of the current cycle; based on the transaction information, calculates the prediction related parameters of the resource information of the consumer product in the current cycle, and then uses the prediction related parameters to predict the resource information of the consumer product in the current cycle, thereby using the prediction related parameters to predict the resource information of the consumer product in the current cycle, which can improve the accuracy of the obtained resource information.

[0144] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A data processing method, It is characterized in that include: Obtain the names of the consumer products for which resource information is to be predicted in the current cycle and the transaction information of the consumer products in the previous cycle of the current cycle; wherein the transaction information of the consumer products in the previous cycle of the current cycle includes: the transaction resource information of the consumer products in the previous cycle of the current cycle, the transaction volume of the consumer products in the previous cycle of the current cycle, the total transaction resource information of the consumer products in the previous cycle of the current cycle, the brand store level of the consumer products, the region where the user who purchased the consumer products is located, and the current time; Based on the transaction information, the prediction related parameters of the resource information of the consumer goods in the current cycle are calculated; wherein the prediction related parameters of the resource information of the consumer goods in the current cycle include: the transaction volume of the consumer goods in the previous cycle of the current cycle, the sum of the transaction resource information of the consumer goods in the previous cycle of the current cycle, and the brand store level of the consumer goods, the first average value of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the variance of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the maximum value of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the regional identifier of the region where the user who purchased the consumer goods is located, the season identifier of the season in which the current cycle is located, the second average value of the transaction resource information in the first time period, and the third average value of the transaction resource information in the second time period; wherein the first time period refers to the time period when the e-commerce company holds store celebration activities or shopping festivals; the second time period refers to the time period of the off-season demand; According to the calculated prediction related parameters, predict the resource information of the consumer goods in the current period; Wherein, based on the transaction information, the prediction-related parameters of the resource information of the consumer goods in the current period are calculated, including: Querying the region identifier of the region where the user who purchased the consumer product is located, determining the season of the current cycle based on the current time, and querying the season identifier of the season of the current cycle; According to the transaction resource information of the consumer product in the previous cycle of the current cycle, a first average value of the transaction resource information of the consumer product in the previous cycle of the current cycle and a variance of the transaction resource information of the consumer product in the previous cycle of the current cycle are calculated; Determine the maximum value of the transaction resource information of the consumer product in the previous cycle of the current cycle according to the transaction resource information of the consumer product in the previous cycle of the current cycle; According to the transaction resource information of the consumer product in the previous cycle of the current cycle, a first time period in which the sum of the transaction resource information of the consumer product in the previous cycle of the current cycle is greater than a first transaction resource information sum threshold is obtained, and the transaction resource information in the first time period is obtained; and a second average value of the transaction resource information in the first time period is calculated; According to the transaction resource information of the consumer product in the previous cycle of the current cycle, a second time period in which the sum of the transaction resource information of the consumer product in the previous cycle of the current cycle is less than a second transaction resource information sum threshold is calculated, and the transaction resource information in the second time period is obtained; and a third average value of the transaction resource information in the second time period is calculated; The step of predicting the resource information of the consumer goods in the current period according to the calculated prediction related parameters includes: Using the XGBoost algorithm, the transaction volume of the consumer goods in the previous cycle of the current cycle, the sum of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the brand store level of the consumer goods, the first average value of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the variance of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the maximum value of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the regional identifier of the region where the user who purchased the consumer goods is located, the season identifier of the season in which the current cycle is located, the second average value of the transaction resource information in the first time period, and the third average value of the transaction resource information in the second time period are processed to obtain a first predicted value of the resource information of the consumer goods in the current cycle; The method further includes: searching for competing consumer products and similar consumer products of the consumer product according to the name of the consumer product; Obtaining a first search volume of the consumer product in the previous cycle of the current cycle, a second search volume of the competing consumer product in the previous cycle of the current cycle, and a third search volume of the similar consumer product in the previous cycle of the current cycle; inputting the first search volume, the second search volume, and the third search volume into a support vector machine algorithm model, and using the support vector machine algorithm model to process the first search volume, the second search volume, and the third search volume to obtain a second predicted value of the resource information of the consumer product in the current cycle; Obtaining user behavior in a previous cycle of the current cycle, wherein the user behavior in the previous cycle of the current cycle includes: a first search volume of the consumer product by the user in the previous cycle of the current cycle, a first click volume of the page where the consumer product is located by the user in the previous cycle of the current cycle, and a first order volume of the consumer product by the user in the previous cycle of the current cycle; inputting the first search volume, the first click volume, and the first order volume of the consumer product by the user in the previous cycle of the current cycle into a logistic regression algorithm model, and processing the first search volume, the first click volume, and the first order volume of the consumer product by the user in the previous cycle of the current cycle using the logistic regression algorithm model to obtain a third predicted value of the resource information of the consumer product in the current cycle; Predicting resource information of the consumer product in the current period using the first prediction value, the second prediction value, and the third prediction value; The step of using the first prediction value, the second prediction value, and the third prediction value to predict the resource information of the consumer product in the current period includes: The resource information of the consumer goods in the current period is predicted by the following formula: W(x)=w1f1(x)+w2f2(x)+w3f3(x); Wherein, W(x) represents the resource information of the consumer goods in the current period; f1(x) represents the first prediction value; f2(x) represents the second prediction value; f3(x) represents the third prediction value; w1, w2, and w3 are preset values.

2. A data processing device, It is characterized in that include: An acquisition module, used to acquire the names of consumer products of the consumer products whose resource information is to be predicted in the current cycle and the transaction information of the consumer products in the previous cycle of the current cycle; wherein the transaction information of the consumer products in the previous cycle of the current cycle includes: the transaction resource information of the consumer products in the previous cycle of the current cycle, the transaction volume of the consumer products in the previous cycle of the current cycle, the total transaction resource information of the consumer products in the previous cycle of the current cycle, the brand store level of the consumer products, the region where the user who purchased the consumer products is located, and the current time; A calculation module, configured to calculate prediction-related parameters of the resource information of the consumer goods in the current cycle based on the transaction information; wherein the prediction-related parameters of the resource information of the consumer goods in the current cycle include: the transaction volume of the consumer goods in the previous cycle of the current cycle, the sum of the transaction resource information of the consumer goods in the previous cycle of the current cycle, and the brand store level of the consumer goods, the first average value of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the variance of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the maximum value of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the regional identifier of the region where the user who purchased the consumer goods is located, the season identifier of the season in which the current cycle is located, the second average value of the transaction resource information in the first time period, and the third average value of the transaction resource information in the second time period; wherein the first time period refers to the time period when the e-commerce company holds store celebration activities or shopping festivals; the second time period refers to the time period of the off-season demand; A prediction module, used to predict resource information of the consumer goods in the current period according to the calculated prediction related parameters; The calculation of the prediction-related parameters of the resource information of the consumer goods in the current period based on the transaction information includes: Querying the region identifier of the region where the user who purchased the consumer product is located, determining the season of the current cycle based on the current time, and querying the season identifier of the season of the current cycle; According to the transaction resource information of the consumer product in the previous cycle of the current cycle, a first average value of the transaction resource information of the consumer product in the previous cycle of the current cycle and a variance of the transaction resource information of the consumer product in the previous cycle of the current cycle are calculated; Determine the maximum value of the transaction resource information of the consumer product in the previous cycle of the current cycle according to the transaction resource information of the consumer product in the previous cycle of the current cycle; According to the transaction resource information of the consumer product in the previous cycle of the current cycle, a first time period in which the sum of the transaction resource information of the consumer product in the previous cycle of the current cycle is greater than a first transaction resource information sum threshold is obtained, and the transaction resource information in the first time period is obtained; and a second average value of the transaction resource information in the first time period is calculated; According to the transaction resource information of the consumer product in the previous cycle of the current cycle, a second time period in which the sum of the transaction resource information of the consumer product in the previous cycle of the current cycle is less than a second transaction resource information sum threshold is calculated, and the transaction resource information in the second time period is obtained; and a third average value of the transaction resource information in the second time period is calculated; The step of predicting the resource information of the consumer goods in the current period according to the calculated prediction related parameters includes: Using the XGBoost algorithm, the transaction volume of the consumer goods in the previous cycle of the current cycle, the sum of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the brand store level of the consumer goods, the first average value of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the variance of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the maximum value of the transaction resource information of the consumer goods in the previous cycle of the current cycle, the regional identifier of the region where the user who purchased the consumer goods is located, the season identifier of the season in which the current cycle is located, the second average value of the transaction resource information in the first time period, and the third average value of the transaction resource information in the second time period are processed to obtain a first predicted value of the resource information of the consumer goods in the current cycle; The prediction module is also used to: query the competitive consumer products and similar consumer products of the consumer product according to the name of the consumer product; Obtaining a first search volume of the consumer product in the previous cycle of the current cycle, a second search volume of the competing consumer product in the previous cycle of the current cycle, and a third search volume of the similar consumer product in the previous cycle of the current cycle; inputting the first search volume, the second search volume, and the third search volume into a support vector machine algorithm model, and using the support vector machine algorithm model to process the first search volume, the second search volume, and the third search volume to obtain a second predicted value of the resource information of the consumer product in the current cycle; Obtaining user behavior in a previous cycle of the current cycle, wherein the user behavior in the previous cycle of the current cycle includes: a first search volume of the consumer product by the user in the previous cycle of the current cycle, a first click volume of the page where the consumer product is located by the user in the previous cycle of the current cycle, and a first order volume of the consumer product by the user in the previous cycle of the current cycle; inputting the first search volume, the first click volume, and the first order volume of the consumer product by the user in the previous cycle of the current cycle into a logistic regression algorithm model, and processing the first search volume, the first click volume, and the first order volume of the consumer product by the user in the previous cycle of the current cycle using the logistic regression algorithm model to obtain a third predicted value of the resource information of the consumer product in the current cycle; Predicting resource information of the consumer product in the current period using the first prediction value, the second prediction value, and the third prediction value; The step of using the first prediction value, the second prediction value, and the third prediction value to predict the resource information of the consumer product in the current period includes: The resource information of the consumer goods in the current period is predicted by the following formula: W(x)=w1f1(x)+w2f2(x)+w3f3(x); Wherein, W(x) represents the resource information of the consumer goods in the current period; f1(x) represents the first prediction value; f2(x) represents the second prediction value; f3(x) represents the third prediction value; w1, w2, and w3 are preset values.

3. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to claim 1 is performed.

4. An electronic device, It is characterized in that The electronic device includes a memory, a processor, and one or more programs, wherein the one or more programs are stored in the memory and are configured to enable the processor to execute the method as claimed in claim 1.