Data prediction method and device, electronic equipment and storage medium

By obtaining and processing the time series data of the target group and the reference group, combined with the convolution kernel and attention mechanism, the target value of the predicted target group is disassembled, which solves the problem of large errors in traditional prediction methods and improves the prediction accuracy.

CN118569739APending Publication Date: 2024-08-30TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411038599.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Traditional data prediction methods have large errors when predicting the value of target groups to enterprises, platforms or products, resulting in low prediction accuracy of target value.

Method used

By obtaining the average value of the target group and the reference group and the retained time series data, we perform feature extraction and model prediction, and combine the convolution kernel processing and attention mechanism to disassemble the target value into predictions of the target average value and cumulative active time to improve prediction accuracy. Rate.

Benefits of technology

It effectively improves the prediction accuracy of target value. By capturing value change trends and retention rate changes, it provides accurate target average value and cumulative active duration, improving the accuracy of prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569739A
    Figure CN118569739A
Patent Text Reader

Abstract

The embodiment of the invention discloses a data prediction method and device, electronic equipment and a storage medium. The method comprises the steps that first average value time sequence data and first retention time sequence data of a target group are acquired, and second average value time sequence data and second retention time sequence data of a reference group are acquired; stacking the two kinds of average value time series data and then carrying out feature extraction to obtain first feature data, and stacking the two kinds of retention time series data and then carrying out feature extraction to obtain second feature data; splicing the first feature data and the first retention time sequence data, and inputting the spliced data into a first prediction model to obtain a target average value; splicing the second feature data and the first average value time sequence data, inputting the spliced data into a second prediction model, and determining an accumulated active duration based on a prediction result; determining a target value of the target group at the target time point based on the target average value and the accumulated active duration; according to the embodiment of the invention, the prediction accuracy of the target value can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a data prediction method, device, electronic device and storage medium. Background Art

[0002] Currently, when predicting the value that a certain object group will generate for an enterprise, platform or product, the early value change trend of the object group is usually processed by fixed-ratio scaling or least squares fitting function, and then the target value generated by the object group in the future is predicted, for example, the life cycle value of the object group is predicted. However, the prediction results of traditional prediction methods usually have large errors, resulting in low prediction accuracy of the target value. Summary of the invention

[0003] The following is a summary of the subject matter of the detailed description of the present disclosure. This summary is not intended to limit the scope of the claims.

[0004] The embodiments of the present disclosure provide a data prediction method, device, electronic device and storage medium, which can improve the prediction accuracy of target value.

[0005] On the one hand, an embodiment of the present disclosure provides a data prediction method, comprising: Acquire first average value time series data and first retention time series data of a target group in a first time period, and acquire second average value time series data and second retention time series data of a reference group in a second time period, wherein the reference group and the target group are groups of the same channel, and the first time period is different from the second time period; The first average value time series data and the second average value time series data are stacked and feature extracted to obtain first feature data, and the first retained time series data and the second retained time series data are stacked and feature extracted to obtain second feature data; splicing the first feature data and the first retention time series data and inputting them into a first prediction model for prediction to obtain the target average value of the target group at the target time point; splicing the second feature data and the first average value time series data and inputting them into a second prediction model for prediction, and determining the cumulative active time of the target group at the target time point based on the prediction result of the second prediction model; The target value of the target group at the target time point is determined based on the target average value and the accumulated active duration.

[0006] On the other hand, the present disclosure also provides a data prediction device, including: An acquisition module, used to acquire first average value time series data and first retention time series data of a target group in a first time period, and acquire second average value time series data and second retention time series data of a reference group in a second time period, wherein the reference group and the target group are groups of the same channel, and the first time period is different from the second time period; A feature extraction module, used for stacking the first average value time series data and the second average value time series data to extract features to obtain first feature data, and stacking the first retained time series data and the second retained time series data to extract features to obtain second feature data; A first prediction module, configured to splice the first feature data and the first retention time series data and input them into a first prediction model for prediction to obtain a target average value of the target group at a target time point; A second prediction module, configured to splice the second feature data and the first average value time series data and input them into a second prediction model for prediction, and determine the cumulative active time of the target group at the target time point based on the prediction result of the second prediction model; A processing module is used to determine the target value of the target group at the target time point based on the target average value and the accumulated active time.

[0007] Furthermore, the feature extraction module is specifically used for: Stacking the first average value time series data and the second average value time series data to obtain a first data matrix; Calling different convolution kernels to perform convolution processing on the first data matrix respectively to obtain a plurality of first convolution vectors with the same dimension; Elements at the same position in each of the first convolution vectors are concatenated to obtain a plurality of first sequence vectors, and features are extracted from the plurality of first sequence vectors to obtain first feature data.

[0008] Furthermore, the feature extraction module is specifically used for: Inputting the plurality of first sequence vectors into the first time series model in sequence for mapping, and obtaining first hidden vectors corresponding to the first sequence vectors respectively; Perform attention processing on each of the first hidden vectors to obtain an attention weight corresponding to each of the first hidden vectors, and perform weighted summation on each of the first hidden vectors based on the attention weight to obtain first feature data.

[0009] Furthermore, there are multiple reference groups, and the second time periods corresponding to the respective reference groups are different. The feature extraction module is specifically used for: Stacking the second average value time series data corresponding to each of the reference groups in the order of each of the second time periods to obtain an initial data matrix; Based on the sequence of the first time period and each of the second time periods, determining the insertion position of the first average value time series data in the initial data matrix; Based on the insertion position, the first average value time series data is inserted into the initial data matrix to obtain a first data matrix.

[0010] Furthermore, the first prediction module is specifically used for: Obtaining a first channel attribute corresponding to the target group; Extracting features from the first channel attribute to obtain third feature data; The third feature data, the first feature data and the first retention time series data are spliced ​​and input into the first prediction model for prediction to obtain the target average value of the target group at the target time point.

[0011] Furthermore, the second prediction module is specifically used for: Obtaining a second channel attribute corresponding to the target group; Extracting features from the second channel attribute to obtain fourth feature data; The fourth feature data, the second feature data and the first average value time series data are spliced ​​and input into the second prediction model for prediction, and the cumulative active time of the target group at the target time point is determined based on the prediction result of the second prediction model.

[0012] Furthermore, the second prediction module is specifically used for: Concatenate the fourth feature data, the second feature data and the first average value time series data to obtain fused data; Inputting the fused data into a second prediction model, classifying the fused data based on a classification layer of the second prediction model to obtain a prediction probability distribution, wherein the prediction probability distribution is used to indicate probability scores of multiple candidate fitting functions; Determine a target fitting function from the plurality of candidate fitting functions based on the predicted probability distribution, input the starting time point of the first time period, the target time point, and each time point between the starting time point and the target time point into the target fitting function, respectively, to obtain a plurality of target retention rates; The cumulative active time of the target group at the target time point is obtained according to the sum of the multiple target retention rates.

[0013] Furthermore, the data prediction device further includes a first training module, which is specifically used for: Obtain the third average value time series data and the third retention time series data of the first sample group in the third time period, and obtain the fourth average value time series data of the second sample group in the fourth time period, wherein the second sample group and the first sample group are groups of the same channel, the third time period is different from the fourth time period, the collection time of the third average value time series data is equal to the interval time between the target time point and the starting time point of the first time period, and the collection time of the third retention time series data and the collection time of the fourth average value time series data are both equal to the collection time of the first average value time series data; The first prediction model is trained based on the third average value time series data, the third retention time series data and the fourth average value time series data.

[0014] Furthermore, the first training module is specifically used for: Obtain candidate average value time series data and candidate retention time series data of the first sample group within a candidate time period, wherein the collection time of the candidate average value time series data is greater than the interval between the target time point and the start time point, and the collection time of the candidate retention time series data is greater than the collection time of the first average value time series data; Perform rolling sampling in the candidate average value time series data based on the first sliding window to obtain the third average value time series data, wherein the length of the first sliding window is less than the number of data points of the candidate average value time series data; The third retained time series data is obtained by rolling sampling in the candidate retained time series data based on the second sliding window, wherein the length of the second sliding window is less than the number of data points in the candidate retained time series data.

[0015] Furthermore, the first training module is also used for: Determine a sample channel from a plurality of candidate channels, and determine a group newly added to the sample channel as the first sample group; Alternatively, newly added groups of multiple candidate channels are respectively determined as candidate groups corresponding to each of the candidate channels, and random sampling is performed on each of the candidate groups, and the first sample group is constructed according to the sampling results.

[0016] Furthermore, the data prediction device further includes a second training module, which is specifically used for: Obtain the third retention time series data and the fifth average value time series data of the first sample group in the third time period, and obtain the fourth retention time series data of the second sample group in the fourth time period, wherein the second sample group and the first sample group are groups of the same channel, the third time period is different from the fourth time period, the collection duration of the third retention time series data is equal to the interval duration between the target time point and the starting time point of the first time period, and the collection duration of the fifth average value time series data and the collection duration of the fourth retention time series data are both equal to the collection duration of the first average value time series data; The second prediction model is trained based on the third retention time series data, the fifth average value time series data and the fourth retention time series data.

[0017] On the other hand, an embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned data prediction method when executing the computer program.

[0018] On the other hand, an embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is executed by a processor to implement the above-mentioned data prediction method.

[0019] On the other hand, the embodiment of the present disclosure further provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned data prediction method.

[0020] The disclosed embodiments include at least the following beneficial effects: by stacking the first average value time series data of the target group in the first time period and the second average value time series data of the reference group in the second time period and performing feature extraction, the first feature data that captures the value change trend of the same channel where the target group and the reference group are located can be obtained, and then the first feature data and the first retention time series data are spliced ​​and input into the first prediction model. The first prediction model can make full use of the value change trend of the channel and the real retention rate indicated by the first retention time series data, so as to obtain an accurate target average value. At the same time, the first retention time series data of the target group in the first time period and the second retention time series data of the reference group in the second time period are stacked and feature extraction is performed, so that It is possible to obtain the second feature data that captures the retention rate change trend of the same channel where the target group and the reference group are located, and then the second feature data and the first average value time series data are spliced ​​and input into the second prediction model. The second prediction model can make full use of the retention rate change trend of the channel and the real average value indicated by the first average value time series data, so as to determine the accurate cumulative active time through the prediction results, and determine the target value of the target group at the target time point according to the target average value and the cumulative active time. Since the target value is decomposed into the target average value and the cumulative active time for separate predictions, and the prediction accuracy of the target average value and the cumulative active time is high, the prediction accuracy of the target value can be effectively improved, thereby obtaining an accurate target value.

[0021] Other features and advantages of the present disclosure will be set forth in the following description, and in part will be apparent from the description, or may be learned by practicing the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings are used to provide further understanding of the technical solution of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the technical solution of the present disclosure and do not constitute a limitation on the technical solution of the present disclosure.

[0023] Figure 1 A schematic diagram of an optional implementation environment provided for an embodiment of the present disclosure; Figure 2 An optional flow chart of a data prediction method provided in an embodiment of the present disclosure; Figure 3 An optional visualization diagram of attention weights provided for an embodiment of the present disclosure; Figure 4 A schematic diagram of an optional process for determining first characteristic data provided in an embodiment of the present disclosure; Figure 5 A schematic diagram of an optional process for determining third characteristic data provided in an embodiment of the present disclosure; Figure 6 A schematic diagram of an optional process for determining second characteristic data provided in an embodiment of the present disclosure; Figure 7 A schematic diagram of an optional flow chart for determining fourth characteristic data provided in an embodiment of the present disclosure; Figure 8 An optional schematic diagram of the architecture of the first prediction model training process provided in the embodiment of the present disclosure; Fig. 9 An optional schematic diagram of the architecture of the second prediction model training process provided in the embodiment of the present disclosure; Fig.10 An optional function schematic diagram of the true fitting function F1 provided in the embodiment of the present disclosure; Fig.11 An optional function schematic diagram of the true fitting function F2 provided in the embodiment of the present disclosure; Fig.12 An optional structural diagram of a data prediction device provided in an embodiment of the present disclosure; Fig.13 A partial structural block diagram of a terminal provided in an embodiment of the present disclosure; Fig.14 A partial structural block diagram of a server provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.

