Behavior data processing method and system, storage medium and processor
By using the time series model to directly process user behavior data and predict the probability of not interacting with the terminal, it solves the problems of low efficiency and high cost caused by manually determining user characteristics in the existing technology, and achieves efficient user churn prediction in different business scenarios.
Patent Information
- Application Number
- CN202010010149.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-06
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-01-06
AI Technical Summary
Behavioral data processing methods in the existing technology determine user characteristics manually, resulting in low processing efficiency and high cost, and cannot be uniformly applied to different business scenarios. There is a lot of duplication of labor and feature engineering work.
Use the trained time series model to process user behavior data, directly predict the probability that the user has not interacted with the terminal, avoid feature analysis and feature selection, and achieve end-to-end user churn prediction.
It reduces the workload of feature engineering, reduces the difficulty of deployment, improves adaptability, solves the problems of low processing efficiency and high cost, and achieves user churn prediction in different business scenarios.
Smart Images

Figure CN113077276B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of the Internet, and more specifically, to a method and system for processing behavior data, a storage medium, and a processor. Background Art
[0002] In different business scenarios, there is user churn. In order to reduce the churn rate, various operational activities and advertisements can be carried out to retain users who are about to churn. In order to accurately know the user churn situation, the relevant technology provides a solution for predicting the user churn situation.
[0003] The most widely used user churn prediction method is the gradient boosting decision tree based on a large number of dense user features. This method first requires technicians to analyze the user's attribute information data and historical behavior data, select and pre-process these data, and use them as the input of the gradient boosting decision tree algorithm to find effective features and feature combinations, and output prediction results based on these features.
[0004] However, the above method requires a lot of feature engineering work to manually mine and screen features, and different business scenarios require different feature engineering, involving a lot of repetitive work, resulting in reduced processing efficiency and increased costs, and cannot be uniformly applied to different business scenarios.
[0005] The processing method of behavioral data in related technologies determines user characteristics manually, resulting in low processing efficiency and high cost. No effective solution has been proposed yet. Summary of the invention
[0006] The embodiments of the present application provide a method and system for processing behavior data, a storage medium, and a processor, so as to at least solve the technical problem that the method for processing behavior data in the related art determines user characteristics manually, resulting in low processing efficiency and high cost.
[0007] According to one aspect of an embodiment of the present application, a method for processing behavior data is provided, including: obtaining behavior data of a target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is data generated after the target object interacts with a preset terminal; using a trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future; and outputting the processing result.
[0008] According to another aspect of an embodiment of the present application, a method for processing behavior data is also provided, including: triggering a preset terminal to generate a processing instruction; the preset terminal obtains identification information of the target object based on the processing instruction; the preset terminal sends the identification information to a server, and receives a processing result returned by the server, wherein the processing result is obtained by processing the behavior data of the target object using a trained time series model, the behavior data is obtained based on the identification information, the behavior data is data generated after the target object interacts with the preset terminal, and the processing result is used to characterize the probability that the target object will not interact with the preset terminal in a period of time in the future; the preset terminal outputs the processing result.
[0009] According to another aspect of an embodiment of the present application, a method for processing behavior data is also provided, including: a server receives identification information of a target object sent by a preset terminal; the server obtains behavior data of the target object based on the identification information, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is data generated after the target object interacts with the preset terminal; the server processes the behavior data using a trained time series model to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future; and the server sends the processing result to the preset terminal.
[0010] According to another aspect of an embodiment of the present application, an information push method is also provided, including: obtaining behavior data of a target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is data generated after the target object interacts with a preset terminal; using a trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future; based on the processing result, determining target push information; and pushing the target push information to the target terminal corresponding to the target object.
[0011] According to another aspect of an embodiment of the present application, an information push method is also provided, including: obtaining behavior data of at least one object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is data generated after the object interacts with a preset terminal; using a trained time series model to process the behavior data of each object to obtain a processing result corresponding to each object, wherein the processing result is used to characterize the probability that each object has not interacted with the preset terminal in a future period of time; based on the processing result and behavior data corresponding to at least one object, determining target push information, wherein the target push information is used to modify the product information of at least one product; and pushing the target push information to the target terminal.
[0012] According to another aspect of an embodiment of the present application, a storage medium is further provided, the storage medium including a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned behavior data processing method and information push method.
[0013] According to another aspect of an embodiment of the present application, a processor is further provided, and the processor is used to run a program, wherein the above-mentioned behavior data processing method and information pushing method are executed when the program is running.
[0014] According to another aspect of an embodiment of the present application, a behavior data processing system is also provided, including: a processor; and a memory, connected to the processor, for providing the processor with instructions for processing the following processing steps: obtaining behavior data of a target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is data generated after the target object interacts with a preset terminal; using a trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future; and outputting the processing result.
[0015] In the embodiment of the present application, after obtaining the behavior data of the target object, the behavior data can be processed using a trained time series model to obtain the processing results and output them, thereby achieving the purpose of predicting user churn based on the user's behavior data. Compared with the related art, the time series model can receive input data of different time lengths and different numbers of behavior dimensions, without feature analysis and feature selection, and can directly perform model training and prediction, avoiding a large amount of complicated feature engineering work. At the same time, only user behavior data is needed in different business scenarios to perform end-to-end user churn prediction, thereby reducing the workload, reducing the difficulty of deployment, and improving adaptability, thereby solving the technical problem that the behavior data processing method in the related art determines user characteristics manually, resulting in low processing efficiency and high cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0017] Figure 1 is a hardware structure block diagram of a computer terminal for implementing a method for processing behavior data according to an embodiment of the present application;
[0018] Figure 2 is a schematic diagram of a computer terminal as a receiving end according to an embodiment of the present application;
[0019] Figure 3is a flowchart of a method for processing behavior data according to Embodiment 1 of the present application;
[0020] Figure 4 is a flowchart of an optional user churn prediction according to an embodiment of the present application;
[0021] Figure 5 is a schematic diagram of an optional training and testing data division according to an embodiment of the present application;
[0022] Figure 6 is a flow chart of a method for processing behavior data according to Embodiment 2 of the present application;
[0023] Figure 7 is a schematic diagram of an optional user operation interface according to an embodiment of the present application;
[0024] Figure 8 is a flowchart of a method for processing behavior data according to Embodiment 3 of the present application;
[0025] Fig. 9 is a flow chart of an information push method according to an embodiment of the present application;
[0026] Fig.10 is a flowchart of another information push method according to an embodiment of the present application;
[0027] Fig.11 is a schematic diagram of an address text processing device according to Embodiment 6 of the present application;
[0028] Fig.12 is a schematic diagram of an address text processing device according to Embodiment 7 of the present application;
[0029] Fig.13 is a schematic diagram of an address text processing device according to Embodiment 8 of the present application;
[0030] Fig.14 is a schematic diagram of an information push device according to an embodiment of the present application;
[0031] Fig.15 is a schematic diagram of an information push device according to an embodiment of the present application; and
[0032] Fig.16 It is a structural block diagram of a computer terminal according to an embodiment of the present application. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0036] User churn: This may refer to the user not having any interaction with a specific business within a certain period of time.
[0037] Time window: can refer to a period of time.
[0038] End-to-end: The analysis and learning of data are automatically completed by the model.
[0039] Convolutional Neural Network (CNN): Convolutional Neural Network can be a deep neural network that uses a convolutional structure.
[0040] Temporal convolutional network: Temporal convolutional network, referred to as TCN, can be a network structure that can process time series data.
[0041] RNN: Recurrent Neural Network, can be a type of neural network used to process sequence data.
[0042] LSTM: Long Short-Term Memory, a long short-term memory network, can be a time recurrent neural network that is suitable for processing and predicting important events with relatively long intervals and delays in time series.
[0043] Example 1
[0044] According to an embodiment of the present application, a method for processing behavioral data is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0045] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a method for processing behavior data. Figure 1 As shown, the computer terminal 10 (or mobile device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0046] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As with the processors involved in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0047] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the method for processing behavioral data in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the method for processing behavioral data described above is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0048] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0049] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0050] Figure 1 The hardware structure block diagram shown can be used not only as an exemplary block diagram of the above-mentioned computer terminal 10 (or mobile device), but also as an exemplary block diagram of the above-mentioned server. In an optional embodiment, Figure 2 The block diagram shows the use of the above Figure 1 The computer terminal 10 (or mobile device) shown in FIG. 1 is an embodiment of a receiving end. Figure 2 As shown, the computer terminal 10 (or mobile device) can be connected to one or more clients 20 via a data network connection or electronic connection. The data network connection can be a local area network connection, a wide area network connection, an Internet connection, or other types of data network connections. The computer terminal 10 (or mobile device) can provide network services to one or more clients 20. Network services are user services based on the network, such as social networks, cloud resources, email, online payments or other online applications.
[0051] Under the above operating environment, this application provides Figure 3The method for processing the behavioral data shown. Figure 3 1 is a flowchart of a method for processing behavior data according to Example 1 of the present application. Figure 3 As shown, the method comprises the following steps:
[0052] Step S302, obtaining behavior data of the target object, wherein the behavior data includes: a plurality of target behavior sequences of different types, and the behavior data is data generated after the target object interacts with a preset terminal;
[0053] The target object in the above steps can be the user for whom user churn prediction is required. In different business scenarios, the target object is different. For example, in an e-commerce shopping scenario, the target object can be a member registered in the e-commerce shopping platform, or a VIP member of a store in the e-commerce shopping platform. In a social network scenario, the target object can be a user of the social network.
[0054] The preset terminal in the above steps can be a server that provides network services to users in different business scenarios. Users can interact with the server through the client, and corresponding behavior data can be generated during the business interaction. Moreover, in a business scenario, users can perform different interactive behaviors, thereby generating different types of behavior data. For example, in an e-commerce shopping scenario, behavior data may include types such as clicks, browsing, collections, and purchases. In a social network scenario, behavior data may include types such as login, forwarding, sharing, and publishing.
[0055] Since user behavior is time-series, user behavior data can be obtained in chronological order and quantified into corresponding behavior sequences according to a certain time granularity. Each element in the sequence is the behavior data value generated at the corresponding time.
[0056] Step S304, using the trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future;
[0057] Since user behavior is time-series, in order to better process the acquired behavior data, in an optional embodiment, a time series model can be used to process it. The time series model in the above steps can be a neural network model such as RNN, LSTM, TCN, etc. that can process time series sequences, but is not limited to this. In the embodiments of the present application, TCN is used as an example for illustration.
[0058] TCN is the key to achieving end-to-end user churn prediction. Unlike the commonly used fully convolutional networks that maintain size, TCN can better learn timing information. Assuming that the element of the input data at time t is x(t), and there is a one-dimensional convolution kernel [k1, k2, k3] of size 3, then the output element y(t) of the ordinary convolution can be expressed as y(t) = k1*x(t-1) + k2*x(t) + k3*x(t+1), and the convolution result output in the timing network can be expressed as y(t) = k1*x(t-2) + k2*x(t-1) + k3*x(t). Such a convolution structure can better capture the timing information of behavioral data.
[0059] Since churned users and active users can be converted to each other, that is, users can become active users again after a period of churn, the processing results obtained by processing the behavior data through the time series model can indicate whether the user will churn in the future. The specific time period length can be determined by the time window length of the historical behavior data used in the time series model training process.
[0060] Step S306, output the processing result.
[0061] After predicting the users who are about to churn, the prediction results and the users' specific information can be output, so that business managers can adjust specific businesses based on the prediction results, or provide preferential information, advertisements, etc. to the users who are about to churn, so as to retain the users who are about to churn.
[0062] In an optional embodiment, the above solution can be deployed in a business platform. In the process of the business platform providing services to users, user behavior data is collected in real time, and further processed using a trained time series model to predict whether each user will churn, and the prediction results are returned to managers, so that managers can adjust the business or push coupons, advertisements and other information to users.
[0063] For example, taking the e-commerce shopping scenario as an example, the obtained behavior data may include pv (exposure browsing), ipv (exposure browsing of product details page), click, collect, etc. The obtained behavior data is input into the trained TCN, and the output result of TCN is the final prediction result, which is further output to the managers of the e-commerce shopping platform, so that the managers can adjust the promotion activities, promotion intensity, product recommendation order, etc., and can push coupons of different intensities to users who are about to churn to promote user consumption.
[0064] Based on the solution provided by the above-mentioned embodiment of the present application, after obtaining the behavior data of the target object, the behavior data can be processed using the trained time series model to obtain the processing results and output them, thereby achieving the purpose of predicting user churn based on the user's behavior data. Compared with the related art, the time series model can receive input data of different time lengths and different numbers of behavior dimensions, without the need for feature analysis and feature selection, and can directly perform model training and prediction, avoiding a large amount of complicated feature engineering work. At the same time, only user behavior data is needed in different business scenarios to perform end-to-end user churn prediction, thereby reducing the workload, reducing the difficulty of deployment, and improving adaptability, thereby solving the technical problem that the behavior data processing method in the related art determines user characteristics manually, resulting in low processing efficiency and high cost.
[0065] In the above embodiment of the present application, before using the trained time series model to process the behavior data, the method also includes: processing multiple target behavior sequences to obtain processed behavior data, wherein the dimensions of the multiple target behavior sequences contained in the processed behavior data are the same; and processing the processed behavior data using the trained time series model to obtain a processing result.
[0066] Different types of behavior sequences have different dimensions such as time granularity and order of magnitude, and it is impossible to directly use the trained time series model to process different types of behavior sequences. For example, still taking the e-commerce shopping scenario as an example, for a certain user, the number of times the user collects products in a time period may be only a few times or a dozen times, but the amount of money the user spends on products in the same time period may be thousands or even tens of thousands, and the order of magnitude of the two behavior sequences is different. Similarly, the time granularity of a user collecting products in a time period may be days, while the time granularity of a user browsing products in the same time period may be hours, and the time granularity of the two behavior sequences is different.
[0067] In an optional embodiment, before processing different types of behavior sequences, the behavior data may be preprocessed to form behavior sequences of the same dimension, and then processed using a trained time series model to obtain a final processing result.
[0068] In the above embodiment of the present application, multiple target behavior sequences are processed to obtain processed behavior data including: according to a preset time window and a preset time granularity, multiple target behavior sequences are quantized to obtain multiple first behavior sequences; multiple first behavior sequences are processed to obtain multiple second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; multiple second behavior sequences are processed to obtain processed behavior data, wherein the element values in the multiple target behavior sequences included in the processed behavior data are of the same order of magnitude.
[0069] The preset time window in the above steps can be a predetermined time window for different types of behavior data, and ensure that the behavior data within the time window can be used to predict user churn. Similarly, the preset time granularity can be a predetermined time granularity for different types of behavior data, and ensure that the behavior data within the time window can be used to predict user churn. For example, still taking the e-commerce shopping scenario as an example, for collection behavior and browsing behavior, the preset time window can be one month, and the time granularity can be one day. In actual use, the preset time window and preset time granularity can be set according to the specific business scenario.
[0070] In specific business scenarios, user behaviors are not always frequent. In most cases, user behaviors are very sparse. Specifically, for a certain behavior, its frequency of occurrence may be as low as 1 / 30 or even lower on a daily basis. Such data will affect the above method. In order to solve the above problem, in an embodiment of the present application, the behavior data can be de-sparsely processed to reduce the sparsity of the behavior sequence, thereby being more conducive to the training and prediction of the time series model.
[0071] Methods for processing multiple second behavior sequences may include normalization, difference processing, etc., but are not limited thereto. Other methods that can make the order of magnitude of element values in the sequence close may also be used. In the embodiment of the present application, normalization processing is taken as an example for explanation.
[0072] In an optional embodiment, after obtaining multiple behavior sequences of different types, the same time window can be first taken for different behavior data, and statistically quantized according to the same time granularity, and then the elements in the quantized first behavior sequence are de-sparsely processed, and finally the multiple second behavior sequences are normalized so that the element values in the de-sparsely processed sequences have the same order of magnitude.
[0073] In the above embodiment of the present application, multiple first behavior sequences are processed to obtain multiple second behavior sequences, including: modifying the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; and adding Gaussian white noise to each modified first behavior sequence to obtain each second sequence.
[0074] The target time period in the above steps may be determined according to the actual business scenario, a period of time after a single behavior, and the time period may be a behavior impact window of a single behavior, which is not specifically limited in this application.
[0075] In an optional embodiment, the desparseness process may include the following two steps. The first step is to add a behavior impact window mechanism. The user's single behavior does not exist in isolation, and will form a residual impact for a period of time. The residual decreases inversely with the passage of time. That is, the user's single behavior is similar to a pulse, and the value of a period of time after the corresponding time can be supplemented in a descending manner. The second step is to add noise. For sparse behavior sequences, Gaussian white noise that does not affect the distribution of behavior can be added to reduce its sparsity.
[0076] In the above embodiment of the present application, the method also includes: obtaining training data, wherein the training data includes: multiple historical behavior sequences of different types, and corresponding labels, the labels are used to characterize whether the target object interacts with a preset terminal after the multiple historical behavior data are generated in a preset time period; processing the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences contained in the processed training data are the same; training the time series model based on the processed training data to obtain a trained time series model.
[0077] In an optional solution, in order to obtain more accurate prediction results, a large amount of training data is required. The training data includes behavior sequences and user labels. The behavior sequences come from the user's past historical behaviors, and according to the historical churn situation, a label is set for each user. The label can indicate the churn situation of the user after the behavior sequence window. Then, the training data is preprocessed using the above-mentioned preprocessing method. The specific processing process is not described here. Finally, based on the preprocessed training data, the time series convolutional network is trained end-to-end to obtain a trained time series convolutional network.
[0078] In the above embodiments of the present application, after training the time series model based on the processed training data to obtain the trained time series model, the method also includes: updating the training data to obtain updated training data; training the time series model based on the updated training data to obtain the trained time series model.
[0079] In an optional embodiment, as the user's historical behavior changes over time, the training data may be updated and the network may be fine-tuned to ensure the accuracy of user churn prediction.
[0080] In the above embodiments of the present application, updating the training data includes at least one of the following: updating the training data according to a preset period; and updating the training data based on the update instruction after receiving the update instruction.
[0081] The preset period in the above steps can be a period determined according to a specific business scenario in actual use. The more frequently the behavior data is generated in the business scenario, the shorter the training data update period is, so that the prediction accuracy of the time series convolutional network is higher. In an optional embodiment, the training data can be updated and the network can be fine-tuned according to a fixed period.
[0082] The update instruction can be a command triggered by the business administrator according to his own needs. For example, when the business administrator finds that the behavior data suddenly becomes frequent within a certain period of time, the update instruction can be triggered to update the training data and fine-tune the network.
[0083] In an embodiment of the present application, the above two update schemes can be combined, with fixed-period updates as the main method, and can be adjusted according to the actual needs of business administrators to increase the flexibility of the timing convolution model.
[0084] Combine the following Figure 4 and Figure 5 , taking the e-commerce shopping scenario as an example, a preferred embodiment of the present application is described in detail. Figure 4 As shown, the method mainly includes the following steps:
[0085] Step S41, preparing training data and test data.
[0086] Optionally, test data and training data can be prepared based on the user's past historical behaviors and historical churn. The historical behaviors may include PV (exposure browsing), ipv (exposure browsing of product details page), click (click on the product), buy (purchase of the product), etc. The test data may be historical behavior data selected from the user's past historical behaviors, or may be behavior data that is currently required for user churn prediction.
[0087] The division of test data and training data can be as follows Figure 5 As shown, training data and test data are obtained according to different time windows, and the same training labels are marked on the training data, and the corresponding prediction targets are marked on the test data.
[0088] Step S42: data preprocessing.
[0089] Optionally, the data preprocessing process mainly includes: taking the same time window, processing at the same granularity and de-sparseness.
[0090] Step S43, training the temporal convolutional network.
[0091] Optionally, after the input data is preprocessed, the temporal convolutional network can be trained using the preprocessed behavior sequence.
[0092] Step S44, saving the network model.
[0093] Optionally, after training is completed, the trained time series convolution model can be saved for subsequent testing and prediction needs.
[0094] Step S45, using the test data to perform prediction and obtain a prediction result.
[0095] Optionally, the test data can be input into a pre-trained temporal convolutional network to obtain a prediction result, and based on the prediction result, it can be determined whether the model is successfully trained.
[0096] Step S46, updating training data and test data.
[0097] Optionally, as time goes by, the training data can be updated, and the test data can be updated at the same time to obtain the test results for the next time period.
[0098] Step S47, fine-tune the temporal convolutional network.
[0099] Optionally, after the training data is updated, the temporal convolutional network can be fine-tuned based on the updated training data.
[0100] Through the solution provided by the above steps, as a fully convolutional network, the time series convolutional network can receive input data of different time lengths and different numbers of behavioral dimensions. Therefore, you only need to prepare the corresponding data. After unified preprocessing, the input network can be trained to obtain a neural network model for feedforward, which can be directly used for prediction. There is no need for feature analysis and feature selection. Model training and prediction can be performed directly, which reduces the workload. At the same time, it is more universal and easy to deploy and apply. It can achieve better performance than the gradient boosting decision tree while avoiding feature engineering.
[0101] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0103] Example 2
[0104] According to an embodiment of the present application, a method for processing behavioral data is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0105] Figure 6 is a flow chart of a method for processing behavior data according to Embodiment 2 of the present application. Figure 6 As shown, the method may include the following steps:
[0106] Step S602, triggering a preset terminal to generate a processing instruction;
[0107] The preset terminal in the above steps can be a server that provides network services to users in different business scenarios. The business administrator can connect to the server through the client and generate corresponding processing instructions. The processing instructions can be instructions that the business administrator needs to perform user churn prediction.
[0108] For example, Figure 7 As shown, the client can provide an operation interface to the business administrator, and generate a processing instruction by clicking "user churn prediction".
[0109] Step S604, the preset terminal obtains identification information of the target object based on the processing instruction;
[0110] The identification information in the above steps may be information that uniquely identifies the user, for example, a user ID, a session ID, etc., and this application does not make any specific limitation on this.
[0111] In an optional embodiment, when triggering the processing instruction, the business administrator may specify specific users for whom user churn prediction is required. If the business administrator does not specify, user churn prediction is performed for all users by default.
[0112] For example, Figure 7 As shown, the user can enter the user ID for which user churn prediction is required in the operation interface.
[0113] Step S606: The preset terminal sends the identification information to the server, and receives the processing result returned by the server, wherein the processing result is obtained by processing the behavior data of the target object using the trained time series model, the behavior data is obtained based on the identification information, and the behavior data is the data generated after the target object interacts with the preset terminal. The processing result is used to characterize the probability that the target object does not interact with the preset terminal in the future.
[0114] The server in the above steps may be a server that can provide user churn prediction services, such as a cloud server, but is not limited thereto.
[0115] Step S608: The preset terminal outputs the processing result.
[0116] For example, Figure 7 As shown, the prediction result of user churn prediction can be displayed in the operation interface, so that the business administrator can view the prediction result and adjust the business.
[0117] In the above embodiment of the present application, after receiving the processing result returned by the server, the method also includes: the preset terminal determines the target push information corresponding to the target object based on the processing result; the preset terminal pushes the target push information to the target terminal corresponding to the target object.
[0118] The target push information in the above steps can be various operation strategies and advertisements pushed to users who are about to churn. For example, in an e-commerce shopping scenario, the target push information can be coupons pushed to users, but is not limited to this. The target terminal can be the user's smart phone (including Android phones, IOS phones), tablet computers, PDAs, IPADs, laptops, personal computers and other mobile terminals, but is not limited to this.
[0119] In an optional embodiment, the user's preferences can be determined by analyzing the user's behavior data, and the targeted push information can be pushed to the user based on the user's preferences. For example, in an e-commerce shopping scenario, the user's historical purchase data can be analyzed to determine the type of goods that the user likes to buy, and coupons of this type can be pushed to the user, prompting the user to use the coupon to purchase goods and retain the user.
[0120] In the above embodiment of the present application, the preset terminal determines the target push information corresponding to the target object based on the processing result, including: the preset terminal determines the target probability interval to which the probability belongs; the preset terminal obtains the push information corresponding to the target probability interval to obtain the target push information.
[0121] Since user churn prediction can give the probability of the user churn, in order to ensure that the user can be retained, in an optional embodiment, different push information can be set in advance for different probabilities, so that the target push information pushed to the user can be determined according to the probability of user churn. For example, in an e-commerce shopping scenario, for users with a higher probability, a coupon with a greater discount can be pushed; and for users with a lower probability, a coupon with a smaller discount can be pushed.
[0122] In the above embodiment of the present application, when there are multiple target objects, the preset terminal determines the target push information corresponding to the target object based on the processing results, including: the preset terminal counts the processing results corresponding to multiple target objects; the preset terminal determines the target push information based on the statistical results.
[0123] In the case where a business administrator predicts user churn for multiple users, the number of users who are about to churn is different, and the larger the number, the more the business needs to be improved. In an optional embodiment, the prediction results of multiple users can be counted to determine the need to improve the business itself, which can be improved through other marketing strategies. For example, in an e-commerce shopping scenario, if there are many users who are about to churn, the entire promotion of the platform can be adjusted, and coupons can be pushed to all users; if there are few users who are about to churn, there is no need to adjust the platform's promotion, and only coupons need to be pushed to users who are about to churn.
[0124] In the above embodiments of the present application, the processing results are obtained by processing the processed behavior data using a trained time series model, and the processed behavior data are obtained by processing multiple target behavior sequences, wherein the dimensions of the multiple target behavior sequences contained in the processed behavior data are the same.
[0125] In the above embodiments of the present application, the processed behavior data is obtained by processing multiple target behavior sequences in the following manner: quantizing the multiple target behavior sequences according to a preset time window and a preset time granularity to obtain multiple first behavior sequences; processing the multiple first behavior sequences to obtain multiple second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; processing the multiple second behavior sequences to obtain processed behavior data, wherein the element values in the multiple target behavior sequences contained in the processed behavior data are of the same order of magnitude.
[0126] In the above embodiments of the present application, multiple second behavior sequences are obtained by processing multiple first behavior sequences in the following manner: modifying the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; and adding Gaussian white noise to each modified first behavior sequence to obtain each second sequence.
[0127] In the above embodiments of the present application, the trained time series model is trained in the following manner: obtaining training data, wherein the training data includes: multiple historical behavior sequences of different types, and corresponding labels, and the labels are used to characterize whether the target object interacts with a preset terminal after the multiple historical behavior data are generated in a preset time period; processing the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences included in the processed training data are the same; training the time series model based on the processed training data to obtain a trained time series model.
[0128] In the above embodiments of the present application, the trained time series model is updated in the following manner: the training data is updated to obtain updated training data; and the time series model is trained based on the updated training data to obtain a trained time series model.
[0129] In the above embodiments of the present application, the training data is updated in at least one of the following ways: updating the training data according to a preset period; and updating the training data based on the update instruction after receiving the update instruction.
[0130] It should be noted that the preferred implementation methods involved in the above embodiments of the present application are the same as the solutions, application scenarios, and implementation processes provided in Example 1, but are not limited to the solutions provided in Example 1.
[0131] Example 3
[0132] According to an embodiment of the present application, a method for processing behavioral data is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0133] Figure 8 is a flow chart of a method for processing behavior data according to Embodiment 3 of the present application. Figure 8 As shown, the method may include the following steps:
[0134] Step S802, the server receives identification information of the target object sent by the preset terminal;
[0135] Step S804: the server obtains behavior data of the target object based on the identification information, wherein the behavior data includes: a plurality of target behavior sequences of different types, and the behavior data is data generated after the target object interacts with the preset terminal;
[0136] Step S806: The server processes the behavior data using the trained time series model to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future;
[0137] Step S808: The server sends the processing result to a preset terminal.
[0138] In the above embodiment of the present application, before using the trained time series model to process the behavior data, the method also includes: processing multiple target behavior sequences to obtain processed behavior data, wherein the dimensions of the multiple target behavior sequences contained in the processed behavior data are the same; and processing the processed behavior data using the trained time series model to obtain a processing result.
[0139] In the above embodiment of the present application, multiple target behavior sequences are processed to obtain processed behavior data including: according to a preset time window and a preset time granularity, multiple target behavior sequences are quantized to obtain multiple first behavior sequences; multiple first behavior sequences are processed to obtain multiple second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; multiple second behavior sequences are processed to obtain processed behavior data, wherein the element values in the multiple target behavior sequences included in the processed behavior data are of the same order of magnitude.
[0140] In the above embodiment of the present application, multiple first behavior sequences are processed to obtain multiple second behavior sequences, including: modifying the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; and adding Gaussian white noise to each modified first behavior sequence to obtain each second sequence.
[0141] In the above embodiment of the present application, the method also includes: obtaining training data, wherein the training data includes: multiple historical behavior sequences of different types, and corresponding labels, the labels are used to characterize whether the target object interacts with a preset terminal after the multiple historical behavior data are generated in a preset time period; processing the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences contained in the processed training data are the same; training the time series model based on the processed training data to obtain a trained time series model.
[0142] In the above embodiments of the present application, after training the time series model based on the processed training data to obtain the trained time series model, the method also includes: updating the training data to obtain updated training data; training the time series model based on the updated training data to obtain the trained time series model.
[0143] In the above embodiments of the present application, updating the training data includes at least one of the following: updating the training data according to a preset period; and updating the training data based on the update instruction after receiving the update instruction.
[0144] It should be noted that the preferred implementation methods involved in the above embodiments of the present application are the same as the solutions, application scenarios, and implementation processes provided in Example 1, but are not limited to the solutions provided in Example 1.
[0145] Example 4
[0146] According to an embodiment of the present application, an information push method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0147] The method provided in this embodiment is mainly aimed at buyers in e-commerce shopping scenarios. By predicting the probability of buyer churn, recommendation information can be pushed based on the buyer's preference data, for example, recommending coupons, recommending other products in the same store, recommending products with higher quality satisfaction, or recommending high-quality or cost-effective products.
[0148] Fig. 9 is a flow chart of an information push method according to an embodiment of the present application. Fig. 9 As shown, the method may include the following steps:
[0149] Step S902, obtaining behavior data of the target object, wherein the behavior data includes: a plurality of target behavior sequences of different types, and the behavior data is data generated after the target object interacts with a preset terminal;
[0150] The target objects in the above steps can be buyers in the e-commerce shopping scenario, for example, they can be registered members in the e-commerce shopping platform, or VIP members of a store in the platform. Since the number of members in the e-commerce shopping platform is large, the target objects can be pre-set buyers who need to be retained to avoid loss.
[0151] The preset terminal in the above steps can be a server that provides network services to buyers in an e-commerce shopping scenario. Buyers can interact with the server through the client, and corresponding behavior data can be generated during the business interaction process. For example, in an e-commerce shopping scenario, behavior data may include clicks, browsing, collections, purchases, etc.
[0152] Step S904, using the trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future;
[0153] Since user behavior is time-series, in order to better process the acquired behavior data, in an optional embodiment, a time series model can be used to process it. The time series model in the above steps can be a neural network model such as RNN, LSTM, TCN, etc. that can process time series sequences, but is not limited to this. In the embodiments of the present application, TCN is used as an example for illustration.
[0154] Since churned users and active users can be converted to each other, that is, users can become active users again after a period of churn, the processing results obtained by processing the behavior data through the time series model can indicate whether the user will churn in the future. The specific time period length can be determined by the time window length of the historical behavior data used in the time series model training process.
[0155] Step S906, determining target push information based on the processing result;
[0156] The target push information in the above steps may be various information recommended to buyers, for example, it may be discount information, product information and merchant information.
[0157] Step S908: Push the target push information to the target terminal corresponding to the target object.
[0158] The target terminal in the above steps may be the buyer's smart phone (including Android phone, IOS phone), tablet computer, PDA, IPAD, notebook computer, personal computer and other mobile terminals, but is not limited thereto.
[0159] In e-commerce shopping scenarios, buyers usually purchase goods based on their preferences. If they do not find goods that meet their preferences, the buyer may churn. In order to retain them, in an optional embodiment, for the target object, the probability of churn can be predicted in real time or regularly using a trained time series model. Furthermore, after predicting that the buyer is about to churn, target push information that meets the buyer's preferences can be pushed to the buyer to stimulate the buyer's desire to buy, thereby increasing the probability of retaining the buyer.
[0160] In the above-mentioned embodiment of the present application, determining the target push information based on the processing result includes: determining the preference data of the target object based on the processing result; and determining the target push information based on the preference data.
[0161] The preference data in the above steps may be the buyer's preferred choices when purchasing goods, for example, the buyer's preferences for product type, product quality, product cost performance, store discounts, store service attitude, and store delivery speed.
[0162] For different preference data, targeted push information that meets user preferences can be pushed. For example, for preference on product cost-effectiveness, various coupons, discount activities and other preferential information can be pushed; for preference on product type, information on the same or similar types of products and stores can be pushed; for preference on product quality, information on the same or similar products and stores with higher quality can be pushed.
[0163] In an optional embodiment, after predicting that the buyer is about to churn, the buyer's preference for purchasing goods can be determined by analyzing the buyer's behavior data, and targeted push information that meets the buyer's preference can be further pushed to the buyer.
[0164] In the above embodiment of the present application, before using the trained time series model to process the behavior data, the method also includes: processing multiple target behavior sequences to obtain processed behavior data, wherein the dimensions of the multiple target behavior sequences contained in the processed behavior data are the same; and processing the processed behavior data using the trained time series model to obtain a processing result.
[0165] In the above embodiment of the present application, multiple target behavior sequences are processed to obtain processed behavior data including: according to a preset time window and a preset time granularity, multiple target behavior sequences are quantized to obtain multiple first behavior sequences; multiple first behavior sequences are processed to obtain multiple second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; multiple second behavior sequences are processed to obtain processed behavior data, wherein the element values in the multiple target behavior sequences included in the processed behavior data are of the same order of magnitude.
[0166] In the above embodiment of the present application, multiple first behavior sequences are processed to obtain multiple second behavior sequences, including: modifying the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; and adding Gaussian white noise to each modified first behavior sequence to obtain each second sequence.
[0167] In the above embodiment of the present application, the method also includes: obtaining training data, wherein the training data includes: multiple historical behavior sequences of different types, and corresponding labels, the labels are used to characterize whether the target object interacts with a preset terminal after the multiple historical behavior data are generated in a preset time period; processing the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences contained in the processed training data are the same; training the time series model based on the processed training data to obtain a trained time series model.
[0168] In the above embodiments of the present application, after training the time series model based on the processed training data to obtain the trained time series model, the method also includes: updating the training data to obtain updated training data; training the time series model based on the updated training data to obtain the trained time series model.
[0169] In the above embodiments of the present application, updating the training data includes at least one of the following: updating the training data according to a preset period; and updating the training data based on the update instruction after receiving the update instruction.
[0170] It should be noted that the preferred implementation methods involved in the above embodiments of the present application are the same as the solutions, application scenarios, and implementation processes provided in Example 1, but are not limited to the solutions provided in Example 1.
[0171] Example 5
[0172] According to an embodiment of the present application, an information push method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0173] The method provided in this embodiment is mainly aimed at stores (sellers) in e-commerce shopping scenarios. By predicting the probability of loss of all buyers in the store, improvement suggestions can be pushed based on the buyers' behavior data, so that the store can improve the product category, quality, cost-effectiveness, etc. based on the improvement suggestions.
[0174] Fig.10 FIG. 1 is a flow chart of another information push method according to an embodiment of the present application. Fig.10 As shown, the method may include the following steps:
[0175] Step S1002, obtaining behavior data of at least one object, wherein the behavior data includes: a plurality of target behavior sequences of different types, and the behavior data is data generated after the object interacts with a preset terminal;
[0176] The objects in the above steps may be buyers who purchase goods in the same store in an e-commerce shopping scenario, for example, VIP members of the same store in an e-commerce shopping platform. Since there may be a large number of VIP members in the store, at least one object may be a buyer that is pre-set by the seller and needs to be retained to avoid loss.
[0177] The preset terminal in the above steps can be a server that provides network services to buyers in an e-commerce shopping scenario. Buyers can interact with the server through the client, and corresponding behavior data can be generated during the business interaction process. For example, in an e-commerce shopping scenario, behavior data may include clicks, browsing, collections, purchases, etc.
[0178] Step S1004, using the trained time series model to process the behavior data of each object to obtain a processing result corresponding to each object, wherein the processing result is used to characterize the probability that each object does not interact with the preset terminal within a period of time in the future;
[0179] Since user behavior is time-series, in order to better process the acquired behavior data, in an optional embodiment, a time series model can be used to process it. The time series model in the above steps can be a neural network model such as RNN, LSTM, TCN, etc. that can process time series sequences, but is not limited to this. In the embodiments of the present application, TCN is used as an example for illustration.
[0180] Since churned users and active users can be converted to each other, that is, users can become active users again after a period of churn, the processing results obtained by processing the behavior data through the time series model can indicate whether the user will churn in the future. The specific time period length can be determined by the time window length of the historical behavior data used in the time series model training process.
[0181] Step S1006, determining target push information based on the processing result and behavior data corresponding to at least one object, wherein the target push information is used to modify product information of at least one product;
[0182] The target push information in the above step may be improvement suggestions recommended to the seller, for example, suggestions on product category, quality, cost performance, etc. The at least one product may be all products in the store.
[0183] Step S1008: Push target push information to the target terminal.
[0184] The target terminal in the above steps can be a seller's smart phone (including Android phone, IOS phone), tablet computer, PDA, IPAD, laptop computer, personal computer and other mobile terminals, but is not limited to these.
[0185] In e-commerce shopping scenarios, buyers usually purchase goods based on their preferences. If they do not find goods that meet their preferences, the buyer may leave. In order to retain buyers in the store, in an optional embodiment, for at least one buyer in the store, the probability of loss can be predicted in real time or regularly using a trained time series model. Furthermore, after predicting that more than one buyer is about to leave, the reasons for the loss of most buyers can be analyzed based on the behavioral data of the buyers who are about to leave, and improvement suggestions can be recommended to the sellers so that the goods in the store meet the preferences of most buyers, which can stimulate the buyers' desire to buy, thereby increasing the probability of retaining buyers.
[0186] For example, if most buyers leave because of the low cost-effectiveness of the goods, you can recommend to the sellers improvement information such as changing the price of the goods to increase the cost-effectiveness of the goods; if most buyers leave because they are dissatisfied with the product type or quality, you can recommend to the sellers to improve the quality of the goods and increase the types of goods that meet the preferences of most buyers; if most buyers leave because they are dissatisfied with the store's discounts, service attitude or delivery speed, you can recommend corresponding improvement suggestions to the sellers.
[0187] In the above embodiment of the present application, before using the trained time series model to process the behavior data, the method also includes: processing multiple target behavior sequences to obtain processed behavior data, wherein the dimensions of the multiple target behavior sequences contained in the processed behavior data are the same; and processing the processed behavior data using the trained time series model to obtain a processing result.
[0188] In the above embodiment of the present application, multiple target behavior sequences are processed to obtain processed behavior data including: according to a preset time window and a preset time granularity, multiple target behavior sequences are quantized to obtain multiple first behavior sequences; multiple first behavior sequences are processed to obtain multiple second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; multiple second behavior sequences are processed to obtain processed behavior data, wherein the element values in the multiple target behavior sequences included in the processed behavior data are of the same order of magnitude.
[0189] In the above embodiment of the present application, multiple first behavior sequences are processed to obtain multiple second behavior sequences, including: modifying the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; and adding Gaussian white noise to each modified first behavior sequence to obtain each second sequence.
[0190] In the above embodiment of the present application, the method also includes: obtaining training data, wherein the training data includes: multiple historical behavior sequences of different types, and corresponding labels, the labels are used to characterize whether the target object interacts with a preset terminal after the multiple historical behavior data are generated in a preset time period; processing the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences contained in the processed training data are the same; training the time series model based on the processed training data to obtain a trained time series model.
[0191] In the above embodiments of the present application, after training the time series model based on the processed training data to obtain the trained time series model, the method also includes: updating the training data to obtain updated training data; training the time series model based on the updated training data to obtain the trained time series model.
[0192] In the above embodiments of the present application, updating the training data includes at least one of the following: updating the training data according to a preset period; and updating the training data based on the update instruction after receiving the update instruction.
[0193] It should be noted that the preferred implementation methods involved in the above embodiments of the present application are the same as the solutions, application scenarios, and implementation processes provided in Example 1, but are not limited to the solutions provided in Example 1.
[0194] Example 6
[0195] According to an embodiment of the present application, a behavior data processing device for implementing the above-mentioned behavior data processing method is also provided. Fig.11 As shown, the device 1100 includes: a first acquisition module 1102 , a first processing module 1104 and an output module 1106 .
[0196] Among them, the first acquisition module 1102 is used to obtain the behavior data of the target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is the data generated after the target object interacts with the preset terminal; the first processing module 1104 is used to use the trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal in a future period of time; the output module 1106 is used to output the processing result.
[0197] It should be noted that the first acquisition module 1102, the first processing module 1104 and the output module 1106 correspond to steps S302 to S306 in Example 1, and the three modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the above-mentioned modules, as part of the device, can be run in the computer terminal 10 provided in Example 1.
[0198] In the above embodiment of the present application, the device also includes: a second processing module, used to process multiple target behavior sequences to obtain processed behavior data, wherein the dimensions of the multiple target behavior sequences contained in the processed behavior data are the same; the first processing module is also used to process the processed behavior data using a trained time series model to obtain a processing result.
[0199] In the above-mentioned embodiment of the present application, the second processing module includes: a first processing unit, used to perform quantization processing on multiple target behavior sequences according to a preset time window and a preset time granularity to obtain multiple first behavior sequences; a second processing unit, used to process the multiple first behavior sequences to obtain multiple second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; a third processing unit, used to process the multiple second behavior sequences to obtain processed behavior data, wherein the element values in the multiple target behavior sequences contained in the processed behavior data are of the same order of magnitude.
[0200] In the above embodiment of the present application, the second processing unit includes: a modification subunit, used to modify the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; an adding subunit, used to add Gaussian white noise to each modified first behavior sequence to obtain each second sequence.
[0201] In the above embodiment of the present application, the device also includes: a second acquisition module, used to acquire training data, wherein the training data includes: multiple historical behavior sequences of different types, and corresponding labels, and the labels are used to characterize whether the target object interacts with a preset terminal after the multiple historical behavior data are generated in a preset time period; the second processing module is also used to process the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences contained in the processed training data are the same; the training module is used to train the time series model based on the processed training data to obtain a trained time series model.
[0202] In the above embodiments of the present application, the device also includes: an updating module, which is used to update the training data to obtain updated training data; the training module is also used to train the time series model based on the updated training data to obtain a trained time series model.
[0203] In the above embodiments of the present application, the updating module is used to update the training data according to a preset period; and / or after receiving an update instruction, update the training data based on the update instruction.
[0204] Example 7
[0205] According to an embodiment of the present application, a behavior data processing device for implementing the above behavior data processing method is also provided, and the device can be set in a preset terminal. Fig.12 As shown, the device 1200 includes: a trigger module 1202 , an acquisition module 1204 , a communication module 1206 and an output module 1208 .
[0206] Among them, the trigger module 1202 is used to trigger the preset terminal to generate a processing instruction; the acquisition module 1204 is used to obtain the identification information of the target object based on the processing instruction; the communication module 1206 is used to send the identification information to the server and receive the processing result returned by the server, wherein the processing result is obtained by processing the behavior data of the target object using the trained time series model, the behavior data is obtained based on the identification information, and the behavior data is the data generated after the target object interacts with the preset terminal. The processing result is used to characterize the probability that the target object will not interact with the preset terminal in a period of time in the future; the output module 1208 is used to output the processing result.
[0207] It should be noted that the trigger module 1202, acquisition module 1204, communication module 1206 and output module 1208 correspond to steps S602 to S608 in Example 2, and the four modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 2. It should be noted that the above-mentioned modules, as part of the device, can be run in the computer terminal 10 provided in Example 1.
[0208] In the above embodiment of the present application, the device also includes: a determination module, used to determine the target push information corresponding to the target object based on the processing result; and a push module, used to push the target push information to the target terminal corresponding to the target object.
[0209] In the above embodiment of the present application, the determination module includes: a first determination unit, used to determine the target probability interval to which the probability belongs; a push unit, used to obtain push information corresponding to the target probability interval to obtain target push information.
[0210] In the above embodiment of the present application, when there are multiple target objects, the determination module includes: a statistical unit for counting the processing results corresponding to the multiple target objects; and a second determination unit for determining the target push information based on the statistical results.
[0211] In the above embodiments of the present application, the processing results are obtained by processing the processed behavior data using a trained time series model, and the processed behavior data are obtained by processing multiple target behavior sequences, wherein the dimensions of the multiple target behavior sequences contained in the processed behavior data are the same.
[0212] In the above embodiments of the present application, the processed behavior data is obtained by processing multiple target behavior sequences in the following manner: quantizing the multiple target behavior sequences according to a preset time window and a preset time granularity to obtain multiple first behavior sequences; processing the multiple first behavior sequences to obtain multiple second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; processing the multiple second behavior sequences to obtain processed behavior data, wherein the element values in the multiple target behavior sequences contained in the processed behavior data are of the same order of magnitude.
[0213] In the above embodiments of the present application, multiple second behavior sequences are obtained by processing multiple first behavior sequences in the following manner: modifying the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; and adding Gaussian white noise to each modified first behavior sequence to obtain each second sequence.
[0214] In the above embodiments of the present application, the trained time series model is trained in the following manner: obtaining training data, wherein the training data includes: multiple historical behavior sequences of different types, and corresponding labels, and the labels are used to characterize whether the target object interacts with a preset terminal after the multiple historical behavior data are generated in a preset time period; processing the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences included in the processed training data are the same; training the time series model based on the processed training data to obtain a trained time series model.
[0215] In the above embodiments of the present application, the trained time series model is updated in the following manner: the training data is updated to obtain updated training data; and the time series model is trained based on the updated training data to obtain a trained time series model.
[0216] In the above embodiments of the present application, the training data is updated in at least one of the following ways: updating the training data according to a preset period; and updating the training data based on the update instruction after receiving the update instruction.
[0217] Example 8
[0218] According to an embodiment of the present application, a behavior data processing device for implementing the above behavior data processing method is also provided, and the device can be set in a server. Fig.13 As shown, the device 1300 includes: a receiving module 1302 , a first obtaining module 1304 , a first processing module 1306 and a sending module 1308 .
[0219] Among them, the receiving module 1302 is used to receive the identification information of the target object sent by the preset terminal; the first acquisition module 1304 is used to obtain the behavior data of the target object based on the identification information, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is the data generated after the target object interacts with the preset terminal; the first processing module 1306 is used to use the trained time series model to process the behavior data to obtain the processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal in a period of time in the future; the sending module 1308 is used to send the processing result to the preset terminal.
[0220] It should be noted that the above-mentioned receiving module 1302, first acquisition module 1304, first processing module 1306 and sending module 1308 correspond to steps S802 to S808 in Example 3, and the examples and application scenarios implemented by the four modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned Example 3. It should be noted that the above-mentioned modules as part of the device can be run in the computer terminal 10 provided in Example 1.
[0221] In the above embodiment of the present application, the device also includes: a second processing module, used to process multiple target behavior sequences to obtain processed behavior data, wherein the dimensions of the multiple target behavior sequences contained in the processed behavior data are the same; the first processing module is also used to process the processed behavior data using a trained time series model to obtain a processing result.
[0222] In the above-mentioned embodiment of the present application, the second processing module includes: a first processing unit, used to perform quantization processing on multiple target behavior sequences according to a preset time window and a preset time granularity to obtain multiple first behavior sequences; a second processing unit, used to process the multiple first behavior sequences to obtain multiple second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; a third processing unit, used to process the multiple second behavior sequences to obtain processed behavior data, wherein the element values in the multiple target behavior sequences contained in the processed behavior data are of the same order of magnitude.
[0223] In the above embodiment of the present application, the second processing unit includes: a modification subunit, used to modify the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; an adding subunit, used to add Gaussian white noise to each modified first behavior sequence to obtain each second sequence.
[0224] In the above embodiment of the present application, the device also includes: a second acquisition module, used to acquire training data, wherein the training data includes: multiple historical behavior sequences of different types, and corresponding labels, and the labels are used to characterize whether the target object interacts with a preset terminal after the multiple historical behavior data are generated in a preset time period; the second processing module is also used to process the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences contained in the processed training data are the same; the training module is used to train the time series model based on the processed training data to obtain a trained time series model.
[0225] In the above embodiments of the present application, the device also includes: an updating module, which is used to update the training data to obtain updated training data; the training module is also used to train the time series model based on the updated training data to obtain a trained time series model.
[0226] In the above embodiments of the present application, the updating module is used to update the training data according to a preset period; and / or after receiving an update instruction, update the training data based on the update instruction.
[0227] Example 9
[0228] According to an embodiment of the present application, there is also provided an information push device for implementing the above information push method, which can be arranged in a server. Fig.14 As shown, the device 1400 includes: a first acquisition module 1402 , a first processing module 1404 , a determination module 1406 and a push module 1408 .
[0229] Among them, the first acquisition module 1402 is used to obtain the behavior data of the target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is the data generated after the target object interacts with the preset terminal; the first processing module 1404 is used to process the behavior data using the trained time series model to obtain a processing result, wherein the processing result is used to characterize the probability that the target object has not interacted with the preset terminal in a future period of time; the determination module 1406 is used to determine the target push information based on the processing result; the push module 1408 is used to push the target push information to the target terminal corresponding to the target object.
[0230] It should be noted that the first acquisition module 1402, the first processing module 1404, the determination module 1406 and the push module 1408 correspond to steps S902 to S908 in Example 4, and the four modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 4. It should be noted that the above-mentioned modules, as part of the device, can be run in the computer terminal 10 provided in Example 1.
[0231] In the above embodiment of the present application, the determination module includes: a first determination unit, used to determine the preference data of the target object based on the processing result; and a second determination unit, used to determine the target push information based on the preference data.
[0232] In the above embodiment of the present application, the device also includes: a second processing module, used to process multiple target behavior sequences to obtain processed behavior data, wherein the dimensions of the multiple target behavior sequences contained in the processed behavior data are the same; the first processing module is also used to process the processed behavior data using a trained time series model to obtain a processing result.
[0233] In the above-mentioned embodiment of the present application, the second processing module includes: a first processing unit, used to perform quantization processing on multiple target behavior sequences according to a preset time window and a preset time granularity to obtain multiple first behavior sequences; a second processing unit, used to process the multiple first behavior sequences to obtain multiple second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; a third processing unit, used to process the multiple second behavior sequences to obtain processed behavior data, wherein the element values in the multiple target behavior sequences contained in the processed behavior data are of the same order of magnitude.
[0234] In the above embodiment of the present application, the second processing unit includes: a modification subunit, used to modify the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; an adding subunit, used to add Gaussian white noise to each modified first behavior sequence to obtain each second sequence.
[0235] In the above embodiment of the present application, the device also includes: a second acquisition module, used to acquire training data, wherein the training data includes: multiple historical behavior sequences of different types, and corresponding labels, and the labels are used to characterize whether the target object interacts with a preset terminal after the multiple historical behavior data are generated in a preset time period; the second processing module is also used to process the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences contained in the processed training data are the same; the training module is used to train the time series model based on the processed training data to obtain a trained time series model.
[0236] In the above embodiments of the present application, the device also includes: an updating module, which is used to update the training data to obtain updated training data; the training module is also used to train the time series model based on the updated training data to obtain a trained time series model.
[0237] In the above embodiments of the present application, the updating module is used to update the training data according to a preset period; and / or after receiving an update instruction, update the training data based on the update instruction.
[0238] Example 10
[0239] According to an embodiment of the present application, there is also provided an information push device for implementing the above information push method, which can be arranged in a server. Fig.15 As shown, the device 1500 includes: a first acquisition module 1502 , a first processing module 1504 , a determination module 1506 and a push module 1508 .
[0240] Among them, the first acquisition module 1502 is used to obtain the behavior data of at least one object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is the data generated after the object interacts with the preset terminal; the first processing module 1504 is used to use the trained time series model to process the behavior data of each object to obtain the processing result corresponding to each object, wherein the processing result is used to characterize the probability that each object has not interacted with the preset terminal in the future period of time; the determination module 1506 is used to determine the target push information based on the processing result and behavior data corresponding to at least one object, wherein the target push information is used to modify the product information of at least one product; the push module 1508 is used to push the target push information to the target terminal.
[0241] It should be noted that the first acquisition module 1502, the first processing module 1504, the determination module 1506 and the push module 1508 correspond to steps S1002 to S1008 in Example 5, and the four modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 5. It should be noted that the above-mentioned modules, as part of the device, can be run in the computer terminal 10 provided in Example 1.
[0242] In the above embodiment of the present application, the device also includes: a second processing module, used to process multiple target behavior sequences to obtain processed behavior data, wherein the dimensions of the multiple target behavior sequences contained in the processed behavior data are the same; the first processing module is also used to process the processed behavior data using a trained time series model to obtain a processing result.
[0243] In the above-mentioned embodiment of the present application, the second processing module includes: a first processing unit, used to perform quantization processing on multiple target behavior sequences according to a preset time window and a preset time granularity to obtain multiple first behavior sequences; a second processing unit, used to process the multiple first behavior sequences to obtain multiple second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; a third processing unit, used to process the multiple second behavior sequences to obtain processed behavior data, wherein the element values in the multiple target behavior sequences contained in the processed behavior data are of the same order of magnitude.
[0244] In the above embodiment of the present application, the second processing unit includes: a modification subunit, used to modify the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; an adding subunit, used to add Gaussian white noise to each modified first behavior sequence to obtain each second sequence.
[0245] In the above embodiment of the present application, the device also includes: a second acquisition module, used to acquire training data, wherein the training data includes: multiple historical behavior sequences of different types, and corresponding labels, and the labels are used to characterize whether the target object interacts with a preset terminal after the multiple historical behavior data are generated in a preset time period; the second processing module is also used to process the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences contained in the processed training data are the same; the training module is used to train the time series model based on the processed training data to obtain a trained time series model.
[0246] In the above embodiments of the present application, the device also includes: an updating module, which is used to update the training data to obtain updated training data; the training module is also used to train the time series model based on the updated training data to obtain a trained time series model.
[0247] In the above embodiments of the present application, the updating module is used to update the training data according to a preset period; and / or after receiving an update instruction, update the training data based on the update instruction.
[0248] Embodiment 11
[0249] According to an embodiment of the present application, a behavior data processing system is also provided, including:
[0250] processor;
[0251] and a memory connected to the processor, for providing the processor with instructions for processing the following processing steps: obtaining behavior data of the target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is data generated after the target object interacts with a preset terminal; using a trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future; and outputting the processing result.
[0252] It should be noted that the preferred implementation methods involved in the above embodiments of the present application are the same as the solutions, application scenarios, and implementation processes provided in Example 1, but are not limited to the solutions provided in Example 1.
[0253] Example 12
[0254] The embodiment of the present application may provide a computer terminal, which may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced by a terminal device such as a mobile terminal.
[0255] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
[0256] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the vulnerability detection method of the application: obtaining the behavior data of the target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is the data generated after the target object interacts with the preset terminal; using the trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal in a future period of time; outputting the processing result.
[0257] Optionally, Fig.16 is a structural block diagram of a computer terminal according to an embodiment of the present application. Fig.16 As shown, the computer terminal A may include: one or more (only one is shown in the figure) processors 1602 and a memory 1604.
[0258] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for processing behavioral data in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method for processing behavioral data. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal A via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0259] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: obtain the behavior data of the target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is the data generated after the target object interacts with the preset terminal; use the trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal in a future period of time; output the processing result.
[0260] Optionally, the processor may also execute the program code of the following steps: before processing the behavior data using the trained time series model, processing multiple target behavior sequences to obtain processed behavior data, wherein the dimensions of the multiple target behavior sequences contained in the processed behavior data are the same; processing the processed behavior data using the trained time series model to obtain a processing result.
[0261] Optionally, the processor may also execute program codes for the following steps: quantizing a plurality of target behavior sequences according to a preset time window and a preset time granularity to obtain a plurality of first behavior sequences; processing a plurality of first behavior sequences to obtain a plurality of second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; processing a plurality of second behavior sequences to obtain processed behavior data, wherein the element values in the plurality of target behavior sequences contained in the processed behavior data are of the same order of magnitude.
[0262] Optionally, the processor may also execute program code for the following steps: modifying the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; and adding Gaussian white noise to each modified first behavior sequence to obtain each second sequence.
[0263] Optionally, the processor may also execute the program code of the following steps: obtaining training data, wherein the training data includes: multiple historical behavior sequences of different types, and corresponding labels, the labels being used to characterize whether the target object interacts with a preset terminal after the multiple historical behavior data are generated within a preset time period; processing the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences contained in the processed training data are the same; and training the time series model based on the processed training data to obtain a trained time series model.
[0264] Optionally, the processor may also execute the following program code: after training the timing model based on the processed training data to obtain the trained timing model, the training data is updated to obtain updated training data; and the timing model is trained based on the updated training data to obtain the trained timing model.
[0265] Optionally, the processor may also execute program codes of the following steps: updating the training data according to a preset period; and / or updating the training data based on the update instruction after receiving the update instruction.
[0266] By using the embodiment of the present application, a solution for processing behavioral data is provided. By using a trained time series model to process the behavioral data, a processing result is obtained, and the purpose of predicting user churn based on the user's behavioral data is achieved. The time series model can receive input data of different time lengths and different numbers of behavioral dimensions. It does not need to perform feature analysis and feature selection, and can directly perform model training and prediction, avoiding a large amount of complicated feature engineering work. At the same time, only user behavior data is needed in different business scenarios to perform end-to-end user churn prediction, thereby reducing the workload, reducing the difficulty of deployment, and improving adaptability. The technical problem of low processing efficiency and high cost in the related technology processing method of behavioral data is solved by manually determining user characteristics.
[0267] The processor can call the information and application programs stored in the memory through the transmission device to execute the following steps: trigger the preset terminal to generate processing instructions; obtain the identification information of the target object based on the processing instructions; send the identification information to the server, and receive the processing results returned by the server, wherein the processing results are obtained by processing the behavior data of the target object using the trained time series model, the behavior data is obtained based on the identification information, and the behavior data is the data generated after the target object interacts with the preset terminal. The processing results are used to characterize the probability that the target object will not interact with the preset terminal in the future; and output the processing results.
[0268] Optionally, the processor may also execute the following program code: after receiving the processing result returned by the server, determine the target push information corresponding to the target object based on the processing result; and push the target push information to the target terminal corresponding to the target object.
[0269] Optionally, the processor may also execute program codes of the following steps: determining a target probability interval to which the probability belongs; obtaining push information corresponding to the target probability interval, and obtaining target push information.
[0270] Optionally, the processor may also execute program codes of the following steps: when there are multiple target objects, collecting statistics on processing results corresponding to the multiple target objects; and determining target push information based on the statistical results.
[0271] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: receive the identification information of the target object sent by the preset terminal; based on the identification information, obtain the behavior data of the target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is the data generated after the target object interacts with the preset terminal; use the trained time series model to process the behavior data to obtain the processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal in a future period of time; send the processing result to the preset terminal.
[0272] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the behavior data of the target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is the data generated after the target object interacts with the preset terminal; use the trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal in a future period of time; based on the processing result, determine the target push information; push the target push information to the target terminal corresponding to the target object.
[0273] Optionally, the processor may also execute program codes of the following steps: determining preference data of the target object based on the processing result; and determining target push information based on the preference data.
[0274] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: obtain the behavior data of at least one object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is the data generated after the object interacts with the preset terminal; use the trained time series model to process the behavior data of each object to obtain the processing result corresponding to each object, wherein the processing result is used to characterize the probability that each object has not interacted with the preset terminal in the future; based on the processing result and behavior data corresponding to at least one object, determine the target push information, wherein the target push information is used to modify the product information of at least one product; push the target push information to the target terminal.
[0275] It can be understood by those skilled in the art that Fig.16 The structure shown is for illustration only, and the computer terminal may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Fig.16 It does not limit the structure of the above electronic device. For example, the computer terminal A may also include Fig.16 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Fig.16 Different configurations are shown.
[0276] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0277] Embodiment 13
[0278] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the behavior data processing method provided in the first embodiment.
[0279] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0280] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: obtaining behavior data of the target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is data generated after the target object interacts with a preset terminal; using a trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal in a future period of time; and outputting the processing result.
[0281] Optionally, the storage medium is also configured to store program codes for executing the following steps: before processing the behavior data using a trained time series model, processing multiple target behavior sequences to obtain processed behavior data, wherein the dimensions of the multiple target behavior sequences contained in the processed behavior data are the same; processing the processed behavior data using the trained time series model to obtain a processing result.
[0282] Optionally, the storage medium is also configured to store program codes for executing the following steps: quantizing a plurality of target behavior sequences according to a preset time window and a preset time granularity to obtain a plurality of first behavior sequences; processing a plurality of first behavior sequences to obtain a plurality of second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; processing a plurality of second behavior sequences to obtain processed behavior data, wherein the element values in the plurality of target behavior sequences contained in the processed behavior data are of the same order of magnitude.
[0283] Optionally, the storage medium is also configured to store program codes for executing the following steps: modifying the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; and adding Gaussian white noise to each modified first behavior sequence to obtain each second sequence.
[0284] Optionally, the storage medium is also configured to store program code for executing the following steps: obtaining training data, wherein the training data includes: multiple historical behavior sequences of different types, and corresponding labels, the labels being used to characterize whether the target object interacts with a preset terminal after the multiple historical behavior data are generated within a preset time period; processing the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences contained in the processed training data are the same; and training the time series model based on the processed training data to obtain a trained time series model.
[0285] Optionally, the storage medium is also configured to store program codes for executing the following steps: after training the time series model based on the processed training data to obtain the trained time series model, updating the training data to obtain updated training data; training the time series model based on the updated training data to obtain the trained time series model.
[0286] Optionally, the storage medium is further configured to store program codes for executing the following steps: updating the training data according to a preset period; and / or updating the training data based on the update instruction after receiving the update instruction.
[0287] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: triggering a preset terminal to generate a processing instruction; obtaining identification information of the target object based on the processing instruction; sending the identification information to a server, and receiving a processing result returned by the server, wherein the processing result is obtained by processing the behavior data of the target object using a trained time series model, the behavior data is obtained based on the identification information, the behavior data is data generated after the target object interacts with the preset terminal, and the processing result is used to characterize the probability that the target object will not interact with the preset terminal in a future period of time; and outputting the processing result.
[0288] Optionally, the storage medium is also configured to store program codes for executing the following steps: after receiving the processing result returned by the server, determining the target push information corresponding to the target object based on the processing result; and pushing the target push information to the target terminal corresponding to the target object.
[0289] Optionally, the storage medium is further configured to store program codes for executing the following steps: determining a target probability interval to which the probability belongs; obtaining push information corresponding to the target probability interval, and obtaining target push information.
[0290] Optionally, the storage medium is further configured to store program codes for executing the following steps: when there are multiple target objects, performing statistics on processing results corresponding to the multiple target objects; and determining target push information based on the statistical results.
[0291] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: receiving identification information of the target object sent by a preset terminal; based on the identification information, obtaining behavior data of the target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is data generated after the target object interacts with the preset terminal; using a trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal in a future period of time; and sending the processing result to the preset terminal.
[0292] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: obtaining behavior data of the target object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is data generated after the target object interacts with a preset terminal; using a trained time series model to process the behavior data to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal in a future period of time; based on the processing result, determining the target push information; and pushing the target push information to the target terminal corresponding to the target object.
[0293] Optionally, the storage medium is further configured to store program codes for executing the following steps: determining preference data of the target object based on the processing result; and determining target push information based on the preference data.
[0294] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: obtaining behavior data of at least one object, wherein the behavior data includes: multiple target behavior sequences of different types, and the behavior data is data generated after the object interacts with a preset terminal; using a trained time series model to process the behavior data of each object to obtain a processing result corresponding to each object, wherein the processing result is used to characterize the probability that each object has not interacted with the preset terminal in a future period of time; based on the processing result and behavior data corresponding to at least one object, determining target push information, wherein the target push information is used to modify the product information of at least one product; and pushing the target push information to the target terminal.
[0295] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0296] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0297] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the 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 through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0298] 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.
[0299] In addition, each functional unit in each embodiment of the present application 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.
[0300] 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 application 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 to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0301] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for processing behavioral data, comprising: Acquire behavior data of the target object, wherein the behavior data includes: a plurality of target behavior sequences of different types, the behavior data is data generated after the target object interacts with a preset terminal, and the plurality of target behavior sequences of different types are generated through different interaction behaviors; Processing the behavior data using the trained time series model to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future, and the processing result is obtained by processing the processed behavior data using the trained time series model, and the processed behavior data is obtained by performing desparse processing on the multiple target behavior sequences; Outputting the processing result; The behavior data is processed using the trained time series model to obtain processing results, including: According to a preset time window and a preset time granularity, the plurality of target behavior sequences are quantized to obtain a plurality of first behavior sequences; Modifying the data in a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated, and the target time period is a behavior impact window of a single behavior; Adding Gaussian white noise to each modified first behavior sequence to obtain each second behavior sequence, wherein the sparsity of the second behavior sequence is lower than the sparsity of the first behavior sequence; Processing the plurality of second behavior sequences to obtain the processed behavior data; The trained time series model is used to process the processed behavior data to obtain the processing result.
2. The method according to claim 1, wherein: Before processing the behavior data using the trained time series model, the method further includes: Processing the multiple target behavior sequences to obtain processed behavior data, wherein the multiple target behavior sequences included in the processed behavior data have the same dimension; The trained time series model is used to process the processed behavior data to obtain the processing result.
3. The method according to claim 2, wherein: The plurality of target behavior sequences are processed to obtain the processed behavior data including: According to a preset time window and a preset time granularity, the plurality of target behavior sequences are quantized to obtain a plurality of first behavior sequences; Processing the plurality of first behavior sequences to obtain a plurality of second behavior sequences, wherein the sparsity of the second behavior sequences is lower than the sparsity of the first behavior sequences; The multiple second behavior sequences are processed to obtain the processed behavior data, wherein the element values in the multiple target behavior sequences included in the processed behavior data have the same order of magnitude.
4. The method according to claim 3, wherein: The plurality of first behavior sequences are processed to obtain a plurality of second behavior sequences, including: Modifying the data within a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated; Gaussian white noise is added to each modified first line sequence to obtain each second line sequence.
5. The method according to claim 1, wherein: The method further comprises: Acquire training data, wherein the training data includes: a plurality of historical behavior sequences of different types and corresponding labels, wherein the labels are used to indicate whether the target object interacts with the preset terminal after the plurality of historical behavior data are generated within a preset time period; Processing the training data to obtain processed training data, wherein the dimensions of the multiple historical behavior sequences included in the processed training data are the same; The time series model is trained based on the processed training data to obtain the trained time series model.
6. The method according to claim 5, wherein: After training the time series model based on the processed training data to obtain the trained time series model, the method further includes: Updating the training data to obtain updated training data; The time series model is trained based on the updated training data to obtain the trained time series model.
7. The method according to claim 6, wherein: Updating the training data includes at least one of the following: Updating the training data according to a preset period; After receiving the update instruction, the training data is updated based on the update instruction.
8. A method for processing behavioral data, comprising: Triggering the preset terminal to generate processing instructions; The preset terminal acquires identification information of the target object based on the processing instruction; The preset terminal sends the identification information to the server, and receives a processing result returned by the server, wherein the processing result is obtained by processing the behavior data of the target object using a trained time series model, the behavior data is obtained based on the identification information, the behavior data is data generated after the target object interacts with the preset terminal, and the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future, the behavior data includes: multiple target behavior sequences of different types, the multiple target behavior sequences of different types are generated by different interaction behaviors, the processing result is obtained by processing the processed behavior data using a trained time series model, and the processed behavior data is obtained by de-sparsely processing the multiple target behavior sequences; The preset terminal outputs the processing result; The server is further used to quantize the multiple target behavior sequences according to a preset time window and a preset time granularity to obtain multiple first behavior sequences; modify the data in a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated, and the target time period is a behavior impact window of a single behavior; add Gaussian white noise to each modified first behavior sequence to obtain each second behavior sequence, wherein the sparsity of the second behavior sequence is lower than the sparsity of the first behavior sequence; process multiple second behavior sequences to obtain the processed behavior data; and use the trained time series model to process the processed behavior data to obtain the processing result.
9. The method according to claim 8, wherein: After receiving the processing result returned by the server, the method further includes: The preset terminal determines the target push information corresponding to the target object based on the processing result; The preset terminal pushes the target push information to a target terminal corresponding to the target object.
10. The method according to claim 9, wherein: The preset terminal determines the target push information corresponding to the target object based on the processing result, including: The preset terminal determines a target probability interval to which the probability belongs; The preset terminal obtains the push information corresponding to the target probability interval to obtain the target push information.
11. The method according to claim 9, wherein: In the case that there are multiple target objects, the preset terminal determines the target push information corresponding to the target object based on the processing result, including: The preset terminal performs statistics on the processing results corresponding to the multiple target objects; The preset terminal determines the target push information based on the statistical result.
12. A method for processing behavioral data, comprising: The server receives identification information of the target object sent by the preset terminal; The server acquires the behavior data of the target object based on the identification information, wherein the behavior data includes: a plurality of target behavior sequences of different types, the behavior data being data generated after the target object interacts with the preset terminal, and the plurality of target behavior sequences of different types are generated through different interaction behaviors; The server processes the behavior data using the trained time series model to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future, and the processing result is obtained by processing the processed behavior data using the trained time series model, and the processed behavior data is obtained by performing desparse processing on the multiple target behavior sequences; The server sends the processing result to the preset terminal; The server is further used to quantize the multiple target behavior sequences according to a preset time window and a preset time granularity to obtain multiple first behavior sequences; modify the data in a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated, and the target time period is a behavior impact window of a single behavior; add Gaussian white noise to each modified first behavior sequence to obtain each second behavior sequence, wherein the sparsity of the second behavior sequence is lower than the sparsity of the first behavior sequence; process multiple second behavior sequences to obtain the processed behavior data; and use the trained time series model to process the processed behavior data to obtain the processing result.
13. An information push method, comprising: Acquire behavior data of the target object, wherein the behavior data includes: a plurality of target behavior sequences of different types, the behavior data is data generated after the target object interacts with a preset terminal, and the plurality of target behavior sequences of different types are generated through different interaction behaviors; Processing the behavior data using the trained time series model to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future, and the processing result is obtained by processing the processed behavior data using the trained time series model, and the processed behavior data is obtained by performing desparse processing on the multiple target behavior sequences; Based on the processing result, determining target push information; Pushing the target push information to the target terminal corresponding to the target object; The behavior data is processed using the trained time series model to obtain processing results, including: According to a preset time window and a preset time granularity, the plurality of target behavior sequences are quantized to obtain a plurality of first behavior sequences; Modifying the data in a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated, and the target time period is a behavior impact window of a single behavior; Adding Gaussian white noise to each modified first behavior sequence to obtain each second behavior sequence, wherein the sparsity of the second behavior sequence is lower than the sparsity of the first behavior sequence; Processing the plurality of second behavior sequences to obtain the processed behavior data; The trained time series model is used to process the processed behavior data to obtain the processing result.
14. The method according to claim 13, wherein: Based on the processing result, determining the target push information includes: Based on the processing result, determining preference data of the target object; Based on the preference data, the target push information is determined.
15. The method according to claim 13, wherein: The target push information includes at least one of the following: discount information, product information and merchant information.
16. An information push method, comprising: Acquire behavior data of at least one object, wherein the behavior data includes: a plurality of target behavior sequences of different types, the behavior data is data generated after the object interacts with a preset terminal, and the plurality of target behavior sequences of different types are generated through different interaction behaviors; Using the trained time series model to process the behavior data of each object, obtaining a processing result corresponding to each object, wherein the processing result is used to characterize the probability that each object does not interact with the preset terminal within a period of time in the future, and the processing result is obtained by processing the processed behavior data using the trained time series model, and the processed behavior data is obtained by performing desparse processing on the multiple target behavior sequences; Determine target push information based on the processing result and behavior data corresponding to the at least one object, wherein the target push information is used to modify product information of at least one product; Pushing the target push information to the target terminal; The behavior data of each object is processed using the trained time series model to obtain the processing result corresponding to each object, including: According to a preset time window and a preset time granularity, the plurality of target behavior sequences are quantized to obtain a plurality of first behavior sequences; Modifying the data in a target time period in each first behavior sequence, wherein the target time period is a preset time period after the corresponding historical behavior data is generated, and the target time period is a behavior impact window of a single behavior; Adding Gaussian white noise to each modified first behavior sequence to obtain each second behavior sequence, wherein the sparsity of the second behavior sequence is lower than the sparsity of the first behavior sequence; Processing the plurality of second behavior sequences to obtain the processed behavior data; The processed behavior data is processed using the trained time series model to obtain a processing result corresponding to each object.
17. The method according to claim 16, wherein: The product information includes at least one of the following: type, quality and price.
18. A storage medium comprising a stored program, wherein: When the program is running, the device where the storage medium is located is controlled to execute the behavior data processing method described in any one of claims 1 to 12, or the information pushing method described in any one of claims 13 to 17.
19. A processor for running a program, wherein: When the program is running, the behavior data processing method described in any one of claims 1 to 12, or the information pushing method described in any one of claims 13 to 17 is executed.
20. A system for processing behavioral data, comprising: processor; as well as A memory, connected to the processor, for providing the processor with instructions for processing the following processing steps: obtaining behavior data of a target object, wherein the behavior data includes: a plurality of target behavior sequences of different types, and the behavior data is data generated after the target object interacts with a preset terminal; processing the behavior data using a trained time series model to obtain a processing result, wherein the processing result is used to characterize the probability that the target object does not interact with the preset terminal within a period of time in the future; and outputting the processing result, wherein the plurality of target behavior sequences of different types are generated through different interaction behaviors, and the processing result is obtained by processing the processed behavior data using a trained time series model, and the processed behavior data is obtained by de-sparsely processing the plurality of target behavior sequences; Among them, the behavior data is processed using a trained time series model to obtain a processing result, including: according to a preset time window and a preset time granularity, the multiple target behavior sequences are quantized to obtain multiple first behavior sequences; the data in a target time period in each first behavior sequence is modified, wherein the target time period is a preset time period after the corresponding historical behavior data is generated, and the target time period is a behavior impact window of a single behavior; Gaussian white noise is added to each modified first behavior sequence to obtain each second behavior sequence, wherein the sparsity of the second behavior sequence is lower than the sparsity of the first behavior sequence; multiple second behavior sequences are processed to obtain the processed behavior data; the processed behavior data is processed using the trained time series model to obtain the processing result.
