Method, device, equipment and storage medium for determining the number of reached users
By obtaining the number of reached users in multiple time periods and using a preset statistical model, the problem of low accuracy in calculating the number of reached users in the existing technology is solved, and more accurate natural traffic estimation is achieved.
Patent Information
- Application Number
- CN202110180829.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-08
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-02-08
AI Technical Summary
In the existing technology, the statistical method for the number of reached users during large-scale events relies on the historical year-on-year and recent month-on-year comparisons, resulting in a small amount of data and low accuracy, resulting in inaccurate calculation results of the number of reached users.
By obtaining the number of reached users in odd time periods before the time period to be counted, including preset reference time periods and historical time periods, the preset statistical model is used to determine the number of reached users in the time period to be counted, improving calculation accuracy. Spend.
This method improves the calculation accuracy of the number of reached users by utilizing data from multiple time periods, overcomes the problem of few available data samples during large-scale events, and provides a more accurate natural traffic estimate.
Smart Images

Figure CN113763022B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a method, apparatus, device and storage medium for determining the number of reached users. Background Art
[0002] In recent years, with the rapid development of network technology, major e-commerce platforms have launched large-scale activities at certain times every year, such as 618 activities, Double 11 activities, Double 12 activities, year-end activities, etc. In large-scale activities, accurately estimating the number of users reached by each category (or each brand) has important reference and guiding significance for the operation management, procurement and sales of e-commerce companies. Among them, search and recommendation are two typical ways to guide users to reach categories in natural traffic.
[0003] In the prior art, the statistics of the number of users reached by search and recommendation methods during large-scale events mainly include the historical year-on-year method and the recent month-on-month method. The historical year-on-year method is mainly to obtain the year-on-year coefficient by comparing the number of users reached in the same period of the previous year with the number of users reached in the same period of the previous year, or by comparing the number of users reached in other periods of last year with the number of users reached in the same period of this year, and then obtain the number of users reached during a large-scale event this year based on the number of users reached in the same period of last year and the year-on-year coefficient. The recent month-on-month method is to obtain the month-on-month coefficient by comparing the number of users reached before the event of the same period of last year with the number of users reached in the same period of last year, or by comparing the number of users reached before other events this year with the number of users reached during other events this year, and finally obtain the number of users reached during a large-scale event this year based on the number of users reached before a large-scale event period this year and the month-on-month coefficient.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: since the above-mentioned year-on-year coefficient and month-on-month coefficient rely on a small amount of data when determining them, the determined year-on-year coefficient and month-on-month coefficient are inaccurate, resulting in low accuracy in the number of reached users during a certain large-scale event. Summary of the invention
[0005] The embodiments of the present application provide a method, apparatus, device and storage medium for determining the number of reached users, so as to solve the problem of low accuracy of the number of reached users in a target time period determined by the existing methods.
[0006] According to the first aspect of the present application, an embodiment of the present application provides a method for determining the number of reached users, including:
[0007] Obtain a statistical request for the number of reached users, the statistical request including: an identifier of a time period to be counted;
[0008] According to the identifier of the time period to be counted, the number of reached users in each time period of an odd number of time periods before the time period to be counted is obtained, where the odd number of time periods includes: a preset reference time period of the time period to be counted and at least one pair of historical time periods, and each pair of historical time periods includes: a target time period and a preset reference time period of the target time period;
[0009] According to the number of reached users in each time period of the odd-numbered time periods and a preset statistical model, the number of reached users in the time period to be counted is determined.
[0010] In a possible design of the first aspect, determining the number of reached users in the time period to be counted according to the number of reached users in each time period of the odd-numbered time periods and a preset statistical model includes:
[0011] Determine the variable of the number of reached users for each pair of historical time periods according to the number of reached users in each time period of each pair of historical time periods and the preset statistical model;
[0012] Determine a variable function of the number of reached users corresponding to the variable of the number of reached users according to the variable of the number of reached users and preset statistical information in each pair of historical time periods;
[0013] According to the variable function of the number of reached users, determining a variable of the theoretical number of reached users in the time period to be counted compared with the preset reference time period;
[0014] The number of reached users within the time period to be counted is determined based on the theoretical number of reached users variable and the number of reached users within the preset reference time period.
[0015] Optionally, the preset statistical information includes: the number of time periods included in each processing cycle;
[0016] The determining, according to each pair of the reached user number variable and the preset statistical information in the historical time period, a reached user number variable function corresponding to the reached user number variable includes:
[0017] Construct a variable sequence of the number of reached users based on the variables of the number of reached users in each pair of historical time periods;
[0018] According to the odd number of time periods and the number of time period logarithms included in each processing cycle, determine a first function term of the processing cycle to which each time period belongs and respective indicative function terms of the time period logarithm information of each time period in the processing cycle to which it belongs;
[0019] According to the variable sequence of the number of reached users, the first function term and each indicative function term, respectively determine the coefficient of the first function term and the coefficient of each indicative function term;
[0020] According to the first function term, each indicative function term, the coefficient of the first function term and the coefficient of each indicative function term, determine the reached user number variable function corresponding to the reached user number variable.
[0021] Optionally, determining, according to the variable function of the number of reached users, a variable of the theoretical number of reached users in the time period to be counted compared with that in the preset reference time period includes:
[0022] Determine, according to the number of the at least one pair of historical time periods, a variable of a pair of time periods to be counted consisting of the time period to be counted and the preset reference time period;
[0023] Substituting the time period to be counted into the variable function of the number of reached users, determining the indicative function item value and the first function item value of the time period to be counted in the corresponding processing cycle;
[0024] According to the indicative function item value of the variable in the processing cycle in the time period to be counted and the first function item value, the theoretical number of reached users in the time period to be counted compared with the preset reference time period is determined.
[0025] In another possible design of the first aspect, when the preset statistical model includes: an additive statistical model and a multiplicative statistical model, the method further includes:
[0026] According to the number of reached users in each time period in each pair of historical time periods and the preset evaluation index, respectively determine the first fitting error corresponding to the additive statistical model and the second fitting error corresponding to the multiplicative statistical model;
[0027] Determine a target statistical model in the additive statistical model and the multiplicative statistical model according to the first fitting error and the second fitting error;
[0028] Correspondingly, determining the number of reached users in the time period to be counted according to the number of reached users in each time period of the odd-numbered time periods and a preset statistical model includes:
[0029] According to the number of reached users in each of the odd-numbered time periods and the target statistical model, the number of reached users in the time period to be counted is determined.
[0030] In another possible design of the first aspect, before obtaining, according to the identifier of the time period to be counted, the number of reached users in each time period of an odd number of time periods before the time period to be counted, the method further includes:
[0031] Obtaining preset statistical information of the number of reached users, the preset statistical information including: the number of processing cycles counted each time, the number of time period pairs included in each processing cycle, the time range of the target time period in each pair of time periods, and the time range of the reference time period;
[0032] An odd number of time periods before the time period to be counted is determined according to the preset statistical information and the identifier of the time period to be counted.
[0033] According to a second aspect of the present application, an embodiment of the present application provides a device for determining the number of reached users, including: an acquisition module, used to obtain a statistical request for the number of reached users, the statistical request including: an identifier of a time period to be counted, and according to the identifier of the time period to be counted, obtaining the number of reached users in each time period of an odd number of time periods before the time period to be counted, the odd number of time periods including: a preset reference time period of the time period to be counted and at least one pair of historical time periods, each pair of historical time periods including: a target time period and a preset reference time period of the target time period;
[0034] A processing module is used to determine the number of reached users in the time period to be counted based on the number of reached users in each time period of the odd time periods and a preset statistical model.
[0035] In a possible design of the second aspect, the processing module is specifically configured to:
[0036] Determine the variable of the number of reached users for each pair of historical time periods according to the number of reached users in each time period of each pair of historical time periods and the preset statistical model;
[0037] Determine a variable function of the number of reached users corresponding to the variable of the number of reached users according to the variable of the number of reached users and preset statistical information in each pair of historical time periods;
[0038] According to the variable function of the number of reached users, determining a variable of the theoretical number of reached users in the time period to be counted compared with the preset reference time period;
[0039] The number of reached users within the time period to be counted is determined based on the theoretical number of reached users variable and the number of reached users within the preset reference time period.
[0040] Optionally, the preset statistical information includes: the number of time periods included in each processing cycle;
[0041] The processing module is used to determine the reached user number variable function corresponding to the reached user number variable according to the reached user number variable and preset statistical information in each pair of historical time periods, specifically:
[0042] The processing module is specifically used for:
[0043] Construct a variable sequence of the number of reached users based on the variables of the number of reached users in each pair of historical time periods;
[0044] According to the odd number of time periods and the number of time period logarithms included in each processing cycle, determine a first function term of the processing cycle to which each time period belongs and respective indicative function terms of the time period logarithm information of each time period in the processing cycle to which it belongs;
[0045] According to the variable sequence of the number of reached users, the first function term and each indicative function term, respectively determine the coefficient of the first function term and the coefficient of each indicative function term;
[0046] According to the first function term, each indicative function term, the coefficient of the first function term and the coefficient of each indicative function term, determine the reached user number variable function corresponding to the reached user number variable.
[0047] Optionally, the processing module is used to determine the variable of the theoretical number of reached users in the time period to be counted compared with the preset reference time period according to the variable function of the number of reached users, specifically:
[0048] The processing module is specifically used for:
[0049] Determine, according to the number of the at least one pair of historical time periods, a variable of a pair of time periods to be counted consisting of the time period to be counted and the preset reference time period;
[0050] Substituting the time period to be counted into the variable function of the number of reached users, determining the indicative function item value and the first function item value of the time period to be counted in the corresponding processing cycle;
[0051] According to the indicative function item value of the variable in the processing cycle in the time period to be counted and the first function item value, the theoretical number of reached users in the time period to be counted compared with the preset reference time period is determined.
[0052] In another possible design of the second aspect, when the preset statistical model includes: an additive statistical model and a multiplicative statistical model, the processing module is further used to:
[0053] According to the number of reached users in each time period in each pair of historical time periods and the preset evaluation index, respectively determine the first fitting error corresponding to the additive statistical model and the second fitting error corresponding to the multiplicative statistical model;
[0054] Determine a target statistical model in the additive statistical model and the multiplicative statistical model according to the first fitting error and the second fitting error;
[0055] Correspondingly, the processing module is used to determine the number of reached users in the time period to be counted according to the number of reached users in each time period of the odd-numbered time periods and a preset statistical model, specifically:
[0056] The processing module is specifically used to determine the number of reached users in the time period to be counted based on the number of reached users in each time period of the odd-numbered time periods and the target statistical model.
[0057] In another possible design of the second aspect, the acquisition module is further used to obtain preset statistical information of the number of reached users before obtaining the number of reached users in each time period in an odd number of time periods before the time period to be counted according to an identifier of the time period to be counted, wherein the preset statistical information includes: the number of processing cycles for each statistics, the number of time period pairs included in each processing cycle, the time range of the target time period in each pair of time periods, and the time range of the reference time period;
[0058] The processing module is further configured to determine an odd number of time periods before the time period to be counted according to the preset statistical information and the identifier of the time period to be counted.
[0059] According to the third aspect of the present application, an embodiment of the present application provides a data processing device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in the first aspect and various possible designs is implemented.
[0060] According to the fourth aspect of the present application, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the method described in the first aspect and various possible designs.
[0061] According to a fifth aspect of the present application, an embodiment of the present application provides a computer program product, including: a computer program, which, when executed by a processor, is used to implement the method described in the first aspect and various possible designs.
[0062] The method, device, equipment and storage medium for determining the number of reached users provided in the embodiments of the present application obtain the statistical request for the number of reached users, and according to the identifier of the time period to be counted in the statistical request, obtain the number of reached users in the odd time periods before the time period to be counted, the odd time periods include: a preset reference time period of the time period to be counted and at least one pair of historical time periods, each pair of historical time periods includes: a target time period and a preset reference time period of the target time period, and finally determine the number of reached users in the time period to be counted according to the number of reached users in each time period of the odd time periods and the preset statistical model. This technical solution can accurately estimate the number of reached users in the time period to be counted by searching and recommending in natural traffic on a specified category (or brand), and it uses the data of each target time period and the preset reference time period of each target time period to improve the calculation accuracy of the number of reached users. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0064] Figure 1 A schematic diagram of an application scenario of the method for determining the number of reached users provided in an embodiment of the present application;
[0065] Figure 2 A flowchart of a method for determining the number of reached users provided in this application in accordance with Embodiment 1;
[0066] Figure 3 A flowchart of Embodiment 2 of the method for determining the number of reached users provided in this application;
[0067] Figure 4 A flowchart of Embodiment 3 of the method for determining the number of reached users provided in this application;
[0068] Figure 5 This is a schematic diagram of using the additive statistical model to fit the incremental number of reached users for each pair of time periods;
[0069] Figure 6 This is a schematic diagram of using a multiplicative statistical model to fit the ratio of the number of users reached in each pair of time periods;
[0070] Figure 7 A schematic diagram of the structure of an embodiment of a device for determining the number of reached users provided in this application;
[0071] Figure 8 A schematic diagram of the structure of an embodiment of a data processing device provided in this application.
[0072] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0073] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0074] First, the terms involved in the embodiments of the present application are explained:
[0075] The 4A model is Aware, Appeal, Act, and Advocate, and the 5A model is Aware, Appeal, Ask, Act, and Advocate, which are all factors used to evaluate the audience's reaction to the content. Among them, Aware can also be understood as content visibility, representing the breadth of content coverage of consumers, and can be used to measure the first level of effectiveness of content promotion; Appeal is the attractiveness of content, representing the ability of content to attract consumers' attention; Ask is also the content's drainage power, representing the ability of content to inspire consumers to "actively understand items"; Act is also the content's customer acquisition power, representing the ability of content to guide and convert consumers' ordering behavior; Advocate is also the content's fan conversion power, representing the ability of content to accumulate consumer assets for the brand.
[0076] The AIPL model is the acronym for Awareness, Interest, Purchase and Loyalty, which represents the process of users’ unfamiliarity with a certain category, to cognition, experience, purchase, and finally becoming loyal fans.
[0077] The following is an introduction to the application scenarios of this application:
[0078] With the development of the e-commerce industry, major e-commerce platforms launch large-scale activities every year to promote people's consumption on e-commerce platforms. In large-scale activities, how to accurately estimate indicators such as the number of touch users (TU), conversion rate (CVR), average revenue per user (ARPU), and gross merchandise volume (GMV) for each category (or each brand) is of great reference and guidance to the operation management, procurement and sales of e-commerce companies.
[0079] At present, there are many ways for each category to reach users, such as search, recommendation, SMS, exposure, sending discount information, etc. Among them, search and recommendation are two typical ways to guide users to reach categories (or brands) in natural traffic, with the lowest cost and a high proportion in the entire traffic. The technical solution of this application is mainly based on the way of reaching users such as search and recommendation to determine the number of users reached in large-scale activities.
[0080] Based on the introduction in the background technology, it can be known that the common methods for estimating the number of reached users in the prior art, such as the historical year-on-year method and the recent month-on-month method, are relatively simple in prediction logic and method. However, due to the small amount of data they rely on, the determined year-on-year coefficient and month-on-month coefficient are inaccurate, resulting in low accuracy of the calculated number of reached users.
[0081] In addition, in the prior art, the data prediction method based on time series can also predict the number of users reached. Specifically, by taking the number of users reached daily in the category (or brand) as a time-varying series, the number of users reached during a large-scale event is predicted based on past time series data and recent time series data. However, this method requires data with strong autocorrelation and a sufficient amount of training data. For activities in daily life, the training data is relatively sufficient, the data changes smoothly and stably, and the autocorrelation is strong. However, for large-scale annual events, such as the 618 event, the Double 11 event, the Double 12 event, the year-end event, etc., after the annual promotion and implementation, users have strong expectations for the purchase date, the training samples are small, and the data during the large-scale event has poor autocorrelation with the data before the large-scale event period. Therefore, the data prediction method based on time series can have a good prediction effect on the number of users reached in daily activities, but the prediction effect is poor during large-scale events.
[0082] From the above analysis, it can be seen that the existing methods for determining the number of reached users all have the problem of low accuracy in calculating the number of reached users during the target activity period.
[0083] In response to the above technical problems, the technical conception process of the technical solution of this application is as follows: according to the needs of the actual scenario, we can first determine multiple time periods such as the annual large-scale activity period, and then count the number of users reached in each activity period in recent years and the number of users reached within the preset time range before each activity period, and form each activity period and the preset time range before each activity period into a pair of time periods, and then respectively calculate the variables of the number of users reached in each pair of time periods. Finally, when it is necessary to count the number of users reached in a future target activity period, after determining the number of users reached within the preset time range before the activity period, the number of users reached in the target activity period is determined in combination with the variables of the number of users reached in each pair of time periods. This technical solution utilizes the data of each activity period and before each activity period, overcomes the problem of large differences in the number of users reached between large-scale activity periods and daily activities, and small number of available data samples, and improves the accuracy of calculating the number of users reached.
[0084] Based on the above-mentioned conceptual process, an embodiment of the present application provides a method for determining the number of reached users. When a statistical request for the number of reached users is obtained, the number of reached users in the odd time periods before the time period to be counted is obtained according to the identifier of the time period to be counted in the statistical request. The odd time periods include: a preset reference time period of the time period to be counted and at least one pair of historical time periods, each pair of historical time periods includes: a target time period and a preset reference time period of the target time period. Finally, according to the number of reached users in each time period of the odd time periods and the preset statistical model, the number of reached users in the time period to be counted is determined. Among them, the time period to be counted is the time range of a large-scale event, and the preset reference time period of the time period to be counted is the time range of the preset time period before the large-scale event.
[0085] For example, Figure 1 Schematic diagram of an application scenario of the method for determining the number of reached users provided in an embodiment of the present application. Figure 1 As shown, the application scenario may include: at least one terminal device ( Figure 1 Three terminal devices are shown, namely terminal device 111, terminal device 112, and terminal device 113), network 12, server 13, and data processing device 14. Each terminal device and server 13 can communicate through network 12, so that server 13 can obtain user operation behavior data, thereby determining the number of reached users in each time period.
[0086] Optional, Figure 1 The application scenario shown may also include a data storage device 15 , which may be connected to the server 13 or the data processing device 14 , and is used to store data output by the server 13 and / or data output by the data processing device 14 .
[0087] For example, in Figure 1 In the application scenario shown, as an example, the data processing device 14 may have a human-computer interaction interface. In this case, the data processing device 14 may receive a statistical request from an operator who counts the number of users reached through the human-computer interaction interface; as another example, the data processing device 14 may also receive a statistical request from a statistician who counts the number of users reached through the operation terminal 16, and feed the statistical results back to the operation terminal 16 for display. The embodiment of the present application does not limit the specific manner in which the data processing device obtains the statistical request, which may be determined according to the actual scenario and will not be elaborated here.
[0088] In this embodiment, the data processing device 14 can execute the program code of the method for determining the number of reached users based on the data obtained from the server 13 and / or the data storage device 15 to obtain the number of reached users within the time period to be counted.
[0089] It should be noted that the attached Figure 1 This is only a schematic diagram of an application scenario provided by the embodiment of the present application. Figure 1 does not limit the equipment included in Figure 1 The positional relationship between the devices in the Figure 1 In the embodiment, the data storage device 15 can be an external memory relative to the server 13. In other cases, the data storage device 15 can also be placed in the server 13. The data processing device 14 can be a device that exists independently of the server 13, or it can be a component integrated in the server 13. The embodiments of the present application do not limit this.
[0090] In practical applications, since both the terminal device and the server are processing devices with data processing capabilities, the above Figure 1 The data processing device in the application scenario shown can be implemented by a terminal device or a server. The embodiment of the present application is explained with the execution subject of the method for determining the number of reached users as the data processing device.
[0091] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0092] Figure 2 This is a flow chart of the first embodiment of the method for determining the number of reached users provided by this application. Figure 2 As shown, the method for determining the number of reached users may include the following steps:
[0093] S201. Obtain a statistical request for the number of reached users, where the statistical request includes: an identifier of a time period to be counted.
[0094] In an embodiment of the present application, in order to count the number of users reached by natural traffic such as recommendations and searches in a certain time period, the operator can directly operate the data processing device to issue the statistical request, or can issue the statistical request through the operation terminal. In order to determine the time period or time range to be counted, the statistical request needs to carry the identifier of the time period to be counted.
[0095] Exemplarily, the time period to be counted is usually the time range of a large-scale event set in the e-commerce platform. For common large-scale events, for example, the time range of the 618 event is from June 1st to June 18th, the time range of the Double 11 event is from November 1st to November 11th, and the time range of the Double 12 event is from December 1st to December 12th. Normally, each time period to be counted, that is, the start date and end date of each event are the peak dates for order transactions, for example, June 1st, June 18th, November 1st, November 11th, December 12th, etc., but the embodiments of the present application do not limit them.
[0096] It is understandable that the time period to be counted may also be other date ranges, for example, the date range of the 3.15 event, the date range set based on the anniversary of the store or e-commerce platform, etc. The embodiment of the present application does not limit it, and it can be determined according to actual needs, which will not be elaborated here.
[0097] S202. According to the identifier of the time period to be counted, obtain the number of reached users in each time period in the odd-numbered time periods before the time period to be counted.
[0098] The odd-numbered time periods include: a preset reference time period of the time period to be counted and at least one pair of historical time periods, and each pair of historical time periods includes: a target time period and a preset reference time period of the target time period.
[0099] In an embodiment of the present application, in order to accurately count the number of reached users in the time period to be counted, preset statistical information of the number of reached users is pre-stored in the data processing device. After obtaining the statistical request, the data processing device can determine multiple time periods before the time period to be counted by querying the above preset statistical information based on the identifier of the time period to be counted in the statistical request, and then obtain the number of reached users in each time period from the e-commerce platform or e-commerce server.
[0100] Accordingly, in the embodiment of the present application, before S202, the method may further include the following steps:
[0101] A1. Obtain preset statistical information on the number of reached users.
[0102] The preset statistical information includes: the number of processing cycles counted each time, the number of time period pairs included in each processing cycle, the time range of the target time period in each pair of time periods, and the time range of the reference time period.
[0103] A2. Determine an odd number of time periods before the time period to be counted according to the preset statistical information and the identifier of the time period to be counted.
[0104] In an embodiment of the present application, for a given brand or category, if you want to count the number of users reached in a certain time period, the data processing device needs to first obtain the pre-stored configuration statistical information, which may include: for each statistical request, the number of statistical processing cycles each time. Optionally, if the processing cycle is one year, the number of users reached in the target time period corresponding to each major event in the past two or three years and the preset reference time period before the target time period can be obtained each time as the historical time period.
[0105] Optionally, the configuration statistics information may also include the number of time period pairs included in each processing cycle. That is, in the embodiment of the present application, the time periods in each processing cycle are preset in pairs, and each pair of time periods includes a target time period and a preset reference time period of the target time period.
[0106] Therefore, in this embodiment, in addition to determining the preset reference time period of the time period to be counted based on the identification of the time period to be counted and the preset statistical information, at least one pair of time periods included in at least one preset processing cycle can also be determined, and each pair of time periods includes a target time period and a preset reference time period of the target time period.
[0107] Further, in an embodiment of the present application, the configuration statistical information may also include the time range of the target time period in each pair of time periods and the time range of the preset reference time period of the target time period. Exemplarily, the following is an example of three large-scale activities in a year, including 618 activities, double 11 activities, and double 12 activities. Correspondingly, the target time period corresponding to each activity and the time range (i.e., date range) of the preset reference time period of the target time period are shown in Table 1.
[0108] Table 1 Preset reference time period and time range of target time period
[0109] Preset reference time period for target time period Target time period 05-07~05-20 06-01~06-18 10-07~10-20 11-01~11-11 11-14~11-20 12-01~12-11
[0110] Referring to Table 1, Table 1 provides an example of a time range for different target time periods corresponding to different activities and an example of a time range for a preset reference time period for each target time period. Generally, the time range for a target time period corresponding to each activity is usually the time range for the activity to be carried out, and the preset reference time period for the target time period usually includes a full 2 weeks or 1 week before the target time period, wherein the time range of the target time period and the time unit of the preset reference time period may be continuous or discontinuous in time.
[0111] From the above analysis, it can be seen that the embodiment of the present application does not limit the time range of the preset reference time period and the target time period, and the length of different target time periods and the length of different preset reference time periods can be different, which can be set according to actual needs and will not be elaborated here.
[0112] Exemplarily, for a given category or brand, if you need to count the number of users reached during the Double 11 event in 2020, the time period to be counted is 2020-11-01 to 2020-11-11. According to the preset statistical information, you can select data from each pair of preset time periods in the last two years. For example, the number of users reached during major events in 2019 and 2020 can be used as training fitting data for the preset statistical model.
[0113] Assume that the number of reached users in each of the seven time periods from 2020-11-01 to 2020-11-11 is used to calculate the number of reached users in the time period to be counted. For example, if the major events of the year include the 618 event, the Double 11 event, and the Double 12 event, the above seven time periods may include: a preset reference time period from 2020-11-01 to 2020-11-11 (for example, 2020-10-07 to 2020-10-20), and three pairs of historical time periods. The three pairs of historical time periods are 2020-05-07~2020-05-20 and 2020-06-01~2020-06-18, 2019-11-14~2019-11-20 and 2019-12-01~2019-12-12, 2019-10-07~2019-10-20 and 2019-11-01~2019-11-11.
[0114] S203. Determine the number of reached users in the time period to be counted based on the number of reached users in each of the odd-numbered time periods and a preset statistical model.
[0115] In an embodiment of the present application, a preset statistical model may be loaded into the data processing device. After obtaining the number of reached users in each of the odd time periods before the time period to be counted, it is input into the preset statistical model to determine the number of reached users in the time period to be counted.
[0116] Exemplarily, the preset statistical model may be a preloaded statistical model, or may include multiple preloaded statistical models. When the preset statistical model includes multiple preloaded statistical models, the effectiveness of each statistical model can be evaluated based on the number of reached users in each pair of historical time periods in the above-mentioned odd time periods, and a target statistical model with better results can be selected from them, and the target statistical model can be used to calculate the number of reached users in the time period to be counted.
[0117] Furthermore, since the number of users reached by search and recommendation methods is the main component of natural traffic, and the activity achievement (GMV) that can be brought about by the reach method during large-scale events, and the number of users reached (TU), reach conversion rate (CVR), and average revenue per user (ARPU) of the reach method, they satisfy the following relationship: GMV = TU*CVR*ARPU. Therefore, after determining the number of users reached in the time period to be counted, GMV can be calculated in combination with CVR and ARPU. Therefore, if the estimated accuracy of TU is improved, the estimated accuracy of GMV can be improved to a certain extent, which is of great significance to the tracking and adjustment of auxiliary operations and procurement and sales processes of e-commerce companies.
[0118] It is understandable that, for a given event date, it is also possible to count the number of different users reached in categories or brands within the date range, or the number of different population segments reached. This is related to the method of determining the number of users reached in multiple time periods before the given event date, and will not be elaborated here.
[0119] The method for determining the number of reached users provided in the embodiment of the present application obtains the statistical request for the number of reached users, and according to the identifier of the time period to be counted in the statistical request, obtains the number of reached users in the odd time periods before the time period to be counted, and the odd time periods include: a preset reference time period of the time period to be counted and at least one pair of historical time periods, each pair of historical time periods includes: a target time period and a preset reference time period of the target time period, and finally determines the number of reached users in the time period to be counted according to the number of reached users in each time period of the odd time periods and the preset statistical model. This technical solution can accurately estimate the number of reached users in the time period to be counted by searching and recommending in natural traffic on a specified category (or brand), and it uses the data of each target time period and the preset reference time period of each target time period to improve the calculation accuracy of the number of reached users.
[0120] Based on the above embodiments, Figure 3 This is a flow chart of Embodiment 2 of the method for determining the number of reached users provided by this application. Figure 3 As shown, in this embodiment, the above S203 can be implemented by the following steps:
[0121] S301. Determine a variable of the number of reached users for each pair of historical time periods based on the number of reached users in each time period in each pair of historical time periods and a preset statistical model.
[0122] In an embodiment of the present application, after obtaining the number of reached users in the above-mentioned odd-numbered time periods, the number of target time periods in the odd-numbered time periods can be determined. Assuming that the variable m is the mth pair of time periods in the above-mentioned at least one pair of historical time periods, and m is an integer greater than or equal to 1, the total number of the above-mentioned at least one pair of historical time periods is 2m, and the data sequence of the number of reached users constructed according to the number of reached users in each time period in each pair of historical time periods is T(0), T(1),…, T(2m-1).
[0123] In this embodiment, the data processing device can determine the variable of the number of users reached for each pair of historical time periods according to the form of the loaded preset statistical model. Optionally, the preset statistical model can be an additive statistical model or a multiplicative statistical model.
[0124] As an example, when the preset statistical model is an additive statistical model, the variable of the number of users reached for each pair of historical time periods is the increment of the number of users reached in the target time period relative to the preset reference time period in the pair of time periods. For example, in each pair of historical time periods, the variable of the number of users reached is equal to the difference between the number of users reached in the preset reference time period and the number of users reached in the target time period. In this example, the variable of the number of users reached for each pair of historical time periods is expressed as y1=T(1)-T(0), y2=T(3)-T(2), ..., y m =T(2m-1)-T(2m-2).
[0125] As another example, when the preset statistical model is a multiplicative statistical model, the variable of the number of users reached for each pair of historical time periods is the ratio of the number of users reached in the target time period to the number of users reached in the preset reference time period in the pair of time periods. For example, in each pair of historical time periods, the variable of the number of users reached is equal to the ratio of the number of users reached in the preset reference time period to the number of users reached in the target time period. In this example, the variable of the number of users reached for each pair of historical time periods is expressed as y1=T(1) / T(0), y2=T(3) / T(2), ..., y m =T(2m-1) / T(2m-2).
[0126] S302. Determine a reached user number variable function corresponding to the reached user number variable according to the reached user number variable and preset statistical information for each pair of historical time periods.
[0127] In an embodiment of the present application, the preset statistical information includes: the logarithm of time periods included in each processing cycle. Therefore, after the data processing device obtains the variable of the number of reached users for each pair of historical time periods, it can query the preset statistical information to determine the logarithm of time periods included in each processing cycle, and then combine the variable of the number of reached users for each pair of historical time periods to determine the variable function of the number of reached users corresponding to the variable of the number of reached users.
[0128] In actual applications, activities with the same date range are held once a year apart. For example, the target time periods for the 618 activity are 2018-06-01 to 2018-06-18, and 2019-06-01 to 2019-06-18; the target time periods for the Double 11 activity are 2018-11-01 to 2018-11-11, and 2019-11-01 to 2019-11-11; the target time periods for the Double 12 activity are 2018-12-01 to 2018-12-12, and 2019-12-01 to 2019-12-12, etc. Therefore, the processing cycle of the number of users reached is one year, which can also be interpreted as an annual activity cycle. In actual applications, large-scale activities each year usually include different activities such as the 618 activity, the Double 11 activity, the Double 12 activity, and the year-end activity. The embodiment of the present application is illustrated by taking the annual large-scale events including the 618 event, the Double 11 event, and the Double 12 event as examples. In this case, the number of time period pairs included in each processing cycle is 3 pairs.
[0129] In the embodiment of the present application, S302 can be implemented by the following steps:
[0130] B1. Construct a variable sequence of the number of reached users based on the variable of the number of reached users in each pair of historical time periods.
[0131] For example, assuming that the number of fitting points of the variable function of the number of users reached is m, represented by variable t, and t = 0, 1, ..., m-1, then according to the variable y of the number of users reached in each historical time period m , construct a variable sequence y of the number of users reached with t as the variable t =y m-1 .
[0132] For example, assuming that the time period to be counted is the target time period corresponding to the Double 11 event in 2020, when 2018 to 2020 is selected as the processing period, the time periods included in the historical time pairs corresponding to the 618 event, the historical time pairs corresponding to the Double 11 event, and the historical time pairs corresponding to the Double 12 event from 2018 to 2020 are arranged in chronological order, for example, 2018-05-07 to 2018-05-20, 2018-06-01 to 2018-06-18, 2018-10-07 to 2018-10-20, 2018-11-01 to 2018-11-11, 2018-11-14 to 2018-1 8-11-20, 2018-12-01~2018-12-12, 2019-05-07~2019-05-20, …, 2020-10-07~2020-10-20. At this time, t=0, 3, 6 are the target time periods corresponding to the 618 event in 2018, the target time period corresponding to the 618 event in 2019, and the target time period corresponding to the 618 event in 2020. t=1, 4 are the target time periods corresponding to the Double 11 event in 2018 and the target time period corresponding to the Double 11 event in 2019. t=2, 5 are the target time periods corresponding to the Double 12 event in 2018 and the target time period corresponding to the Double 12 event in 2019. t=7 is the target time period corresponding to the Double 11 event in 2020.
[0133] B2. According to the odd number of time periods and the number of time period logarithms included in each processing cycle, determine the first function term of the processing cycle to which each time period belongs and various indicative function terms of the time period logarithm information of each time period in the processing cycle to which it belongs.
[0134] In the embodiment of the present application, it is assumed that the logarithm of the time periods included in each processing cycle is represented by M. In order to determine which processing cycle each time period in the odd-numbered time periods belongs to, a rounding function is used, for example, is the value of t quotient M rounded down, which indicates the processing cycle to which the fitting point t belongs. When t=0,1,2, it indicates that the historical time period pair corresponding to the fitting point t belongs to the 0th processing cycle, corresponding to 2018 in the selected period from 2018 to 2020; when t=3,4,5, it indicates that the historical time period pair corresponding to the fitting point t belongs to the 1st processing cycle, corresponding to 2019 in the selected period from 2018 to 2020; when t=6,7,8, it indicates that the historical time period pair corresponding to the fitting point t belongs to the 3rd processing cycle, corresponding to 2020 in the selected period from 2018 to 2020, and so on. That is, the first function term of the processing cycle to which each time period belongs is represented by express.
[0135] Optionally, in order to determine the order of the historical time period pair corresponding to the fitting point t in the multiple time period pairs included in the corresponding processing cycle, an indicative function term with a variable t%M=? can be selected, where t%M represents the remainder of t modulo M, where? is any value between 0,…,M-1. {t%M=0} The indicative function term indicating that the (t+1)th pair of time periods is the first pair of time periods in the corresponding processing cycle, I {t%M=1} Indicates that the (t+1)th pair of time periods is the indicative function term of the second pair of time periods in the corresponding processing cycle, I {t%M=2} The indicative function term indicating that the (t+1)th pair of time periods is the third pair of time periods in the corresponding processing cycle. {t%M=0} , when t%M is greater than 0, I {t%M=0} =1, otherwise it takes the value 0; similarly, for I {t%M=1} , when t%M is greater than 1, I {t%M=1} =1, otherwise it takes the value 0; for I {t%M=2} , when t%M is greater than 2, I {t%M=2} =1, otherwise the value is 0.
[0136] B3. According to the variable sequence of the number of reached users, the first function term and each indicative function term, determine the coefficient of the first function term and the coefficient of each indicative function term respectively.
[0137] B4. Determine the reached user number variable function corresponding to the reached user number variable according to the first function term, each indicative function term, the coefficient of the first function term and the coefficient of each indicative function term.
[0138] Exemplarily, in an embodiment of the present application, it is assumed that the variable function of the number of reached users is expressed in the following form:
[0139]
[0140] Wherein, t represents the t-th fitting point of the variable function of the number of reached users, t=0, 1, ..., m-1, m represents the m-th pair of time periods in the at least one pair of historical time periods, and m is a positive integer greater than 1 or equal to 1; M represents the number of time period logarithms included in each processing cycle; y t I represents the variable of the number of users reached in the (t+1)th time period; {t%M=0} Indicates that the (t+1)th pair of time periods is the indicative function term of the first pair of time periods in the corresponding processing cycle, and b0 indicates I {t%M=0} The coefficient of I {t%M=1} It indicates that the (t+1)th time period is the indicative function term of the second time period in the corresponding processing cycle, and b1 indicates I {t%M=1} The coefficient of I {t%M=2}It indicates that the (t+1)th time period is the indicative function term of the third time period in the corresponding processing cycle, and b2 indicates I {t%M=2} The coefficient of ; t%M represents the remainder of t modulo M; is the t quotient M rounded down, representing the first function term of the processing cycle to which the (t+1)th time period belongs; k is The coefficient represents the slope of the increase in the number of reached users as the processing cycle increases.
[0141] It can be seen that the variable function of the number of users reached contains coefficients such as b0, b1, b2, ..., k. For the variable sequence of the number of users reached corresponding to at least one pair of historical time periods y0, y1, y2, ..., y t , all the unknown coefficients can be determined through machine learning algorithms, such as the least squares method or other methods. In other words, the variable function of the number of users reached embodies the concept of parameter sharing. The incremental bases of different activities such as the 618 event, the Double 11 event, and the Double 12 event are different, but the incremental growth slope k is the same and shared.
[0142] Exemplarily, for the variable sequence of the number of reached users determined by the above-mentioned 6 pairs of historical time periods, the user number variables y1 to y6 of two adjacent pairs of historical time periods can be calculated and substituted into the designed variable function of the number of reached users to obtain 6 equations, of which there are 4 variables. The values of the 4 variables are obtained by combining with the machine learning algorithm. Based on the 4 variables, the predicted value and actual value of the number of reached users in each historical time period can be obtained, and then the number of reached users in the 7th activity period, that is, the time period to be counted, can be predicted.
[0143] S303. Determine the variable of the theoretical number of reached users in the time period to be counted compared with the preset reference time period according to the variable function of the number of reached users.
[0144] In an embodiment of the present application, according to the order of fitting points of the time period pair to which the time period to be counted belongs, the variable function of the number of users reached can be used to determine the order of the time period pair to which the time period to be counted belongs in the processing cycle and the processing cycle to which the time period to be counted belongs, and then the theoretical variable of the number of users reached for the time period pair in which the time period to be counted is located can be obtained, that is, the theoretical variable of the number of users reached in the time period to be counted compared with the preset reference time period.
[0145] Optionally, in an embodiment of the present application, S303 may be implemented by the following steps:
[0146] Determine, according to the number of the at least one pair of historical time periods, a variable of a time period pair to be counted consisting of a time period to be counted and a preset reference time period;
[0147] Substitute the variable of the time period to be counted into the variable function of the number of reached users, and determine the indicative function item value and the first function item value of the variable of the time period to be counted in the corresponding processing cycle;
[0148] According to the indicative function item value of the variable in the processing cycle in the time period to be counted and the first function item value, the theoretical number of reached users in the time period to be counted compared with the preset reference time period is determined.
[0149] Specifically, after determining the variable function of the number of reached users, the variable of the time period pair to be counted consisting of the time period to be counted and the preset reference time period can be determined according to the number of the above-mentioned at least one pair of historical time periods. For example, the historical time period pair is t pairs, and the variable of the variable function of the number of reached users starts from 0, that is, the variables corresponding to the historical time period pairs are 0, 1, ..., t-1 in sequence; then the variable of the time period pair to be counted is t, and this t is substituted into the above-mentioned variable function of the number of reached users to determine an example function item with a value, and the value of the indicative function item and the value of the first function item are calculated, and the value of the indicative function item and the value of the first function item are added to obtain
[0150] Taking the above time period as a variable, if numbering is performed based on at least one pair of historical time periods, that is, determining the variable of the theoretical number of users reached within the time period to be counted, that is, the variable of the theoretical number of users reached within the time period to be counted compared with the preset reference time period.
[0151] S304. Determine the number of reached users in the time period to be counted based on the theoretical number of reached users variable and the number of reached users in a preset reference time period.
[0152] In this embodiment, according to the preset statistical model form, the relationship between the number of reached users in the time period to be counted and the number of reached users in the preset reference time period is determined, and combined with the number of reached users in the preset reference time period obtained above, the number of reached users in the time period to be counted can be calculated.
[0153] As an example, assuming that the selected preset statistical model is an additive statistical model, the number of reached users within the preset reference time period plus the theoretical number of reached users variable is the number of reached users within the time period to be counted.
[0154] As another example, assuming that the selected preset statistical model is a multiplicative statistical model, the number of reached users within the preset reference time period multiplied by the theoretical number of reached users variable is the number of reached users within the time period to be counted.
[0155] The method for determining the number of reached users provided in the embodiment of the present application determines the variable of the number of reached users for each pair of historical time periods according to the number of reached users in each time period in each pair of historical time periods and the preset statistical model, determines the variable function of the number of reached users corresponding to the variable of the number of reached users according to the variable of the number of reached users for each pair of historical time periods and the preset statistical information, and then determines the theoretical variable of the number of reached users in the time period to be counted compared with the preset reference time period according to the variable function of the number of reached users, and finally determines the number of reached users in the time period to be counted according to the theoretical variable of the number of reached users and the number of reached users in the preset reference time period. In this technical solution, the number of reached users in the time period to be counted can be accurately determined by using the number of reached users in the odd time periods before the time period to be counted, which lays the foundation for subsequent use.
[0156] Based on the above embodiments, Figure 4 This is a flow chart of Embodiment 3 of the method for determining the number of reached users provided by this application. Figure 4 As shown, in this embodiment, when the above-mentioned preset statistical model includes: an additive statistical model and a multiplicative statistical model, the method for determining the number of reached users may further include the following steps:
[0157] S401. According to the number of reached users in each time period in each pair of historical time periods and the preset evaluation index, a first fitting error corresponding to the additive statistical model and a second fitting error corresponding to the multiplicative statistical model are determined respectively.
[0158] In an embodiment of the present application, multiple preset evaluation indicators can be used to evaluate the effect of each model. The preset evaluation indicators can include the weighted mean absolute percentage error (wMAPE) of the fit and the maximum percentage error (max absolute percentage error, max-ape) of the fit. The formulas of wMAPE and max_ape are as follows:
[0159]
[0160]
[0161] The formula assumes that there are t fitting points, y i is the actual value, p i is the fitted value or predicted value.
[0162] In an embodiment of the present application, it is assumed that the sequence of the number of reached users is T(0), T(1),…, T(2m-1), and the variable function of the number of reached users is y=f(t).
[0163] As an example, for the additive statistical model, assuming that the time period to be counted is the mth target time period, the number of reached users in the time period to be counted (or the number of reached users by user layer) is Among them, T(i=2m) is the number of reached users in the preset reference time period of the time period to be counted, and f(t=m) is the increment of the number of reached users in the time period pair to which the time period to be counted belongs.
[0164] For example, Figure 5 This is a schematic diagram of fitting the incremental number of users reached in each pair of time periods using an additive statistical model. Figure 5 As shown in the figure, a historical period of 3 years for a category (or brand) is used as an example (you can also use the historical period of the last 2 years). The horizontal axis is the start time of the target period, and the vertical axis is the incremental number of users reached y t The thin solid line points represent the actual increase in the number of users reached by the historical time period, the thick solid line points represent the theoretical increase in the number of users reached by the variable function of the number of users reached, and the thick dotted line points represent the predicted value of the increase in the number of users reached by the time period to which the statistical time period belongs. Obviously, according to Figure 5 It can be seen that the predicted value of the number of users reached during the statistical time period is i=14 represents the preset reference time period of the time period to be counted, 2020-10-07 to 2020-10-20, and t=7 represents the 7th target time period, 2020-11-01 to 2020-11-11.
[0165] As another example, for the multiplicative statistical model, assuming that the time period to be counted is the mth target time period, the number of reached users in the time period to be counted (or the number of reached users by user stratification) is Among them, T(i=2m) is the number of reached users in the preset reference time period of the time period to be counted, and f(t=m) is the ratio of the number of reached users of the time period pair to which the time period to be counted belongs.
[0166] For example, Figure 6 This is a schematic diagram of fitting the ratio of the number of users reached in each time period using a multiplicative statistical model. Figure 6 As shown in the figure, a 3-year historical target time period for a category (or brand) is used as an example (you can also use the most recent 2-year historical time period). The horizontal axis is the start time of the target time period, and the vertical axis is the ratio of the number of users reached to y. t The thin solid line points represent the actual multiples of the number of users reached in the historical time period, the thick solid line points represent the theoretical multiples of the number of users reached determined by the variable function of the number of users reached, and the thick dotted line points represent the predicted value of the multiples of the number of users reached in the time period to which the statistical time period belongs. Obviously, according to Figure 6 It can be seen that the predicted value of the number of users reached during the statistical time period is i=14 represents the preset reference time period of the time period to be counted, 2020-10-07 to 2020-10-20, and t=7 represents the 7th target time period, 2020-11-01 to 2020-11-11.
[0167] It can be understood that the dates or time periods in the embodiments of the present application are example dates or time periods, and the embodiments of the present application do not limit them. They can be modified or adjusted according to actual needs and will not be repeated here.
[0168] Optionally, in an embodiment of the present application, for the two statistical models included in the preset statistical model, some categories (or brands) may be suitable for the additive statistical model, and some categories (or brands) may be suitable for the multiplicative statistical model. Therefore, the fitting result and the actual value of the additive statistical model can be respectively substituted into the above-mentioned preset evaluation indicators to obtain the indicator value corresponding to the additive statistical model, and the first fitting error corresponding to the additive statistical model is determined. Then, the fitting result and the actual value of the multiplicative statistical model can be respectively substituted into the above-mentioned preset evaluation indicators to obtain the indicator value corresponding to the multiplicative statistical model, and the second fitting error corresponding to the multiplicative statistical model is determined.
[0169] S402: Determine a target statistical model in the additive statistical model and the multiplicative statistical model according to the first fitting error and the second fitting error.
[0170] In this embodiment, the data processing device can select the statistical model with the smallest error as the target statistical model based on the first fitting error corresponding to the additive statistical model and the second fitting error corresponding to the multiplicative statistical model to ensure that the evaluation training fitting error or the prediction fitting error is smaller.
[0171] Accordingly, in this embodiment, the above S203 can be replaced by the following steps:
[0172] The number of reached users in the time period to be counted is determined based on the number of reached users in each time period of the odd-numbered time periods and the target statistical model.
[0173] In this embodiment, when determining the number of reached users in the time period to be counted, the variable of the number of reached users for the historical time period pair in which the time period to be counted is located can be determined based on the determined target statistical model and the number of reached users in each pair of historical time periods in the odd-numbered time periods, and then the number of reached users in the time period to be counted can be determined in combination with the number of reached users in the preset reference time period of the time period to be counted.
[0174] For details not described in detail in this step, please refer to the above Figure 3 The description in the illustrated embodiment will not be repeated here.
[0175] The method for determining the number of reached users provided in the embodiment of the present application determines the first fitting error corresponding to the additive statistical model and the second fitting error corresponding to the multiplicative statistical model according to the number of reached users in each time period in each pair of historical time periods and the preset evaluation index, and then can determine the target statistical model in the additive statistical model and the multiplicative statistical model according to the first fitting error and the second fitting error, thereby further reducing the preset error of the number of reached users, improving the statistical accuracy of the number of reached users in the time period to be counted, thereby improving the estimated accuracy of GMV, which is of great significance to the tracking and adjustment of auxiliary operations and procurement and sales processes.
[0176] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0177] Figure 7 This is a schematic diagram of the structure of an embodiment of a device for determining the number of reached users provided by this application. Figure 7 As shown, the device for determining the number of reached users may include:
[0178] The acquisition module 701 is used to obtain a statistical request for the number of reached users, the statistical request including: an identifier of a time period to be counted, and obtaining the number of reached users in each time period of an odd number of time periods before the time period to be counted according to the identifier of the time period to be counted, the odd number of time periods including: a preset reference time period of the time period to be counted and at least one pair of historical time periods, each pair of historical time periods including: a target time period and a preset reference time period of the target time period;
[0179] The processing module 702 is used to determine the number of reached users in the time period to be counted based on the number of reached users in each time period of the odd-numbered time periods and a preset statistical model.
[0180] In a possible design of the embodiment of the present application, the processing module 702 is specifically configured to:
[0181] Determine the variable of the number of reached users for each pair of historical time periods according to the number of reached users in each time period of each pair of historical time periods and the preset statistical model;
[0182] Determine a variable function of the number of reached users corresponding to the variable of the number of reached users according to the variable of the number of reached users and preset statistical information in each pair of historical time periods;
[0183] According to the variable function of the number of reached users, determining a variable of the theoretical number of reached users in the time period to be counted compared with the preset reference time period;
[0184] The number of reached users within the time period to be counted is determined based on the theoretical number of reached users variable and the number of reached users within the preset reference time period.
[0185] Optionally, the preset statistical information includes: the number of time periods included in each processing cycle;
[0186] The processing module 702 is used to determine the reached user number variable function corresponding to the reached user number variable according to each pair of reached user number variables and preset statistical information in the historical time period, specifically:
[0187] The processing module 702 is specifically used for:
[0188] Construct a variable sequence of the number of reached users based on the variables of the number of reached users in each pair of historical time periods;
[0189] According to the odd number of time periods and the number of time period logarithms included in each processing cycle, determine a first function term of the processing cycle to which each time period belongs and respective indicative function terms of the time period logarithm information of each time period in the processing cycle to which it belongs;
[0190] According to the variable sequence of the number of reached users, the first function term and each indicative function term, respectively determine the coefficient of the first function term and the coefficient of each indicative function term;
[0191] According to the first function term, each indicative function term, the coefficient of the first function term and the coefficient of each indicative function term, determine the reached user number variable function corresponding to the reached user number variable.
[0192] Optionally, the processing module 702 is used to determine the theoretical reached user number variable in the time period to be counted compared with the preset reference time period according to the reached user number variable function, specifically:
[0193] The processing module 702 is specifically used for:
[0194] Determine, according to the number of the at least one pair of historical time periods, a variable of a pair of time periods to be counted consisting of the time period to be counted and the preset reference time period;
[0195] Substituting the time period to be counted into the variable function of the number of reached users, determining the indicative function item value and the first function item value of the time period to be counted in the corresponding processing cycle;
[0196] According to the indicative function item value of the variable in the processing cycle in the time period to be counted and the first function item value, the theoretical number of reached users in the time period to be counted compared with the preset reference time period is determined.
[0197] In another possible design of the embodiment of the present application, when the preset statistical model includes: an additive statistical model and a multiplicative statistical model, the processing module 702 is further used to:
[0198] According to the number of reached users in each time period in each pair of historical time periods and the preset evaluation index, respectively determine the first fitting error corresponding to the additive statistical model and the second fitting error corresponding to the multiplicative statistical model;
[0199] Determine a target statistical model in the additive statistical model and the multiplicative statistical model according to the first fitting error and the second fitting error;
[0200] Correspondingly, the processing module 702 is used to determine the number of reached users in the time period to be counted according to the number of reached users in each time period of the odd-numbered time periods and a preset statistical model, specifically:
[0201] The processing module 702 is specifically used to determine the number of reached users in the time period to be counted based on the number of reached users in each time period of the odd-numbered time periods and the target statistical model.
[0202] In another possible design of the embodiment of the present application, the acquisition module 701 is further used to obtain preset statistical information of the number of reached users before obtaining the number of reached users in each time period in an odd number of time periods before the time period to be counted according to the identifier of the time period to be counted, wherein the preset statistical information includes: the number of processing cycles for each statistics, the number of time period pairs included in each processing cycle, the time range of the target time period in each pair of time periods, and the time range of the reference time period;
[0203] The processing module 702 is further configured to determine an odd number of time periods before the time period to be counted according to the preset statistical information and the identifier of the time period to be counted.
[0204] The device provided in the embodiment of the present application can be used to execute the technical solution described in the method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.
[0205] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the processing module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0206] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0207] Figure 8 This is a schematic diagram of the structure of the data processing device embodiment provided by this application. Figure 8As shown, the data processing device may include: a processor 801, a memory 802, a communication interface 803 and a system bus 804. The memory 802 and the communication interface 803 are connected to the processor 801 through the system bus 804 and communicate with each other. The memory 802 is used to store computer programs, and the communication interface 803 is used to communicate with other devices. When the processor 801 executes the computer program, the technical solution described in the above method embodiment is implemented.
[0208] In this Figure 8 In the embodiment, the processor 801 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0209] The memory 802 may include a random access memory (RAM), may include a read-only memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0210] The communication interface 803 is used to implement the communication between the database access device and other devices (such as the client, the read-write library and the read-only library).
[0211] The system bus 804 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0212] Optionally, an embodiment of the present application further provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed on a computer, the computer executes the technical solution described in the above method embodiment.
[0213] Optionally, an embodiment of the present application further provides a chip for executing instructions, wherein the chip is used to execute the technical solution described in the above method embodiment.
[0214] An embodiment of the present application also provides a computer program product, including: a computer program, the computer program is stored in a readable storage medium, at least one processor of a data processing device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the data processing device executes the solution provided by any of the above embodiments.
[0215] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the application disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0216] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for determining the number of reached users, characterized in that: include: Obtain a statistical request for the number of reached users, the statistical request including: an identifier of a time period to be counted; According to the identifier of the time period to be counted, the number of reached users in each time period of the odd-numbered time periods before the time period to be counted is obtained, the odd-numbered time periods include: a preset reference time period of the time period to be counted and at least one pair of historical time periods, each pair of historical time periods includes: a target time period and a preset reference time period of the target time period, the preset reference time period of the time period to be counted is a time period of a preset time before the time period to be counted, and the preset reference time period of the target time period is a time period of a preset time before the target time period; Determine the number of reached users in the time period to be counted according to the number of reached users in each time period of the odd-numbered time periods and a preset statistical model; When the preset statistical model includes: an additive statistical model and a multiplicative statistical model, the method further includes: According to the number of reached users in each time period in each pair of historical time periods and the preset evaluation index, respectively determine the first fitting error corresponding to the additive statistical model and the second fitting error corresponding to the multiplicative statistical model; Determine a target statistical model in the additive statistical model and the multiplicative statistical model according to the first fitting error and the second fitting error; Correspondingly, determining the number of reached users in the time period to be counted according to the number of reached users in each time period of the odd-numbered time periods and a preset statistical model includes: Determine the variable of the number of reached users for each pair of historical time periods according to the number of reached users in each time period of each pair of historical time periods and the preset statistical model; Determine a variable function of the number of reached users corresponding to the variable of the number of reached users according to the variable of the number of reached users and preset statistical information in each pair of historical time periods; Determining the number of reached users within the time period to be counted according to the reached user number variable function; The preset statistical information includes: the number of time periods included in each processing cycle; The determining, according to each pair of the reached user number variable and the preset statistical information in the historical time period, a reached user number variable function corresponding to the reached user number variable includes: Construct a variable sequence of the number of users reached based on the variables of the number of users reached in each pair of historical time periods; According to the odd number of time periods and the number of time period logarithms included in each processing cycle, determine a first function term of the processing cycle to which each time period belongs and respective indicative function terms of the time period logarithm information of each time period in the processing cycle to which it belongs; According to the variable sequence of the number of reached users, the first function term and each indicative function term, respectively determine the coefficient of the first function term and the coefficient of each indicative function term; According to the first function term, each indicative function term, the coefficient of the first function term and the coefficient of each indicative function term, determine the reached user number variable function corresponding to the reached user number variable.
2. The method according to claim 1, characterized in that Determining the number of reached users in the time period to be counted according to the variable function of the number of reached users includes: determining a variable of a theoretical number of reached users in the time period to be counted compared with the preset reference time period according to the variable function of the number of reached users; The number of reached users within the time period to be counted is determined based on the theoretical number of reached users variable and the number of reached users within the preset reference time period.
3. The method according to claim 2, characterized in that The determining, according to the variable function of the number of reached users, a variable of the theoretical number of reached users in the time period to be counted compared with that in the preset reference time period includes: Determine, according to the number of the at least one pair of historical time periods, a variable of a pair of time periods to be counted consisting of the time period to be counted and the preset reference time period; Substitute the time period to be counted into the variable function of the number of reached users, and determine the indicative function item value and the first function item value of the time period to be counted in the corresponding processing cycle; According to the indicative function item value of the variable in the processing cycle in the time period to be counted and the first function item value, the theoretical number of reached users in the time period to be counted compared with the preset reference time period is determined.
4. The method according to any one of claims 1 to 3, characterized in that: Before obtaining the number of reached users in each of the odd-numbered time periods before the time period to be counted according to the identifier of the time period to be counted, the method further includes: Obtaining preset statistical information of the number of reached users, the preset statistical information including: the number of processing cycles counted each time, the number of time period pairs included in each processing cycle, the time range of the target time period in each pair of time periods, and the time range of the reference time period; An odd number of time periods before the time period to be counted is determined according to the preset statistical information and the identifier of the time period to be counted.
5. A device for determining the number of reached users, characterized in that: include: an acquisition module, configured to acquire a statistical request for the number of reached users, the statistical request comprising: an identifier of a time period to be counted, and acquiring, according to the identifier of the time period to be counted, the number of reached users in each time period of an odd number of time periods before the time period to be counted, the odd number of time periods comprising: a preset reference time period of the time period to be counted and at least one pair of historical time periods, each pair of historical time periods comprising: a target time period and a preset reference time period of the target time period, the preset reference time period of the time period to be counted is a time period of a preset time before the time period to be counted, and the preset reference time period of the target time period is a time period of a preset time before the target time period; A processing module, used to determine the number of reached users in the time period to be counted according to the number of reached users in each time period of the odd-numbered time periods and a preset statistical model; When the preset statistical model includes: an additive statistical model and a multiplicative statistical model, the processing module is further used to: According to the number of reached users in each time period in each pair of historical time periods and the preset evaluation index, respectively determine the first fitting error corresponding to the additive statistical model and the second fitting error corresponding to the multiplicative statistical model; Determine a target statistical model in the additive statistical model and the multiplicative statistical model according to the first fitting error and the second fitting error; Correspondingly, determining the number of reached users in the time period to be counted according to the number of reached users in each time period of the odd-numbered time periods and a preset statistical model includes: Determine the variable of the number of reached users for each pair of historical time periods according to the number of reached users in each time period of each pair of historical time periods and the preset statistical model; Determine a variable function of the number of reached users corresponding to the variable of the number of reached users according to the variable of the number of reached users and preset statistical information in each pair of historical time periods; Determining the number of reached users within the time period to be counted according to the reached user number variable function; The preset statistical information includes: the number of time periods included in each processing cycle; The processing module is used to determine the reached user number variable function corresponding to the reached user number variable according to the reached user number variable and preset statistical information in each pair of historical time periods, specifically: The processing module is specifically used for: Construct a variable sequence of the number of users reached based on the variables of the number of users reached in each pair of historical time periods; According to the odd number of time periods and the number of time period logarithms included in each processing cycle, determine a first function term of the processing cycle to which each time period belongs and respective indicative function terms of the time period logarithm information of each time period in the processing cycle to which it belongs; According to the variable sequence of the number of reached users, the first function term and each indicative function term, respectively determine the coefficient of the first function term and the coefficient of each indicative function term; According to the first function term, each indicative function term, the coefficient of the first function term and the coefficient of each indicative function term, determine the reached user number variable function corresponding to the reached user number variable.
6. The device according to claim 5, characterized in that The processing module is specifically used for: According to the variable function of the number of reached users, determining a variable of the theoretical number of reached users in the time period to be counted compared with the preset reference time period; The number of reached users within the time period to be counted is determined based on the theoretical number of reached users variable and the number of reached users within the preset reference time period.
7. The device according to claim 6, characterized in that The processing module is used to determine the variable of the theoretical number of reached users in the time period to be counted compared with the preset reference time period according to the variable function of the number of reached users, specifically: The processing module is specifically used for: Determine, according to the number of the at least one pair of historical time periods, a variable of a pair of time periods to be counted consisting of the time period to be counted and the preset reference time period; Substitute the time period to be counted into the variable function of the number of reached users, and determine the indicative function item value and the first function item value of the time period to be counted in the corresponding processing cycle; According to the indicative function item value of the variable in the processing cycle in the time period to be counted and the first function item value, the theoretical number of reached users in the time period to be counted compared with the preset reference time period is determined.
8. The device according to any one of claims 5 to 7, characterized in that: The acquisition module is further configured to acquire preset statistical information of the number of reached users before acquiring the number of reached users in each of the odd-numbered time periods before the time period to be counted according to the identifier of the time period to be counted, wherein the preset statistical information includes: the number of processing cycles for each statistics, the number of time period pairs included in each processing cycle, the time range of the target time period in each pair of time periods, and the time range of the reference time period; The processing module is further configured to determine an odd number of time periods before the time period to be counted according to the preset statistical information and the identifier of the time period to be counted.
9. A data processing device comprising a processor, a memory and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 4 when executed by a processor.
11. A computer program product comprising: A computer program, characterized in that when the computer program is executed by a processor, it is used to implement the method according to any one of claims 1 to 4.