[0025] It should be noted that in various specific embodiments of the present disclosure, when it comes to the need to perform relevant processing based on data related to the characteristics of the target object such as the target object attribute information or attribute information set, the permission or consent of the target object will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards. Among them, the target object can be a user. In addition, when the embodiment of the present disclosure needs to obtain the attribute information of the target object, the separate permission or separate consent of the target object will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the separate permission or separate consent of the target object, the necessary target object-related data used to enable the normal operation of the embodiment of the present disclosure will be obtained.

[0026] In the embodiments of the present disclosure, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0027] To facilitate understanding of the technical solution provided by the embodiments of the present disclosure, some key terms used in the embodiments of the present disclosure are explained here: Lifetime Value (LTV) refers to the sum of all economic benefits that a company, platform or product will obtain from all interactions with new customers in the future life cycle of new customers after acquiring them. LTV can measure the value of a certain object or customer to a company, platform or product, and is used as an important reference indicator for whether a company, platform or product can obtain high profits from a certain object or customer. This indicator can be used for a single object or a group of objects. The group LTV is the ratio between the total business revenue contributed by the object group and the number of people in the object group.

[0028] LTVn refers to the value that an object generates to a company, platform or product within n days after becoming a new customer.

[0029] Customer Acquisition Cost (CAC) refers to the total amount of money spent by a company, platform or product on acquiring a new customer. In addition to direct costs such as promotional information fees and marketing fees, CAC also includes indirect costs such as market research fees and technical support fees.

[0030] Return on Investment (ROI) refers to the ratio between investment income and cost. For example, ROI is the ratio between LTV and CAC.

[0031] ROIn refers to the cumulative return on investment of the target after becoming a new customer for n days, that is, ROIn=LTVn / CAC.

[0032] Retention Rate: refers to the proportion of active objects in a certain object group within a certain period of time. Among them, active objects can be objects that use products or participate in activities. For example, if the object group is obtained on a certain day, the proportion of active objects in the object group on the first day of addition is 100%, then the retention rate of the first day of addition is 100%. Assuming that the proportion of active objects in the object group on the second day of addition is 70%, then the retention rate of the second day of addition is 70%.

[0033] Active Time (AT) refers to the total time that an object uses a product or participates in activities within a period of time after becoming a new customer. For example, active time can be expressed by the number of days that the object uses a product or participates in activities within a period of time. Therefore, active time can be defined as active days.

[0034] Average Revenue Per User Daily Active Users (ARPUDAU), also known as the average daily value per object, refers to the average value that each object in the object group generates for the enterprise, platform or product on each active day over a period of time. For example, ARPUDAU is the ratio between the value that an object generates for the enterprise, platform or product over a period of time and the number of active days.

[0035] Currently, when predicting the value that a certain object group will generate for an enterprise, platform or product, the early value change trend of the object group is usually processed by fixed-ratio scaling or least squares fitting function, and then the target value generated by the object group in the future is predicted, for example, the life cycle value of the object group is predicted. However, the prediction results of traditional prediction methods usually have large errors, resulting in low prediction accuracy of the target value.

[0036] Based on this, the embodiments of the present disclosure provide a data prediction method, device, electronic device and storage medium, which can improve the prediction accuracy of the target value.

[0037] Reference Figure 1 , Figure 1 A schematic diagram of an optional implementation environment provided for an embodiment of the present disclosure, the implementation environment includes a terminal 101 and a server 102, wherein the terminal 101 and the server 102 are connected via a communication network.

[0038] Exemplarily, the server 102 can obtain the first average value time series data and the first retention time series data of the target group in the first time period sent by the terminal 101, and the server 102 can also obtain the second average value time series data and the second retention time series data of the reference group in the second time period sent by the terminal 101, wherein the reference group and the target group are groups of the same channel, and the first time period is different from the second time period; the first average value time series data and the second average value time series data are stacked and feature extracted to obtain the first feature data, and the first retention time series data and the second retention time series data are stacked and feature extracted to obtain the second feature data; the first feature data and the first retention time series data are spliced ​​and input into the first prediction model for prediction to obtain the target average value of the target group at the target time point; the second feature data and the first average value time series data are spliced ​​and input into the second prediction model for prediction, and the cumulative active time of the target group at the target time point is determined based on the prediction result of the second prediction model; based on the target average value and the cumulative active time, the target value of the target group at the target time point is determined; the server 102 sends the target value to the terminal 101.

[0039] The server 102 can obtain the first feature data that captures the value change trend of the same channel where the target group and the reference group are located by stacking the first average value time series data of the target group in the first time period and the second average value time series data of the reference group in the second time period and performing feature extraction. The first feature data and the first retention time series data are then spliced ​​and input into the first prediction model. The first prediction model can make full use of the value change trend of the channel and the real retention rate indicated by the first retention time series data to obtain an accurate target average value. At the same time, the first retention time series data of the target group in the first time period and the second retention time series data of the reference group in the second time period are stacked and then subjected to feature extraction. The second feature data of the retention rate change trend of the same channel where the target group and the reference group are located is obtained, and then the second feature data and the first average value time series data are spliced ​​and input into the second prediction model. The second prediction model can make full use of the retention rate change trend of the channel and the real average value indicated by the first average value time series data, so as to determine the accurate cumulative active time through the prediction results, and determine the target value of the target group at the target time point according to the target average value and the cumulative active time. Since the target value is decomposed into the target average value and the cumulative active time for separate predictions, and the prediction accuracy of the target average value and the cumulative active time is high, the prediction accuracy of the target value can be effectively improved, thereby obtaining an accurate target value.

[0040] Server 102 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In addition, server 102 may also be a node server in a blockchain network.

[0041] The terminal 101 may be a mobile phone, a computer, an intelligent voice interaction device, an intelligent home appliance, a vehicle-mounted terminal, etc., but is not limited thereto. The terminal 101 and the server 102 may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present disclosure.

[0042] Reference Figure 2 , Figure 2 An optional flow chart of a data prediction method provided in an embodiment of the present disclosure, the data prediction method can be executed by a server, or can also be executed by a terminal, or can also be executed by a server in cooperation with a terminal, the data prediction method includes but is not limited to the following steps 201 to 205.

[0043] Step 201: Obtain first average value time series data and first retention time series data of a target group in a first time period, and obtain second average value time series data and second retention time series data of a reference group in a second time period.

[0044] Among them, the reference group and the target group are groups of the same channel. The reference group and the target group are specifically groups newly added to the same channel in different time periods. The first time period is used to indicate the time period after the target group becomes a new customer, and the second time period is used to indicate the time period after the reference group becomes a new customer. Since the reference group and the target group are groups newly added in different time periods, the start time of the first time period is different from the start time of the second time period, that is, the first time period is different from the second time period; although the start times are different, the duration of the first time period and the duration of the second time period can be the same, so that the collection duration of the first average value time series data is the same as the collection duration of the first retention time series data.

[0045] Specifically, the start time of the first time period may be after the start time of the second time period, that is, the start time of the first time period is the historical time of the start time of the second time period. At this time, the second average value time series data and the second retention time series data can be regarded as channel historical data of the target group. For example, the start time of the first time period is January 5, year A, and the start time of the second time period is January 4, year A; the start time of the first time period may also be before the start time of the second time period, which is not limited in the embodiments of the present disclosure.

[0046] Specifically, the first time period may include multiple collection time points, the number of data points of the first average value time series data is equal to the number of collection time points in the first time period, and the time interval between any two adjacent collection time points in the first time period is fixed. For example, zero o'clock every day can be used as the collection time point, and the time interval between two adjacent collection time points is one day; similarly, the number of data points of the first retained time series data is also equal to the number of collection time points in the first time period, and the number of data points of the second average value time series data and the number of data points of the second retained time series data are both equal to the number of collection time points in the second time period.

[0047] Based on this, the first average value time series data is time series data composed of the average value of the target group collected at each collection time point in the first time period. The average value of the target group is used to indicate the resource contribution generated by the target group to the enterprise, platform or product within the unit active time. The unit active time can be one day, one month, etc. For example, the average value can be the average daily income per object, etc. The first average value time series data can characterize the value change trend of the target group in the first time period; Similarly, the second average value time series data is time series data composed of the average value of the reference group collected at each collection time point in the second time period. The average value of the reference group is used to indicate the resource contribution generated by the target group to the enterprise, platform or product within the unit active time. The second average value time series data can characterize the value change trend of the reference group in the second time period; In addition, the first retention time series data is time series data composed of the retention rate of the target group collected at each collection time point within the first time period, and the first retention time series data is used to indicate the retention rate change trend of the target group within the first time period. The second retention time series data is time series data composed of the retention rate of the reference group collected at each collection time point within the second time period, and the second retention time series data is used to indicate the retention rate change trend of the reference group within the second time period.

[0048] Step 202: stack the first average value time series data and the second average value time series data, perform feature extraction to obtain first feature data, and stack the first retained time series data and the second retained time series data, perform feature extraction to obtain second feature data.

[0049] Based on this, since the collection time of the first average value time series data and the second average value time series data are both the time after the target group becomes a new customer, that is, both are the new addition time of the target group, the first average value time series data and the second average value time series data can be aligned on the dimension of the new addition time. By aligning and stacking the first average value time series data according to the new addition time, the common features between different average value time series data can be extracted to obtain the first feature data. Since the target group and the reference group are groups of the same channel, the first feature data can capture the value change trend of the same channel where the target group and the reference group are located.

[0050] Similarly, since the collection time of the first retention time series data and the second retention time series data are both the time after the target group becomes a new customer, that is, both are the new addition time of the target group, the first retention time series data and the second retention time series data can be aligned on the dimension of the new addition time. By aligning and stacking the first retention time series data and the second retention time series data according to the new addition time, the common features between different retention time series data can be extracted to obtain the second feature data. Since the target group and the reference group are groups of the same channel, the second feature data can capture the retention rate change trend of the same channel where the target group and the reference group are located.

[0051] Step 203: splice the first feature data and the first retention time series data and input them into the first prediction model for prediction to obtain the target average value of the target group at the target time point.

[0052] Based on this, the target average value is the average value of the target group at the target time point. When the unit active duration is one day, the target average value is the average daily revenue of each object, that is, the target average value is ARPUDAU. Since the first feature data can characterize the value change trend of the channel where the target group is located, the first feature data and the first retention time series data are spliced ​​and input into the first prediction model, which enables the first prediction model to make full use of the value change trend of the channel and the actual retention rate indicated by the first retention time series data, so as to obtain an accurate target average value.

[0053] Specifically, the first feature data may be a value feature vector, and the first retention time series data may be converted into a vector form. For example, each data in the first retention time series data may be set as an element at each position in the vector in turn, so as to construct a retention rate vector through the first retention time series data, and then concatenate the retention rate vector at the head or tail of the value feature vector.

[0054] Step 204: splice the second feature data and the first average value time series data and input them into the second prediction model for prediction, and determine the cumulative active time of the target group at the target time point based on the prediction result of the second prediction model.

[0055] Among them, the cumulative active time is used to indicate the total active time of the target group after it accumulates to the target time point, that is, after each object in the target group becomes a new customer, the average total time that each object uses the product or participates in activities within a period of time. The cumulative active time can be expressed as a multiple of the unit active time. When the unit active time is one day, the cumulative active time is equivalent to the active days, and the active days refer to the number of active days.

[0056] Specifically, the cumulative active time is less than or equal to the duration between the starting time point and the target time point of the first time period. For example, assuming that the starting time point of the first time period is January 5, 2000, and the target time point is January 4, 2001, that is, the duration between the starting time point and the target time point is 365 days, the prediction result based on the second prediction model determines that the cumulative active time is less than or equal to 365 days, for example, the cumulative active time can be 100 days.

