A data processing method, device, equipment and computer readable storage medium

By evaluating the usage probability of the pre-pull request of the terminal device, solving the pre-pull request of the terminal device from the pre-recommended content pool or generating content in real time solves the problem of waste of computing resources and low utilization rate, and improves the efficiency and quality of content recommendation. .

CN118427449BActive Publication Date: 2024-10-11TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410897362.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-11
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

In the existing technology, pre-pull requests initiated by terminal devices before users consume content result in a waste of computing resources, and the utilization rate of online recommended content is low because not all pre-pull requests will be used by users.

Method used

By obtaining the pre-pull request sent by the terminal device, its usage probability is evaluated. If it is lower than the threshold, a pre-pulled content list is generated from the pre-recommended content pool; if it is higher than or equal to the threshold, an online recommended content collection is generated in real time as Pre-fetch content.

Benefits of technology

It reduces the consumption of computing resources, improves the usage rate and recommendation quality of online recommended content, and optimizes the efficiency of content recommendation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118427449B_ABST
    Figure CN118427449B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a data processing method, device, equipment and computer-readable storage medium, the method comprising: obtaining a first pre-pull usage probability corresponding to a terminal device according to a pre-pull request; the first pre-pull usage probability is used to indicate the probability of a target object interacting with the content provided by the pre-pull function; if the first pre-pull usage probability is less than an online recommendation threshold, generating a pre-pull content list through a pre-recommended content pool; the generation timestamp of the pre-recommended content pool is earlier than the generation timestamp of the pre-pull request; if the first pre-pull usage probability is equal to or greater than the online recommendation threshold, generating an online recommended content set, generating a pre-pull content list according to the online recommended content set; the generation timestamp of the online recommended content set is later than the generation timestamp of the pre-pull request. By adopting the present application, not only can computing resources be reduced, but also the utilization rate of online recommended content can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a data processing method, apparatus, device, and computer-readable storage medium. Background Art

[0002] With the continuous development of Internet technology, various applications have sprung up like mushrooms after a rain. People can watch rich content through various applications, such as browsing information, watching videos, and reading novels.

[0003] In order to achieve a high-quality experience of information flow (feed flow, also known as content flow), in the existing technology, the terminal device will initiate a pre-pull request before the user consumes the content, so that the application background can recommend online content based on the pre-pull request, and then the terminal device can preload the online content, that is, pre-pull the online content. However, pre-pull online content requires the execution of a complete recommendation process, which consumes a lot of computing resources. In addition, since the pre-pull request is initiated before the user browses the content, not every online recommended content corresponding to the pre-pull request will be used by the user, so there are a large number of useless pre-pull requests; obviously, the use of existing technology not only has a low utilization rate of online recommended content, but also causes a huge waste of computing resources to the application background. Summary of the invention

[0004] The embodiments of the present application provide a data processing method, apparatus, device, and computer-readable storage medium, which can not only reduce computing resources but also improve the utilization rate of online recommended content.

[0005] On the one hand, an embodiment of the present application provides a data processing method, including:

[0006] Obtaining a pre-pull request sent by a terminal device, and obtaining a first pre-pull usage probability corresponding to the terminal device according to the pre-pull request; the first pre-pull usage probability is used to indicate the probability of a target object corresponding to the terminal device interacting with the content provided by the pre-pull function; the pre-pull function is used to respond to the pre-pull request;

[0007] If the first pre-pull usage probability is less than the online recommendation threshold, a pre-pull content list provided by the pre-pull function is generated through a pre-recommended content pool for the terminal device; the generation timestamp of the pre-recommended content pool is earlier than the generation timestamp of the pre-pull request;

[0008] If the first pre-pull usage probability is equal to or greater than the online recommendation threshold, an online recommended content set is generated for the terminal device, and a pre-pull content list provided by the pre-pull function is generated based on the online recommended content set; the generation timestamp of the online recommended content set is later than the generation timestamp of the pre-pull request.

[0009] On the one hand, an embodiment of the present application provides a data processing device, including:

[0010] An acquisition module is used to acquire a pre-pull request sent by a terminal device, and acquire a first pre-pull usage probability corresponding to the terminal device according to the pre-pull request; the first pre-pull usage probability is used to indicate the probability of a target object corresponding to the terminal device interacting with the content provided by the pre-pull function; the pre-pull function is used to respond to the pre-pull request;

[0011] A generating module, configured to generate a pre-pull content list provided by the pre-pull function through a pre-recommended content pool for the terminal device if the first pre-pull usage probability is less than an online recommendation threshold; the generation timestamp of the pre-recommended content pool is earlier than the generation timestamp of the pre-pull request;

[0012] The generation module is also used to generate an online recommended content set for the terminal device if the first pre-pull usage probability is equal to or greater than the online recommendation threshold, and generate a pre-pull content list provided by the pre-pull function based on the online recommended content set; the generation timestamp of the online recommended content set is later than the generation timestamp of the pre-pull request.

[0013] In a possible implementation, the acquisition module acquires the pre-fetch request sent by the terminal device, and is used to perform the following operations:

[0014] Obtaining a pre-fetch request sent by a terminal device at a first moment;

[0015] Gets the module and is also used to perform the following operations:

[0016] Counting the number of application startups and pre-fetching usages of the terminal device in the first time period; the latest timestamp of the first time period is earlier than the first moment;

[0017] Determine a ratio between the number of application startups and the number of pre-pull usages, and determine a first pre-pull usage probability according to the ratio;

[0018] The first pre-fetching usage probability and the device identifier for indicating the terminal device are associated and stored in a database.

[0019] In a possible implementation, the acquisition module is further used to perform the following operations:

[0020] Determine the content types corresponding to the A pre-pulled contents in the pre-pulled content list; A is a positive integer;

[0021] According to the content types corresponding to the A pre-pulled contents, the A pre-pulled contents are scored respectively to obtain content scores corresponding to the A pre-pulled contents; wherein the content score of one pre-pulled content is obtained by scoring one pre-pulled content according to the content type corresponding to the one pre-pulled content;

[0022] The content scores corresponding to the A pre-pulled contents are summed to obtain a list score corresponding to the pre-pulled content list; the list score is used to determine the second pre-pulled usage probability corresponding to the second time period;

[0023] The list score and the device identification for indicating the terminal device are associated and stored in a database.

[0024] In a possible implementation, the acquisition module is further used to perform the following operations:

[0025] In the database, B historical pre-fetched content lists generated for the terminal device in a first time period are obtained; B is a positive integer; the first time period is earlier than the second time period, and the first time period is adjacent to the second time period;

[0026] In the database, obtain the history list scores corresponding to the B history pre-fetched content lists respectively, and sum the B history list scores to obtain a first score;

[0027] Determine C historical pre-pull content lists having output attributes from among the B historical pre-pull content lists; C is a natural number less than or equal to B;

[0028] A first pre-fetch usage probability is determined according to the first score and the C historical pre-fetch content lists.

[0029] In a possible implementation, the acquisition module determines the first pre-pull usage probability according to the first score and the C historical pre-pull content lists, and performs the following operations:

[0030] Sum the history list scores corresponding to the C history pre-fetched content lists to obtain a second score;

[0031] A score ratio between the first score and the second score is determined, and a first pre-pull usage probability is determined according to the score ratio.

[0032] In a possible implementation, the acquisition module is further used to perform the following operations:

[0033] Obtaining, in a database, D pre-pull usage probabilities of all terminal devices in a first time period; the all terminal devices include the terminal devices; the D pre-pull usage probabilities include the first pre-pull usage probability;

[0034] Sorting the D pre-pull usage probabilities to obtain sorted D pre-pull usage probabilities;

[0035] A pre-pull online recommendation quota corresponding to the system time is determined, and an online recommendation threshold is determined from the sorted D pre-pull usage probabilities according to the pre-pull online recommendation quota.

[0036] In a possible implementation, the acquisition module determines the pre-pulled online recommendation quota corresponding to the system time, and performs the following operations:

[0037] Determine the non-pre-pull online recommendation quota corresponding to the system time, perform difference processing on the total online recommendation quota with fixed attributes and the non-pre-pull online recommendation quota, and obtain the pre-pull online recommendation quota;

[0038] The acquisition module determines the online recommendation threshold value among the sorted D pre-pull usage probabilities according to the pre-pull online recommendation quota, and performs the following operations:

[0039] Among the sorted D pre-pull usage probabilities, obtain E pre-pull usage probabilities equal to the pre-pull online recommendation quota; E is a positive integer less than or equal to D;

[0040] The minimum pre-pull usage probability among the E pre-pull usage probabilities is determined as the online recommendation threshold.

[0041] In a possible implementation, the acquisition module is further used to perform the following operations:

[0042] Acquire a historical online recommended content set generated for the terminal device, and determine, in the historical online recommended content set, a first historical online recommended content having an output attribute;

[0043] adding a second historical online recommended content in the historical online recommended content set except the first historical online recommended content to the initial pre-recommended content pool; the second historical online recommended content has a to-be-output attribute;

[0044] A pre-recommended content pool is generated based on the initial pre-recommended content pool.

[0045] In a possible implementation, the generation module generates a pre-recommendation content pool according to the initial pre-recommendation content pool, and is used to perform the following operations:

[0046] During the first type of content output period, performing offline recommendation processing on the terminal device to obtain offline recommended content;

[0047] The offline recommended content is added to the initial pre-recommended content pool, and the initial pre-recommended content pool to which the offline recommended content is added is determined as the pre-recommended content pool.

[0048] In a possible implementation, the generation module generates a pre-pull content list provided by the pre-pull function through a pre-recommended content pool for the terminal device, and is used to perform the following operations:

[0049] In the pre-recommended content pool for the terminal device, F pre-recommended contents in a valid state are determined; F is a positive integer;

[0050] Determine the recommendation scores corresponding to the F pre-recommended contents respectively, and obtain G recommendation scores from the F recommendation scores; the G recommendation scores are greater than or equal to the H recommendation scores; the H recommendation scores include the recommendation scores from the F recommendation scores except the G recommendation scores; G is a positive integer less than or equal to F; H is a positive integer less than F;

[0051] Among the F pre-recommended contents, the pre-recommended contents corresponding to the G recommendation scores are obtained, and a pre-pulled content list provided by the pre-pulling function is generated according to the G pre-recommended contents.

[0052] In a possible implementation, the generation module generates a pre-pull content list provided by the pre-pull function according to the G pre-recommended contents, and is used to perform the following operations:

[0053] Generate a candidate pre-pulled content list according to the G pre-recommended contents; the G pre-recommended contents include the first pre-recommended content and the second pre-recommended content;

[0054] Determining content similarity between the first pre-recommended content and the second pre-recommended content;

[0055] If the content similarity is equal to or greater than the similarity threshold, deleting the first pre-recommended content from the candidate pre-pulled content list;

[0056] Obtaining a maximum recommendation score from the H recommendation scores, and obtaining a third pre-recommended content corresponding to the maximum recommendation score from the F pre-recommended content;

[0057] adding the third pre-recommended content to the candidate pre-pulled content list from which the first pre-recommended content is deleted;

[0058] A pre-pulled content list provided by the pre-pulling function is generated according to the candidate pre-pulled content list with the third pre-recommended content added and the first pre-recommended content deleted; the content similarity between every two pre-pulled contents in the pre-pulled content list is less than a similarity threshold.

[0059] In a possible implementation, the acquisition module acquires the first pre-pull usage probability corresponding to the terminal device according to the pre-pull request, and is used to perform the following operations:

[0060] Determine an acquisition timestamp of the pre-pull request, and if the acquisition timestamp is in a first type of content output period, generate an online recommended content set for the terminal device, and generate a pre-pull content list provided by the pre-pull function according to the online recommended content set;

[0061] If the acquisition timestamp is in the second type period of content output, the first pre-pull usage probability corresponding to the terminal device is obtained; the total amount of output content corresponding to the second type period of content output is greater than the total amount of output content corresponding to the first type period of content output.

[0062] In a possible implementation, the generating module generates an online recommended content set for the terminal device, and is used to perform the following operations:

[0063] Count the total number of pre-fetch usage probabilities that are equal to or greater than the online recommendation threshold;

[0064] If the total number is less than or equal to the pre-pulled online recommendation quota, then generate an online recommendation content set for the terminal device based on the output content features of the terminal device and the candidate content pool corresponding to the system time;

[0065] If the total number is greater than the pre-pull online recommendation quota, a pre-pull content list provided by the pre-pull function is generated through the pre-recommendation content pool.

[0066] On one hand, the present application provides a computer device, including: a processor, a memory, and a network interface;

[0067] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface, wherein the above-mentioned network interface is used to provide a data communication function, the above-mentioned memory is used to store a computer program, and the above-mentioned processor is used to call the above-mentioned computer program so that the computer device executes the method in the embodiment of the present application.

[0068] On one hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded by a processor and executing the method in the embodiment of the present application.

[0069] On the one hand, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium; a processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the method in the embodiment of the present application.