[0057] Based on this, since the second feature data can characterize the retention rate change trend of the channel where the target group is located, the second feature data and the first average value time series data are spliced ​​and input into the second prediction model, which can enable the second prediction model to make full use of the retention rate change trend of the channel and the true average value indicated by the first average value time series data, thereby determining the accurate cumulative active time through the prediction results.

[0058] In one possible implementation, the second feature data may be a retained feature vector, and the first average value time series data may be converted into a vector form. For example, each data in the first average value time series data is set as an element at each position in the vector in turn, so that the average value vector is constructed through the first average value time series data, and then the average value vector is spliced ​​at the head or tail of the retained feature vector.

[0059] Step 205: Determine the target value of the target group at the target time point based on the target average value and the cumulative active time.

[0060] Among them, the target value is used to indicate the size of the resource contribution generated by the target group to the enterprise, platform or product after accumulating to the target time point, that is, the average size of the resource contribution generated by each object in the target group to the enterprise, platform or product after becoming a new customer. For example, the target value can be LTVn.

[0061] It should be noted that the target value of the target group at the target time point can be broken down into the product of the target average value and the cumulative active time. Taking the target average value as ARPUDAU and the cumulative active time as the active days as an example, the target value is LTVn at this time, and LTVn can be broken down into the product of ARPUDAU and the active days. It can be seen that after determining the target average value and the cumulative active time, the target value of the target group at the target time point can be obtained based on the product of the target average value and the cumulative active time.

[0062] Based on this, by stacking the first average value time series data of the target group in the first time period and the second average value time series data of the reference group in the second time period and performing feature extraction, the first feature data that captures the value change trend of the same channel where the target group and the reference group are located can be obtained, and then the first feature data and the first retention time series data are spliced ​​and input into the first prediction model. The first prediction model can make full use of the value change trend of the channel and the true retention rate indicated by the first retention time series data, so as to obtain an accurate target average value. At the same time, by stacking the first retention time series data of the target group in the first time period and the second retention time series data of the reference group in the second time period and performing feature extraction, the value change trend of the same channel where the target group and the reference group are located can be obtained. The second characteristic data of the retention rate change trend of the target group and the reference group in the same channel is obtained, and then the second characteristic data and the first average value time series data are spliced ​​and input into the second prediction model. The second prediction model can make full use of the retention rate change trend of the channel and the real average value indicated by the first average value time series data, so as to determine the accurate cumulative active time through the prediction results, and determine the target value of the target group at the target time point according to the target average value and the cumulative active time. Since the target value is decomposed into the target average value and the cumulative active time for separate predictions, and the prediction accuracy of the target average value and the cumulative active time is high, the prediction accuracy of the target value can be effectively improved, thereby obtaining an accurate target value.

[0063] The steps associated with the target average value determination process are described in detail below.

[0064] In one possible implementation, the first average value time series data and the second average value time series data are stacked and then feature extracted to obtain first feature data. Specifically, the first average value time series data and the second average value time series data are stacked to obtain a first data matrix; different convolution kernels are called to perform convolution processing on the first data matrix to obtain multiple first convolution vectors of the same dimension; the elements at the same position in each first convolution vector are concatenated to obtain multiple first sequence vectors, and feature extraction is performed on the multiple first sequence vectors to obtain first feature data.

[0065] It should be noted that, although the first average value time series data and the second average value time series data are collected in different time periods, the collection time of the first average value time series data and the second average value time series data are both the time after the target group becomes a new customer, that is, the new addition time of the target group, so the first average value time series data and the second average value time series data can be aligned in the dimension of the new addition time.

[0066] For example, the first data of the first average value time series data was collected on January 5, year A, and the second data of the first average value time series data was collected on January 6, year A, that is, January 5, year A is the first day of the target group's addition, and January 6, year A is the second day of the target group's addition. The first data of the second average value time series data was collected on January 1, year A, and the second data of the second average value time series data was collected on January 2, year A, that is, January 1, year A is the first day of the reference group's addition, and January 2, year A is the second day of the reference group's addition. The first data of the first average value time series data and the first data of the second average value time series data can be set as the first column of the first data matrix, and the second data of the first average value time series data and the second data of the second average value time series data can be set as the second column of the first data matrix, so as to align the first average value time series data with the second average value time series data.

[0067] Therefore, each sampling time point of the first average value time series data can be converted from the real time dimension to the newly added time dimension to obtain the newly added time point of the first average value time series data. For example, when the time interval between two adjacent sampling time points is one day, the newly added time point corresponding to the first sampling time point is the newly added first day, and the newly added time point corresponding to the second sampling time point is the newly added second day. The conversion method for other sampling time points is similar.

[0068] Specifically, when stacking the first average value time series data and the second average value time series data, the first average value time series data and the second average value time series data can be used as row data of the first data matrix, and the first average value time series data and the second average value time series data can be aligned according to the newly added time point of the corresponding group, so that the data in each column of the first data matrix can correspond to the same newly added time point; the first average value time series data and the second average value time series data can be used as column data of the first data matrix, so that the data in each row of the first data matrix can correspond to the same newly added time point. The embodiment of the present disclosure does not limit the construction method of the first data matrix. In addition, since the first data matrix is ​​formed by stacking the first average value time series data and the second average value time series data, the first data matrix still retains the characteristics of the time series and provides more local feature information and global feature information. The first data matrix can also be regarded as time series data.

[0069] It is worth noting that convolution processing of the first data matrix through multiple convolution kernels is equivalent to multi-channel feature extraction of the first data matrix, which can capture features of different scales and types at different levels. Different first convolution vectors are features of different channels. For example, smaller convolution kernels can usually capture details and rapidly changing signals in time series data, and larger convolution kernels can usually capture global patterns and long-term trends in time series data, thereby capturing the changing trends of different newly added time points in the first data matrix through the convolution receptive field. For example, it can capture the changing trends of different newly added dates in the first data matrix in natural days.

[0070] Based on this, the first average value time series data and the second average value time series data are stacked to obtain a first data matrix. The first data matrix includes the average value of the same channel group at different newly added time points. The multiple first convolution vectors obtained by convolution processing the first data matrix are diverse and can describe different aspects of the first data matrix, thereby providing more context information and patterns. Since the convolution operation needs to slide the convolution kernel on the time series data, the elements at the same position in each first convolution vector are usually obtained by convolving the time series data at the same or similar newly added time points. The elements at the same position in each first convolution vector are spliced ​​to obtain multiple first sequence vectors, which is equivalent to splicing the elements at corresponding positions in each first convolution vector into a first sequence vector for each newly added stage of the time series data. The elements at different positions in the first sequence vector are the features of different channels at the same newly added stage. The first sequence vector can integrate the features of each channel, so that the first sequence vector effectively represents the local trend of the corresponding newly added stage. Then, the first sequence vector corresponding to each newly added stage is feature extracted to obtain the first feature data, so that the first prediction model can more accurately capture the global value change trend through the first feature data, thereby improving the prediction accuracy of the target average value.

[0071] Among them, the new addition stage is the time period between two new addition time points after the object group becomes a new customer. For example, the new addition stage is from the Nth day to the Mth day, N≥1, M>N, N and M are both positive integers. For example, the first element in a first convolution vector is obtained by convolving the time series data corresponding to the 1st day to the 3rd day in the first data matrix by a convolution kernel.

[0072] Specifically, multiple convolution kernels for performing convolution processing on the first data matrix can be deployed in the same first convolution layer. When convolution processing is required on the first data matrix, the first convolution layer can be called to perform multi-channel convolution processing on the first data matrix. Multiple convolution kernels can also be deployed in different first convolution layers. When convolution processing is required on the first data matrix, each first convolution layer can be called to perform convolution processing on the first data matrix respectively. The embodiment of the present disclosure does not limit the deployment method of the convolution kernel. Optionally, the first convolution layer and the first prediction model are jointly trained.

[0073] In one possible implementation, feature extraction is performed on multiple first sequence vectors to obtain first feature data. Specifically, the multiple first sequence vectors may be sequentially input into a first time series model for mapping to obtain first hidden vectors corresponding to each first sequence vector; attention processing is performed on each first hidden vector to obtain an attention weight corresponding to each first hidden vector; and weighted summation is performed on each first hidden vector based on the attention weight to obtain the first feature data.

[0074] Among them, inputting multiple first sequence vectors into the first time series model in sequence is equivalent to using multiple first sequence vectors as inputs of the first time series model at different time steps, specifically, inputting each first sequence vector into the first time series model in sequence according to the order of the newly added stages corresponding to the first sequence vectors; in the newly added stages corresponding to each first sequence vector, different newly added stages are different time periods after the target group becomes a new customer, and the newly added stage with a shorter added time is before the newly added stage with a longer added time. Therefore, the first sequence vector corresponding to the newly added stage arranged earlier can be input into the first time series model at an earlier time step, and the first sequence vector corresponding to the newly added stage arranged later can be input into the first time series model at a later time step.

[0075] Exemplarily, assuming that the new stage corresponding to the first sequence vector E1 is the first day to the third day, and assuming that the new stage corresponding to the first sequence vector E2 is the fourth day to the sixth day, the first sequence vector E1 is the first time series model in the first time step, and the first sequence vector E2 is the first time series model in the second time step.

[0076] Based on this, multiple first sequence vectors input into the first time series model can form an input sequence. The first time series model can effectively capture the sequence pattern and data characteristics of the input sequence, and output the first hidden vector corresponding to each time step, so that the first hidden vector not only retains the information of the current time step but also retains the information of the time step before the current time step. Then, the importance of each first hidden vector is evaluated through attention processing, and the attention weight corresponding to each first hidden vector is determined, that is, the attention weight of each time step is dynamically generated, and then the weighted sum of each first hidden vector is performed based on the attention weight to obtain the first feature data. By adaptively weighting the first hidden vector, the focus of attention can be adjusted, so that the first feature data can retain the key factors to improve the prediction accuracy of the first prediction model, which helps the first prediction model to predict the accurate target average value through the first feature data.

[0077] It should be noted that the attention weight can characterize the contribution of the corresponding first hidden vector to the first feature data. When the attention weight is larger, the corresponding first hidden vector contributes more to the first feature data. Conversely, when the attention weight is smaller, the corresponding first hidden vector contributes less to the first feature data.

[0078] Specifically, in attention processing, the attention weight corresponding to the first hidden vector can be determined in a variety of ways. For example, the attention scores corresponding to each first hidden vector can be determined separately through an additive attention function or a dot product scaling attention function, and then each attention score is input into a normalization function to determine the attention weight corresponding to each first hidden vector. The normalization function is used to make the sum of each attention weight equal to one. The attention weight can also be determined in other ways, which are not limited in the embodiments of the present disclosure.

[0079] For example, reference Figure 3 , Figure 3 An optional visualization diagram of attention weights provided for embodiments of the present disclosure.

[0080] Among them, the 14 grids from left to right are the attention weights corresponding to the first hidden vector output by the first time series model from the 1st time step to the 14th time step. The attention weights of different sizes are represented by grids of different grayscales. The darker the grayscale, the larger the attention weight, and the lighter the grayscale, the smaller the attention weight. It can be seen that the attention weight corresponding to the first hidden vector output from the 1st time step to the 4th time step is larger, and the attention weight corresponding to the first hidden vector output from the 12th time step to the 14th time step is also larger. After adaptive weighting of attention processing, the first feature data can retain the information of the first hidden vectors with larger attention weights.

[0081] Specifically, the first time series model can be a time series model such as LSTM, RNN, GRU, etc., which is not limited in the embodiments of the present disclosure. When the first time series model is an LSTM model, since the LSTM model can capture long-distance dependencies in the input sequence, the first hidden vector output by the LSTM model can memorize long-time span information, which helps to improve the prediction accuracy of the first prediction model. The gating design strategy in the LSTM model also helps to alleviate the problems of gradient disappearance and gradient explosion. Optionally, the first time series model and the first prediction model are jointly trained.

[0082] Specifically, refer to Figure 4 , Figure 4 An optional flowchart for determining first characteristic data provided in an embodiment of the present disclosure.

[0083] Among them, through the three first convolution vectors v1, v2 and v3, five first sequence vectors x1, x2, x3, x4 and x5 can be determined, and the five first sequence vectors are mapped by the first time series model to output five first hidden vectors h1, h2, h3, h4 and h5, and then the five first hidden vectors are subjected to attention processing to obtain the first feature data.

[0084] In a possible implementation, there are multiple reference groups, and the second time periods corresponding to the respective reference groups are different. The first average value time series data and the second average value time series data are stacked to obtain a first data matrix, which may be: The second average value time series data corresponding to each reference group are stacked in the order of each second time period to obtain an initial data matrix; Based on the sequence of the first time period and each second time period, determine the insertion position of the first average value time series data in the initial data matrix; Based on the insertion position, the first average value time series data is inserted into the initial data matrix to obtain a first data matrix.

[0085] Among them, each reference group is a group of the same channel, and different reference groups are specifically groups newly added to the same channel in different time periods. Each second time period is used to indicate the time period after the corresponding reference group becomes a new customer. Since different reference groups are groups newly added in different time periods, the start time of different second time periods is different, that is, the second time period corresponding to each reference group is different.

[0086] It should be noted that the sequence of the second time periods specifically refers to the sequence of the start times of the second time periods. Therefore, in the initial data matrix, the second average value time series data are arranged in the sequence of the start times of the second time periods.

[0087] Moreover, the first time period is different from each second time period, that is, the start time of the first time period is different from the start time of each second time period, and the insertion position is determined based on the sequence of the first time period and the second time periods. Specifically, the insertion position is determined based on the sequence of the start time of the first time period and the start time of each second time period. Therefore, in the first data matrix, the first average value time series data and the second average value time series data are arranged in the sequence of the start time.

[0088] Based on this, since the first average value time series data and the second average value time series data in the first data matrix are arranged in chronological order of start time, the subsequent convolution processing can capture the changing trend of the average value time series data at different collection start time points, which helps the first prediction model to predict the accurate target average value.

[0089] Exemplarily, assuming that the number of reference groups is four, the start time of the second time period corresponding to the first reference group is January 1, A, the start time of the second time period corresponding to the second reference group is January 2, A, the start time of the second time period corresponding to the third reference group is January 3, A, and the start time of the second time period corresponding to the fourth reference group is January 4, A. The second average value time series data S2_1 of the first reference group is set to the first row of the initial data matrix, the second average value time series data S2_2 of the second reference group is set to the second row of the initial data matrix, the second average value time series data S2_3 of the third reference group is set to the third row of the initial data matrix, and the second average value time series data S2_1 of the fourth reference group is set to the fourth row of the initial data matrix. Assuming that the start time of the first time period corresponding to the target group is January 5, A, it can be determined that the insertion position is the next row of the fourth row of the initial data matrix. Based on the insertion position, the first average value time series data of the target group is inserted into the next row of the fourth row of the initial data matrix to obtain the first data matrix.

[0090] In a possible implementation, the first feature data and the first retention time series data are spliced ​​and input into the first prediction model for prediction to obtain the target average value of the target group at the target time point, which can be specifically: Get the first channel attributes corresponding to the target group; Extracting features from the first channel attribute to obtain third feature data; The third feature data, the first feature data and the first retention time series data are spliced ​​and input into the first prediction model for prediction to obtain the target average value of the target group at the target time point.

[0091] Among them, the first channel attribute is used to indicate the channel attribute information of the channel where the target group is located. For example, the first channel attribute may include fine-grained attribute information such as channel identification and channel scale. The first channel attribute can represent more detailed attribute content. Different channel identifications are used to represent different channels. Channel identifications are unique. Different channel identifications are set for different channels. For example, the channel includes platform PL1 and platform PL2. The channel identification corresponding to platform PL1 can be set to 101, and the channel identification corresponding to platform PL2 can be set to 102. Channel scale may include the number of customers, sales, coverage, etc.

[0092] Based on this, feature extraction is performed on the first channel attribute to obtain third feature data. The third feature data belongs to a channel attribute feature with a finer granularity. The third feature data can capture the channel attribute information of the first channel attribute. By extracting more abstract and informative channel features from the first channel attribute, it helps to reduce subsequent calculation complexity and improve model processing efficiency. In addition, the third feature data, the first feature data and the first retention time series data are spliced ​​and input into the first prediction model, so that the first prediction model not only utilizes the value change trend of the channel and the real retention rate indicated by the first retention time series data, but also makes full use of the channel attribute information captured by the third feature data. Since the value change trend of each channel usually conforms to the corresponding pattern, the first prediction model can identify the corresponding pattern through the third feature data, thereby further improving the prediction accuracy of the target average value.

[0093] Specifically, refer to Figure 5 , Figure 5 An optional flowchart for determining third characteristic data provided in an embodiment of the present disclosure.

[0094] Among them, the first encoder can be called to extract features of the first channel attributes to obtain third feature data. The first encoder can convert sparse and high-dimensional first channel attributes into dense and low-dimensional third feature data. Optionally, the first encoder and the first prediction model are jointly trained.

[0095] In one possible implementation, after performing weighted summation on each first hidden vector based on the attention weight to obtain the first feature data, the data prediction method further includes inputting the first feature data into a fully connected layer configured with an activation layer for mapping to obtain the first feature data after nonlinear mapping.

[0096] In addition, the first prediction model includes a regression layer. The first prediction model can handle regression tasks. The third feature data, the first feature data and the first retention time series data are spliced ​​and input into the first prediction model for prediction. Specifically, the third feature data, the first feature data and the first retention time series data are spliced ​​to obtain first spliced ​​data, and the first spliced ​​data is non-linearly mapped and input into the first prediction model. Based on the regression layer of the first prediction model, the first spliced ​​data after non-linear mapping is regressed to obtain the target average value of the target group at the target time point.

[0097] Specifically, the first spliced ​​data may be nonlinearly mapped in a variety of ways. For example, the first spliced ​​data may be input into activation functions such as ReLU, Sigmoid, and Tanh for nonlinear mapping. The embodiments of the present disclosure do not limit the method of nonlinear mapping.

[0098] The steps associated with the process of determining the cumulative active duration are described in detail below.

[0099] In a possible implementation, the first retained time series data and the second retained time series data are stacked and then feature extraction is performed to obtain second feature data. Specifically, the first retained time series data and the second retained time series data are stacked to obtain a second data matrix; different convolution kernels in the second convolution layer are called to perform convolution processing on the second data matrix respectively to obtain multiple second convolution vectors with the same dimension; the elements at the same position in each second convolution vector are concatenated to obtain multiple second sequence vectors, and the multiple second sequence vectors are input into the second time series model in sequence for mapping to obtain second hidden vectors corresponding to each second sequence vector; attention processing is performed on each second hidden vector to obtain a second weight corresponding to each second hidden vector, and weighted summation is performed on each second hidden vector based on the second weight to obtain second feature data, and the second feature data is input into a fully connected layer configured with an activation layer for mapping to obtain second feature data after nonlinear mapping.

[0100] It should be noted that the second convolutional layer is similar to the first convolutional layer, the second time series model is similar to the first time series model, and the attention processing of each second hidden vector is similar to the attention processing of each first hidden vector, which will not be repeated here. Optionally, the second convolutional layer and the second prediction model are jointly trained.

[0101] Specifically, similar to the first time series model, the second time series model may also be a time series model such as LSTM, RNN, GRU, etc., which is not limited in the embodiments of the present disclosure. Optionally, the second time series model and the second prediction model are jointly trained.

[0102] Specifically, refer to Figure 6 , Figure 6 An optional flowchart for determining second characteristic data provided in an embodiment of the present disclosure.

[0103] Among them, through the three second convolution vectors v1', v2' and v3', five second sequence vectors x1', x2', x3', x4' and x5' can be determined, and the five second sequence vectors are mapped by the second time series model to output five second hidden vectors h1', h2', h3', h4' and h5', and then the five second hidden vectors are subjected to attention processing to obtain second feature data.

[0104] In a possible implementation, the second feature data and the first average value time series data are spliced ​​and input into the second prediction model for prediction. The cumulative active time of the target group at the target time point is determined based on the prediction result of the second prediction model. Specifically, it can be: Obtain the second channel attributes corresponding to the target group; Extracting features from the second channel attribute to obtain fourth feature data; The fourth feature data, the second feature data and the first average value time series data are spliced ​​and input into the second prediction model for prediction, and the cumulative active time of the target group at the target time point is determined based on the prediction result of the second prediction model.

[0105] Among them, the second channel attribute is used to indicate the channel attribute information of the channel where the target group is located. For example, the second channel attribute may include coarse-grained attribute information such as partner identification and channel category. The second channel attribute can represent relatively rough attribute content. Different partner identifications are used to represent different partners. In many business scenarios, partners expand their business coverage by operating multiple channels. Partners usually operate multiple channels. Compared with the fine-grained first channel attribute, the second channel attribute is a coarse-grained attribute. There are also some partners who only operate a single channel. The partner identification is unique, and different partner identifications are set for different partners. For example, the partners include partner PAR1 and partner PAR2. The partner identification corresponding to partner PAR1 can be set to 201, and the partner identification corresponding to partner PAR2 can be set to 202. Channel categories can include search engines, social media platforms, video platforms, emails, etc.

[0106] Based on this, feature extraction is performed on the second channel attribute to obtain fourth feature data. The fourth feature data belongs to a channel attribute feature with a finer granularity. The fourth feature data can capture the channel attribute information of the second channel attribute. By extracting more abstract and informative channel features from the second channel attribute, it helps to reduce subsequent calculation complexity and improve model processing efficiency. In addition, the fourth feature data, the second feature data and the first average value time series data are spliced ​​and input into the second prediction model, so that the second prediction model not only utilizes the retention rate change trend of the channel and the true average value indicated by the first average value time series data, but also makes full use of the channel attribute information captured by the fourth feature data. Since the retention rate change trend of each channel usually conforms to the corresponding pattern, the second prediction model can identify the corresponding pattern through the fourth feature data, thereby further improving the prediction accuracy of the cumulative active time.

[0107] Specifically, refer to Figure 7 , Figure 7 An optional flowchart for determining fourth characteristic data provided in an embodiment of the present disclosure.

[0108] Among them, the second encoder can be called to extract features of the second channel attributes to obtain fourth feature data. The second encoder can convert sparse and high-dimensional second channel attributes into dense and low-dimensional fourth feature data. Optionally, the second encoder and the second prediction model are jointly trained.

[0109] In a possible implementation, the fourth feature data, the second feature data, and the first average value time series data are spliced ​​and input into the second prediction model for prediction. The cumulative active time of the target group at the target time point is determined based on the prediction result of the second prediction model. Specifically, it can be: The fourth characteristic data, the second characteristic data and the first average value time series data are spliced ​​to obtain fused data; Inputting the fused data into the second prediction model, classifying the fused data based on the classification layer of the second prediction model, and obtaining a prediction probability distribution, wherein the prediction probability distribution is used to indicate probability scores of multiple candidate fitting functions; Determine a target fitting function from a plurality of candidate fitting functions based on the predicted probability distribution, input the starting time point, the target time point, and each time point between the starting time point and the target time point of the first time period into the target fitting function, respectively, to obtain a plurality of target retention rates; The cumulative active time of the target group at the target time point is obtained based on the sum of multiple target retention rates.

[0110] The candidate fitting function is a fitting function of the retention rate of the target group, and the retention rate of the target group at each time point after becoming a new customer can be determined through the candidate fitting function. The target fitting function is a fitting function of the retention rate of the target group, and the retention rate of the target group at each time point after becoming a new customer can be determined through the target fitting function.