[0070] As can be seen from the above, the embodiment of the present application proposes a resource allocation method based on the first pre-pull usage probability, and provides a real-time generated online recommended content set for the terminal device corresponding to the first pre-pull usage probability equal to or higher than the online recommendation threshold, and then can provide a real-time generated pre-pull content list; for the terminal device corresponding to the first pre-pull usage probability lower than the online recommendation threshold, the pre-pull content is allocated from the pre-recommended content pool (i.e., the recommended content pool generated in advance). Therefore, through the pre-recommended content pool, the resource cost of real-time calculation can be reduced; by comparing the first pre-pull usage probability and the online recommendation threshold, high-quality pre-pull content (i.e., real-time generated recommended content) can be allocated to the target object with a high usage probability, so not only can the content recommendation quality be improved, but also the utilization rate of online recommended content can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0072] Figure 1 It is a schematic diagram of a system architecture provided by an embodiment of the present application;

[0073] Figure 2 This is a data processing scenario provided by an embodiment of the present application. Figure 1 ;

[0074] Figure 3 This is a flow diagram of a data processing method provided in an embodiment of the present application. Figure 1 ;

[0075] Figure 4 This is a data processing scenario provided by an embodiment of the present application. Figure 2 ;

[0076] Figure 5 This is a data processing scenario provided by an embodiment of the present application. Figure 3 ;

[0077] Figure 6 This is a flow diagram of a data processing method provided in an embodiment of the present application. Figure 2 ;

[0078] Figure 7 This is a flow diagram of a data processing method provided in an embodiment of the present application. Figure 3 ;

[0079] Figure 8This is an example graph of a stacked broken line of the amount of pre-pulled online recommended content provided in an embodiment of the present application;

[0080] Fig. 9 This is a flow diagram of a data processing method provided in an embodiment of the present application. Figure 4 ;

[0081] Fig.10 This is an example diagram of a classification of pulled content provided in an embodiment of the present application;

[0082] Fig.11 This is a schematic diagram of the probability of use of randomly assigned online recommended content provided by an embodiment of the present application;

[0083] Fig.12 This is a schematic diagram of the probability of use of online recommended content distributed by probability provided by an embodiment of the present application;

[0084] Fig.13 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;

[0085] Fig.14 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0087] To facilitate understanding, some nouns are briefly explained as follows:

[0088] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0089] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. Basic artificial intelligence technologies generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operating / interactive systems, mechatronics and other technologies. Artificial intelligence software technologies mainly include computer vision technology, speech processing technology, natural language processing technology, as well as machine learning / deep learning, autonomous driving, smart transportation and other major directions.

[0090] Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology generally includes text processing, semantic understanding, machine translation, robot question and answer, knowledge graph and other technologies. In the embodiment of the present application, natural language processing can be used to process text content.

[0091] Computer Vision (CV) is a science that studies how to make machines "see". To put it more specifically, it refers to using cameras and computers to replace human eyes to identify and measure targets, and further process images so that the computer processes them into images that are more suitable for human observation or transmission to instruments for detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multidimensional data.

[0092] Computer vision technology generally includes image processing, image recognition, image semantic understanding, image retrieval, optical character recognition (OCR), video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and map construction, autonomous driving, smart transportation and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition. In the embodiments of the present application, computer vision technology can be used to identify image content and video content.

[0093] Machine Learning (ML) is a multi-disciplinary interdisciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithmic complexity theory and other disciplines. It specializes in how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning generally include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and learning by teaching. In an embodiment of the present application, pre-pulled content can be recommended based on machine learning.

[0094] See also Figure 1 , Figure 1 Schematic diagram of a system architecture provided by an embodiment of the present application. Figure 1 As shown, the system may include a business server 100 and a terminal device cluster. The terminal device cluster may include: terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n. It can be understood that the above system may include one or more terminal devices, and this application does not limit the number of terminal devices.

[0095] There may be communication connections between the terminal device clusters, for example, there is a communication connection between the terminal device 200a and the terminal device 200b, and there is a communication connection between the terminal device 200a and the terminal device 200c. At the same time, any terminal device in the terminal device cluster may have a communication connection with the business server 100, for example, there is a communication connection between the terminal device 200a and the business server 100, wherein the above communication connection does not limit the connection method, and may be directly or indirectly connected by wired communication, directly or indirectly connected by wireless communication, or by other methods, and this application does not limit it here.

[0096] It should be understood that Figure 1 Each terminal device in the terminal device cluster shown in FIG. 1 may be installed with an application client. When the application client runs in each terminal device, it may be respectively connected to the above-mentioned Figure 1 The business server 100 shown in the figure performs data interaction, that is, the above-mentioned communication connection. Among them, the application client can be an application client with content pre-pull function such as video application, social application, instant messaging application, game application, music application, shopping application, novel application, browser, etc. Among them, the application client can be an independent client or an embedded sub-client integrated in a client (for example, a social client, an educational client, and a multimedia client, etc.), which is not limited here.

[0097] Taking the video application as an example, the business server 100 may be a collection of multiple servers including a background server corresponding to the video application, a data processing server, etc. Therefore, each terminal device may perform data transmission with the business server 100 through the application client corresponding to the video application. For example, the terminal device 200a may send a pre-pull request to the business server 100 through the application client of the video application, and the business server 100 may generate a pre-pull content list for the terminal device 200a according to the pre-pull request, and return the pre-pull content list to the terminal device 200a.

[0098] It is understandable that in the specific implementation of this application, related data such as user information (such as pre-pull requests and pre-recommended content pools) are involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of the relevant regions.

[0099] To facilitate subsequent understanding and description, the embodiments of the present application can be Figure 1 A terminal device example is selected from the terminal device cluster shown for description, for example, terminal device 200a is used as an example for description. When the application client is started and before outputting the content, the terminal device 200a can generate a pre-pull request in the application client, and send the pre-pull request to the business server 100 through the application client. It can be understood that in order to achieve a high-quality experience of the information flow (feed flow, which can also be called content flow), the application client can perform content pre-pull after startup and before displaying the content output page, that is, the content is loaded before the target object corresponding to the terminal device 200a browses the content, so that when the target object browses the content, the application client will not be stuck or slow to load, so the viewing experience of the target object can be prompted.

[0100] Among them, pre-pulling, that is, pre-loading, is to pull in advance. Before the target object corresponding to the terminal device actually triggers the network request to pull content from the background, the content has been prepared. When the target object actually triggers the pull, the pre-pulled content is directly displayed to the target object. Pre-pulling can allow the target object to experience the effect of instant pulling.

[0101] As can be seen from the above, the pre-fetch request described in the embodiment of the present application occurs before the content is output, and is used to request the business server 100 to load the content in advance. The embodiment of the present application does not limit the type of content, and can be set according to the actual application scenario, including but not limited to text content (such as novels, news), image content, video content and audio content.

[0102] The business server 100 obtains the pre-pull request sent by the terminal device 200a, and obtains the first pre-pull usage probability corresponding to the terminal device 200a according to the pre-pull request, wherein the first pre-pull usage probability is used to indicate the probability of the target object corresponding to the terminal device 200a interacting with the content provided by the pre-pull function; the pre-pull function is used to respond to the pre-pull request. Among them, the first pre-pull usage probability can indicate the actual probability of the target object interacting with the historical content provided by the pre-pull function, and can also be used as the predicted probability of the target object interacting with the pre-pull content provided by the pre-pull function. The process of determining the first pre-pull usage probability is not described in detail here, please see below Figure 3 as well as Figure 6 The pre-pull function can provide a pre-pull content list for the terminal device 200a.

[0103] If the first pre-pull usage probability is less than the online recommendation threshold, the service server 100 obtains the pre-recommended content pool for the terminal device 200a, wherein the generation timestamp of the pre-recommended content pool is earlier than the generation timestamp of the pre-pull request, that is, the pre-recommended content pool is generated in advance. The generation process of the pre-recommended content pool is not described here, please refer to the following Fig. 9 The description in the corresponding embodiment. Further, the business server 100 can generate a pre-pull content list provided by the pre-pull function through the pre-recommended content pool for the terminal device. It can be understood that since the pre-recommended content pool is pre-generated, the business server 100 can avoid real-time recommendation of online content for the terminal device 200a, and use the pre-calculated content as the pre-pull content, thereby saving computing resources for online content (because the first pre-pull usage probability is less than the online recommendation threshold).

[0104] If the first pre-pull usage probability is equal to or greater than the online recommendation threshold, the business server 100 generates an online recommended content set for the terminal device, wherein the generation timestamp of the online recommended content set is later than the generation timestamp of the pre-pull request, i.e., the business server recommends the online content in real time and uses the online content as the pre-pull content; based on the online recommended content set, the business server 100 generates a pre-pull content list provided by the pre-pull function. It can be understood that, compared with the pre-recommended content (i.e., the online content not recommended in real time), the online content recommended in real time has high-quality characteristics, i.e., it better matches the browsing characteristics of the target object, so it can increase the probability of interaction between the target object and the pre-pull content, thereby increasing the utilization rate of the pre-pull content (in this case, the online recommended content), i.e., the output rate.

[0105] As can be seen from the above, the embodiment of the present application proposes a resource allocation method based on the first pre-pull usage probability, and provides a real-time generated online recommended content set for the terminal device corresponding to the first pre-pull usage probability equal to or higher than the online recommendation threshold, and then can provide a real-time generated pre-pull content list; for the terminal device corresponding to the first pre-pull usage probability lower than the online recommendation threshold, the pre-pull content is allocated from the pre-recommended content pool (i.e., the recommended content pool generated in advance). Therefore, through the pre-recommended content pool, the resource cost of real-time calculation can be reduced; by comparing the first pre-pull usage probability and the online recommendation threshold, high-quality pre-pull content (i.e., real-time generated recommended content) can be allocated to the target object with a high usage probability, so not only can the content recommendation quality be improved, but also the utilization rate of online recommended content can be improved.

[0106] It should be noted that the above-mentioned business server 100, terminal device 200a, terminal device 200b, terminal device 200c..., terminal device 200n can all be blockchain nodes in the blockchain network, and the data described in the full text (such as pre-pull requests and pre-recommended content pools) can be stored. The storage method can be that the blockchain node generates blocks based on the data and adds the blocks to the blockchain for storage.

[0107] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism and encryption algorithm. It is mainly used to organize data in chronological order and encrypt it into a ledger to make it impossible to be tampered with or forged. It can also verify, store and update data. Blockchain is essentially a decentralized database. Each node in the database stores an identical blockchain. The blockchain network can divide nodes into core nodes, data nodes and light nodes. Core nodes, data nodes and light nodes together constitute blockchain nodes.

[0108] The core node is responsible for the consensus of the entire blockchain network, that is, the core node is the consensus node in the blockchain network. The process of writing transaction data in the blockchain network into the account book can be that the data node or light node in the blockchain network obtains the transaction data, and passes the transaction data in the blockchain network (that is, the node passes it in the form of a baton) until the consensus node receives the transaction data, and the consensus node packs the transaction data into a block, performs consensus on the block, and writes the transaction data into the account book after the consensus is completed. Here, the pre-pull request and pre-recommended content pool are used as examples of transaction data. After reaching a consensus on the transaction data, the business server 100 (blockchain node) generates a block based on the transaction data and stores the block in the blockchain network; and for the reading of transaction data (i.e., pre-pull request and pre-recommended content pool), the blockchain node can obtain the block containing the transaction data in the blockchain network, and further obtain the transaction data in the block.

[0109] It is understandable that the method provided in the embodiments of the present application can be executed by a computer device, which includes but is not limited to a terminal device or a business server. Among them, the business server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud databases, cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Terminal devices include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. Among them, the terminal device and the business server can be directly or indirectly connected by wire or wireless means, and the embodiments of the present application are not limited here.

[0110] For further information, see Figure 2 , Figure 2 This is a data processing scenario provided by an embodiment of the present application. Figure 1 . The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, audio and video, etc. The embodiments of the present application can be applicable to business scenarios such as query scenarios, recommendation scenarios, and distribution scenarios of multimedia content. The specific business scenarios will not be listed one by one here. Among them, the implementation process of the data processing scenario can be carried out in the business server, or it can be carried out interactively between the terminal device and the business server, and there is no limitation here. For the convenience of description and understanding, the embodiments of the present application are described by taking the interaction between the terminal device and the business server as an example, that is, the terminal device and the business server are used as computer devices. Among them, the terminal device can be the above-mentioned Figure 1 For any terminal device in the terminal device cluster of the corresponding embodiment, the service server may be the above-mentioned Figure 1The corresponding business server 100 in the embodiment.

[0111] like Figure 2 As shown, the target object 20a has a binding relationship with the terminal device 20b, and the binding relationship may be that the target object 20a is a user using the terminal device 20b. The terminal device 20b is installed with an application client. Figure 2 For ease of understanding, the application client is exemplified as a multimedia application, and the terminal device 20b can display the non-content output page 201b and the system time (i.e., the current time) in the multimedia application. Among them, the non-content output page 201b does not include the content details page (also referred to as the content bottom page). For example, if the content is video content, the non-content output page 201b does not include the video playback page, that is, the non-content output page 201b can include pages other than the video playback page in the multimedia application; for example, if the content is text content, the non-content output page 201b does not include the text details page, that is, the non-content output page 201b can include pages other than the text details page in the multimedia application. It should be emphasized that the embodiment of the present application does not limit the type of content, and can include one or more of the following: text content, video content, image content, and audio content.