[0111] It should be noted that the second prediction model includes a classification layer. The second prediction model is used to process classification tasks. In the classification task of the fitting function, each candidate fitting function is a preset category. Therefore, the fusion data is input into the second prediction model. The second prediction model can output a predicted probability distribution formed by the probability scores of each candidate fitting function, and then determine the candidate fitting function with the highest probability score as the target fitting function.

[0112] Exemplarily, assuming that the categories of prediction results include a first candidate fitting function, a second candidate fitting function, and a third candidate fitting function, the classification result output by the classification model may be [0.2, 0.7, 0.1], that is, the probability score of the first candidate fitting function is 0.2, the probability score of the second candidate fitting function is 0.7, and the probability score of the third candidate fitting function is 0.1. Therefore, the second candidate fitting function is determined as the target fitting function.

[0113] Specifically, the candidate fitting function may include multiple forms, for example, the candidate fitting function includes an exponential function, a power function, etc. Assuming that the category of the prediction result includes seven candidate fitting functions, the seven candidate fitting functions may be respectively: ,in, and are preset constants. For time point, For the retention rate, the curves of different candidate fitting functions are inconsistent, and different candidate fitting functions can correspond to different retention rate change trends; the candidate fitting function can also be a function of other forms, which is not limited in the embodiments of the present disclosure. In addition, the embodiments of the present disclosure do not limit the number of categories of prediction results.

[0114] Based on this, the starting time point, the target time point, and each time point between the starting time point and the target time point are all time points after each object in the target group becomes a new customer. The target value can be the sum of the average values ​​collected at each time point after each object in the target group becomes a new customer. The target value can be determined by a variety of decomposition formulas. The target value can be decomposed into the product of the sum of each target retention rate and the target average value. The target value can also be decomposed into the product of the cumulative active time and the target average value. Therefore, the sum of the target retention rates is equivalent to the cumulative active time. The cumulative active time of the target group at the target time point can be determined by the sum of the target retention rates. The target fitting function is determined by the classification result of the second prediction model, which can improve the prediction accuracy of the target retention rate, and thus improve the prediction accuracy of the cumulative active time.

[0115] Taking the target value as group LTV as an example, the first decomposition formula of group LTV is as follows:

[0116] in, It can be expressed as the starting time point, which is the first day the target group is added. It can be expressed as a target time point, which is the LTth new addition day of the target group. It refers to the value generated by the target group on the tth new addition day. Refers to the total value generated by the target group from the first new addition day to the LTth new addition day. Can be disassembled into and The product of It refers to the number of active users in the target group on the tth new addition day. It refers to the retention rate of the target group on the tth new addition day. is the target retention rate, Can be expressed as a target average value.

[0117] In addition, the second decomposition formula of group LTV is as follows:

[0118] in, Refers to the number of active days of the target group at the target time point. It can be expressed as the cumulative active time. It can be expressed as the target average value; it can be seen that the sum of the target retention rates is equivalent to the cumulative active time. Therefore, the cumulative active time can be determined by predicting the target retention rate.

[0119] In another possible implementation, the fourth feature data, the second feature data, and the first average value time series data are spliced ​​and input into the second prediction model for prediction. The cumulative active time of the target group at the target time point is determined based on the prediction result of the second prediction model. Specifically, it can be: The fourth characteristic data, the second characteristic data and the first average value time series data are spliced ​​to obtain fused data; The fused data is input into the second prediction model, and the fused data is regressed based on the regression layer of the second prediction model to obtain prediction parameters; A target fitting function is constructed based on the prediction parameters and the preset initial fitting function, and the starting time point, the target time point, and each time point between the starting time point and the target time point of the first time period are respectively input into the target fitting function to obtain multiple target retention rates; The cumulative active time of the target group at the target time point is obtained based on the sum of multiple target retention rates.

[0120] Specifically, the second prediction model is used to process the regression task, and the prediction parameters may be the parameters of the initial fitting function. For example, the initial fitting function may be ,in, and are preset constants. For time point, is the retention rate, is the prediction parameter. Assuming that the prediction parameter output by the second prediction model is 0.2, the target fitting function is .

[0121] In one possible implementation, the fourth feature data, the second feature data and the first average value time series data are spliced ​​to obtain fused data. Specifically, the fourth feature data, the second feature data and the first average value time series data are spliced ​​to obtain second spliced ​​data, and the second spliced ​​data is nonlinearly mapped to obtain fused data.

[0122] Specifically, the second spliced ​​data may be nonlinearly mapped in a variety of ways. For example, the second spliced ​​data may be input into activation functions such as ReLU, Sigmoid, and Tanh for nonlinear mapping. The embodiments of the present disclosure do not limit the method of nonlinear mapping.

[0123] The training phases of the first prediction model and the second prediction model are described in detail below. In a possible implementation, the first prediction model is trained by the following steps: Obtain the third average value time series data and the third retention time series data of the first sample group in the third time period, and obtain the fourth average value time series data of the second sample group in the fourth time period; The first prediction model is trained based on the third average value time series data, the third retention time series data and the fourth average value time series data.

[0124] Among them, the second sample group and the first sample group are groups of the same channel, and the second sample group and the first sample group are specifically groups newly added to the same channel in different time periods. The third time period is used to indicate the time period after the first sample group becomes a new customer, and the fourth time period is used to indicate the time period after the second sample group becomes a new customer. Since the second sample group and the first sample group are groups newly added in different time periods, the start time of the third time period is different from the start time of the fourth time period, that is, the third time period is different from the fourth time period.

[0125] Among them, the collection time of the third average value time series data is equal to the interval between the target time point and the starting time point of the first time period, and the collection time of the third retention time series data and the collection time of the fourth average value time series data are both equal to the collection time of the first average value time series data.

[0126] Specifically, the collection duration of the third average value time series data is equal to the duration of the third time period. The third average value time series data is time series data composed of the average value of the first sample group collected at each collection time point in the third time period. The average value of the first sample group is used to indicate the resource contribution generated by the first sample group to the enterprise, platform or product within the unit active duration. The third average value time series data can characterize the value change trend of the first sample group in the third time period. The collection duration of the third retention time series data is usually less than the duration of the third time period. For example, the third time period is 365 days, and the collection duration of the third retention time series data is 14 days. Therefore, the third retention time series data is usually time series data composed of the retention rate of the first sample group collected at some collection time points in the third time period. The third retention time series data is used to indicate the retention rate change trend of the first sample group in part of the third time period. In addition, the fourth average value time series data is time series data composed of the average values ​​of the second sample group collected at each collection time point in the fourth time period, and the fourth average value time series data can represent the value change trend of the second sample group in the fourth time period.

[0127] Among them, the third time period is different from the fourth time period. When the start time of the third time period is after the start time of the fourth time period, in the reasoning stage, it is necessary to limit the start time of the first time period to be after the start time of the second time period. Conversely, when the start time of the third time period is before the start time of the fourth time period, in the reasoning stage, it is necessary to limit the start time of the first time period to be before the start time of the second time period.

[0128] It should be noted that, similar to the first characteristic data, the characteristics of the value change trend of the same channel can also be captured through the third average value time series data and the fourth average value time series data, which will not be elaborated here.

[0129] Based on this, the first training sample and the first sample label of the first prediction model are constructed through the third average value time series data, the third retention time series data and the fourth average value time series data, and then the first training sample and the first sample label are used to perform supervised learning on the first prediction model, so that the first prediction model can learn the value change trend of the first sample group through the value change trend of the channel and the actual retention rate indicated by the third retention time series data, and then determine the first prediction result. During the training process, the error between the first prediction result and the first sample label will be continuously reduced, thereby improving the prediction accuracy of the first prediction model.

[0130] Specifically, refer to Figure 8 , Figure 8 An optional architectural diagram of a first prediction model training process provided in an embodiment of the present disclosure.

[0131] Among them, during the training process of the first prediction model, the ratio between the sum of each data in the third average value time series data and the number of people in the first sample group is determined as the first sample label; then based on the collection time of the first average value time series data, the third average value time series data is segmented to obtain the training average value time series data with the same added time as the first average value time series data, and the training average value time series data, the fourth average value time series data and the third retained time series data are used as the first training sample; then the training average value time series data and the fourth average value time series data are stacked and convolved, and the convolution result is input into the first time series model for mapping and attention processing. to obtain training value feature data; then, a retention rate vector is constructed according to the third retention time series data, the channel identifier corresponding to the first sample group is obtained, and an embedding vector of the channel identifier is extracted through a first encoder; the embedding vector of the channel identifier, the retention rate vector, and the training value feature data are concatenated and input into the first prediction model for prediction to obtain a first prediction result, and then the first prediction result and the first sample label are input into the first model loss function to determine the first model loss, wherein the first model loss function may be a loss function of a regression model such as MAPE and MSE; then, the first prediction model is trained based on the first model loss, which can improve the prediction accuracy and training efficiency of the first prediction model.

[0132] It is worth noting that in order to improve the training effect and generalization performance of the first prediction model, during the training process of the first prediction model, data enhancement can be performed on the first training sample of the first prediction model in a variety of ways. The first data enhancement method is described in detail below.

[0133] In a possible implementation, obtaining the third average value time series data and the third retention time series data of the first sample group in the third time period may specifically be: Obtain candidate average value time series data and candidate retention time series data of the first sample group within the candidate time period; Perform rolling sampling in the candidate average value time series data based on the first sliding window to obtain third average value time series data; Based on the second sliding window, rolling sampling is performed in the candidate retained time series data to obtain third retained time series data.

[0134] Among them, the collection time of the candidate average value time series data is longer than the interval between the target time point and the starting time point, and the collection time of the candidate retention time series data is longer than the collection time of the first average value time series data. Therefore, multiple third average value time series data can be sampled from the candidate average value time series data, and multiple third retention time series data can be sampled from the candidate retention time series data; the length of the first sliding window is smaller than the number of data points of the candidate average value time series data, and the length of the second sliding window is smaller than the number of data points of the candidate retention time series data. The length of the sliding window is used to indicate the number of continuous data points obtained each time sampling.

[0135] Specifically, the length of the first sliding window and the length of the second sliding window are both fixed. Assuming that the starting time point to the target time point includes multiple acquisition time points, the length of the first sliding window is equal to the number of acquisition time points. For example, if the starting time point to the target time point includes 365 acquisition time points, the length of the first sliding window is 365, which can ensure that the acquisition time length of each third average value time series data obtained by sampling with the first sliding window is equal to the interval length between the target time point and the starting time point of the first time period.

[0136] In addition, the length of the second sliding window is equal to the number of data points of the first average value time series data. For example, if the number of data points of the first average value time series data is 14, then the length of the second sliding window is 14, which can ensure that the collection time length of each third retained time series data obtained by sampling with the second sliding window is equal to the collection time length of the first average value time series data.

[0137] Based on this, using a sliding window for rolling sampling to perform data enhancement on the first training sample can effectively increase the number of first training samples. Training the first prediction model based on a large number of first training samples can avoid overfitting of the first prediction model, thereby improving the training effect of the first prediction model. After rolling sampling, the collection start time points corresponding to the third average value time series data and the third retained time series data obtained in the first sampling order are both the starting time points, and the collection start time points corresponding to the third average value time series data and the third retained time series data obtained in other sampling orders are not the starting time points. Therefore, during the training process, the first prediction model can learn the value change trend of the first training sample whose collection start time point is the starting time point, and can also learn the value change trend of the first training sample whose collection start time point is not the starting time point, thereby improving the generalization performance of the first prediction model.

[0138] In one possible implementation, the sliding step size of the first sliding window is the same as the sliding step size of the second sliding window, ensuring that the collection start time corresponding to the third average value time series data and the third retained time series data of the same sampling order is the same. Therefore, the same first training sample can be determined through the third average value time series data and the third retained time series data of the same sampling order, and different first training samples can be determined through the third average value time series data and the third retained time series data of different sampling orders.

[0139] In a possible implementation, it is assumed that the first model loss corresponding to the first training sample whose collection start time point is the starting time point is the first sub-loss, and the first model loss corresponding to the first training sample whose collection start time point is not the starting time point is the second sub-loss. The first prediction model is trained based on the weighted result of the first sub-loss and the second sub-loss, wherein the weight of the second sub-loss is less than the weight of the first sub-loss, which can improve the training effect of the first prediction model.

[0140] The second data enhancement method is described in detail below.

[0141] In a possible implementation, before obtaining the third average value time series data and the third retention time series data of the first sample group in the third time period, the data prediction method further includes: Determine a sample channel from multiple candidate channels, and determine the group newly added to the sample channel as the first sample group; Alternatively, the newly added groups of the multiple candidate channels are respectively determined as candidate groups corresponding to the respective candidate channels, and each candidate group is randomly sampled, and the first sample group is constructed according to the sampling results.

[0142] Among them, the newly added group of the sample channel refers to the set of all new customers introduced through the sample channel during the starting stage. The starting stage is usually at the beginning of the third time period. For example, the starting stage may be the first day of the third time period. Assuming that the third time period is from January 2, year A to January 15, year A, then the starting stage is January 2, year A, and the first sample group is the set of all new customers introduced through the sample channel on January 2, year A.

[0143] Similarly, the newly added group of the candidate channel refers to the set of all new customers introduced through the candidate channel during the starting stage. The starting stage is usually at the beginning of the third time period. For example, the starting stage may be the first day of the third time period. Assuming that the third time period is from January 2, year A to January 15, year A, then the starting stage is January 2, year A, and the candidate group is the set of all new customers introduced through the corresponding candidate channel on January 2, year A.

[0144] Based on this, since each candidate channel is a real channel, the sample channel is also a real channel. In the training process of the first prediction model, the newly added group of the real channel can be directly used as the first sample group. At this time, the channel where the first sample group is located is the real channel. The first training sample is constructed through the data of the real channel, which can improve the processing ability of the first prediction model for the data of the real channel. In addition, the first sample group can also be constructed through the sampling results of the candidate groups of each candidate channel. At this time, the channel where the first sample group is located is not a real channel. The channel where the first sample group is located can be regarded as a virtual channel. The first training sample is constructed through the data of the virtual channel, which can improve the generalization performance of the first prediction model, so that the trained first prediction model can effectively process the data of other channels other than the candidate channel.

[0145] In one possible implementation, each candidate group is randomly sampled separately. Specifically, the ratio between the number of people in each candidate group is determined to obtain the population ratio, and then the sampling number of each candidate group is determined based on a preset population threshold and the population ratio, and then each candidate group is randomly sampled based on the sampled number; or, the sampling ratio between each candidate group is randomly determined, and then the sampling number of each candidate group is determined based on a preset population threshold and the sampling ratio, and then each candidate group is randomly sampled based on the sampled number.

[0146] In a possible implementation, it is assumed that the first model loss corresponding to the first training sample of the real channel is the third sub-loss, and the first model loss corresponding to the first training sample of the virtual channel is the fourth sub-loss. The first prediction model is trained based on the weighted result of the third sub-loss and the fourth sub-loss, wherein the weight of the fourth sub-loss is less than the weight of the third sub-loss, which can improve the training effect of the first prediction model.

[0147] In a possible implementation, the second prediction model is trained by the following steps: Obtain the third retention time series data and the fifth average value time series data of the first sample group in the third time period, and obtain the fourth retention time series data of the second sample group in the fourth time period; The second prediction model is trained based on the third retention time series data, the fifth average value time series data, and the fourth retention time series data.

[0148] Among them, the second sample group and the first sample group are groups from the same channel, the third time period is different from the fourth time period, the collection duration of the third retention time series data is equal to the interval between the target time point and the starting time point of the first time period, and the collection duration of the fifth average value time series data and the collection duration of the fourth retention time series data are both equal to the collection duration of the first average value time series data.

[0149] Specifically, the third retention time series data is time series data composed of the retention rates of the first sample group collected at each collection time point within the third time period, and the third retention time series data is used to indicate the retention rate change trend of the first sample group within the third time period; the collection time of the fifth average value time series data is usually less than the third time period, for example, the third time period is 365 days, and the collection time of the fifth average value time series data is 14 days. The fifth average value time series data is usually time series data composed of the average value of the first sample group collected at some collection time points within the third time period, and the fifth average value time series data can characterize the value change trend of the first sample group during part of the third time period; In addition, the fourth retention time series data is time series data composed of the retention rates of the second sample group collected at each collection time point in the fourth time period, and the fourth retention time series data is used to indicate the retention rate change trend of the second sample group in the fourth time period.

[0150] It should be noted that, similar to the second characteristic data, the characteristics of the retention rate change trend of the same channel can also be captured through the third retention time series data and the fourth retention time series data, which will not be repeated here.

[0151] Based on this, the second training samples and second sample labels of the second prediction model are constructed through the third retention time series data, the fifth average value time series data and the fourth retention time series data, and then the second training samples and the second sample labels are used to perform supervised learning on the second prediction model, so that the second prediction model can learn the retention rate change trend of the first sample group through the retention rate change trend of the channel and the true average value indicated by the fifth average value time series data, and then determine the second prediction result. During the training process, the error between the second prediction result and the second sample label will be continuously reduced, thereby improving the prediction accuracy of the second prediction model.

[0152] Specifically, refer to Fig. 9 , Fig. 9 An optional architectural diagram of a second prediction model training process provided in an embodiment of the present disclosure.

[0153] Taking the second prediction model as an example of a model for processing classification tasks, during the training process of the second prediction model, each data in the third retained time series data is fitted to obtain a true fitting function, and the distance between the true fitting function and each of the above-mentioned candidate fitting functions is determined respectively, and the candidate fitting function with the smallest distance from the true fitting function is determined as the sample fitting function, and then the second sample label is determined based on the sample fitting function; then based on the collection time of the first retained time series data, the third retained time series data is segmented to obtain training retained time series data with the same added time as the first retained time series data, and the training retained time series data, the fifth average value time series data and the fourth retained time series data are used as the second training sample; then the training retained time series data and the fourth retained time series data are stacked and convolved Processing, and then input the convolution result into the second time series model for mapping and attention processing to obtain training retention feature data; then construct an average value vector according to the fifth average value time series data, obtain the partner identifier corresponding to the first sample group, and extract the embedding vector of the partner identifier through the second encoder; then concatenate the embedding vector of the partner identifier, the average value vector and the training retention feature data and input them into the second prediction model for prediction to obtain a second prediction result, and then input the second prediction result and the second sample label into the second model loss function to determine the second model loss, wherein the second model loss function can be the loss function of classification models such as Focal and cross entropy; then train the second prediction model based on the second model loss, which can improve the prediction accuracy and training efficiency of the second prediction model.

[0154] For example, reference Figure 10 to Figure 11 , Fig.10 An optional function diagram of the true fitting function F1 provided in the embodiment of the present disclosure, Fig.11 An optional function diagram of the true fitting function F2 provided in an embodiment of the present disclosure.

[0155] Among them, the number of candidate fitting functions is seven, the horizontal axis of the function graph is time, and the vertical axis of the function graph is retention rate. The candidate fitting functions corresponding to the seven smooth curves from top to bottom in the figure are: ,in, and are preset constants. For time point, is the retention rate. It can be seen that different candidate fitting functions can correspond to different retention rate change trends. The curve of the real fitting function is usually not smooth. Fig.10 In the example, the true fitting function F1 obtained by fitting the first set of third retained time series data is closer to the seventh candidate fitting function, and it can be determined that the sample fitting function is specifically: , based on the sample fitting function, the second sample label can be determined to be [0,0,0,0,0,0,1]. Fig.11 In the example, the true fitting function F2 obtained by fitting the second set of third retained time series data is closer to the third candidate fitting function, and it can be determined that the sample fitting function is specifically: , based on the sample fitting function, the second sample label can be determined to be [0,0,1,0,0,0,0].

[0156] In one possible implementation, in order to improve the training effect and generalization performance of the second prediction model, similar to the training process of the first prediction model, a similar data enhancement method can be used in the training process of the second prediction model to perform data enhancement on the training samples of the second prediction model.

[0157] The complete process of the data prediction method is described in detail below. The complete process includes the training phase and the inference phase.

[0158] The training phase is described in detail below.

[0159] First, a sample channel is determined from multiple candidate channels, and the group newly added to the sample channel is determined as the first sample group; or, the groups newly added to the multiple candidate channels are respectively determined as candidate groups corresponding to each candidate channel, and each candidate group is randomly sampled, and the first sample group is constructed according to the sampling results.

[0160] Then, the candidate average value time series data and the candidate retention time series data of the first sample group within the candidate time period are obtained, wherein the collection time of the candidate average value time series data is greater than the interval between the target time point and the starting time point, and the collection time of the candidate retention time series data is greater than the collection time of the first average value time series data.

[0161] Then, based on the first sliding window, rolling sampling is performed in the candidate average value time series data to obtain the third average value time series data, and based on the second sliding window, rolling sampling is performed in the candidate retention time series data to obtain the third retention time series data, wherein the length of the first sliding window is smaller than the number of data points in the candidate average value time series data, and the length of the second sliding window is smaller than the number of data points in the candidate retention time series data.

[0162] Then, the fourth average value time series data of the second sample group in the fourth time period is obtained, wherein the second sample group and the first sample group are groups of the same channel, the third time period is different from the fourth time period, the collection time of the third average value time series data is equal to the interval between the target time point and the starting time point of the first time period, and the collection time of the third retention time series data and the collection time of the fourth average value time series data are both equal to the collection time of the first average value time series data.

[0163] Then, the first prediction model is trained based on the third average value time series data, the third retention time series data and the fourth average value time series data.

[0164] Then, the third retention time series data and the fifth average value time series data of the first sample group in the third time period are obtained, and the fourth retention time series data of the second sample group in the fourth time period is obtained, wherein the collection duration of the third retention time series data is equal to the interval duration between the target time point and the starting time point of the first time period, and the collection duration of the fifth average value time series data and the collection duration of the fourth retention time series data are both equal to the collection duration of the first average value time series data.

[0165] Then, the second prediction model is trained based on the third retention time series data, the fifth average value time series data, and the fourth retention time series data.

[0166] The inference phase is described in detail below.

[0167] First, the first average value time series data and the first retention time series data of the target group in the first time period are obtained, and the second average value time series data and the second retention time series data of the reference group in the second time period are obtained, wherein the reference group and the target group are groups of the same channel, and the first time period is different from the second time period; Then, the second average value time series data corresponding to each reference group are stacked in the order of the second time periods to obtain an initial data matrix; based on the first time period and the order of the second time periods, the insertion position of the first average value time series data in the initial data matrix is ​​determined; based on the insertion position, the first average value time series data is inserted into the initial data matrix to obtain a first data matrix.

[0168] Then, different convolution kernels are called to perform convolution processing on the first data matrix respectively to obtain multiple first convolution vectors with the same dimension; elements at the same position in each first convolution vector are concatenated to obtain multiple first sequence vectors.

[0169] Then, multiple first sequence vectors are input into the first time series model in sequence for mapping, and first hidden vectors corresponding to each first sequence vector are obtained respectively; each first hidden vector is subjected to attention processing to obtain an attention weight corresponding to each first hidden vector, and each first hidden vector is weightedly summed based on the attention weight to obtain first feature data.

[0170] Then, the first retained time series data and the second retained time series data are stacked and feature extracted to obtain second feature data.

[0171] Then, the first channel attribute corresponding to the target group is obtained; the first channel attribute is feature extracted to obtain the third feature data; the third feature data, the first feature data and the first retention time series data are spliced ​​and input into the first prediction model for prediction to obtain the target average value of the target group at the target time point.