[0112] For ease of understanding, the present embodiment of the application uses video content as an example, that is, the content requested by the pre-fetch request is video content. Figure 2 When displaying the non-content output page 201b, that is, before entering the content (such as video, novel, information) playback page, the terminal device 20b generates a pre-pull request 20c at 12:00 on January 1, 2024. The pre-pull request 20c may include a device identifier for indicating the terminal device 20b, such as an Internet Protocol Address (IP address for short), such as an application account logged in by a multimedia application. The embodiment of the present application does not limit the type of device identifier and can be set according to the actual application scenario. Figure 2 For the sake of convenience, the device is identified as device 1.

[0113] Further, the terminal device 20b sends the pre-pull request 20c to the business server 100. After obtaining the pre-pull request 20c sent by the terminal device 20b, the business server 100 can obtain the index table 20d according to the pre-pull request 20c. The index table 20d may include an index key with the device identifier as the index key, and a pre-pull usage probability ( Figure 2 Abbreviated as probability) as the index value of, Figure 2Three index key-value pairs are illustrated in index table 20d. The first index key-value pair includes an index key generated by device 1 and an index value generated by 0.4. The meaning of the first index key-value pair is that the current pre-pull usage probability of the terminal device indicated by device 1 is 0.4. The second index key-value pair includes an index key generated by device 2 and an index value generated by 0.3. The meaning of the second index key-value pair is that the current pre-pull usage probability of the terminal device indicated by device 2 is 0.3. The third index key-value pair includes an index key generated by device 3 and an index value generated by 0.5. The meaning of the third index key-value pair is that the current pre-pull usage probability of the terminal device indicated by device 3 is 0.5.

[0114] It should be emphasized that the above description is the current pre-pull usage probability, rather than the first pre-pull usage probability. The reason is that the pre-pull usage probability is updated periodically, that is, the business server 100 will periodically update the pre-pull usage probability corresponding to each terminal device. Specifically, the pre-pull usage probability of a terminal device is only updated with a first update period (for example, half an hour or an hour, etc.). The description is not expanded here. Please refer to the following Figure 3 as well as Figure 6 The descriptions in the corresponding embodiments respectively.