[0172] Then, the second channel attribute corresponding to the target group is obtained; the feature of the second channel attribute is extracted to obtain the fourth feature data; the fourth feature data, the second feature data and the first average value time series data are spliced ​​to obtain fused data; the fused data is input into the second prediction model, and the fused data is classified based on the classification layer of the second prediction model to obtain the predicted probability distribution, wherein the predicted probability distribution is used to indicate the probability scores of multiple candidate fitting functions.

[0173] Then, based on the predicted probability distribution, a target fitting function is determined among multiple candidate fitting functions, and the starting time point, target time point, and each time point between the starting time point and the target time point of the first time period are respectively input into the target fitting function to obtain multiple target retention rates; the cumulative active time of the target group at the target time point is obtained according to the sum of the multiple target retention rates.

[0174] Then, based on the target average value and cumulative active time, determine the target value of the target group at the target time point.

[0175] Based on this, by stacking the first average value time series data of the target group in the first time period and the second average value time series data of the reference group in the second time period and performing feature extraction, the first feature data that captures the value change trend of the same channel where the target group and the reference group are located can be obtained, and then the first feature data and the first retention time series data are spliced ​​and input into the first prediction model. The first prediction model can make full use of the value change trend of the channel and the true retention rate indicated by the first retention time series data, so as to obtain an accurate target average value. At the same time, by stacking the first retention time series data of the target group in the first time period and the second retention time series data of the reference group in the second time period and performing feature extraction, the value change trend of the same channel where the target group and the reference group are located can be obtained. The second characteristic data of the retention rate change trend of the target group and the reference group in the same channel is obtained, and then the second characteristic data and the first average value time series data are spliced ​​and input into the second prediction model. The second prediction model can make full use of the retention rate change trend of the channel and the real average value indicated by the first average value time series data, so as to determine the accurate cumulative active time through the prediction results, and determine the target value of the target group at the target time point according to the target average value and the cumulative active time. Since the target value is decomposed into the target average value and the cumulative active time for separate predictions, and the prediction accuracy of the target average value and the cumulative active time is high, the prediction accuracy of the target value can be effectively improved, thereby obtaining an accurate target value.

[0176] The test results of the data prediction method provided by the embodiments of the present disclosure are described in detail below.

[0177] Specifically, by testing the MAPE index of the data prediction method provided by the embodiment of the present disclosure and the traditional prediction method respectively, it can be determined that the MAPE index of the data prediction method provided by the embodiment of the present disclosure is reduced to less than 10%. Compared with the traditional prediction method, the data prediction method provided by the embodiment of the present disclosure has a relative improvement of more than 30%.

[0178] It can be seen that the data prediction method provided by the embodiments of the present disclosure can be applied to a variety of fields.

[0179] For example, in the field of games, promotional information can be sent through search engines, social media platforms, video platforms, emails and other channels to introduce new players, that is, to introduce target groups. The data prediction method provided by the embodiment of the present disclosure can accurately predict the target value of the target group of the target channel at the target time point. For example, for the target group introduced through the search engine, the target value of the target group in 365 days can be predicted, that is, the life cycle value LTV365 of the target group in 365 days, and then LTV365 is divided by the average customer acquisition cost of each object in the target group to obtain the cumulative 365-day return on investment ROI365. Then, the profitability of the target channel can be determined by the return on investment. For example, when the return on investment is greater than 1, it means that the investment in the target channel is profitable. On the contrary, when the return on investment is greater than 1, it means that the investment in the target channel is loss-making; by improving the prediction accuracy of the return on investment, the investment strategy can be effectively optimized and the investment income can be increased. After obtaining ROI365, when ROI365 is greater than or equal to the preset threshold, promotional information can be sent based on the target channel.

[0180] In addition to the gaming field, when analyzing the return on investment of applications or businesses in other fields, the data prediction method provided by the embodiments of the present disclosure can also be used to predict the target value, which can effectively optimize the investment strategy and increase investment returns.

[0181] It is to be understood that, although the steps in the above-mentioned various flow charts are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in the present embodiment, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flow charts can include a plurality of steps or a plurality of stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of the steps or stages in other steps or other steps.

[0182] Reference Fig.12 , Fig.12 This is an optional structural diagram of a data prediction device provided in an embodiment of the present disclosure. The data prediction device 1200 includes: An acquisition module 1201 is used to acquire first average value time series data and first retention time series data of a target group in a first time period, and acquire second average value time series data and second retention time series data of a reference group in a second time period, wherein the reference group and the target group are groups of the same channel, and the first time period is different from the second time period; A feature extraction module 1202 is used to extract features from the first average value time series data and the second average value time series data to obtain first feature data, and to extract features from the first retained time series data and the second retained time series data to obtain second feature data; The first prediction module 1203 is used to splice the first feature data and the first retained time series data and input them into the first prediction model for prediction to obtain the target average value of the target group at the target time point; The second prediction module 1204 is used to splice the second feature data and the first average value time series data and input them into the second prediction model for prediction, and determine the cumulative active time of the target group at the target time point based on the prediction result of the second prediction model; The processing module 1205 is used to determine the target value of the target group at the target time point based on the target average value and the accumulated active time.

[0183] Furthermore, the feature extraction module 1202 is specifically used for: The first average value time series data and the second average value time series data are stacked to obtain a first data matrix; Call different convolution kernels to perform convolution processing on the first data matrix respectively, to obtain multiple first convolution vectors with the same dimension; Elements at the same position in each first convolution vector are concatenated to obtain a plurality of first sequence vectors, and features are extracted from the plurality of first sequence vectors to obtain first feature data.

[0184] Furthermore, the feature extraction module 1202 is specifically used for: Inputting the plurality of first sequence vectors into the first time series model in sequence for mapping, and obtaining first hidden vectors corresponding to the first sequence vectors respectively; Perform attention processing on each first hidden vector to obtain an attention weight corresponding to each first hidden vector, and perform weighted summation on each first hidden vector based on the attention weight to obtain first feature data.

[0185] Furthermore, there are multiple reference groups, and the second time periods corresponding to the various reference groups are different. The feature extraction module 1202 is specifically used for: The second average value time series data corresponding to each reference group are stacked in the order of each second time period to obtain an initial data matrix; Based on the sequence of the first time period and each second time period, determine the insertion position of the first average value time series data in the initial data matrix; Based on the insertion position, the first average value time series data is inserted into the initial data matrix to obtain a first data matrix.

[0186] Furthermore, the first prediction module 1203 is specifically used for: Get the first channel attributes corresponding to the target group; Extracting features from the first channel attribute to obtain third feature data; The third feature data, the first feature data and the first retention time series data are spliced ​​and input into the first prediction model for prediction to obtain the target average value of the target group at the target time point.

[0187] Furthermore, the second prediction module 1204 is specifically used for: Obtain the second channel attributes corresponding to the target group; Extracting features from the second channel attribute to obtain fourth feature data; The fourth feature data, the second feature data and the first average value time series data are spliced ​​and input into the second prediction model for prediction, and the cumulative active time of the target group at the target time point is determined based on the prediction result of the second prediction model.

[0188] Furthermore, the second prediction module 1204 is specifically used for: The fourth characteristic data, the second characteristic data and the first average value time series data are spliced ​​to obtain fused data; Inputting the fused data into the second prediction model, classifying the fused data based on the classification layer of the second prediction model, and obtaining a prediction probability distribution, wherein the prediction probability distribution is used to indicate probability scores of multiple candidate fitting functions; Determine a target fitting function from a plurality of candidate fitting functions based on the predicted probability distribution, input the starting time point, the target time point, and each time point between the starting time point and the target time point of the first time period into the target fitting function, respectively, to obtain a plurality of target retention rates; The cumulative active time of the target group at the target time point is obtained based on the sum of multiple target retention rates.

[0189] Furthermore, the data prediction device further includes a first training module (not shown in the figure), which is specifically used for: Obtain the third average value time series data and the third retention time series data of the first sample group in the third time period, and obtain the fourth average value time series data of the second sample group in the fourth time period, wherein the second sample group and the first sample group are groups of the same channel, the third time period is different from the fourth time period, the collection time of the third average value time series data is equal to the interval time between the target time point and the starting time point of the first time period, and the collection time of the third retention time series data and the collection time of the fourth average value time series data are both equal to the collection time of the first average value time series data; The first prediction model is trained based on the third average value time series data, the third retention time series data and the fourth average value time series data.

[0190] Furthermore, the first training module is specifically used for: Obtain candidate average value time series data and candidate retention time series data of the first sample group within the candidate time period, wherein the collection time of the candidate average value time series data is longer than the interval between the target time point and the start time point, and the collection time of the candidate retention time series data is longer than the collection time of the first average value time series data; Perform rolling sampling in the candidate average value time series data based on the first sliding window to obtain third average value time series data, wherein the length of the first sliding window is less than the number of data points of the candidate average value time series data; Based on the second sliding window, rolling sampling is performed in the candidate retained time series data to obtain third retained time series data, wherein the length of the second sliding window is less than the number of data points of the candidate retained time series data.

[0191] Furthermore, the first training module is also used for: Determine a sample channel from multiple candidate channels, and determine the group newly added to the sample channel as the first sample group; Alternatively, the newly added groups of the multiple candidate channels are respectively determined as candidate groups corresponding to the respective candidate channels, and each candidate group is randomly sampled, and the first sample group is constructed according to the sampling results.

[0192] Furthermore, the data prediction device further includes a second training module (not shown in the figure), which is specifically used for: Obtain the third retention time series data and the fifth average value time series data of the first sample group in the third time period, and obtain the fourth retention time series data of the second sample group in the fourth time period, wherein the second sample group and the first sample group are groups of the same channel, the third time period is different from the fourth time period, the collection time of the third retention time series data is equal to the interval time between the target time point and the starting time point of the first time period, and the collection time of the fifth average value time series data and the collection time of the fourth retention time series data are both equal to the collection time of the first average value time series data; The second prediction model is trained based on the third retention time series data, the fifth average value time series data, and the fourth retention time series data.

[0193] The above-mentioned data prediction device 1200 and the data prediction method are based on the same inventive concept. By stacking the first average value time series data of the target group in the first time period and the second average value time series data of the reference group in the second time period and performing feature extraction, the first feature data that captures the value change trend of the same channel where the target group and the reference group are located can be obtained. The first feature data and the first retention time series data are then spliced ​​and input into the first prediction model. The first prediction model can make full use of the value change trend of the channel and the real retention rate indicated by the first retention time series data, so as to obtain an accurate target average value. At the same time, the first retention time series data of the target group in the first time period and the second retention time series data of the reference group in the second time period are stacked and performed Feature extraction can obtain the second feature data that captures the retention rate change trend of the same channel where the target group and the reference group are located, and then the second feature data and the first average value time series data are spliced ​​and input into the second prediction model. The second prediction model can make full use of the retention rate change trend of the channel and the true average value indicated by the first average value time series data, so as to determine the accurate cumulative active time through the prediction results, and determine the target value of the target group at the target time point according to the target average value and the cumulative active time. Since the target value is decomposed into the target average value and the cumulative active time for separate predictions, and the prediction accuracy of the target average value and the cumulative active time is high, the prediction accuracy of the target value can be effectively improved, thereby obtaining an accurate target value.

[0194] The electronic device for executing the above data prediction method provided by the embodiment of the present disclosure may be a terminal. Fig.13 , Fig.13 This is a partial structural block diagram of a terminal provided in an embodiment of the present disclosure, and the terminal includes: a camera assembly 1310, a first memory 1320, an input unit 1330, a display unit 1340, a sensor 1350, an audio circuit 1360, a wireless fidelity (WiFi) module 1370, a first processor 1380, and a first power supply 1390. Those skilled in the art can understand that Fig.13 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0195] The camera assembly 1310 can be used to capture images or videos. Optionally, the camera assembly 1310 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and the VR (Virtual Reality) shooting function or other fusion shooting functions.

[0196] The first memory 1320 may be used to store software programs and modules. The first processor 1380 executes various functional applications and data processing of the terminal by running the software programs and modules stored in the first memory 1320 .

[0197] The input unit 1330 may be used to receive input digital or character information and generate key signal input related to the terminal's settings and function control. Specifically, the input unit 1330 may include a touch panel 1331 and other input devices 1332 .

[0198] The display unit 1340 may be used to display input information or provided information and various menus of the terminal. The display unit 1340 may include a display panel 1341 .

[0199] The audio circuit 1360 , the speaker 1361 , and the microphone 1362 may provide an audio interface.

[0200] The first power source 1390 may be alternating current, direct current, a disposable battery, or a rechargeable battery.

[0201] The number of sensors 1350 may be one or more, and the one or more sensors 1350 include but are not limited to: acceleration sensors, gyroscope sensors, pressure sensors, optical sensors, etc. Among them: The acceleration sensor can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal. For example, the acceleration sensor can be used to detect the components of gravity acceleration on the three coordinate axes. The first processor 1380 can control the display unit 1340 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor. The acceleration sensor can also be used for collecting game or user motion data.

[0202] The gyroscope sensor can detect the body direction and rotation angle of the terminal, and the gyroscope sensor can cooperate with the acceleration sensor to collect the user's 3D actions on the terminal. The first processor 1380 can implement the following functions based on the data collected by the gyroscope sensor: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0203] The pressure sensor can be set in the side frame of the terminal and / or the lower layer of the display unit 1340. When the pressure sensor is set in the side frame of the terminal, the user's holding signal of the terminal can be detected, and the first processor 1380 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor. When the pressure sensor is set in the lower layer of the display unit 1340, the first processor 1380 controls the operability controls on the UI interface according to the user's pressure operation on the display unit 1340. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0204] The optical sensor is used to collect the ambient light intensity. In one embodiment, the first processor 1380 can control the display brightness of the display unit 1340 according to the ambient light intensity collected by the optical sensor. Specifically, when the ambient light intensity is high, the display brightness of the display unit 1340 is increased; when the ambient light intensity is low, the display brightness of the display unit 1340 is decreased. In another embodiment, the first processor 1380 can also dynamically adjust the shooting parameters of the camera assembly 1310 according to the ambient light intensity collected by the optical sensor.

[0205] In this embodiment, the first processor 1380 included in the terminal can execute the data prediction method of the previous embodiment.

[0206] The electronic device for executing the above data prediction method provided in the embodiment of the present disclosure may also be a server. Fig.14 , Fig.14 Partial structural block diagram of a server provided in an embodiment of the present disclosure. The server may have relatively large differences due to different configurations or performances, and may include one or more second processors 1410 and a second memory 1430, and one or more storage media 1440 (e.g., one or more mass storage devices) storing application programs 1443 or data 1442. Among them, the second memory 1430 and the storage medium 1440 may be short-term storage or persistent storage. The program stored in the storage medium 1440 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the second processor 1410 may be configured to communicate with the storage medium 1440 to execute a series of instruction operations in the storage medium 1440 on the server.

[0207] The server may also include one or more second power supplies 1420, one or more wired or wireless network interfaces 1450, one or more input and output interfaces 1460, and / or one or more operating systems 1441, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0208] The second processor 1410 in the server may be configured to execute the data prediction method.

[0209] The embodiments of the present disclosure also provide a computer-readable storage medium, which is used to store a computer program, and the computer program is used to execute the data prediction methods of the aforementioned embodiments.

[0210] The embodiment of the present disclosure also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned data prediction method.

[0211] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0212] It should be understood that in the present disclosure, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0213] It should be understood that in the description of the embodiments of the present disclosure, the meaning of multiple (or multiple items) is more than two, greater than, less than, exceed, etc. are understood as not including the number, and above, below, within, etc. are understood as including the number.

[0214] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0215] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0216] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0217] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.

[0218] It should also be understood that the various implementations provided in the embodiments of the present disclosure can be combined arbitrarily to achieve different technical effects.

[0219] The above is a specific description of the preferred implementation of the present disclosure, but the present disclosure is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present disclosure. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present disclosure.

Claims

1. A data prediction method, characterized in that: include: Acquire first average value time series data and first retention time series data of a target group in a first time period, and acquire second average value time series data and second retention time series data of a reference group in a second time period, wherein the reference group and the target group are groups of the same channel, and the first time period is different from the second time period; The first average value time series data and the second average value time series data are stacked and feature extracted to obtain first feature data, and the first retained time series data and the second retained time series data are stacked and feature extracted to obtain second feature data; splicing the first feature data and the first retention time series data and inputting them into a first prediction model for prediction to obtain the target average value of the target group at the target time point; splicing the second feature data and the first average value time series data and inputting them into a second prediction model for prediction, and determining the cumulative active time of the target group at the target time point based on the prediction result of the second prediction model; The target value of the target group at the target time point is determined based on the target average value and the accumulated active duration.

2. The data prediction method according to claim 1, characterized in that: The stacking of the first average value time series data and the second average value time series data and performing feature extraction to obtain first feature data includes: Stacking the first average value time series data and the second average value time series data to obtain a first data matrix; Calling different convolution kernels to perform convolution processing on the first data matrix respectively to obtain a plurality of first convolution vectors with the same dimension; Elements at the same position in each of the first convolution vectors are concatenated to obtain a plurality of first sequence vectors, and features are extracted from the plurality of first sequence vectors to obtain first feature data.

3. The data prediction method according to claim 2, characterized in that: The step of extracting features from the plurality of first sequence vectors to obtain first feature data includes: Inputting the plurality of first sequence vectors into the first time series model in sequence for mapping, and obtaining first hidden vectors corresponding to the first sequence vectors respectively; Perform attention processing on each of the first hidden vectors to obtain an attention weight corresponding to each of the first hidden vectors, and perform weighted summation on each of the first hidden vectors based on the attention weight to obtain first feature data.

4. The data prediction method according to claim 2, characterized in that: The number of the reference groups is multiple, and the second time periods corresponding to the respective reference groups are different. The first average value time series data and the second average value time series data are stacked to obtain a first data matrix, including: Stacking the second average value time series data corresponding to each of the reference groups in the order of each of the second time periods to obtain an initial data matrix; Based on the sequence of the first time period and each of the second time periods, determining the insertion position of the first average value time series data in the initial data matrix; Based on the insertion position, the first average value time series data is inserted into the initial data matrix to obtain a first data matrix.

5. The data prediction method according to claim 1, characterized in that: The step of splicing the first feature data and the first retention time series data and inputting them into a first prediction model for prediction to obtain the target average value of the target group at the target time point includes: Obtaining a first channel attribute corresponding to the target group; Extracting features from the first channel attribute to obtain third feature data; The third feature data, the first feature data and the first retention time series data are spliced ​​and input into the first prediction model for prediction to obtain the target average value of the target group at the target time point.

6. The data prediction method according to claim 1, characterized in that: The step of splicing the second feature data and the first average value time series data and inputting them into a second prediction model for prediction, and determining the cumulative active duration of the target group at the target time point based on the prediction result of the second prediction model, includes: Obtaining a second channel attribute corresponding to the target group; Extracting features from the second channel attribute to obtain fourth feature data; The fourth feature data, the second feature data and the first average value time series data are spliced ​​and input into the second prediction model for prediction, and the cumulative active time of the target group at the target time point is determined based on the prediction result of the second prediction model.

7. The data prediction method according to claim 6, characterized in that: The step of splicing the fourth feature data, the second feature data, and the first average value time series data and inputting them into a second prediction model for prediction, and determining the cumulative active duration of the target group at the target time point based on the prediction result of the second prediction model, includes: Concatenate the fourth feature data, the second feature data and the first average value time series data to obtain fused data; Inputting the fused data into a second prediction model, classifying the fused data based on a classification layer of the second prediction model to obtain a prediction probability distribution, wherein the prediction probability distribution is used to indicate probability scores of multiple candidate fitting functions; Determine a target fitting function from the plurality of candidate fitting functions based on the predicted probability distribution, input the starting time point of the first time period, the target time point, and each time point between the starting time point and the target time point into the target fitting function, respectively, to obtain a plurality of target retention rates; The cumulative active time of the target group at the target time point is obtained according to the sum of the multiple target retention rates.

8. The data prediction method according to claim 1, characterized in that: The first prediction model is trained by the following steps: Obtain the third average value time series data and the third retention time series data of the first sample group in the third time period, and obtain the fourth average value time series data of the second sample group in the fourth time period, wherein the second sample group and the first sample group are groups of the same channel, the third time period is different from the fourth time period, the collection time of the third average value time series data is equal to the interval time between the target time point and the starting time point of the first time period, and the collection time of the third retention time series data and the collection time of the fourth average value time series data are both equal to the collection time of the first average value time series data; The first prediction model is trained based on the third average value time series data, the third retention time series data and the fourth average value time series data.

9. The data prediction method according to claim 8, characterized in that: The step of obtaining the third average value time series data and the third retention time series data of the first sample group in the third time period includes: Obtain candidate average value time series data and candidate retention time series data of the first sample group within a candidate time period, wherein the collection time of the candidate average value time series data is greater than the interval between the target time point and the start time point, and the collection time of the candidate retention time series data is greater than the collection time of the first average value time series data; Perform rolling sampling in the candidate average value time series data based on the first sliding window to obtain the third average value time series data, wherein the length of the first sliding window is less than the number of data points of the candidate average value time series data; The third retained time series data is obtained by rolling sampling in the candidate retained time series data based on the second sliding window, wherein the length of the second sliding window is less than the number of data points in the candidate retained time series data.

10. The data prediction method according to claim 8, characterized in that: Before obtaining the third average value time series data and the third retention time series data of the first sample group in the third time period, the data prediction method further includes: Determine a sample channel from a plurality of candidate channels, and determine a group newly added to the sample channel as the first sample group; Alternatively, newly added groups of multiple candidate channels are respectively determined as candidate groups corresponding to each of the candidate channels, and random sampling is performed on each of the candidate groups, and the first sample group is constructed according to the sampling results.

11. The data prediction method according to claim 1, characterized in that: The second prediction model is trained by the following steps: Obtain the third retention time series data and the fifth average value time series data of the first sample group in the third time period, and obtain the fourth retention time series data of the second sample group in the fourth time period, wherein the second sample group and the first sample group are groups of the same channel, the third time period is different from the fourth time period, the collection duration of the third retention time series data is equal to the interval duration between the target time point and the starting time point of the first time period, and the collection duration of the fifth average value time series data and the collection duration of the fourth retention time series data are both equal to the collection duration of the first average value time series data; The second prediction model is trained based on the third retention time series data, the fifth average value time series data and the fourth retention time series data.

12. A data prediction device, characterized in that: include: An acquisition module, used to acquire first average value time series data and first retention time series data of a target group in a first time period, and acquire second average value time series data and second retention time series data of a reference group in a second time period, wherein the reference group and the target group are groups of the same channel, and the first time period is different from the second time period; A feature extraction module, used for stacking the first average value time series data and the second average value time series data to extract features to obtain first feature data, and stacking the first retained time series data and the second retained time series data to extract features to obtain second feature data; A first prediction module, configured to splice the first feature data and the first retention time series data and input them into a first prediction model for prediction to obtain a target average value of the target group at a target time point; A second prediction module, configured to splice the second feature data and the first average value time series data and input them into a second prediction model for prediction, and determine the cumulative active time of the target group at the target time point based on the prediction result of the second prediction model; A processing module is used to determine the target value of the target group at the target time point based on the target average value and the accumulated active time.

13. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the data prediction method according to any one of claims 1 to 11 is implemented.

14. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the data prediction method according to any one of claims 1 to 11 is implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the data prediction method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Platform user quality evaluation system

    CN110991875A

  • Data processing method and device and storage medium

    CN112669091A

  • Life cycle value prediction method and device, storage medium and electronic equipment

    CN115660203A

  • System and method for determining lifetime value of users of client applications

    US20230385856A1