[0115] like Figure 2 As shown, the business server 100 can search in the index table 20d and determine the index value (i.e., 0.4) having an index relationship with the device 1 used to indicate the terminal device 20b as the first pre-pull usage probability 20e corresponding to the terminal device 20b. The first pre-pull usage probability 20e is used to indicate the probability of the target object 20a interacting with the content provided by the pre-pull function. It can be understood that the content provided by the pre-pull function may include historical content, i.e., historical time period (earlier than Figure 2 In the example, the content pulled at 12:00 on January 1, 2024, at this time, the first pre-pull usage probability 20e can be regarded as the real probability of the target object 20a interacting with the historical content; the content provided by the pre-pull function can also include the content to be pulled (i.e., the pre-pull content). At this time, the first pre-pull usage probability 20e can be regarded as the predicted probability of the target object 20a interacting with the pre-pull content (the content to be generated).

[0116] Further, the service server 100 compares the first pre-pull usage probability 20e with the online recommendation threshold. If the first pre-pull usage probability 20e ( Figure 2For example, if the online recommendation threshold is equal to 0.45, the business server 100 can determine that the probability of the terminal device 20b outputting the pre-pull content is low, that is, the probability of the target object 20a triggering the pre-pull content is low. In layman's terms, the probability of the target object 20a viewing the pre-pull content is low. At this time, the business server 100 obtains the pre-recommended content pool 20h corresponding to the terminal device 20b. The pre-recommended content pool 20h is pre-generated, that is, the generation timestamp 201h of the pre-recommended content pool 20h is earlier than the generation timestamp of the pre-pull request 20c, such as Figure 2 In the example, the generation timestamp 201h of the pre-recommended content pool 20h is 00:01 on January 1, 2024, and the generation timestamp of the pre-fetch request 20c is 12:00 on January 1, 2024. The generation process of the pre-recommended content pool 20h is not described in detail in this embodiment of the application. Please refer to the following Fig. 9 The description in the corresponding embodiment.

[0117] Figure 2 The example pre-recommended content pool 20h includes video 1, video 2, video 3, and video 4. Through the pre-recommended content pool 20h, the service server 100 can generate a pre-pull content list 20i provided by the pre-pull function. Figure 2 The example pre-pull content list 20i includes video 1, video 2, and video 3. The embodiment of the present application does not limit the number of pre-pull contents in the pre-pull content list 20i, and can be set according to the actual application scenario. Further, the business server 100 can return the pre-pull content list 20i to the terminal device 20b. Subsequently, if the target object 20a triggers content output, such as triggering video playback, the terminal device 20b does not need to initiate a content acquisition request to the business server 100, and can output the pre-pull contents in the pre-pull content list 20i in sequence, such as Figure 2 Examples include Video 1, Video 2, and Video 3.

[0118] The above describes the scenario where the first pre-pull usage probability 20e is less than the online recommendation threshold. If the first pre-pull usage probability 20e ( Figure 2 4 for example) is equal to or greater than the online recommendation threshold, for example, the online recommendation threshold is equal to 0.36, then the service server 100 can determine that the probability of the terminal device 20b outputting the pre-pull content is high, that is, the probability of the target object 20a triggering the pre-pull content is high. In layman's terms, the probability of the target object 20a viewing the pre-pull content is high. At this time, the service server 100 generates an online recommended content set 20f for the terminal device 20b, where, unlike the pre-recommended content pool 20h, the generation timestamp 201f of the online recommended content set 20f is later than the generation timestamp of the pre-pull request 20c, such as Figure 2For example, the generation timestamp 201f is 12:01 on January 1, 2024, that is, the service server 100 generates the online recommended content set 20f in real time in response to the pre-fetch request 20c sent by the terminal device 20b. The generation process of the online recommended content set 20f is not described in detail in this embodiment of the application. Please refer to the following Figure 3 The description in the corresponding embodiment.

[0119] Figure 2 The example online recommended content set 20f includes video a, video b, video c, and video d. According to the online recommended content set 20f, the service server 100 can generate a pre-pull content list 20g provided by the pre-pull function, such as Figure 2 As shown in the example, the pre-pull content list 20g may include video a, video b, and video c. It can be understood that the pre-pull content list 20g and the pre-pull content list 20i have the same corresponding functions, so the subsequent processing of the pre-pull content list 20g is not described here, and the description of the pre-pull content list 20i can be referred to above.

[0120] As can be seen from the above, the embodiment of the present application proposes a resource allocation method based on the first pre-pull usage probability, and provides a real-time generated online recommended content set for the terminal device corresponding to the first pre-pull usage probability equal to or higher than the online recommendation threshold, and then can provide a real-time generated pre-pull content list; for the terminal device corresponding to the first pre-pull usage probability lower than the online recommendation threshold, the pre-pull content is allocated from the pre-recommended content pool (i.e., the recommended content pool generated in advance). Therefore, through the pre-recommended content pool, the resource cost of real-time calculation can be reduced; by comparing the first pre-pull usage probability and the online recommendation threshold, high-quality pre-pull content (i.e., real-time generated recommended content) can be allocated to the target object with a high usage probability, so not only can the content recommendation quality be improved, but also the utilization rate of online recommended content can be improved.

[0121] For further information, see Figure 3 , Figure 3 This is a flow diagram of a data processing method provided in an embodiment of the present application. Figure 1 The implementation process of the data processing method can be carried out in the business server, or can be carried out interactively in the terminal device and the business server, which is not limited here. For the sake of ease of description and understanding, the embodiment of the present application is described by taking the business server as an example, that is, the business server is used as a computer device. Among them, the business server can be the above-mentioned Figure 1 The service server 100 in the corresponding embodiment. Figure 3 As shown, the data processing method may at least include the following steps S101 to S103.

[0122] Step S101, obtain a pre-pull request sent by a terminal device, and obtain a first pre-pull usage probability corresponding to the terminal device based on the pre-pull request; the first pre-pull usage probability is used to indicate the probability of a target object corresponding to the terminal device interacting with the content provided by the pre-pull function; the pre-pull function is used to respond to the pre-pull request.

[0123] Specifically, a pre-pull request sent by a terminal device is obtained at a first moment; this step may also include: counting the number of application startup times and pre-pull usage times of the terminal device within a first time period; the latest timestamp of the first time period is earlier than the first moment; determining the ratio between the number of application startup times and the number of pre-pull usage times, and determining a first pre-pull usage probability based on the ratio; and storing the first pre-pull usage probability and a device identifier for indicating the terminal device in a database in association with each other.

[0124] Specifically, determine the acquisition timestamp of the pre-pull request; if the acquisition timestamp is in the first type time period of content output, generate an online recommended content set for the terminal device, and generate a pre-pull content list provided by the pre-pull function based on the online recommended content set; if the acquisition timestamp is in the second type time period of content output, obtain the first pre-pull usage probability corresponding to the terminal device; the total number of output content corresponding to the second type time period of content output is greater than the total number of output content corresponding to the first type time period of content output.

[0125] The pre-pull usage probability corresponding to the terminal device is time-sensitive. In the embodiment of the present application, the pre-pull usage probability corresponding to the terminal device in the current period is referred to as the first pre-pull usage probability. The business server sets the update period of the pre-pull usage probability corresponding to the terminal device to the first update period T1, and then every T1 hours, the business server updates the pre-pull usage probability corresponding to the terminal device. Assuming that T1 is 0.5, the business server updates the pre-pull usage probability corresponding to the terminal device every half an hour, that is, generates a new pre-pull usage probability. Assuming that the current pre-pull usage probability of the terminal device (which can be understood as the first pre-pull usage probability) is generated by the business server at 12:00 on May 2, 2024, the business server regenerates the pre-pull usage probability of the terminal device at 12:30 on May 2, 2024. In the embodiment of the present application, the pre-pull usage probability corresponding to the next update period of the current pre-pull usage probability is referred to as the second pre-pull usage probability.

[0126] This application can be applied to a variety of multimedia data and product applications including but not limited to short videos, long videos, graphics and texts. It is understandable that each application focuses on different data dimensions. For example, application 1 focuses on the duration of the target object browsing the content playback page (such as the video playback page), application 2 focuses on the number of times the target object triggers the content playback page, and application 3 focuses on the content type output by the content playback page, such as whether the output content is online recommendation data or pre-recommendation data. Since each application focuses on different data dimensions, the embodiment of this application does not limit the method by which the business server determines the pre-pull usage probability corresponding to the terminal device, and can be set according to the actual application scenario.

[0127] The embodiment of the present application introduces a simple method for determining the pre-pull usage probability. When updating the pre-pull usage probability, the business server counts the number of application startups and pre-pull usage times of the terminal device within the first time period. The first time period refers to the time period corresponding to the above-mentioned first update cycle. For example, if the first update cycle is half an hour, then the duration corresponding to the first time period is half an hour. For example, the business server generates the pre-pull usage probability corresponding to the terminal device at 12 o'clock, and generates a new pre-pull usage probability corresponding to the terminal device at 12:30. Then the first time period may include 12 o'clock-12:30. The number of application startups of the terminal device refers to the number of times the application client is started, and the number of pre-pull usages refers to the number of times the terminal device enters the content output page, that is, the application client is not only started, but also enters the content output page.

[0128] Furthermore, the business server determines the ratio between the number of application startups and the number of pre-pull usages, and can determine the ratio as the first pre-pull usage probability, or further determine the first pre-pull usage probability in combination with other dimensional data of the application client. In combination with the above example, if the generation timestamp of the first pre-pull usage probability is 12:30, then in the time period from 12:30 to 13:00, the pre-pull usage probability corresponding to the terminal device is the first pre-pull usage probability, and the business server regenerates a new pre-pull usage probability at 13:00. The business server associates the first pre-pull usage probability and the device identifier used to indicate the terminal device and stores them in the database, as described above. Figure 2 The illustrated index table is 20d.

[0129] Please also see Figure 4 , Figure 4 This is a data processing scenario provided by an embodiment of the present application. Figure 2 .like Figure 4 As shown, the service server 100 obtains a pre-fetch request 20c, which carries a device identifier for indicating a terminal device. Figure 4Take device 1 as an example of device identification. The business server 100 determines the acquisition timestamp of the pre-pull request 20c, that is, the timestamp of the pre-pull request 20c. If the acquisition timestamp is in the first type of content output period 30a, Figure 4 The first type of content output time period 30a is exemplified as 1:00-9:00 in a day. For example, if the acquired timestamp is 2 a.m., the service server 100 generates an online recommended content set 20f for the terminal device. For the generation process of the online recommended content set 20f, please refer to the description in step S103 below, which will not be described in detail here.

[0130] Based on the online recommended content set 20f, the business server 100 generates a pre-pull content list provided by the pre-pull function; it can be understood that the specific process of the business server generating the pre-pull content list based on the online recommended content set 20f is the same as the specific process of the business server generating the pre-pull content list based on the pre-recommended content pool, so please refer to the specific generation process of the pre-pull content list in step S102 below.

[0131] If the acquisition timestamp is in the second type of content output period 30b, Figure 4 The second type of content output time period 30b is exemplified as 10:11 on the current day to 1:00 in the morning of the next day. For example, if the acquisition timestamp is 8:00 p.m., the service server 100 acquires the first pre-pulling usage probability 20e corresponding to the terminal device. Figure 4 The first pre-pull usage probability 20e is exemplified as 0.4. Among them, for the output content of the full amount of terminal devices, the total amount of output content corresponding to the second type of content output period is greater than the total amount of output content corresponding to the first type of content output period. Therefore, the above-mentioned first type of content output period 30a can be understood as a low-peak period for content output, that is, a smaller target object watches content (such as videos, novels, etc.) through the terminal device, and the above-mentioned second type of content output period 30b can be understood as a peak period for content output, that is, more target objects watch content through the terminal device.

[0132] It is understandable that, since the total amount of output content corresponding to the low-peak period of content output is small, the system resources of the business server are idle, that is, the utilization rate of the system resources is low. In order to maximize the use of system resources, high-quality online recommended content is provided to the terminal device during the low-peak period of content output, that is, the online recommended content is generated in real time and pushed to the terminal device as pre-pull content. As can be seen from the above, the use of this application can not only reasonably utilize the system resources of the background, but also provide the target object with higher quality pre-pull content (generated by online recommended content).

[0133] Correspondingly, since the total amount of output content corresponding to the peak content output period is large, that is, a large number of target objects watch content (such as videos, information, novels, etc.) online through terminal devices, the system resources of the business server are busy. At this time, the utilization rate of system resources is high. In order to reasonably allocate system resources, it is necessary to determine whether the target object will play the pre-pulled content. Therefore, the business server obtains the first pre-pulling usage probability and makes further judgments based on the first pre-pulling usage probability. For details, please refer to steps S102 and S103 below.

[0134] Step S102: if the first pre-pull usage probability is less than the online recommendation threshold, a pre-pull content list provided by the pre-pull function is generated through a pre-recommended content pool for the terminal device; the generation timestamp of the pre-recommended content pool is earlier than the generation timestamp of the pre-pull request.

[0135] Specifically, in a pool of pre-recommended content for a terminal device, F pre-recommended content that is in a valid state is determined; F is a positive integer; the recommendation scores corresponding to the F pre-recommended content are determined, and G recommendation scores are obtained from the F recommendation scores; the G recommendation scores are greater than or equal to H recommendation scores; the H recommendation scores include the recommendation scores in the F recommendation scores except the G recommendation scores; G is a positive integer less than or equal to F; H is a positive integer less than F; among the F pre-recommended content, the pre-recommended content corresponding to the G recommendation scores is obtained, and based on the G pre-recommended content, a pre-pull content list provided by the pre-pull function is generated.

[0136] Among them, the specific process of generating a pre-pull content list provided by the pre-pull function based on G pre-recommended contents may include: generating a candidate pre-pull content list based on the G pre-recommended contents; the G pre-recommended contents include a first pre-recommended content and a second pre-recommended content; determining the content similarity between the first pre-recommended content and the second pre-recommended content; if the content similarity is equal to or greater than the similarity threshold, deleting the first pre-recommended content from the candidate pre-pull content list; obtaining the maximum recommendation score from the H recommendation scores, and obtaining the third pre-recommended content corresponding to the maximum recommendation score from the F pre-recommended contents; adding the third pre-recommended content to the candidate pre-pull content list from which the first pre-recommended content is deleted; generating the pre-pull content list provided by the pre-pull function based on the candidate pre-pull content list with the third pre-recommended content added and the first pre-recommended content deleted; the content similarity between every two pre-pull contents in the pre-pull content list is less than the similarity threshold.

[0137] After obtaining the pre-pull request, the business server calculates the full amount of candidate content in real time to determine the online recommended content. It needs to execute the complete recommendation process, which consumes a lot of resources. In addition, since the pre-pull needs to be initiated before the target object browses the content (such as videos, novels, information), but not every content requested by the pre-pull request will be used by the target object, a lot of unnecessary requests will be added, which will cause huge request and cost pressure on the background service. Based on this, the embodiment of the present application will judge the terminal device that initiates the pre-pull request to determine which type of pre-pull content to return. The types of pre-pull content can be divided into two categories. The first category is pre-recommended content, which comes from a pre-generated pre-recommended content pool, and the second category is online recommended content, which comes from a real-time generated online recommended content collection.

[0138] The business server compares the first pre-pull usage probability corresponding to the terminal device with the online recommendation threshold, wherein the determination of the online recommendation threshold is associated with the current pre-pull usage probability corresponding to all terminal devices, and is also associated with the real-time non-pre-pull online quota. The generation process of the online recommendation threshold is not described in detail here, please refer to the following Figure 7 The description in the corresponding embodiment.

[0139] Please see again Figure 4 If the first pre-pull usage probability 20e is less than the online recommendation threshold, for example, the online recommendation threshold is 0.45, the service server 100 obtains the pre-recommended content pool 20h corresponding to the terminal device, and generates a pre-pull content list provided by the pre-pull function through the pre-recommended content pool 20h for the terminal device.

[0140] The following describes in detail the process of generating a pre-pull content list provided by the pre-pull function through the pre-recommended content pool for the terminal device. For ease of understanding, the present application embodiment uses the pre-pull content as an example of a video. Figure 5 , Figure 5 This is a data processing scenario provided by an embodiment of the present application. Figure 3 . Figure 5 The generation timestamp 30e of the pre-recommended content pool 30f corresponding to the terminal device is exemplified as 00:01 on January 1, 2024, and the pre-recommended content pool 30f includes video 1, video 2, video 3, video 4, video 5, video 6, ..., video 7. The business server determines the video in the pre-recommended content pool 30f that is in an invalid state, referred to as an invalid video. The embodiment of the present application does not limit the reason why the video is in an invalid state, and can be set according to the actual application scenario, including but not limited to Figure 5 Examples include those that have been played, deleted by the publisher, and blocked by the publisher.

[0141] like Figure 5In the example, because video 1 has been played, video 1 is an invalid video. For example, the business server determines that the acquisition timestamp of the currently received pre-pull request is 12:00 on January 1, 2024. During the period from 00:01 on January 1, 2024 to 12:00 on January 1, 2024, the terminal device has initiated a historical pre-pull request, for example, at 11:00 on January 1, 2024, a pre-pull request was sent to the business server. Compared with the system time (i.e., the current time), this pre-pull request can be called a historical pre-pull request. The business server responds to the historical pre-pull request and returns video 1 in the pre-recommended content pool 30f as pre-pull content to the terminal device, that is, generates a pre-pull content list including video 1 and returns it to the terminal device. The terminal device obtains the pre-pull content list including video 1. When the target object triggers the content playback, video 1 is played. Therefore, video 1 is a played video, and the played video is an invalid video.

[0142] like Figure 5 In the example, since the publisher corresponding to video 5 deleted video 5, the business platform does not have the playback permission for video 5 because video 5 is an invalid video; since the target object has blocked the publisher of video 6 (for example, publisher 300), that is, it is set not to watch videos published by publisher 300, video 6 is an invalid video.

[0143] Figure 5 Three types of invalid videos are shown as examples. In actual application, other invalid types may also be included. Figure 5 Taking the pre-pulled content as an example of a video, if the pre-pulled content is audio or text, the invalid type may include but is not limited to output, deleted, blacklisted, etc.

[0144] The service server deletes the videos (i.e., pre-recommended contents) in the pre-recommended contents pool 30f that are in an invalid state, and can obtain pre-recommended contents in a valid state, such as Figure 5 The example pre-recommended content 30g includes video 2, video 3, video 4 and video 7, that is, Figure 5 Let F be 4. Further, the business server obtains the recommendation score corresponding to each pre-recommended content. Figure 5 The recommended score of video 2 is 0.87, the recommended score of video 3 is 0.85, the recommended score of video 4 is 0.83, and the recommended score of video 7 is 0.8. For ease of understanding, Figure 5 Assuming G is 3, the service server obtains the top three pre-recommended contents with the highest recommendation scores in the pre-recommended contents 30g, namely, video 2, video 3, and video 4, in the order of obtaining from the largest to the smallest.

[0145] Furthermore, the service server may generate a candidate pre-pull content list based on video 2, video 3, and video 4, and obtain the content similarity of every two pre-recommended contents in the candidate pre-pull content list, such as Figure 5 In the example, the similarity between video 2 and video 3 is 0.7, the similarity between video 2 and video 4 is 0.3, and the similarity between video 3 and video 4 is 0.2; wherein, video 2, video 3 or video 4 can be the first pre-recommended content mentioned above, and the second pre-recommended content can be one of the remaining two videos. The service server compares each content similarity with the similarity threshold. If Figure 5 The three similarities in the example are all less than the similarity threshold, for example, the similarity threshold is 0.8. At this time, the business server can determine the candidate pre-pull content list as the pre-pull content list 30i, that is, including video 2, video 3 and video 4, and return the pre-pull content list 30i to the terminal device.

[0146] If the similarity of a content is greater than or equal to the similarity threshold, for example, the similarity threshold is 0.5, then Figure 5 In the example, the similarity between video 2 and video 4 is 0.7, which is greater than 0.5. The service server deletes the video with the smaller recommendation score of the two videos, that is, deletes video 3 from the candidate pre-pull content list. After deleting video 3, the candidate pre-pull content list includes two pre-recommended contents, namely video 2 and video 4. Therefore, the service server obtains the pre-recommended content with the maximum recommendation score from the pre-recommended content 30g except for the candidate pre-recommended content list. Figure 5 An example is video 7. Video 7 is added to the candidate pre-pull content list after video 3 is deleted. The service server can obtain the candidate pre-pull content list 30h.

[0147] It is understandable that the processing process of the candidate pre-pull content list 30h by the business server is the same as the processing process of the candidate pre-pull content list including video 2, video 3 and video 4, so it is not repeated here. If the similarity between two pre-recommended contents in the candidate pre-pull content list 30h is equal to or greater than the similarity threshold, the business server continues to obtain the pre-recommended content from the pre-recommended content 30g. If the pre-recommended content 30g does not include pre-recommended content other than the candidate pre-pull content list 30h, the business server can determine the candidate pre-pull content list 30h as the pre-pull content list.

[0148] A feasible implementation method is as follows: when obtaining a pre-pull request sent by a terminal device, if the business server determines that the pre-pull usage probability corresponding to the terminal device is less than the online recommendation threshold, and the total number of pre-recommended content contained in the pre-recommended content pool corresponding to the terminal device is less than G, then the business server can generate an online recommended content set for the terminal device in real time, and then generate a pre-pull content list based on the online recommended content set.

[0149] The pre-pulled content list path in the embodiment of the present application is called an information flow, namely a feed flow. A feed flow is an information flow that is continuously updated and presented to the target object. Through a personalized recommendation method, the target object can efficiently obtain the needs of specific content.

[0150] Step S103: If the first pre-pull usage probability is equal to or greater than the online recommendation threshold, an online recommended content set is generated for the terminal device, and a pre-pull content list provided by the pre-pull function is generated based on the online recommended content set; the generation timestamp of the online recommended content set is later than the generation timestamp of the pre-pull request.

[0151] Specifically, the total number of pre-pull usage probabilities that are equal to or greater than the online recommendation threshold is counted; if the total number is less than or equal to the pre-pull online recommendation quota, an online recommended content set for the terminal device is generated based on the output content characteristics of the terminal device and the candidate content pool corresponding to the system time; if the total number is greater than the pre-pull online recommendation quota, a pre-pull content list provided by the pre-pull function is generated through the pre-recommended content pool.

[0152] When the first pre-pull usage probability is equal to or greater than the online recommendation threshold, the business server determines the pre-pull online recommendation quota corresponding to the current moment. The pre-pull online recommendation quota is a real-time changing parameter, which is determined based on the real-time changing non-pre-pull online recommendation quota and the total online recommendation quota with fixed attributes. The relationship between the three can be expressed by the following formula (1):

[0153] Total online recommendation amount ≥ non-pre-pull online recommendation amount + pre-pull online recommendation amount (1)

[0154] Among them, the total amount of online recommendations is fixed and determined according to the system resources of the business server. The non-pre-pull online recommendation amount refers to the total amount of non-pre-pull online recommended content. The non-pre-pull online recommended content refers to the content pulled after the terminal device enters the content playback page. The pre-pull online recommended content refers to the content pulled before the terminal device enters the content playback page. The embodiment of the present application is set according to the real-time changing non-pre-pull online recommendation amount and the fixed total amount of online recommendations to determine the real-time changing pre-pull online recommendation amount. Specifically, the business server can collect the real non-pre-pull online recommendation amount of the historical period as the non-pre-pull online recommendation amount at the current moment. For example, the real non-pre-pull online recommendation amount of the previous second is determined as the non-pre-pull online recommendation amount at the current moment, so the pre-pull online recommendation amount at the current moment can be determined.

[0155] The business server counts the total number of pre-fetch usage probabilities that are equal to or greater than the online recommendation threshold. Figure 5 Taking the total number 30c as 1.5 million, that is, in the current time period (for example, 1 second, half a minute, etc.), there are greater than or equal to 1.5 million terminal devices initiating pre-pull requests to the business server, and there are 150 terminal devices respectively corresponding to the pre-pull usage probability (including the first pre-pull usage probability mentioned above), which are equal to or greater than the online recommendation threshold.

[0156] The business server compares the total number 30c with the pre-pulled online recommendation quota. This process is mainly to ensure that the business server will not be overloaded and can maximize the use of system resources. Therefore, if the total number 30c is less than or equal to the pre-pulled online recommendation quota, for example, the pre-pulled online recommendation quota is 1.51 million, the business server obtains the output content characteristics of the terminal device and the candidate content pool 30d corresponding to the system time. Among them, the output content characteristics of the terminal device refer to the characteristics of the content (including pre-pulled content and non-pre-pulled content) output by the terminal device in the historical period. A feasible way to obtain the output content characteristics is as follows: the business server inputs the content output by the terminal device in the historical period, such as the video output within a week, into the video recognition model, and the video output within a week is identified and integrated by the video recognition model to obtain the corresponding characteristics of the video output within a week, for example, the video output by the terminal device within a week has the characteristics of funny and cute pets. Among them, the video recognition model is a trained AI model. The embodiment of the present application does not limit the model type and structure of the video recognition model, and can be set according to the needs of the actual application scenario.

[0157] One way to generate the candidate content pool 30d is as follows: generate the candidate content pool 30d with the candidate content that the business server has the output permission for at the current time. In order to narrow the scope, another way to generate the candidate content pool 30d is as follows: generate the candidate content pool 30d with the candidate content associated with the terminal device, for example, the terminal device is bound to an application account, and the content published by the friend account that has a friend relationship with the application account, the content output by the friend account, and the content interacted with by the friend account (such as comments, likes, rewards, attention, etc.) can all be added to the candidate content pool 30d. In addition, the content published by the content publisher that the application client installed on the terminal device interacts with can be added to the candidate content pool 30d.

[0158] The service server identifies the characteristics of the candidate content in the candidate content pool 30d. Figure 4 The example candidate content pool 30d includes video 1, video 2, video 3, video 4, video 5, ..., video a, video b, video c, video d, and video e. Therefore, the business server can use the above-mentioned video recognition model to identify video 1 and obtain the video features of video 1. Further, identify the feature similarity 1 between the video features of video 1 and the output content features. If the feature similarity 1 is greater than or equal to the similarity threshold z (in order to distinguish it from the above-mentioned similarity threshold, the similarity threshold here is referred to as the similarity threshold z), the business server can determine video 1 as the online recommended content; if the feature similarity 1 is less than the similarity threshold z, video 1 is filtered out, and the next video (for example, video 2) is processed as shown in the video 1 process, until all candidate contents in the candidate content pool 30d are identified, and all online recommended contents are determined as the online recommended content set. Figure 4 The example online recommended content set 20f includes video a, video b, video c, ..., video d.

[0159] as Figure 5 In the example pre-recommended content pool 30f, each online recommended content in the online recommended content set also corresponds to a recommendation score, so the business server can determine the pre-pulled content list in the online recommended content set according to the recommendation score of each online recommended content. It can be understood that the process of the business server generating the pre-pulled content list according to the online recommended content set is the same as the process of the business server generating the pre-pulled content list according to the pre-recommended content pool, so it will not be repeated here, please refer to the description in step S102 above.

[0160] For another scenario, please see Figure 4 If the total quantity 30c is greater than the pre-pull online recommendation quota, for example, the pre-pull online recommendation quota is 1.4 million, the business server generates a pre-pull content list provided by the pre-pull function through the pre-recommendation content pool 20h.

[0161] As can be seen from the above, the embodiment of the present application proposes a resource allocation method based on the first pre-pull usage probability, and provides a real-time generated online recommended content set for the terminal device corresponding to the first pre-pull usage probability equal to or higher than the online recommendation threshold, and then can provide a real-time generated pre-pull content list; for the terminal device corresponding to the first pre-pull usage probability lower than the online recommendation threshold, the pre-pull content is allocated from the pre-recommended content pool (i.e., the recommended content pool generated in advance). Therefore, through the pre-recommended content pool, the resource cost of real-time calculation can be reduced; by comparing the first pre-pull usage probability and the online recommendation threshold, high-quality pre-pull content (i.e., real-time generated recommended content) can be allocated to the target object with a high usage probability, so not only can the content recommendation quality be improved, but also the utilization rate of online recommended content can be improved.

[0162] For further information, see Figure 6 , Figure 6 This is a flow diagram of a data processing method provided in an embodiment of the present application. Figure 2 The data processing method may be implemented by a business server (for example, Figure 1 The service server 100 shown in the figure) can also be executed by the service server and the terminal device (such as the above Figure 1 For ease of understanding, the present application embodiment takes the method executed by a service server as an example, that is, the service server is used as a computer device. Figure 6 As shown, the data processing method may at least include the following steps S201 to S207.

[0163] Step S201, obtain a pre-pull request sent by a terminal device, and obtain a first pre-pull usage probability corresponding to the terminal device based on the pre-pull request; the first pre-pull usage probability is used to indicate the probability of a target object corresponding to the terminal device interacting with the content provided by the pre-pull function; the pre-pull function is used to respond to the pre-pull request.

[0164] Specifically, in the database, B historical pre-pull content lists generated for the terminal device in a first time period are obtained; B is a positive integer; the first time period is earlier than the second time period, and the first time period is adjacent to the second time period; in the database, the historical list scores corresponding to the B historical pre-pull content lists are obtained, and the B historical list scores are summed to obtain a first score; among the B historical pre-pull content lists, C historical pre-pull content lists with output attributes are determined; C is a natural number less than or equal to B; based on the first score and the C historical pre-pull content lists, the first pre-pull usage probability is determined.

[0165] Among them, the specific process of determining the first pre-pull usage probability based on the first score and C historical pre-pull content lists may include: summing up the historical list scores corresponding to the C historical pre-pull content lists to obtain a second score; determining the score ratio between the first score and the second score, and determining the first pre-pull usage probability based on the score ratio.

[0166] As mentioned above Figure 3 As described in step S101 of the corresponding embodiment, if the terminal device sends a pre-pull request to the business server during the second type of content output period, that is, the peak content output period, the business server obtains the first pre-pull usage probability corresponding to the terminal device. The method proposed in the embodiment of the present application can be applied to multiple projects and product applications including short videos, long videos, graphics, etc. Since each product application focuses on different dimensional data, the embodiment of the present application does not limit the method for determining the first pre-pull usage probability, and can be set according to the actual application scenario.

[0167] The present application embodiment describes a feasible method for determining the pre-pull usage probability. When updating the pre-pull usage probability corresponding to the terminal device, the service server obtains B historical pre-pull content lists generated for the terminal device in the first time period from the database. Figure 3 From the description of step S101 in the corresponding embodiment, it can be seen that the pre-pull usage probability corresponding to the terminal device is time-sensitive, that is, the business server updates the pre-pull usage probability of the terminal device according to the first update cycle, and the first time period can be understood as a time period corresponding to a first update cycle. For example, the first update cycle is half an hour, so the business server updates the pre-pull usage probability of the terminal device every half an hour. For example, the business server generates the pre-pull usage probability corresponding to the terminal device at 9:30, then at 10 o'clock, the business server obtains B historical pre-pull content lists generated for the terminal device in the first time period (9:30-10:00), that is, in the first time period, the terminal device sends B pre-pull requests to the business server.

[0168] Furthermore, the business server obtains the historical list scores corresponding to B historical pre-pull content lists in the database, sums the B historical list scores, and obtains a first score; among the B historical pre-pull content lists, C historical pre-pull content lists with output attributes are determined, wherein the historical pre-pull content list with the output attribute refers to a historical pre-pull content list that interacts with a target object, that is, after a historical pre-pull content list is returned to a terminal device, the target object corresponding to the terminal device triggers the output of the pre-pull content in the historical pre-pull content list, for example, the target object views the pre-pull content in the historical pre-pull content list through the terminal device.

[0169] The business server sums the historical list scores corresponding to the C historical pre-pull content lists to obtain a second score, and determines the score ratio between the first score and the second score. The business server can determine the score ratio as the current pre-pull usage probability corresponding to the terminal device, that is, the first pre-pull usage probability; or further combine other dimensional data of the application client, such as Figure 3 The number ratio described in step S101 in the corresponding embodiment, for example, performs weighted sum processing on the number ratio and the score ratio to determine the first pre-pull usage probability, wherein the sum of the weights corresponding to the number ratio and the score ratio respectively is equal to 1.

[0170] Step S202: if the first pre-pull usage probability is less than the online recommendation threshold, a pre-pull content list provided by the pre-pull function is generated through a pre-recommended content pool for the terminal device; the generation timestamp of the pre-recommended content pool is earlier than the generation timestamp of the pre-pull request.

[0171] Step S203: If the first pre-pull usage probability is equal to or greater than the online recommendation threshold, an online recommended content set is generated for the terminal device, and a pre-pull content list provided by the pre-pull function is generated based on the online recommended content set; the generation timestamp of the online recommended content set is later than the generation timestamp of the pre-pull request.

[0172] Specifically, in combination with the description of step S202-step S203, in an application scenario (such as short video browsing), the embodiment of the present application can effectively reduce the time spent waiting for playback when the terminal device enters the short video stream by pre-pulling content. Since the content pre-pulled to the client may not be used by the target object, that is, the target object may not trigger the content to play the content, if the pre-pulled content is not used, then the resources consumed by the pre-pulling process are wasted. Based on this, the embodiment of the present application provides real-time recommendation resources (i.e., online recommended content) for target objects with a high probability of pre-pulling use, and provides pre-recommended resources (i.e., pre-recommended content) for target objects with a low probability of use. The above resource allocation method can ensure both the target object experience and the recommendation quality.

[0173] From the above, we can see that by building a pre-recommendation content pool, we can provide low-cost high-quality content and effectively ensure system availability; based on efficient real-time recommendation and pre-recommendation resource allocation, we can maximize resource utilization.

[0174] Step S204, determining the content types corresponding to the A pre-pulled contents in the pre-pulled content list; A is a positive integer.

[0175] Specifically, the embodiments of the present application do not limit the application scenarios, nor do they limit the content types. Therefore, the content types are not limited and can be determined according to the actual application scenarios. Content types may include, but are not limited to, the following: types similar to output content characteristics, friend publishing types, friend interaction types, and account interaction types. Among them, the pre-pulled content belonging to the type similar to the output content characteristics means that the similarity between the pre-pulled content and the output content characteristics is greater than the similarity threshold z. The pre-pulled content belonging to the friend publishing type means that the pre-pulled content belongs to the content published by the friend account. The pre-pulled content belonging to the friend interaction type means that the pre-pulled content belongs to the content interacted with by the friend account (such as likes, comments, forwarding, rewards, etc.). The pre-pulled content belonging to the account interaction type means that the pre-pulled content belongs to the content interacted with by the application account logged in by the application client.

[0176] Step S205, scoring the A pre-pulled contents respectively according to the content types corresponding to the A pre-pulled contents, to obtain content scores corresponding to the A pre-pulled contents respectively; wherein the content score of a pre-pulled content is obtained by scoring the pre-pulled content according to the content type corresponding to the pre-pulled content.

[0177] Specifically, the business server can set a content score for each content type, combined with the content type exemplified in step S204, for example, the content score of the type similar to the output content characteristics is set to 2, the content score of the friend posting type is set to 3, the content score of the friend interaction type is set to 1, and the content score of the account interaction type is set to 2.

[0178] The business server can determine the content score of each pre-pulled content according to the content type to which each pre-pulled content belongs, such as Figure 2 The example pre-pulled content list 20i includes video 1, video 2 and video 3, wherein video 1 belongs to a type similar to the output content features, so the content score of video 1 is 2; video 2 belongs to a friend posted type, so the content score of video 2 is 3; video 3 belongs to a friend posted type, so the content score of video 3 is 3.

[0179] Step S206, summing up the content scores corresponding to the A pre-pulled contents respectively to obtain a list score corresponding to the pre-pulled content list; the list score is used to determine the second pre-pulling usage probability corresponding to the second time period.

[0180] Specifically, in conjunction with step S205, the business server determines Figure 2The content scores corresponding to the three videos in the example pre-pull content list 20i are 2, 3, and 3, respectively. The three content scores are summed to obtain the list score corresponding to the pre-pull content list 20i, that is, 2+3+3=8. It can be understood that the method for determining the historical list score corresponding to the above-mentioned historical pre-pull content list is the same as the method for determining the list score corresponding to the pre-pull content list.

[0181] Step S207: The list score and the device identification for indicating the terminal device are associated and stored in a database.

[0182] Specifically, the beneficial effects brought by the embodiments of the present application can be summarized as follows:

[0183] 1. It uses very low costs to improve the experience and usability of feed streams (such as short videos) and maintain the high quality of recommended content.

[0184] 2. A method and application for generating a pre-recommended content pool is proposed, which can process massive pre-fetch requests at low cost and ensure a high-quality experience of the feed flow.

[0185] 3. A resource allocation method based on pre-pulling usage probability is proposed, so that target objects with high usage probability can obtain better resources, further improving the recommendation quality while keeping the cost unchanged.

[0186] 4. A method of using a pre-recommended content pool as a backup when real-time recommendation fails is proposed to ensure the availability of the system.

[0187] As can be seen from the above, the embodiment of the present application proposes a resource allocation method based on the first pre-pull usage probability, and provides a real-time generated online recommended content set for the terminal device corresponding to the first pre-pull usage probability equal to or higher than the online recommendation threshold, and then can provide a real-time generated pre-pull content list; for the terminal device corresponding to the first pre-pull usage probability lower than the online recommendation threshold, the pre-pull content is allocated from the pre-recommended content pool (i.e., the recommended content pool generated in advance). Therefore, through the pre-recommended content pool, the resource cost of real-time calculation can be reduced; by comparing the first pre-pull usage probability and the online recommendation threshold, high-quality pre-pull content (i.e., real-time generated recommended content) can be allocated to the target object with a high usage probability, so not only can the content recommendation quality be improved, but also the utilization rate of online recommended content can be improved.

[0188] See also Figure 7 , Figure 7 This is a flow diagram of a data processing method provided in an embodiment of the present application. Figure 3 The method may be performed by a business server (for example, Figure 1 The service server 100 shown in the figure) can also be executed by the service server and the terminal device (for example, the above Figure 1 For ease of understanding, the present application embodiment takes the method executed by a service server as an example, that is, the service server is used as a computer device. Figure 7 As shown, the method may at least include steps S301 to S306.

[0189] Step S301, obtaining D pre-pull usage probabilities of all terminal devices in a first time period in a database; the all terminal devices include the terminal devices; the D pre-pull usage probabilities include a first pre-pull usage probability.

[0190] Specifically, the first time period can be understood as the time period corresponding to the first update cycle. The business server updates the pre-pull usage probabilities corresponding to all terminal devices according to the first update cycle. For example, if the first update cycle is half an hour, the business server updates the pre-pull usage probabilities corresponding to all terminal devices every half an hour. For example, if the current pre-pull usage probability of the terminal device is generated at 9:30, the business server updates the pre-pull usage probability of the terminal device at 10 o'clock, so the above-mentioned first time period can be from 9:30 to 10 o'clock.

[0191] It can be understood that the total number of all terminal devices is equal to D.

[0192] Step S302 , sorting the D pre-pull usage probabilities to obtain sorted D pre-pull usage probabilities.

[0193] Specifically, the business server may sort the D pre-pull usage probabilities in descending order to obtain sorted D pre-pull usage probabilities, that is, the pre-pull usage probability in the leading order is greater than or equal to the pre-pull usage probability in the trailing order.

[0194] Step S303, determining the pre-pull online recommendation quota corresponding to the system time, and determining the online recommendation threshold from the sorted D pre-pull usage probabilities according to the pre-pull online recommendation quota.

[0195] Specifically, determine the non-pre-pull online recommendation quota corresponding to the system time, perform difference processing on the total online recommendation quota with fixed attributes and the non-pre-pull online recommendation quota, and obtain the pre-pull online recommendation quota; among the sorted D pre-pull usage probabilities, obtain E pre-pull usage probabilities whose number is equal to the pre-pull online recommendation quota; E is a positive integer less than or equal to D; and determine the minimum pre-pull usage probability among the E pre-pull usage probabilities as the online recommendation threshold.

[0196] The embodiment of the present application realizes dynamic allocation of real-time recommendation resources (i.e., online recommended content) to maximize the use of real-time recommendation resources. Specifically, a total real-time recommendation quota is defined, that is, a fixed total online recommendation quota. The business server determines the non-pre-pull online recommendation quota based on the second update cycle. For example, the second update cycle is one second or one minute, that is, the business server counts the total number of non-pre-pull requests obtained in the current second (or current minute), and determines the total number of non-pre-pull requests as the non-pre-pull online recommendation quota for the next second (or next minute). A non-pre-pull request is a request generated after the terminal device enters the content output page and there is a content output request. The content returned by the business server for the non-pre-pull request is called non-pre-pull content, and the non-pre-pull content is online recommended content, so the embodiment of the present application is also referred to as non-pre-pull online recommended content. The non-pre-pull online recommendation quota refers to the total amount of non-pre-pull online recommended content. The non-pre-pull online recommended content refers to the content pulled after the terminal device enters the content playback page. The pre-pull online recommended content refers to the content pulled before the terminal device enters the content playback page.

[0197] The non-pre-pull online recommended quota and the pre-pull online recommended quota must satisfy the above formula (1). Please refer to Figure 8 , Figure 8 This is an example of a stacked polyline diagram of the amount of pre-pulled online recommended content provided in an embodiment of the present application. Among them, the sum of the non-pre-pulled online recommended amount and the pre-pulled online recommended amount is less than or equal to the total online recommended amount. Specifically, during the low-peak period of content output (also referred to as the first type of content output period in the embodiment of the present application), since the sum of the numbers corresponding to the pre-pulled requests and the non-pre-pulled requests is small, the sum of the non-pre-pulled online recommended amount and the pre-pulled online recommended amount may be less than the total online recommended amount. Therefore, the system resource utilization rate corresponding to the business server is low. Therefore, during the low-peak period of content output, the business server returns the online recommended content as pre-pulled content to the terminal device for the pre-pulled request, that is, the pre-recommended content ( Figure 8 It is expressed as pre-pull and pre-recommend).

[0198] During the peak content output period (also referred to as the second type of content output period in this embodiment of the application), there are many online target objects, and the sum of the number of pre-pull requests and non-pre-pull requests will be greater than the total amount of online recommendations. Therefore, the business server sets the level of real-time recommendations for pre-pull requests, and dynamically adjusts the level of real-time recommendations for non-pre-pull requests, so that real-time recommendation resources can be used to the maximum extent. Figure 8 As shown, during the peak content output period, the sum of the pre-pulled online recommendation quota and the non-pre-pulled online recommendation quota is equal to the fixed total online recommendation quota.

[0199] Step S304, obtain the pre-pull request sent by the terminal device, and obtain the first pre-pull usage probability corresponding to the terminal device based on the pre-pull request; the first pre-pull usage probability is used to indicate the probability of the target object corresponding to the terminal device interacting with the content provided by the pre-pull function; the pre-pull function is used to respond to the pre-pull request.

[0200] Step S305: if the first pre-pull usage probability is less than the online recommendation threshold, a pre-pull content list provided by the pre-pull function is generated through a pre-recommended content pool for the terminal device; the generation timestamp of the pre-recommended content pool is earlier than the generation timestamp of the pre-pull request.

[0201] Step S306: If the first pre-pull usage probability is equal to or greater than the online recommendation threshold, an online recommended content set is generated for the terminal device, and a pre-pull content list provided by the pre-pull function is generated based on the online recommended content set; the generation timestamp of the online recommended content set is later than the generation timestamp of the pre-pull request.

[0202] For the specific implementation process of steps S304 to S306, please refer to the above Figure 3 Steps S101 to S103 in the corresponding embodiment are not described in detail here.

[0203] As can be seen from the above, the embodiment of the present application proposes a resource allocation method based on the first pre-pull usage probability, and provides a real-time generated online recommended content set for the terminal device corresponding to the first pre-pull usage probability equal to or higher than the online recommendation threshold, and then can provide a real-time generated pre-pull content list; for the terminal device corresponding to the first pre-pull usage probability lower than the online recommendation threshold, the pre-pull content is allocated from the pre-recommended content pool (i.e., the recommended content pool generated in advance). Therefore, through the pre-recommended content pool, the resource cost of real-time calculation can be reduced; by comparing the first pre-pull usage probability and the online recommendation threshold, high-quality pre-pull content (i.e., real-time generated recommended content) can be allocated to the target object with a high usage probability, so not only the content recommendation quality can be improved, but also the utilization rate of online recommended content can be improved. In addition, the embodiment of the present application proposes a method for dynamically allocating the total online recommendation quota by pre-pull requests and non-pre-pull requests, which can improve the utilization rate of online recommendation resources.

[0204] See also Fig. 9 , Fig. 9 This is a flow diagram of a data processing method provided in an embodiment of the present application. Figure 4 The method may be performed by a business server (for example, Figure 1 The service server 100 shown in the figure) can also be executed by the service server and the terminal device (for example, the above Figure 1For ease of understanding, the present application embodiment takes the method executed by a service server as an example, that is, the service server is used as a computer device. Fig. 9 As shown, the method may include at least the following steps.

[0205] Step S401: obtaining a historical online recommended content set generated for a terminal device, and determining a first historical online recommended content with an output attribute in the historical online recommended content set.

[0206] Specifically, in order to achieve a high-quality experience of the feed stream, various multimedia applications will preload before the target object consumes the multimedia content, including pre-pulling the recommended feed list (also referred to as the pre-pulled content list in this application), pre-downloading the content header, pre-rendering the player, etc. Loading the content before the target object watches the content can prevent the application client from being stuck or loading slowly when the target object consumes the content, thereby improving the target object's consumption experience.

[0207] The embodiment of the present application proposes a method for improving the feed stream experience, usability and maintaining high recommendation quality at a low cost. The historical online recommended content set refers to a set of online recommended content generated in response to a pre-pull request obtained during a historical period (referred to as a historical pre-pull request). The embodiment of the present application does not limit the total number of historical online recommended content sets, and can be set according to actual application scenarios. An optional implementation is as follows: the historical online recommended content set may include an online recommended content set generated in response to a pre-pull request obtained during a historical period, and may also include an online recommended content set generated in response to a non-pre-pull request obtained during a historical period.

[0208] For example, if the current system time is 12:00 on May 6, 2024, the set of online recommended content generated for the terminal device within one week (or one day or three days) before 12:00 on May 6, 2024 may be called the historical online recommended content set.

[0209] The business server determines, in the historical online recommended content set, a first historical online recommended content with an output attribute, wherein the first historical online recommended content with an output attribute refers to an online recommended content that has been consumed by a target object, for example, the online recommended content is returned to a terminal device as pre-pulled content (or non-pre-pulled content), and the target object consumes the online recommended content on the terminal device, so the online recommended content has an output attribute.

[0210] Step S402: adding the second historical online recommended content in the historical online recommended content set except the first historical online recommended content to the initial pre-recommended content pool; the second historical online recommended content has a to-be-output attribute.

[0211] Specifically, corresponding to the first historical online recommended content, the second historical online recommended content refers to online recommended content that has not been consumed by the target object, and therefore has a to-be-output attribute.

[0212] Step S403: Generate a pre-recommended content pool according to the initial pre-recommended content pool.

[0213] Specifically, during the first type of content output period, offline recommendation processing is performed on the terminal device to obtain offline recommended content; the offline recommended content is added to the initial pre-recommended content pool, and the initial pre-recommended content pool with the offline recommended content added is determined as the pre-recommended content pool.

[0214] In this application, the pre-recommended content is constructed from two parts: online calculation content triggered by pre-pull requests, and offline pre-calculated content. Among them, the online calculation content includes a set of online recommended content generated in response to pre-pull requests, and may also include a set of online recommended content generated in response to non-pre-pull requests; offline pre-calculated content refers to offline recommended content generated by the business server for terminal devices through offline calculation during the off-peak period of content output. Offline recommendation processing does not require target object triggering and can be set by the business server.

[0215] In combination with steps S401 to S403, it can be seen that the embodiment of the present application saves the feed list produced by the pulling process (which may include a pre-pulling process and a non-pre-pulling process) as an initial pre-recommended content pool, and supplements the initial pre-recommended content pool with the feed produced by offline calculation during the off-peak period of content output, thereby ensuring that sufficient and high-quality personalized pre-recommended content is obtained at a low cost.

[0216] From the above, it can be seen that the embodiment of the present application implements a preloading mechanism and constructs a pre-recommended content pool. According to the probability of the pre-pull request being used, real-time recommended content or pre-recommended content can be allocated to allow the target object to use the real-time recommended content to the maximum extent.

[0217] Please also see Fig.10 , Fig.10This is an example diagram of the classification of pulled content provided in an embodiment of the present application. Pulled content can be divided into pre-pull content and non-pre-pull content, wherein pre-pull content refers to content pulled in advance by the terminal device before entering the content consumption page, and non-pre-pull content refers to content pulled in real time when the terminal device is on the content consumption page and consuming content, so non-pre-pull content is all online recommended content. Pre-pull content is divided into two categories, one is pre-recommended content, and the other is online recommended content. For when to use pre-recommended content as pre-pull content and when to use online recommended content as pre-pull content, please refer to the above. Figure 3 The corresponding embodiment is described. Pre-recommended content can also be divided into two categories, one is historical online recommended content, and the other is offline recommended content. The meaning and generation of the above two categories of content refer to the description of the above steps.

[0218] Step S404, obtain the pre-pull request sent by the terminal device, and obtain the first pre-pull usage probability corresponding to the terminal device based on the pre-pull request; the first pre-pull usage probability is used to indicate the probability of the target object corresponding to the terminal device interacting with the content provided by the pre-pull function; the pre-pull function is used to respond to the pre-pull request.

[0219] For the specific implementation process of step S404, please refer to the above Figure 3 Step S101 in the corresponding embodiment is not described in detail here.

[0220] Step S405: if the first pre-pull usage probability is less than the online recommendation threshold, a pre-pull content list provided by the pre-pull function is generated through a pre-recommended content pool for the terminal device; the generation timestamp of the pre-recommended content pool is earlier than the generation timestamp of the pre-pull request.

[0221] Specifically, using the pre-recommended content pool of high-quality feeds for pre-loading of front-end scenarios can improve the pre-loading coverage and reduce the target object browsing waiting time. The embodiment of the present application allocates online recommendation resources (i.e., online recommended content) to target objects with high usage probability and pre-recommended content to target objects with low usage probability based on the probability of the target object using pre-loaded data (i.e., pre-pulling usage probability), so as to maximize the use of system resources to maximize business indicators. In addition, when the recommendation system fails, the pre-recommended content pool is used to replace the real-time recommended content, fully ensuring the availability of the feed stream while ensuring high recommendation quality.

[0222] Step S406: If the first pre-pull usage probability is equal to or greater than the online recommendation threshold, an online recommended content set is generated for the terminal device, and a pre-pull content list provided by the pre-pull function is generated based on the online recommended content set; the generation timestamp of the online recommended content set is later than the generation timestamp of the pre-pull request.

[0223] For details, please refer to Fig.11 as well as Fig.12 , Fig.11 is a schematic diagram of the probability of use of randomly assigned online recommended content provided by an embodiment of the present application, Fig.12 Schematic diagram of the probability of using online recommended content according to probability distribution provided by the embodiment of the present application. Fig.11 As shown in the figure, for pre-pull requests, the online recommended content is used with a probability of 30%, and the pre-recommended content is used with a probability of 70%. For example, if 100 pre-pull requests are sent by terminal devices, that is, 100 pre-pull requests are obtained, the business server randomly extracts 30 pre-pull requests from the 100 pre-pull requests, returns the pre-pull content generated by the online recommended content for the 30 pre-pull requests, and returns the pre-pull content generated by the pre-recommended content for the 70 pre-pull requests. Since the online recommended content is randomly assigned to the pre-pull request, Fig.11 Among them, only 14% of the pre-pulled content generated by online recommended content was used, that is, consumed, and 86% of the pre-pulled content generated by online recommended content was not used.

[0224] Please see again Fig.12 , using the embodiment of the present application, for pre-pull requests, the online recommended content is still used with a probability of 30%, and the pre-recommended content is used with a probability of 70%, but the pre-pull usage probabilities corresponding to the terminal devices sending the pre-pull requests are obtained, and these pre-pull usage probabilities are sorted. For example, pre-pull requests sent by 100 terminal devices are obtained, that is, 100 pre-pull requests are obtained, and the business server obtains the pre-pull usage probabilities corresponding to the 100 terminal devices, and sorts the 100 pre-pull usage probabilities from large to small. For the first 30 pre-pull usage probabilities, the terminal devices corresponding to these pre-pull usage probabilities respond to the pre-pull content generated by the online recommended content, and for the last 70 pre-pull usage probabilities, the terminal devices corresponding to these pre-pull usage probabilities respond to the pre-pull content generated by the pre-recommended content.

[0225] Since the online recommended content is allocated according to the pre-fetched usage probability, Fig.12 In , 25% of the pre-pull content generated by online recommended content is used, that is, consumed, and 75% of the pre-pull content generated by online recommended content is not used. Fig.11 Only 14% of pre-fetched content generated by online recommendations is used. Fig.12 The improvement is 11%, that is, the embodiment of the present application can avoid waste of resources and improve content utilization.

[0226] As can be seen from the above, the embodiment of the present application proposes a resource allocation method based on the first pre-pull usage probability, and provides a real-time generated online recommended content set for the terminal device corresponding to the first pre-pull usage probability equal to or higher than the online recommendation threshold, and then can provide a real-time generated pre-pull content list; for the terminal device corresponding to the first pre-pull usage probability lower than the online recommendation threshold, the pre-pull content is allocated from the pre-recommended content pool (i.e., the recommended content pool generated in advance). Therefore, through the pre-recommended content pool, the resource cost of real-time calculation can be reduced; by comparing the first pre-pull usage probability and the online recommendation threshold, high-quality pre-pull content (i.e., real-time generated recommended content) can be allocated to the target object with a high usage probability, so not only can the content recommendation quality be improved, but also the utilization rate of online recommended content can be improved.

[0227] For further information, see Fig.13 , Fig.13 1 is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The above-mentioned data processing device 1 can be used to execute the corresponding steps in the method provided in an embodiment of the present application. Fig.13 As shown, the data processing device 1 may include: an acquisition module 11 and a generation module 12 .

[0228] The acquisition module 11 is used to acquire a pre-pull request sent by the terminal device, and acquire a first pre-pull usage probability corresponding to the terminal device according to the pre-pull request; the first pre-pull usage probability is used to indicate the probability of the target object corresponding to the terminal device interacting with the content provided by the pre-pull function; the pre-pull function is used to respond to the pre-pull request;

[0229] A generating module 12 is used to generate a pre-pull content list provided by the pre-pull function through a pre-recommended content pool for the terminal device if the first pre-pull usage probability is less than the online recommendation threshold; the generation timestamp of the pre-recommended content pool is earlier than the generation timestamp of the pre-pull request;

[0230] The generating module 12 is further used to generate an online recommended content set for the terminal device if the first pre-pull usage probability is equal to or greater than the online recommendation threshold, and generate a pre-pull content list provided by the pre-pull function based on the online recommended content set; the generation timestamp of the online recommended content set is later than the generation timestamp of the pre-pull request.

[0231] In a possible implementation, the acquisition module 11 acquires the pre-fetch request sent by the terminal device, and is used to perform the following operations:

[0232] Obtaining a pre-fetch request sent by a terminal device at a first moment;

[0233] The acquisition module 11 is further used to perform the following operations:

[0234] Counting the number of application startups and pre-fetching usages of the terminal device in the first time period; the latest timestamp of the first time period is earlier than the first moment;

[0235] Determine a ratio between the number of application startups and the number of pre-pull usages, and determine a first pre-pull usage probability according to the ratio;

[0236] The first pre-fetching usage probability and the device identifier for indicating the terminal device are associated and stored in a database.

[0237] In a possible implementation, the acquisition module 11 is further configured to perform the following operations:

[0238] Determine the content types corresponding to the A pre-pulled contents in the pre-pulled content list; A is a positive integer;

[0239] According to the content types corresponding to the A pre-pulled contents, the A pre-pulled contents are scored respectively to obtain content scores corresponding to the A pre-pulled contents; wherein the content score of one pre-pulled content is obtained by scoring one pre-pulled content according to the content type corresponding to the one pre-pulled content;

[0240] The content scores corresponding to the A pre-pulled contents are summed to obtain a list score corresponding to the pre-pulled content list; the list score is used to determine the second pre-pulled usage probability corresponding to the second time period;

[0241] The list score and the device identification for indicating the terminal device are associated and stored in a database.

[0242] In a possible implementation, the acquisition module 11 is further configured to perform the following operations:

[0243] In the database, B historical pre-fetched content lists generated for the terminal device in a first time period are obtained; B is a positive integer; the first time period is earlier than the second time period, and the first time period is adjacent to the second time period;

[0244] In the database, obtain the history list scores corresponding to the B history pre-fetched content lists respectively, and sum the B history list scores to obtain a first score;

[0245] Determine C historical pre-pull content lists having output attributes from among the B historical pre-pull content lists; C is a natural number less than or equal to B;

[0246] A first pre-fetch usage probability is determined according to the first score and the C historical pre-fetch content lists.

[0247] In a possible implementation, the acquisition module 11 determines the first pre-pull usage probability according to the first score and the C historical pre-pull content lists, and performs the following operations:

[0248] Sum the history list scores corresponding to the C history pre-fetched content lists to obtain a second score;

[0249] A score ratio between the first score and the second score is determined, and a first pre-pull usage probability is determined according to the score ratio.

[0250] In a possible implementation, the acquisition module 11 is further configured to perform the following operations:

[0251] Obtaining, in a database, D pre-pull usage probabilities of all terminal devices in a first time period; the all terminal devices include the terminal devices; the D pre-pull usage probabilities include the first pre-pull usage probability;

[0252] Sorting the D pre-pull usage probabilities to obtain sorted D pre-pull usage probabilities;

[0253] A pre-pull online recommendation quota corresponding to the system time is determined, and an online recommendation threshold is determined from the sorted D pre-pull usage probabilities according to the pre-pull online recommendation quota.

[0254] In a possible implementation, the acquisition module 11 determines the pre-pulled online recommendation quota corresponding to the system time, and is used to perform the following operations:

[0255] Determine the non-pre-pull online recommendation quota corresponding to the system time, perform difference processing on the total online recommendation quota with fixed attributes and the non-pre-pull online recommendation quota, and obtain the pre-pull online recommendation quota;

[0256] The acquisition module determines the online recommendation threshold value among the sorted D pre-pull usage probabilities according to the pre-pull online recommendation quota, and performs the following operations:

[0257] Among the sorted D pre-pull usage probabilities, obtain E pre-pull usage probabilities equal to the pre-pull online recommendation quota; E is a positive integer less than or equal to D;

[0258] The minimum pre-pull usage probability among the E pre-pull usage probabilities is determined as the online recommendation threshold.

[0259] In a possible implementation, the acquisition module 11 is further configured to perform the following operations:

[0260] Acquire a historical online recommended content set generated for the terminal device, and determine, in the historical online recommended content set, a first historical online recommended content having an output attribute;

[0261] adding a second historical online recommended content in the historical online recommended content set except the first historical online recommended content to the initial pre-recommended content pool; the second historical online recommended content has a to-be-output attribute;

[0262] A pre-recommended content pool is generated based on the initial pre-recommended content pool.

[0263] In a possible implementation, the generating module 12 generates a pre-recommended content pool according to the initial pre-recommended content pool, and is used to perform the following operations:

[0264] During the first type of content output period, performing offline recommendation processing on the terminal device to obtain offline recommended content;

[0265] The offline recommended content is added to the initial pre-recommended content pool, and the initial pre-recommended content pool to which the offline recommended content is added is determined as the pre-recommended content pool.

[0266] In a possible implementation, the generation module 12 generates a pre-pull content list provided by the pre-pull function through a pre-recommended content pool for the terminal device, and is used to perform the following operations:

[0267] In the pre-recommended content pool for the terminal device, F pre-recommended contents in a valid state are determined; F is a positive integer;

[0268] Determine the recommendation scores corresponding to the F pre-recommended contents respectively, and obtain G recommendation scores from the F recommendation scores; the G recommendation scores are greater than or equal to the H recommendation scores; the H recommendation scores include the recommendation scores from the F recommendation scores except the G recommendation scores; G is a positive integer less than or equal to F; H is a positive integer less than F;

[0269] Among the F pre-recommended contents, the pre-recommended contents corresponding to the G recommendation scores are obtained, and a pre-pulled content list provided by the pre-pulling function is generated according to the G pre-recommended contents.

[0270] In a possible implementation, the generating module 12 generates a pre-pull content list provided by the pre-pull function according to the G pre-recommended contents, and is used to perform the following operations:

[0271] Generate a candidate pre-pulled content list according to the G pre-recommended contents; the G pre-recommended contents include the first pre-recommended content and the second pre-recommended content;

[0272] Determining content similarity between the first pre-recommended content and the second pre-recommended content;

[0273] If the content similarity is equal to or greater than the similarity threshold, deleting the first pre-recommended content from the candidate pre-pulled content list;

[0274] Obtaining a maximum recommendation score from the H recommendation scores, and obtaining a third pre-recommended content corresponding to the maximum recommendation score from the F pre-recommended content;

[0275] adding the third pre-recommended content to the candidate pre-pulled content list from which the first pre-recommended content is deleted;

[0276] A pre-pulled content list provided by the pre-pulling function is generated according to the candidate pre-pulled content list with the third pre-recommended content added and the first pre-recommended content deleted; the content similarity between every two pre-pulled contents in the pre-pulled content list is less than a similarity threshold.

[0277] In a possible implementation, the acquisition module 11 acquires the first pre-pull usage probability corresponding to the terminal device according to the pre-pull request, and is used to perform the following operations:

[0278] Determine an acquisition timestamp of the pre-pull request, and if the acquisition timestamp is in a first type of content output period, generate an online recommended content set for the terminal device, and generate a pre-pull content list provided by the pre-pull function according to the online recommended content set;

[0279] If the acquisition timestamp is in the second type period of content output, the first pre-pull usage probability corresponding to the terminal device is obtained; the total amount of output content corresponding to the second type period of content output is greater than the total amount of output content corresponding to the first type period of content output.

[0280] In a possible implementation, the generating module 12 generates an online recommended content set for the terminal device, and is used to perform the following operations:

[0281] Count the total number of pre-fetch usage probabilities that are equal to or greater than the online recommendation threshold;

[0282] If the total number is less than or equal to the pre-pulled online recommendation quota, then generate an online recommendation content set for the terminal device based on the output content features of the terminal device and the candidate content pool corresponding to the system time;

[0283] If the total number is greater than the pre-pull online recommendation quota, a pre-pull content list provided by the pre-pull function is generated through the pre-recommendation content pool.

[0284] As can be seen from the above, the embodiment of the present application proposes a resource allocation method based on the first pre-pull usage probability, and provides a real-time generated online recommended content set for the terminal device corresponding to the first pre-pull usage probability equal to or higher than the online recommendation threshold, and then can provide a real-time generated pre-pull content list; for the terminal device corresponding to the first pre-pull usage probability lower than the online recommendation threshold, the pre-pull content is allocated from the pre-recommended content pool (i.e., the recommended content pool generated in advance). Therefore, through the pre-recommended content pool, the resource cost of real-time calculation can be reduced; by comparing the first pre-pull usage probability and the online recommendation threshold, high-quality pre-pull content (i.e., real-time generated recommended content) can be allocated to the target object with a high usage probability, so not only can the content recommendation quality be improved, but also the utilization rate of online recommended content can be improved.

[0285] For further information, see Fig.14 , Fig.14 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.14 As shown, the computer device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. In some embodiments, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Fig.14 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application.

[0286] exist Fig.14 In the computer device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0287] Obtaining a pre-pull request sent by a terminal device, and obtaining a first pre-pull usage probability corresponding to the terminal device according to the pre-pull request; the first pre-pull usage probability is used to indicate the probability of a target object corresponding to the terminal device interacting with the content provided by the pre-pull function; the pre-pull function is used to respond to the pre-pull request;

[0288] If the first pre-pull usage probability is less than the online recommendation threshold, a pre-pull content list provided by the pre-pull function is generated through a pre-recommended content pool for the terminal device; the generation timestamp of the pre-recommended content pool is earlier than the generation timestamp of the pre-pull request;

[0289] If the first pre-pull usage probability is equal to or greater than the online recommendation threshold, an online recommended content set is generated for the terminal device, and a pre-pull content list provided by the pre-pull function is generated based on the online recommended content set; the generation timestamp of the online recommended content set is later than the generation timestamp of the pre-pull request.

[0290] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the description of the data processing method or device in the above embodiments, which will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated.

[0291] The present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the description of the data processing method or device in the above embodiments is implemented, which will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated.

[0292] The computer-readable storage medium may be the data processing device provided in any of the aforementioned embodiments or the internal storage unit of the computer device, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.

[0293] The present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device can execute the description of the data processing method or device in the above embodiments, which will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated.

[0294] The terms "first", "second", etc. in the description, claims, and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or units is not limited to the listed steps or modules, but optionally includes steps or modules that are not listed, or optionally includes other step units inherent to these processes, methods, devices, products, or equipment.

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

[0296] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data processing method, It is characterized in that include: Acquire a pre-fetch request sent by a terminal device when displaying a non-content output page, and acquire a first pre-fetch usage probability corresponding to the terminal device according to the pre-fetch request; The first pre-pull usage probability is used to indicate the probability of the target object corresponding to the terminal device interacting with the content provided by the pre-pull function; the pre-pull function is used to respond to the pre-pull request; Determine the non-pre-pull online recommendation quota corresponding to the system time, perform a difference processing on the total online recommendation quota with fixed attributes and the non-pre-pull online recommendation quota, and obtain the pre-pull online recommendation quota; The pre-pull online recommendation quota is used to determine the online recommendation threshold in the current pre-pull usage probability corresponding to all terminal devices; the non-pre-pull online recommendation quota refers to the total number of non-pre-pull online recommended content, and the non-pre-pull online recommended content refers to the content pulled after entering the content playback page; If the first pre-pull usage probability is less than the online recommendation threshold, a pre-pull content list provided by the pre-pull function is generated through a pre-recommended content pool for the terminal device; a generation timestamp of the pre-recommended content pool is earlier than a generation timestamp of the pre-pull request; the first pre-pull usage probability less than the online recommendation threshold is used to indicate that the probability of the terminal device outputting the pre-pull content in the pre-pull content list is low; If the first pre-pull usage probability is equal to or greater than the online recommendation threshold, an online recommended content set is generated for the terminal device, and a pre-pull content list provided by the pre-pull function is generated based on the online recommended content set; the generation timestamp of the online recommended content set is later than the generation timestamp of the pre-pull request; the first pre-pull usage probability equal to or greater than the online recommendation threshold is used to indicate that the probability of the terminal device outputting the pre-pull content in the pre-pull content list is high.

2. The method according to claim 1, It is characterized in that The obtaining of the pre-fetch request sent by the terminal device includes: Obtaining a pre-fetch request sent by a terminal device at a first moment; The method further comprises: Counting the number of application startups and pre-pulling usages of the terminal device in a first time period; the latest timestamp of the first time period is earlier than the first moment; Determine a ratio between the application startup times and the pre-pull usage times, and determine the first pre-pull usage probability according to the ratio; The first pre-fetch usage probability and the device identifier for indicating the terminal device are associated and stored in a database.

3. The method according to claim 1, It is characterized in that The method further comprises: Determine the content types corresponding to the A pre-pulled contents in the pre-pulled content list, respectively; A is a positive integer; According to the content types corresponding to the A pre-pulled contents, the A pre-pulled contents are scored respectively to obtain content scores corresponding to the A pre-pulled contents; wherein the content score of a pre-pulled content is obtained by scoring the pre-pulled content according to the content type corresponding to the pre-pulled content; The content scores corresponding to the A pre-pulled contents are summed to obtain a list score corresponding to the pre-pulled content list; the list score is used to determine a second pre-pulled usage probability corresponding to a second time period; The list score and the device identification for indicating the terminal device are associated and stored in a database.

4. The method according to claim 3, It is characterized in that The method further comprises: In the database, B historical pre-fetched content lists generated for the terminal device in a first time period are obtained; B is a positive integer; the first time period is earlier than the second time period, and the first time period is adjacent to the second time period; In the database, obtaining the history list scores respectively corresponding to the B history pre-fetched content lists, and summing the B history list scores to obtain a first score; Determine C historical pre-pull content lists having output attributes from among the B historical pre-pull content lists; C is a natural number less than or equal to B; The first pre-fetch usage probability is determined according to the first score and the C historical pre-fetch content lists.

5. The method according to claim 4, It is characterized in that The determining the first pre-fetching usage probability according to the first score and the C historical pre-fetching content lists includes: Sum the history list scores corresponding to the C history pre-fetched content lists to obtain a second score; A score ratio between the first score and the second score is determined, and the first pre-pull usage probability is determined according to the score ratio.

6. The method according to claim 1, It is characterized in that The method further comprises: Acquire, in a database, D pre-pulling usage probabilities of all terminal devices in a first time period; the full terminal devices include the terminal device; the D pre-pulling usage probabilities include the first pre-pulling usage probability; Sorting the D pre-pulling usage probabilities to obtain sorted D pre-pulling usage probabilities; A pre-pull online recommendation quota corresponding to the system time is determined, and the online recommendation threshold is determined from the sorted D pre-pull usage probabilities according to the pre-pull online recommendation quota.

7. The method according to claim 6, It is characterized in that The determining the online recommendation threshold value from the sorted D pre-pulled usage probabilities according to the pre-pulled online recommendation quota includes: From the sorted D pre-pull usage probabilities, obtain E pre-pull usage probabilities equal to the pre-pull online recommendation quota; E is a positive integer less than or equal to D; The minimum pre-pull usage probability among the E pre-pull usage probabilities is determined as the online recommendation threshold.

8. The method according to claim 1, It is characterized in that The method further comprises: Acquire a historical online recommended content set generated for the terminal device, and determine, in the historical online recommended content set, a first historical online recommended content having an output attribute; adding a second historical online recommended content in the historical online recommended content set except the first historical online recommended content to the initial pre-recommended content pool; the second historical online recommended content has a to-be-output attribute; The pre-recommended content pool is generated according to the initial pre-recommended content pool.

9. The method according to claim 8, It is characterized in that The step of generating the pre-recommended content pool according to the initial pre-recommended content pool includes: During the first type of content output period, performing offline recommendation processing on the terminal device to obtain offline recommended content; The offline recommended content is added to the initial pre-recommended content pool, and the initial pre-recommended content pool to which the offline recommended content is added is determined as the pre-recommended content pool.

10. The method according to claim 1, It is characterized in that The generating the pre-pull content list provided by the pre-pull function through the pre-recommended content pool for the terminal device includes: In the pre-recommended content pool for the terminal device, F pre-recommended contents in a valid state are determined; F is a positive integer; Determine the recommendation scores corresponding to the F pre-recommended contents respectively, and obtain G recommendation scores from the F recommendation scores; the G recommendation scores are greater than or equal to the H recommendation scores; the H recommendation scores include the recommendation scores from the F recommendation scores other than the G recommendation scores; G is a positive integer less than or equal to F; H is a positive integer less than F; Among the F pre-recommended contents, the pre-recommended contents respectively corresponding to the G recommendation scores are obtained, and a pre-pulled content list provided by the pre-pulling function is generated according to the G pre-recommended contents.

11. The method according to claim 10, It is characterized in that The step of generating a list of pre-pulled contents provided by the pre-pulling function according to the G pre-recommended contents includes: Generate a candidate pre-pulled content list according to the G pre-recommended contents; the G pre-recommended contents include the first pre-recommended content and the second pre-recommended content; Determining content similarity between the first pre-recommended content and the second pre-recommended content; If the content similarity is equal to or greater than a similarity threshold, deleting the first pre-recommended content from the candidate pre-pulled content list; Obtaining a maximum recommendation score from the H recommendation scores, and obtaining a third pre-recommended content corresponding to the maximum recommendation score from the F pre-recommended content; adding the third pre-recommended content to a candidate pre-pulled content list from which the first pre-recommended content is deleted; A pre-pulled content list provided by the pre-pulling function is generated according to the candidate pre-pulled content list with the third pre-recommended content added and the first pre-recommended content deleted; the content similarity between every two pre-pulled contents in the pre-pulled content list is less than the similarity threshold.

12. The method according to claim 1, It is characterized in that The obtaining, according to the pre-pull request, a first pre-pull usage probability corresponding to the terminal device includes: Determine an acquisition timestamp of the pre-pull request, and if the acquisition timestamp is in a first type of content output period, generate an online recommended content set for the terminal device, and generate a pre-pull content list provided by the pre-pull function according to the online recommended content set; If the acquisition timestamp is in the second type time period of content output, the first pre-pull usage probability corresponding to the terminal device is obtained; the total amount of output content corresponding to the second type time period of content output is greater than the total amount of output content corresponding to the first type time period of content output.

13. The method according to claim 1, It is characterized in that The generating of the online recommended content set for the terminal device includes: Counting the total number of pre-pull usage probabilities that are equal to or greater than the online recommendation threshold; If the total number is less than or equal to the pre-pulled online recommendation quota, generating an online recommended content set for the terminal device according to the output content features of the terminal device and the candidate content pool corresponding to the system time; If the total number is greater than the pre-pulled online recommendation quota, a pre-pulled content list provided by the pre-pulling function is generated through the pre-recommended content pool.

14. A data processing device, It is characterized in that include: An acquisition module, used to acquire a pre-pull request sent by a terminal device when displaying a non-content output page, and acquire a first pre-pull usage probability corresponding to the terminal device according to the pre-pull request; the first pre-pull usage probability is used to indicate a probability that a target object corresponding to the terminal device interacts with content provided by a pre-pull function; the pre-pull function is used to respond to the pre-pull request; The acquisition module is further used to determine the non-pre-pull online recommendation quota corresponding to the system time, and perform a difference processing on the total online recommendation quota with fixed attributes and the non-pre-pull online recommendation quota to obtain the pre-pull online recommendation quota; The pre-pull online recommendation quota is used to determine the online recommendation threshold in the current pre-pull usage probability corresponding to all terminal devices; the non-pre-pull online recommendation quota refers to the total number of non-pre-pull online recommended content, and the non-pre-pull online recommended content refers to the content pulled after entering the content playback page; A generating module, configured to generate a pre-pull content list provided by the pre-pull function through a pre-recommended content pool for the terminal device if the first pre-pull usage probability is less than the online recommendation threshold; the generation timestamp of the pre-recommended content pool is earlier than the generation timestamp of the pre-pull request; the first pre-pull usage probability less than the online recommendation threshold is used to indicate that the probability of the terminal device outputting the pre-pull content in the pre-pull content list is low; The generation module is further used to generate an online recommended content set for the terminal device if the first pre-pull usage probability is equal to or greater than the online recommendation threshold, and generate a pre-pull content list provided by the pre-pull function based on the online recommended content set; the generation timestamp of the online recommended content set is later than the generation timestamp of the pre-pull request; the first pre-pull usage probability equal to or greater than the online recommendation threshold is used to indicate that the probability of the terminal device outputting the pre-pull content in the pre-pull content list is high.

15. A computer device, It is characterized in that include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method described in any one of claims 1 to 13.

16. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 13.

17. A computer program product, It is characterized in that The computer program product comprises a computer program, which is stored in a computer-readable storage medium. The computer program is suitable for being read and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 13.