CN117478729A - Information stream processing method, system, device, electronic equipment and storage medium - Google Patents

Information stream processing method, system, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117478729A
CN117478729A CN202210861551.1A CN202210861551A CN117478729A CN 117478729 A CN117478729 A CN 117478729A CN 202210861551 A CN202210861551 A CN 202210861551A CN 117478729 A CN117478729 A CN 117478729A
Authority
CN
China
Prior art keywords
information
recommended
format
data
flow
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210861551.1A
Other languages
Chinese (zh)
Inventor
杨帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202210861551.1A priority Critical patent/CN117478729A/en
Publication of CN117478729A publication Critical patent/CN117478729A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display

Abstract

The application provides a method, a system, a device, electronic equipment and a storage medium for processing information streams; the method comprises the following steps: receiving an information flow request sent by a terminal; obtaining an information stream for responding to an information stream request, wherein the information stream comprises a plurality of first information; acquiring at least one recommended material; converting the format of at least one recommended material according to a first information format of the first information to obtain at least one second information conforming to the first information format, wherein the second information conforms to the first information format, and the first information format is used for adapting to the interactive function control of the first information; and transmitting the information stream with the at least one piece of second information inserted therein to the terminal. According to the method and the device, the consistent interaction function can be realized for different types of information displayed by the terminal.

Description

Information stream processing method, system, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to computer technology, and in particular, to a method, a system, an apparatus, an electronic device, and a storage medium for processing an information stream.
Background
With the popularity and maturity of the internet, the form of information streams is gradually varied, for example: short video, graphics context, etc. The user may interact with the information in the information stream in various ways, such as: praise, forward, comment, collection, etc. Typically, the information stream will have recommendation information (e.g., advertisements) inserted therein.
Because the recommended information and the information flow come from different systems, if the recommended information is required to have an interactive function consistent with the original information of the information flow, the corresponding function development and maintenance of the information flow service system and the recommended system are required, and because the system is changed greatly, the system is required to be stopped for implementation, and the basic requirement of uninterrupted operation of the service is not met.
At present, the related technology has no efficient mode to coordinate different systems so as to realize the interaction function of the original information and the recommended information of the information flow.
Disclosure of Invention
The embodiment of the application provides a method, a system, a device, electronic equipment, a computer readable storage medium and a computer program product for processing information streams, which can efficiently realize the interaction function of the original information and recommended information of the information streams.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a method for processing an information stream, which comprises the following steps:
receiving an information flow request sent by a terminal;
obtaining an information stream for responding to the information stream request, wherein the information stream comprises a plurality of first information;
acquiring at least one recommended material;
converting the format of the at least one recommended material according to a first information format of the first information to obtain at least one second information conforming to the first information format, wherein the second information conforms to the first information format, and the first information format is used for adapting to an interactive function control of the first information;
And transmitting the information stream inserted with the at least one piece of second information to the terminal.
The embodiment of the application provides a method for processing an information stream, which comprises the following steps:
the information flow server receives an information flow request sent by a terminal, sends the information flow request to the recommendation server, and acquires an information flow for responding to the information flow request from an information flow service storage database, wherein the information flow comprises a plurality of first information;
the recommendation server acquires at least one recommendation material from the recommendation material database, wherein the recommendation material is uploaded to the recommendation server by a delivery end and is stored in the recommendation material database by the recommendation server;
the recommendation server performs format conversion on the at least one recommendation material according to a first information format of the first information to obtain at least one piece of second information, and sends the at least one piece of second information to the information flow server, wherein the second information accords with the first information format, the first information format is used for adapting to an interaction function control of the first information, and the source of the first information is different from that of the second information;
The information flow server receives the at least one second information and transmits the information flow inserted with the at least one second information to the terminal.
An embodiment of the present application provides a processing system for an information stream, including: the information flow server, the recommendation server and the database; wherein,
the information flow server is used for receiving an information flow request sent by a terminal and sending the information flow request to the recommendation server;
the information flow server is further used for acquiring an information flow for responding to the information flow request, wherein the information flow comprises a plurality of first information;
the recommendation server is used for acquiring at least one recommendation material and storing each recommendation material into the database;
the recommendation server is further configured to perform format conversion on the at least one recommended material according to a first information format of the first information to obtain at least one second information, and send the at least one second information to the information flow server, where the second information conforms to the first information format, the first information format is used for adapting to an interactive function control of the first information, and a source of the first information is different from that of the second information;
The information flow server is configured to send the information flow with the at least one piece of second information inserted therein to the terminal.
An embodiment of the present application provides a processing apparatus for information flow, including: the information flow pushing module is used for receiving an information flow request sent by the terminal;
the information flow pushing module is further configured to obtain an information flow for responding to the information flow request, where the information flow includes a plurality of first information;
the recommendation information processing module is used for acquiring at least one recommendation material;
the recommended information processing module is further configured to perform format conversion on the at least one recommended material according to a first information format of the first information to obtain at least one second information conforming to the first information format, where the second information conforms to the first information format, and the first information format is used to adapt to an interactive function control of the first information;
the information flow pushing module is configured to send the information flow with the at least one piece of second information inserted therein to the terminal.
An embodiment of the present application provides an electronic device, including:
a memory for storing executable instructions;
And the processor is used for realizing the processing method of the information flow provided by the embodiment of the application when executing the executable instructions stored in the memory.
The embodiment of the application provides a computer readable storage medium, which stores executable instructions for causing a processor to execute, so as to implement the method for processing the information flow provided by the embodiment of the application.
Embodiments of the present application provide a computer program product, including a computer program or an instruction, which when executed by a processor, implements a method for processing an information flow provided by embodiments of the present application.
The embodiment of the application has the following beneficial effects:
the recommended materials are converted into the second information (namely the recommended information) in the first information format which accords with the first information (namely the original information) of the information stream, and the first information format can be adapted to the interactive function control developed for the first information, so that the terminal can multiplex the interactive processing logic of the first information to process the second information, the resources of the terminal are saved, and the consistency of the interactive functions of different information in the information stream and the upgrading version of the subsequent interactive functions is ensured; moreover, the information format conversion function does not relate to the transformation of a background system architecture, so that the system can be efficiently and smoothly upgraded under the condition of no stopping service, and the consistent interaction function between the first information and the second information is supported.
Drawings
Fig. 1A is an application scenario schematic diagram of a method for processing an information flow according to an embodiment of the present application;
fig. 1B is an application scenario schematic diagram of a method for processing an information flow according to an embodiment of the present application;
fig. 2A is a schematic structural diagram of a server 100 in a processing system for information flow provided in an embodiment of the present application;
fig. 2B is a schematic structural diagram of a terminal 200-1 according to an embodiment of the present application;
fig. 3A to 3D are schematic flow diagrams of a method for processing an information flow according to an embodiment of the present application;
fig. 4A to 4C are schematic flow diagrams of a method for processing an information flow according to an embodiment of the present application;
fig. 4D is an interactive flow diagram of a method for processing an information flow according to an embodiment of the present application;
FIG. 4E is a schematic diagram of a first information format of first information provided in an embodiment of the present application;
fig. 4F is a schematic diagram of a second information format of recommended materials provided in an embodiment of the present application;
FIG. 4G is a schematic diagram of a first information format of second information provided by an embodiment of the present application;
FIG. 4H is an alternative schematic diagram of a first information format provided by an embodiment of the present application;
FIGS. 5A to 5C are schematic diagrams of human-computer interaction interfaces provided in embodiments of the present application;
FIGS. 6A to 6B are schematic diagrams of an alternative system architecture of a method for processing an information stream according to an embodiment of the present application;
FIG. 6C is a schematic flow chart of an alternative method for processing an information flow according to an embodiment of the present disclosure;
fig. 7A to 7C are schematic diagrams of a man-machine interaction interface provided in an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail with reference to the accompanying drawings, and the described embodiments should not be construed as limiting the present application, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
In the following description, the terms "first", "second", "third" and the like are merely used to distinguish similar objects and do not represent a particular ordering of the objects, it being understood that the "first", "second", "third" may be interchanged with a particular order or sequence, as permitted, to enable embodiments of the application described herein to be practiced otherwise than as illustrated or described herein.
It should be noted that, in the embodiments of the present application, related data such as user information, user feedback data, etc., when the embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of related data needs to comply with related laws and regulations and standards of related countries and regions.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the present application.
Before further describing embodiments of the present application in detail, the terms and expressions that are referred to in the embodiments of the present application are described, and are suitable for the following explanation.
1) Feed information stream, present the set of information that the user may be interested in, display in the form of "stream" ordered by time, heat parameter, etc. dimension. Feed means "feeding", i.e. pushing information to the user that may be of interest to the user, rather than recommending all collected information to the user.
2) Feed information, a single element in the information stream, i.e. the original information in the information stream, is also referred to herein as first information (e.g.: short videos, social dynamics, news, etc.). For example: the user publishes a short video in the short video streaming application, which can then be used as a Feed.
3) Feed advertising, advertising in an information format conforming to Feed information, is also referred to herein as second information in order to distinguish it from the first information.
4) The software development kit (SDK, software Development Kit) is generally a suite corresponding to an application program, and the corresponding functions can be realized only by calling, and the corresponding functions are as follows: rendering interactive special effect animation and rendering man-machine interaction interface.
5) Recall (match), an advertisement matching the interest of the object to be recommended is screened from a plurality of alternative recommendation information (such as advertisements).
6) Information (e.g.: advertisement, short video), i.e., a data structure of information, includes an identification of a field, such as: the name or ID of the information, and the data area of each field, the data area is used for storing the specific data of the corresponding field in the information. For example: the identity of the field is: the data area corresponding to the short video title is used for storing the specific content of the short video title.
7) The recommended material, such as an advertisement, may be in the form of one or more of text, video, images, etc.
The embodiment of the application provides an information flow processing method, an information flow processing system, an information flow processing device, electronic equipment, a computer readable storage medium and a computer program product, which can efficiently realize the interaction function of the original information of the information flow consistent with the recommended information.
The following describes exemplary applications of the electronic device (including a terminal and a server) provided in the embodiments of the present application, where the terminal described in the embodiments of the present application may be implemented as a notebook computer, a tablet computer, a desktop computer, a set-top box, a mobile device (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable game device), a vehicle-mounted terminal, and so on.
The server described in the embodiment of the present application may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligence platforms. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart television, a vehicle-mounted terminal, and the like. The terminals and the server can be directly or indirectly connected through wired or wireless communication, and the embodiment of the application is not limited.
Referring to fig. 1A, fig. 1A is an application scenario schematic diagram of a method for processing an information stream according to an embodiment of the present application; examples relate to a server 100, a database 500, a terminal 200-1, a network 300. The terminal 200-1 is connected to the server 100 through a network 300, and the network 300 may be a wide area network or a local area network, or a combination of both.
In some embodiments, the information stream may be a short video information stream, the server 100 may be a server of a short video platform, the client on which the terminal 200-1 operates may be a short video client, and the first user may be a viewer of a short video viewing user originated content (UGC, user Generated Content), as described in connection with the above examples.
The server 100 integrates a recommendation service and an information stream pushing service function, and is used for pushing advertisement videos and short videos to a short video client, the database 500 stores a large number of short videos and a large number of advertisement videos, and the server 100 is used for reading the advertisement videos and the short videos and converting the advertisement videos into advertisement information with the information format identical to the first information format of the short videos. The terminal 200-1 transmits a request for information stream to the server 100 when the viewer performs any one of the following operations for the short video client, including: information flow refreshing operation, searching operation, operation of switching a short video client from a background to a foreground and operation of triggering short video display.
According to the information flow request, the server 100 inserts advertisement information which may be of interest to the user into the short video corresponding to the information flow request, and transmits the inserted information flow to the terminal 200-1, and the terminal 200-1 displays the content corresponding to the information flow.
In some embodiments, the database 500 in fig. 1A may be implemented as the recommended materials database 103, the information flow service storage database 104, and the server 100 in fig. 1A may be implemented as a plurality of servers according to core functions (recommendation functions, information processing functions) that it has, for example: recommendation server and information flow server. Referring to fig. 1B, fig. 1B is an application scenario schematic diagram of a method for processing an information stream according to an embodiment of the present application; in FIG. 1B, the server 100 may be implemented as a recommendation server 100-1 and a stream server 100-2.
The following description is made with reference to fig. 1B, and the server includes: a recommendation server 100-1 (e.g., a server of an advertisement delivery platform), a streaming server 100-2 (e.g., a server of a short video platform, a server of a social network platform, a server of a news syndication platform), a network 300, a terminal 200-2, a terminal 200-1, a recommendation material database 103, and a streaming service storage database 104. The recommendation server 100-1 communicates with the information flow server 100-2 via the network 300, or otherwise, the terminal 200-2 is connected to the recommendation server 100-1 via the network 300, the terminal 200-1 is connected to the information flow server 100-2 via the network 300, and the network 300 may be a wide area network or a local area network, or a combination of the two.
In some embodiments, the second user may be an advertiser, the first user may be a viewer viewing the information stream, the information stream may be a short video information stream, the recommendation server 100-1 may be a server of an advertising platform, the information stream server 100-2 may be a server of a short video platform, and the recommendation material may be advertising material, as described in connection with the above example.
The advertiser uploads advertisement materials (e.g., advertisement videos, advertisement graphics, advertisement-related information, etc.) to the recommendation server 100-1 through the advertisement delivery client in the terminal 200-2, and the recommendation server 100-1 stores the advertisement materials to the recommendation material database 103. The recommendation server 100-1 is further configured to convert the advertisement material into information with the same information format as the service information (e.g., short video) corresponding to the information flow server 100-2, so as to obtain advertisement information, where the advertisement information may adapt to the interactive function control corresponding to the service information through the information format.
When the viewer triggers the stream refresh function through a short video client installed on the terminal 200-1, the terminal 200-1 transmits a stream request to the stream server 100-2 through the network 300. The streaming server 100-2 acquires service information (short video) from the streaming service storage server 104 according to the streaming request. The information flow server 100-2 also synchronizes information flow requests to the recommendation server 100-1. The recommendation server 100-1 transmits advertisement information matching the object characteristics of the viewer to the information flow server 100-2, and the information flow server 100-2 inserts the advertisement information into an information flow corresponding to the short video and transmits the information flow to the terminal 200-1. In the short video client, the advertisement information and the short video are displayed in the same template, and when the audience triggers the interactive function control corresponding to the advertisement information in the information stream, the same interactive effect (such as interactive animation, interactive prompt tone and the like) as the short video can be displayed.
In some embodiments, the terminal may implement the method for processing the information flow provided in the embodiments of the present application by running a computer program. For example, the computer program may be a native program or a software module in an operating system; it may be a local (Native) Application program (APP), i.e. a program that needs to be installed in an operating system to run, such as a short video APP, news APP; the method can also be an applet, namely a program which can be run only by being downloaded into a browser environment; but also an applet that can be embedded in any APP. In general, the computer programs described above may be any form of application, module or plug-in.
The embodiment of the application can be realized by a block chain technology, a target parameter curve obtained by the information flow processing method of the embodiment of the application can be used as a detection result, the detection result is uploaded to a block chain for storage, and the reliability of the detection result is ensured by a consensus algorithm. Blockchains are novel application modes of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms, and the like. The Blockchain (Blockchain), essentially a decentralised database, is a series of data blocks that are associated using cryptographic methods, each data block containing a batch of information for verifying the validity (anti-counterfeiting) of its information and generating the next block, a batch of network transactions being network transactions that are verified by the Blockchain network nodes and recorded into a block during the life cycle of the block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The embodiment of the application can be realized through a Database technology, and a Database (Database) can be taken as a place where the electronic file cabinet stores electronic files in short, so that a user can perform operations such as adding, inquiring, updating, deleting and the like on the data in the files. A "database" is a collection of data stored together in a manner that can be shared with multiple users, with as little redundancy as possible, independent of the application.
The database management system (Database Management System, DBMS) is a computer software system designed for managing databases, and generally has basic functions of storage, interception, security, backup, and the like. The database management system may classify according to the database model it supports, e.g., relational, XML (Extensible Markup Language ); or by the type of computer supported, e.g., server cluster, mobile phone; or by classification according to the query language used, such as structured query language (SQL, structured Query Language), XQuery; or by performance impact emphasis, such as maximum scale, maximum speed of operation; or other classification schemes. Regardless of the manner of classification used, some DBMSs are able to support multiple query languages across categories, for example, simultaneously.
The embodiment of the application can also be realized by Cloud technology, and the Cloud technology (Cloud technology) is based on the general terms of network technology, information technology, integration technology, management platform technology, application technology and the like applied by a Cloud computing business mode, can form a resource pool, and is used as required, flexible and convenient. Cloud computing technology will become an important support. Background services of technical networking systems require a large amount of computing, storage resources, such as video websites, picture-like websites, and more portals. Along with the advanced development and application of the internet industry and the promotion of requirements of search services, social networks, mobile commerce, open collaboration and the like, each article possibly has a hash code identification mark, the hash code identification mark needs to be transmitted to a background system for logic processing, data of different levels can be processed separately, and various industry data needs strong system rear shield support and can be realized only through cloud computing.
Referring to fig. 2A, fig. 2A is a schematic structural diagram of a server 100 in a processing system for information flow provided in an embodiment of the present application; the structure of the server 100 in fig. 1A is shown. The server 100 includes a material delivering device 201, an information flow device 202, and a recommending device 203, where the recommending device 203 may implement functions corresponding to the recommending server 100-1 in fig. 1B, and the information flow device 202 may implement functions corresponding to the information flow server 100-2 in fig. 1B. The material delivery device 201 may be configured to receive recommended materials uploaded by an advertiser and store the recommended materials in the recommended materials database 103.
Referring to fig. 2B, fig. 2B is a schematic structural diagram of a terminal 200-1 according to an embodiment of the present application. The terminal 200-1 includes: at least one processor 410, a memory 450, at least one network interface 420. The various components in terminal 200-1 are coupled together by bus system 440. It is understood that the bus system 440 is used to enable connected communication between these components. The bus system 440 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled as bus system 440 in fig. 2B.
The processor 410 may be an integrated circuit chip having signal processing capabilities such as a general purpose processor, such as a microprocessor or any conventional processor, or the like, a digital signal processor (DSP, digital Signal Processor), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
The user interface 430 includes one or more output devices 431, including one or more speakers and/or one or more visual displays, that enable presentation of the media content. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
Memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard drives, optical drives, and the like. Memory 450 optionally includes one or more storage devices physically remote from processor 410.
Memory 450 includes volatile memory or nonvolatile memory, and may also include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a random access Memory (RAM, random Access Memory). The memory 450 described in the embodiments herein is intended to comprise any suitable type of memory.
In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules and data structures, or subsets or supersets thereof, as exemplified below.
The operating system 451 includes system programs, such as a framework layer, a core library layer, a driver layer, etc., for handling various basic system services and performing hardware-related tasks, for implementing various basic services and handling hardware-based tasks.
A network communication module 452 for reaching other terminals via one or more (wired or wireless) network interfaces 420, the exemplary network interface 420 comprising: bluetooth, wireless compatibility authentication (WiFi), and universal serial bus (USB, universal Serial Bus), etc.
A presentation module 453 for enabling presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 (e.g., a display screen, speakers, etc.) associated with the user interface 430;
an input processing module 454 for detecting one or more user inputs or interactions from one of the one or more input devices 432 and translating the detected inputs or interactions.
In some embodiments, the processing device for information flow provided in the embodiments of the present application may be implemented in software, and fig. 2B shows the processing device 455 for information flow stored in the memory 450, which may be software in the form of a program and a plug-in, and includes the following software modules: the information flow pushing module 4551 and the recommended information processing module 4552 are logical, and thus may be arbitrarily combined or further split according to the implemented functions. The functions of the respective modules will be described hereinafter.
The method for processing information flows provided in the embodiment of the present application will be described with reference to the exemplary application and implementation of the terminal and the server described in fig. 1A.
For example, in the embodiment of the present application, the server 100 in fig. 1A is taken as an execution body for explanation, referring to fig. 3A, fig. 3A is a schematic flow chart of a processing method of an information flow provided in the embodiment of the present application, and the explanation will be made with reference to the steps shown in fig. 3A.
In step 301, an information flow request sent by a terminal is received.
In some embodiments, the terminal may send the information flow request to the server in response to any one of the following operations: information stream refresh operations (e.g., a user performs a pull-down refresh operation on an information stream presented in a waterfall stream form); a trigger operation to display the information stream (e.g., a user triggers a display entry for the information stream); triggering operation of switching a client corresponding to an information flow from a background to a foreground; information searching operations (e.g., a user searches for keywords to obtain information stream content related to the keywords).
In step 302, an information stream is acquired for responding to an information stream request.
The information stream includes a plurality of first information. The information stream refers to information that needs to be displayed by an information aggregation service (a service for aggregating specific types of information, such as browser news/sports channels, friend circles of social applications, live applications, short video applications, etc.), and is arranged in a "stream" form according to a ranking factor such as time/popularity. The first information may be short video, news, original content of a user published on a social platform, etc.
In some embodiments, the information flow used in step 302 to respond to the information flow request may be obtained by: determining a time period between the current time and the last information flow updating time of the terminal, wherein the current time is the time of receiving the information flow request, and the last information flow updating time is the one-time information flow updating time with the minimum time distance from the current time; combining the first information with the generation time within the time period according to the descending order of the recommended parameters corresponding to each first information to obtain an information stream for responding to the information stream request; wherein the recommended parameters are determined by at least one of: time of generation, heat of interaction parameters (e.g., time of generation, weight of heat of interaction parameters).
Illustratively, the information stream acquired in step 302 is taken as the information stream of the last update, i.e. the execution time of step 302 is the time of the last update of the information stream; the last time the information stream was updated is the time the server 100 last time (i.e., the time distance between the last updated information stream was the smallest) received the information stream request sent by the terminal and updated the information stream. For example: when the current time is T2 and the last information stream update time is T1, the server 100 acquires the service information (first information) received in the database 500 between the time periods T1 to T2, and sequentially combines the service information according to the descending order of the generation time (from large to small of the time interval between the generation time and the current time) corresponding to each service information, to obtain the information stream.
For example, the interaction heat parameter may be a weighted total number of interactions or a corresponding number of interactions for each type of interaction. For example: the total number of interactions for the short video may be 120. For another example: the comment number of the short video is 30, praise number 50, forwarding number 10, interactive hotness parameter=30a+50b+10c, a+b+c=1. a. b and c are real numbers greater than 0 and less than 1, respectively.
In step 303, at least one recommended material is obtained.
Here, the execution sequence of step 303, step 301, and step 302 is not sequential.
Illustratively, the recommended materials are adapted to the object (user) of the terminal. Recommended materials (e.g., advertisements) may be obtained by: and calculating the similarity of the object features and the material features of each material, and selecting at least one material of the head part as a recommended material according to the descending order of the similarity, wherein the object features comprise information features of the object obtained through calculation in an offline stage (i.e. before the online application of the recommendation system) and interest features of the object obtained in an online stage (i.e. in the application stage of the recommendation system). For example: information features can be extracted by extracting information (such as age, gender, region, preference and the like) filled in a client by a user, feature extraction can be performed by counting data corresponding to short videos browsed by the user within a period of time (such as a period of window time before an information stream request, wherein the length of the window time can be preset), and interest features are obtained.
By way of example, feature extraction may be achieved by: and extracting the feature information and keywords in the interest data through a Word Vector extraction model (Word 2V, word to Vector), and converting the feature information and the keywords into Word vectors serving as embedding vectors of the interest features.
In some embodiments, step 303 may be implemented by obtaining object features of an object corresponding to the terminal; performing feature extraction processing on a plurality of candidate materials to be recommended to obtain material features of each candidate material; determining the similarity between each material characteristic and the object characteristic, and sorting a plurality of alternative materials in a descending order according to the similarity; and selecting at least one candidate material ranked at the head from the first ranking result of the descending ranking as a recommended material.
The alternative material may be advertising material uploaded by the advertiser to the advertising system.
For example: the method comprises the steps of obtaining similarity between object features and material features of advertisement materials (alternative materials), obtaining a similarity set S= { S1, S2 … Sn } comprising n pieces of similarity, wherein n is a positive integer, sorting each piece of similarity in the similarity set S in descending order, obtaining a first sorting result as the higher the similarity is, the more front the sorting is, and selecting advertisement materials with corresponding preset numbers of (for example, 5 (1 st to 5 (5) th) similarity in the head (namely, the 1 st to 5 (5) th) similarity in the sorting result) in the head (namely, the part from the 1 st) of the sorting result) as recommended advertisement materials.
In step 304, format conversion is performed on at least one recommended material according to the first information format of the first information, so as to obtain at least one second information conforming to the first information format.
Here, the second information conforms to a first information format, and the first information format is used for adapting the interactive function control of the first information.
By way of example, the interactive functionality control is developed based on a first information format that is consistent with all the first information, and thus, the "interactive functionality control in which the first information format is used to adapt to the first information" means that the interactive functionality control is capable of identifying, based on the first information format, each field in the first information that is consistent with the first information format, for example, a title, a text, a publishing account number, etc., so as to support the user to perform various forms of interactions in the interactive functionality control by referring to the content in the fields, for example, referring to some fields for forwarding, referring to some fields for comment, and referring to some fields for praise.
By way of example, the recommended material is a material for generating recommendation information (second information). The corresponding information format of the recommended materials is a second information format, and the second information is information additionally inserted in the information stream and is used for recommending articles (tangible articles, virtual articles, such as tangible articles, household appliances, daily necessities and the like, virtual articles, game props, paid members of video APP and the like), services (such as education, consultation, cleaning and the like) and the like. The recommended material includes recommended content (text, video, etc.), a plurality of material field identifications (or names) corresponding to the recommended material, and data corresponding to each material field identification.
In some embodiments, referring to fig. 3C, fig. 3C is a flow chart of a method for processing an information flow provided in an embodiment of the present application; step 304 may be implemented by step 304C.
In step 304C, the following processing is performed for each recommended material: and carrying out format conversion on the recommended materials conforming to the second information format based on the first mapping table to obtain second information conforming to the first information format.
Here, the first mapping table includes a mapping relationship between the following two formats: the first information accords with a first information format, and the second information accords with the material is recommended.
In some embodiments, each recommended material corresponds to a recommended information identifier, where the recommended information identifier is an identifier generated by the server for the uploaded recommended material when the server receives the uploaded recommended material, and may be in a serial number form, so that the distinguishing server generates different recommended information based on different recommended materials. For example: the recommended material J is uploaded to the server, and the server automatically generates a serial number (recommended information identifier), "iXX", where "" is the date on which the recommended material is uploaded, "i" indicates that the recommended material is the i-th recommended identifier received by the server on "", "XX" is the type (e.g., graphics context, video, etc.) corresponding to the recommended material. The serial number may be used to distinguish the recommended material J from other recommended materials.
The first information format includes a first information identification, a plurality of information stream field identifications (including a name or an ID, a length of a data area, for example, a continuous data length calculated in bytes), an information stream data area corresponding to each information stream field identification (the information stream data area is used for storing data belonging to a field represented by the field identification in the first information), and the second information format includes a plurality of material field identifications (including a name or an ID, a data area length), a material data area corresponding to each material field identification (used for storing data belonging to a field represented by the field identification in the recommended material).
Referring to fig. 4E, fig. 4E is a schematic diagram of a first information format of first information provided in an embodiment of the present application. The package structure of the first information format includes: the data (data S1, data S2, data S3 … … data Sn) stored in the header first information identification, the plurality of information flow field identifications (information flow field identification 1, information flow field identification 2, information flow field identification 3 … … information flow field identification n), and the corresponding information flow data area (data area 1, data area 2, data area n) are encapsulated.
Referring to fig. 4F, fig. 4F is a schematic diagram of a second information format of recommended materials provided in an embodiment of the present application. The packaging structure of the second information format of the recommended material comprises: a plurality of material field identifications (material field identification 1, material field identification 2, material field identification 3 … … material field identification n), and data (data C1, data C2, data C3 … … data Cn) stored in the material data area (data area 1, data area 2, data area n) corresponding to each material field identification.
For example, referring to fig. 4G, fig. 4G is a schematic diagram of a first information format of the converted second information provided in the embodiment of the present application. In comparison with fig. 4F, the header in the encapsulation structure of the second information encapsulates the second information identifier, assuming that: the mapping relation between the material field identification and the information flow field identification is as follows: the information flow field identification 3 corresponds to the material field identification 1, the information flow field identification 1 corresponds to the material field identification 2, the information flow field identification 2 corresponds to the material field identification 3 … …, and the information flow field identification n-1 corresponds to the material field identification n. The material field identification in fig. 4G is replaced with a corresponding information stream field identification in comparison with fig. 4F, and the data stored in the data area is unchanged.
For example, if the recommended material is an advertisement video, the recommendation information identifier of the advertisement video may be a number generated when the advertisement is put on the advertisement putting platform, and the identifier is exemplified by a name, and the plurality of material field identifiers of the advertisement video and data under the fields corresponding to the material field identifiers may be: advertisement title- "teach you to relieve lumbar pain with this method"; advertising product- "pain relieving plaster"; advertisement word "+,", and pain relieving paste for euduct-! Takes two times, and the effect is immediate-! "; advertiser id— "4613 x 612"; data type of advertisement video-flv. Taking the identification name as an example, if the first information is a short video, the multiple information flow field identifications corresponding to the short video may be: short video title, short video text, short video publishing account number, short video data type, short video group ID, short video tag, etc.
The mapping relation between the first information format and the second information format comprises the following mapping relation between two types of identifiers: different information flow field identifiers in the first information format and different material field identifiers in the second information format.
Continuing the description based on the above example: the mapping relationship between the different material field identifications in the second information format of the advertisement video and the different information stream field identifications in the first information format of the short video refers to the following table (1):
advertiser ID Short video publishing account
Data type of advertising video Data type of short video
Advertising title Short video title
Advertisement word Short video text
Advertisement group ID for advertisement video Video group ID for short video
Advertising product Short video label
Table (1), mapping relation table
In some embodiments, the header of the information format may further be added with a fixed-length index table, recording the following mapping relationship: identification-number of start bits-number of end bits; data area-start bit number-end bit number; thus, different data can be quickly positioned from the data area according to the number of bits of the beginning and the end, and the data does not need to be searched from the head to traverse the first mapping table. Referring to fig. 4H, fig. 4H is an optional schematic diagram of a first information format provided in an embodiment of the present application, where an index table 401G is inserted in a header of the first information format, and the index table includes an information flow field identifier and a corresponding start-stop bit number (i.e., a start bit number and an end bit number).
For example, referring to fig. 3D, fig. 3D is a flow schematic diagram of a method for processing an information flow according to an embodiment of the present application; step 304C may be implemented by the following steps 3041 to 3043.
In step 3041, based on each material field identifier in the recommended material, the first mapping table is queried to obtain an information flow field identifier corresponding to each material field identifier, and the material field identifier in the recommended material is replaced by the queried information flow field identifier.
For example: the recommended material is an advertisement video, the first information is a short video, and the material field identifiers of the advertisement video are an identifier A, an identifier B and an identifier C … … respectively; the corresponding information flow field identifiers are an identifier a, an identifier b and an identifier c … … respectively; the material field identification of the advertising video is replaced by an identification a, an identification b and an identification c … ….
In step 3042, a second information identification of the recommended materials is obtained.
Since the first information and the second information need to be processed uniformly by the server, different identifiers need to be allocated to the first information and the second information for convenience of distinction, and therefore, the second information identifier should be distinguished from the first information identifier of any first information. And the second information identifiers corresponding to the recommended materials are different.
Since the recommended material may have been converted into the second information before step 301, the server must have a corresponding assigned second information identifier in order to distinguish between the different second information; if the recommended material is not published as the corresponding second information, the corresponding second information identifier does not exist, and the corresponding second information identifier is generated at the moment, so that the situation that the second information identifier is generated again for the same second information is avoided. The fact that the recommended material is not published as the corresponding second information means that, before step 301, the server does not convert the recommended material into the corresponding second information, and inserts the corresponding second information into an information stream sent to the terminal.
In some embodiments, referring to fig. 4A, fig. 4A is a flow schematic diagram of a method for processing an information flow provided in an embodiment of the present application; step 3042 can be implemented by the following steps 421 to 423, which are specifically described below.
In step 421, each recommended material is assigned a corresponding second information identification by: the second mapping table is queried based on the recommended material identification of the recommended material.
Here, the second mapping table includes a mapping relationship between the following two types of identifications: a recommended material identifier (Feed ID) of the different recommended materials, and a second information identifier (Feed ID) of the different recommended materials; each second information identification is used for generating corresponding second information.
In step 422, when the recommended material identification is not queried, a second information identification of the recommended material is created.
Here, the second information identifications corresponding to the different recommended materials are different.
If the recommended material identifier corresponding to the recommended material is not queried in the second mapping table, the recommended material is not released as the second information, a new second information identifier is created, the new second information identifier is different from any existing information identifier, and the new second information identifier is given to the recommended material and is used as the second information identifier corresponding to the recommended material.
In some embodiments, after step 422, the mapping between the following two types of identifications is written to the second mapping table: a recommended material identifier of the recommended material, and a second information identifier created for the recommended material.
In step 423, when the recommended material identifier is queried, a second information identifier corresponding to the recommended material identifier is obtained from the second mapping table.
And inquiring in the second mapping table by taking the recommended material identifier as an index, and if the corresponding recommended material identifier exists in the second mapping table, reading the second information identifier corresponding to the recommended material identifier.
With continued reference to fig. 3D, in step 3043, the second information identifier of the recommended material and the replaced recommended material are packaged, so as to obtain second information conforming to the first information format.
For example, if the data type corresponding to the data in the second information accords with the data type corresponding to the data in the first information, the replaced recommended material may be directly packaged as the second information. The information format of the second information accords with the information format corresponding to the first information, and then the second information can be identified by the information flow service corresponding to the first information and can be matched with the interactive function control corresponding to the first information (including the bottom layer function plug-in, the software tool kit and the like corresponding to the interactive function control).
In some embodiments, referring to fig. 4B, fig. 4B is a flow chart of a method for processing an information flow provided in an embodiment of the present application; before step 3043, the data of the material data in the material data area is converted by steps 431 to 432, which will be described in detail below.
In step 431, for the information flow field identifier and the material field identifier where the mapping relationship exists, the following processing is performed: the following two data types are aligned: the material field identifies a first data type to which the corresponding material data area belongs, and the information stream field identifies a second data type to which the corresponding information stream data area belongs.
The data type is the file type of the file corresponding to the material. For example: the data type of the short video text of the short video is TXT, and further, for example: the video type (data type) of the advertisement video is rmvb, and the video type (data type) of the short video is MP4.
In step 432, the material data in the material data area is converted from the first data type to the second data type in response to the comparison result being inconsistent.
Here, the material data is data in a material data area in the recommended material.
For example: and when the data type of the short video text of the short video is compared with TXT, and when the advertiser uploads the advertisement video, the data type of the advertisement word of the advertisement video is pdf, and the server cannot directly read the content in the text in the pdf format, the text content in the file in the pdf format is converted into the data text of TXT. For another example: the video type of the advertisement video uploaded by the advertiser is rmvb, the video type of the short video is MP4, the video type of the advertisement video is converted into MP4 format, and the data of the converted advertisement video are filled into the corresponding data area.
In the embodiment of the application, the data type corresponding to the recommended material is converted into the data type matched with the first information, so that the recommended material can be adapted to the information flow corresponding to the first information, and the second information can be adapted to the information flow client. Meanwhile, the data type of each information in the information flow is unified, and the processing of a plurality of quantity types is not needed, so that the calculated amount of the processed information flow can be saved.
In some embodiments, referring to fig. 4C, fig. 4C is a flow chart of a method for processing an information flow provided in an embodiment of the present application; before step 305, at least one second information (the interactive data is inserted together when present) is inserted into the information stream by the following steps 3061 to 3062, described in detail below.
In step 3061, the recommended materials corresponding to each material feature are sorted in a descending order according to the similarity between each material feature and the object feature, so as to obtain a second sorting result.
For example, the second ranking result may multiplex the first ranking result above, saving computing resources required for ranking. For example: the recommended materials are the 5 materials of the head in the first ranking result, and the second ranking result may be: recommended material 1 (corresponding to second information 1), recommended material 2 (corresponding to second information 2), recommended material 3 (corresponding to second information 3), recommended material 4 (corresponding to second information 4), recommended material 5 (corresponding to second information 5).
In step 3062, according to the second sorting result, the second information corresponding to each recommended material is inserted into the information stream, and any two pieces of second information are not adjacent to each other.
Continuing with the description based on the above example, for example: the short videos in the information stream comprise short videos 1 to 15, and second information corresponding to one recommended material is inserted into each short video every 3 short videos. The inserted information stream may be of the form: short video 1, short video 2, short video 3, second information 1, short video 4, short video 5, short video 6, second information 2, … … short video 15, second information 5.
For another example: with the time the user browses the short video information stream, one piece of second information is inserted every preset time period (e.g., 5 minutes). The user browses short videos 1 to 4, spends 5 minutes, and inserts second information 1 after short video 4; the user continues to browse the second information 1 and the following short videos 5 to 6, taking another 5 minutes, and inserts the second information 2 after the short video 6.
In step 305, an information stream is sent to the terminal, in which at least one second information is inserted.
The terminal displays the first information and the second information by using a unified information template, and loads the same interaction function control for the first information and the second information respectively. For example: the terminal can render the first information and the second information in the same mode by calling a software development kit, and the rendered picture is displayed for a user to watch.
In the embodiment of the application, the first information and the second information are displayed in the same information template, so that the cost required by front-end development is saved, the information templates of the first information and the second information are unified, various different information templates are not required to be displayed, and the memory required by a terminal to operate a client is saved.
The first information is exemplified by a video (e.g., a short video, a news video, etc.). 5C,5C is a schematic diagram of a human-computer interaction interface provided by an embodiment of the present application; fig. 5C illustrates a unified information template corresponding to the first information and the second information, where the information flow area 506C includes a presentation area 501C of a plurality of information, and each presentation area 501C includes a screen area 502C and a control area 504C. The header area 503C is at a lower edge position in the screen area 502C. The screen area 502C is used for displaying a preview screen (or cover) of the video, the control area 504C is used for displaying an interactive control corresponding to the video, and the title area 503C is used for displaying title text corresponding to the information.
5A,5A is a schematic diagram of a human-computer interaction interface provided by an embodiment of the present application; fig. 5A is an information flow shown based on the information template of fig. 5C, and fig. 5A shows a preview picture (or cover) of a plurality of short videos in the short video information flow, where first information 501A, first information 503A are short videos created by a user, and second information 502A is advertisement information put on the short video platform. The first information 501A corresponds to the display area 510A, the second information 502A corresponds to the display area 511A, and the first information 503A corresponds to the display area 512A. Corresponding interactive function controls exist in the display area of each piece of information, and the interactive function controls comprise: comment is 504A, praise control 505A, and forward control 506A. Title 507A of the short video (summer of city is so beautiful |) is located at the lower edge of the preview screen of the short video, and title 508A of the advertisement video (travel advertisement) (summer is away from summer is to |) is located at the lower edge of the preview screen of the advertisement video. The information templates used for the first information 501A, the first information 503A, and the second information 502A are the same.
In some embodiments, the user may not be interested in the recommended advertisement video, which may be hidden by triggering the corresponding close control 509A in the second information 502A.
In some embodiments, the following processing is performed for each second information prior to step 305: the database is queried based on the second information identification of the second information (database for business storage, the database stored data comprising the second information identification of the second information, interaction data associated with the second information). When the interactive data associated with the second information identity is queried, at least a portion (e.g., a plurality of preceding ones of the results sorted in descending order of publication time, heat) of the interactive data and the second information are spliced, and the spliced interactive data and second information are inserted into the information stream.
As an example, stitching together the interaction data and the second information may be achieved by: and adding an interactive data field identifier in the information format of the second information, and storing interactive data in a corresponding data area. For example: the binary data of the two are connected together, namely, the splicing of the data layers is carried out, so that a section of continuous data is formed, the method is suitable for the conditions that the interactive data and the second information are smaller (smaller than the data quantity threshold value), and the efficiency of subsequent reading can be improved through the splicing.
As an example, stitching together the interaction data and the second information may also be implemented by: in a different way from the above way, binary data corresponding to the interaction data and the second information are not connected into one piece of data, and only binding data of the interaction data and the second information identifier of the second information is needed to be generated. For example: the interactive data of the second information is marked with the second information identifier, the interactive data and the second information are bound in a logic level through the second information identifier, the mode is suitable for the condition that the data volume of the read interactive data and the second information is large, original data does not need to be changed, and the splicing efficiency is higher.
In some embodiments, following step 305, the interaction data corresponding to the information in the information stream is also updated by: receiving interaction data of at least one message in the message stream, wherein the interaction data is acquired by a terminal through an interaction function control corresponding to the message; the following data are written into the database: information identification of at least one piece of information, interaction data associated with the at least one piece of information; the database is a data source for synchronizing interactive data among different terminals. For example: the terminal 1 obtains the interaction data X1 through the interaction function control corresponding to the second information X, the terminal 1 sends the interaction data X1 to the database, and the database synchronizes the interaction data X1 to other terminals which also display the second information X.
In some embodiments, referring to fig. 3B, fig. 3B is a flow chart of a method for processing an information flow provided in an embodiment of the present application; the method for processing information flow provided in the embodiment of the present application may be implemented by using the terminal as an execution body in the following steps 301B to 302B.
The terminal 200-1 transmits an information flow request to the server 100 in response to any one of the following operations: information flow refreshing operation, triggering operation for displaying information flow, and triggering operation for switching information flow client from background to foreground.
In step 301B, an information stream is received.
The information stream includes a plurality of first information, and at least one second information is inserted between the plurality of first information, the first information and the second information have the same plurality of fields (for example, the first information is a short video, the second information is an advertisement, and the same fields are for example, a video title, a video type and a video publisher), and the source of the first information is different from the second information. For example: the first information is a short video from a short video server, and the second information is an advertisement from an advertisement server.
Here, the information stream includes a plurality of first information, and at least one second information is inserted between the plurality of first information, and the first information and the second information both conform to the same information format (i.e., the above first information format), and the source of the first information (business information aggregation service) is different from the second information (recommendation service).
In step 302B, the information stream is displayed based on the unified information template, and corresponding interactive function controls are loaded in the display area of each first information and each second information respectively.
The information template is used for controlling the positions of the fields and the interactive function controls in the display area. The interactive function control is set in a client side of the terminal for displaying information flow; the interactive function control can also be synchronized with the information stream sent by the server for the first time to the terminal, and after the information stream is synchronized with the terminal, the server does not need to synchronize the interactive function control with the terminal every time the information stream is sent. If the interactive function control needs to be updated, the server synchronizes the updated interactive function control to the terminal.
By way of example, templates refer to a fixed format of a drawing or design. The location of the display area, for example: at the edges of the corresponding information, e.g. upper edge, lower edge, left edge, right edge. The interactive function control comprises the following interactive entries: forwarding, praying and commenting.
With continued reference to fig. 5A, the explanation of the information template may refer to step 305 above, and will not be repeated here.
In some embodiments, in response to the first information being spliced with corresponding interactive data (synchronous or asynchronous with the received information stream, including data of forwarding, praise, comment), displaying the interactive data corresponding to the first information in an interactive functionality control corresponding to the first information; and responding to the second information to splice the corresponding interaction data, and displaying the interaction data corresponding to the second information in the interaction function control corresponding to the second information.
The interaction data may include the number of times an interaction function is triggered, for example: with continued reference to fig. 5A, comment control 504A of first information 501A corresponds to 20 comments, praise control 505A corresponds to 70 praise, and forward control 506A corresponds to 50 forwarding. The comment control 504A of the second information 502A corresponds to 2 in number of comments, the praise control 505A corresponds to 20 in number of praise, and the forwarding control 506A corresponds to 15 in number of forwarding.
In some embodiments, interactive data and information identifications associated with the interactive data are received; and updating the interactive function control in the display area for displaying the target information based on the interactive data, wherein the target information is information corresponding to the information identification in the information flow.
In some embodiments, the interactive functionality control of the first information has the same interactive processing logic (corresponding interactive effect display mode is displayed for the type of operation received by the interactive functionality control, and corresponding interactive data is displayed, for example, in response to clicking operation for the like control, like effect animation is displayed, like number corresponding to like control is updated) and interactive effect display mode (for example, like effect animation, interactive prompt tone, interactive prompt text) as the interactive functionality control of the second information.
Referring to fig. 5B, the praise control 505A of the first information 501A is triggered, and when triggered, the praise special animation 501B is displayed in the man-machine interaction interface, and the color of the praise control is converted into a dark color (praise special effect 502B), and meanwhile, the interaction data corresponding to the praise number (changed from 70 to 71) is updated. The praise control 505A of the second information 502A is triggered, the color of the praise control is converted into a dark color (praise special effect 502B), and the interactive data corresponding to the praise number (changed from 20 to 21) is updated.
In some embodiments, in response to operation of the interactive functionality control for the first information, interactive data of the first information is displayed and synchronized between different terminals.
The terminal sends the interaction data corresponding to the first information to the information flow server, so that the server writes the first information identification of the first information and the interaction data of the first information into the database, and the information flow server synchronizes the interaction data among different terminals through the database. For example: the user reviews the first information 501A, and the user's review content is synchronized into the review column of the first information 501A displayed by the other user's terminal.
And responding to the operation of the interaction function control for the second information, displaying the interaction data corresponding to the second information, and synchronizing the interaction data of the second information among different terminals.
The terminal sends the interaction data corresponding to the second information to the information flow server, so that the server writes the second information identification of the second information and the interaction data corresponding to the second information into the database, and the information flow server synchronizes the interaction data among different terminals through the database. For example: the user performs praise on the second information 502A, the praise number is increased by one, and the updated praise number is synchronized to the praise number corresponding to the praise control 505A of the first information 501A displayed by the terminal of the other user.
In some embodiments, the at least one second information is obtained by the server by: and performing format conversion on (the second information format of) at least one recommended material according to the first information format of the first information to obtain at least one second information conforming to the first information format. The manner of acquiring the at least one second information may refer to step 304 above, and will not be described herein.
In some embodiments, server 100 in fig. 1A may independently implement the processes corresponding to steps 301 through 305 above.
In some embodiments, multiple servers may be integrated together and implemented as a unified server, or may be separately provided. The server 100 may be implemented as a plurality of servers, and refer to a system architecture corresponding to fig. 1B, that is, the information flow processing method provided in the embodiments of the present application is implemented through interaction between an information flow server and a recommendation server.
In some embodiments, if the number of servers 100 in the information flow processing system is plural, the servers 100 may implement only the functions corresponding to the recommended server 100-1 in fig. 1B.
Referring to fig. 4D, fig. 4D is an interactive flow diagram of a method for processing an information flow according to an embodiment of the present application. Fig. 4D may be implemented based on the terminal 200-1, the recommendation server 100-1, the stream server 100-2, the recommended materials database 103, and the stream service storage database 104 of fig. 1B. Alternatively, fig. 4D may be implemented based on the recommended materials database 103, the information flow service storage database 104, and the server 100 including the materials delivering device 201, the information flow device 202, and the recommending device 203 in fig. 2A.
In step 401D, the terminal 200-1 transmits an information flow request.
In step 402D, the information flow server 100-2 receives the information flow request sent by the terminal, and sends the information flow request to the recommendation server;
In step 403D, the information flow server 100-2 obtains the information flow for responding to the information flow request from the information flow service storage database 104.
The recommended materials are uploaded to the recommendation server 100-1 (or a server of the advertisement delivery platform) by a second user through the terminal 200-2 (for example, an advertiser delivering advertisements), and are stored in the recommended materials database 103 by the recommendation server, the second information accords with a first information format, the first information format is used for adapting interaction function controls of the first information, and the source of the first information is different from that of the second information.
In step 404D, the recommendation server 100-1 obtains at least one recommendation material from the recommendation material database 103.
The execution of step 404D and step 403D may be synchronized.
In step 405D, the recommendation server 100-1 performs format conversion on at least one recommended material according to the first information format of the first information, to obtain at least one second information.
In step 406D, the recommendation server 100-1 sends at least one second message to the information flow server 100-2.
In step 407D, the information flow server 100-2 transmits the information flow, into which at least one piece of second information is inserted, to the terminal.
Here, the processing performed in steps 401D to 407D is the same as that of steps 301 to 305 above, and will not be described here again.
In step 408D, the terminal 200-1 receives the information stream, displays the information stream based on the unified information template, and loads the corresponding interactive function control in the display area of each first information and each second information, respectively.
Here, the processing performed in step 408D is the same as that of steps 301B to 302B above, and will not be described here.
According to the embodiment of the application, the recommended materials are converted into the second information (namely the recommended information) which accords with the information format of the first information (namely the original information) of the information stream and are inserted into the information stream, so that when the information stream is displayed, the second information can be directly adapted to the interactive function control developed for the first information, and the same interactive function control is adopted, so that the terminal can multiplex the processing logic of the first information to process the second information, the computing resources are saved, and the consistency of the interactive functions and the follow-up upgrade versions of different information in the information stream is also ensured; and because the information format conversion function does not relate to the transformation of the system architecture, the system can be efficiently and smoothly upgraded under the condition of no stopping service. The cost required for developing the interactive function is saved, the computing resources required by the recommendation server are saved, and the recommendation pushing efficiency is improved.
Next, an exemplary application of the method for processing an information stream provided in the embodiment of the present application in an actual application scenario will be described.
Taking the example that the information stream is a short video information stream, when a user refreshes a short video client, a terminal corresponding to the client sends an information stream request to a short video information stream server, and the short video information stream server receives the information stream request and synchronizes the information stream request to an advertisement recommendation server. The advertisement recommendation server reads advertisement materials (e.g., advertisement videos and advertisement video related information that may be of interest to the user) adapted to the user from the advertisement materials database, converts the advertisement materials into advertisement information (advertisement Feed information) having the same information format as the short video, and transmits the advertisement information to the short video information stream server. The short video information stream server reads a plurality of short videos matched with the information stream request from the short video database, and inserts advertisement information into the short videos to obtain the short video information stream. The short video information stream server sends the short video information stream to the terminal, and the terminal displays the content of the information stream for the user to watch. In the information flow, the advertisement information and the display template of the short video are the same, and the advertisement information and the short video are both matched with the interaction function, so that a user can interact with the advertisement information (such as praise, collection, comments and the like).
The following explains a processing method of an information flow provided in an embodiment of the present application with reference to the accompanying drawings. Referring to fig. 6A, fig. 6A is a schematic diagram of an alternative system structure of the information flow processing method provided in the embodiment of the present application, when a user sends an information flow request to the short video service background 610 through the terminal 200-1 (i.e. the above terminal), the short video service background 610 passes the information flow request to the advertisement reading module 621 of the advertisement background 620, the advertisement reading module 621 obtains advertisement materials matched with the information flow request from the advertisement database 622 and sends the advertisement video to the advertisement information publishing module 623, the advertisement information publishing module 623 converts the advertisement materials into advertisement information (short video Feed data that can be read by the short video platform), and the advertisement information has the same information format as the short video, so that the advertisement information can adapt to the interactive function control corresponding to the short video. The advertisement information distribution module 623 sends the advertisement information to the short video service background 610, the short video service background 610 returns the short 2 inserted with the advertisement information, the video information stream to the terminal 200-1, and the terminal 200-1 displays the content of the information stream. When a user triggers an interactive action (e.g., forward, praise, comment, etc.) for advertisement information in the information stream, the short video client displays the same interactive special effects (e.g., interactive alert tones, special effects animations, etc.) as the short video. According to the information flow processing method provided by the embodiment of the application, an advertisement platform side does not need to be additionally provided with an interaction function module, the development period is greatly reduced, the iteration of a product is accelerated, and after the advertisement materials are converted into the advertisement information with the same information format as the short video, the advertisement information is adapted to the relevant interaction function plug-in corresponding to the short video. For the short video client, a software development kit (SDK, software Development Kit) for rendering the short video can be multiplexed to complete the rendering of the interactive function of the advertisement video, so that the development cost of the client is reduced.
The following explains the system architecture of the present application, and referring to fig. 6B, fig. 6B is a schematic diagram of an alternative system structure of a method for processing an information flow according to an embodiment of the present application. The system includes an advertising service 630, an advertising background 620, a short video service background 610, and a terminal 200-1.
The advertiser uploads advertisement materials to the advertisement delivery service 630 through the terminal, wherein the advertisement materials include: advertisement video, advertisement file. Advertisement delivery service 630 is configured to receive advertisement material (e.g., advertisement 1, advertisement 2, advertisement 3, advertisement including advertisement video and advertisement text), and store the advertisement material in an associated store (advertisement database 622) of advertisement background 620 and as a data source for advertisement recall.
The client comprises a rendering module 651 and an information flow reading module 652, wherein the information flow reading module 652 is used for receiving short video information flows sent by the short video service platform, and the short video information flows comprise short videos and advertisement information. And the rendering module 651 is used for rendering the display template and the interaction effect corresponding to the video. When a user refreshes the content in the short video client, the information flow reading module 652 is triggered to send an information flow request to the short video service background 610, the short video service background 610 pulls advertisement content adapted to the short video content, and the rendering module 651 renders effects related to interaction behaviors at the client to form the advertisement content with interaction functions.
The short video service background 610 is used to pull relevant video information content matched with the information stream request from the video database 611 through the video information reading module 614, and also to request the advertisement background 620 through the advertisement information reading module 613, and to pull advertisement information matched with the object characteristics of the user through the advertisement background 620.
The advertisement background 620 comprises an advertisement adaptation video module 625, an advertisement unified access module 626, an advertisement information release module 623 and an advertisement recall system 624, wherein the advertisement adaptation video module 625, the advertisement unified access module 626 and the advertisement recall system 624 form an advertisement reading module 621, and the advertisement unified access module 626 is used for recalling advertisement materials (including advertisement videos and advertisement texts) possibly interested by a user from the advertisement database 622 through the advertisement recall system 624; the advertisement adaptive video module 625 is configured to receive an information flow request sent by the terminal 200-1 corresponding to the short video product (client), send the information flow request to the advertisement unified access module 626, and the advertisement unified access module 626 returns the advertisement material to the advertisement adaptive video module 625; the advertisement adaptation video module 625 calls the advertisement information publishing module 623, associates the advertisement material with the corresponding Feed ID, converts the association result into advertisement information in an information format that can be understood by the short video service background 610, and sends the advertisement information to the short video service background 610.
In some embodiments, the ad adaptation video module 625 may be a micro-server separate from the ad background 620, or may be a functional module embedded in the ad unification access module 626.
The advertisement background 620 converts advertisement material into advertisement information (Feed) in the same information format as the short video, and the short video service background 610 may combine the advertisement information and the short video into a video information stream.
If the user triggers the relevant interactive action with respect to the advertisement information, the terminal 200-1 displays the corresponding interactive animation effect and transmits the relevant interactive information to the short video service background 610. When the advertisement information is not first put in and there is interactive data, the short video service background 610 splices the advertisement information with the corresponding interactive data (e.g., forwarding, praying, comment), and synchronizes the existing interactive data to the client. When receiving an interaction request from a user, for example, the user commented on the advertisement video, the comment request sent by the terminal 200-1 is also processed uniformly by the user interaction system 612 of the short video service, so as to generate corresponding interaction data, and records the corresponding interaction data in the service storage (short video database 611).
Referring to fig. 6C, fig. 6C is a schematic flow chart of an alternative method for processing an information stream according to an embodiment of the present application; based on the above system configuration, the steps shown in fig. 6C will be described.
After the advertiser sends the advertising material to the advertising service 630 through the terminal, the advertising service 630 performs step 605C, sending the advertising material to the advertising material database 623C.
Advertisement delivery service 630 may be used to screen advertisement material, for example: shielding sensitive words in advertisement text included in advertisement materials, shielding pictures in advertisement video which do not accord with the background 610 of short video service, and the like. Database 640 includes: advertisement database 622 and short video database 611, advertisement database 622 includes advertisement material database 623C and mapping relation database 621C.
The execution of step 601C and step 605C is not sequential.
The terminal 200-1 performs step 601C to send an information flow request to the short video service background 610.
By way of example, when a user performs the following operations for a short video client in terminal 200-1, terminal 200-1 sends an information flow request to short video service background 610: information refreshing operation, switching the client from the background to the foreground, searching short video by the client, information displaying operation (for example, operation of viewing information details).
Short video service background 610 performs step 602C to pass through the information stream request to advertisement background 620.
Illustratively, short video service daemon 610 also obtains the corresponding short video from the short video database based on the information flow request.
The advertisement background 620 performs step 603C, and obtains advertisement materials adapted to the information flow request according to the information flow request.
Illustratively, after step 603C, the advertising background 620 executes step 604C, recalling advertising material from the advertising material database 623C. The advertisement background 620 obtains the similarity between the object feature of the user and the material feature of the advertisement material from the advertisement material database 623C according to the object feature corresponding to the user included in the information flow request, and selects at least one advertisement material of the head in the similarity ranking as the advertisement material adapted to the information flow request.
After step 604C, the advertisement background 620 performs step 606C to determine whether the advertisement material has been published as advertisement information by querying the mapping relation database 621C for the advertisement material.
Wherein the ad adaptation video module 625 in the ad background 620 performs step 606C.
For example, the mapping relation database stores advertisement identifiers (recommended material identifiers above) corresponding to advertisement materials, feed IDs corresponding to the advertisement materials, and mapping relations between the advertisement identifiers of the advertisement materials and the Feed IDs. When the advertisement identifier corresponding to the advertisement material is not queried in the mapping relation database 621C, it is indicated that the advertisement material is not published as advertisement information, and the process proceeds to step 607C. Otherwise, it is indicated that the advertisement material has been published as advertisement information with a corresponding Feed ID, and the process proceeds to step 608C.
When the result of step 606C is no, short video service background 610 executes step 607C to call the Feed publishing interface to generate the Feed ID corresponding to the advertisement material.
For example, the short video service backend 610 invokes a Feed publishing interface based on the advertisement material, generates a new Feed ID, and uses the new Feed ID as the Feed ID corresponding to the advertisement material. The Feed ID for each advertising material is different.
After the short video service background 610 generates the Feed ID corresponding to the advertisement material, the Feed ID is associated with the advertisement identifier corresponding to the advertisement material, and the associated Feed ID and advertisement identifier are stored in the mapping relation database 621C.
After step 606C, the advertisement background 620 performs step 608C, reading the Feed ID.
Wherein the ad adaptation video module 625 of the ad background 620 performs step 608C.
When the result of step 606C is yes, the advertisement background 620 performs step 608C to read the Feed ID.
After step 608C, the advertisement background 620 performs step 609C to convert the advertisement material content into a corresponding short video Feed structure, and fills in the Feed ID, thereby obtaining advertisement information.
By way of example, the ad adaptation video module 625 in the ad background 620 performs step 609C, and step 609C may be implemented by: the advertisement material is converted into advertisement information matching the information format of the short video (the first information format above) based on the mapping relation table of the information format. Wherein, the mapping relation table stores: mapping relations between different information flow field identifiers in the information format of the short video and different material field identifiers in the information format of the advertisement material.
For example: the material field identifier corresponding to the advertisement material—the content corresponding to the material field identifier may be expressed in the following form: ad group ID (AID) -5871509869; advertiser ID-24520363; advertisement title — how much can be done in summer and how little large capacity refrigerator is available! "; specification- (vertical video-25 XQ-message number "; commodity type- "12-android application"; floor page type — 10-application store "; ad group id— "587 x 869"; creative id— "587 x 998"; commodity type- "12-android application"; version "-, 101"; application name- "XX shopping".
Mapping relation between material field identification corresponding to advertisement material and information flow field identification, material field identification and information flow field identification, for example: advertisement video name-short video name, advertiser-short video creator, advertisement video document-short video brief introduction, advertisement group ID-short video group ID, specification-specification, etc. Through information format conversion, the advertisement materials are converted into data which can be directly recognized and processed by the short video service background 610, and the advertisement information is adapted to the interactive function control corresponding to the short video. Meanwhile, the Feed ID is encapsulated in the header of the data structure of the advertisement information.
The advertisement background 620 sends the advertisement information to the short video service background 610, and the short video service background 610 performs step 610C to insert the advertisement information into an information stream corresponding to the short video.
By way of example, the advertisement information is discrete in the information stream, i.e., there is a short video between any two advertisement information. For example: every three short videos, one advertisement message is inserted. Or, as the user pulls down the waterfall stream corresponding to the short videos, according to the browsing duration of the user, one advertisement message is displayed between the short videos at preset time intervals (for example, five minutes).
The short video service background 610 executes step 611C to perform interactive data splicing processing on each information according to the Feed ID.
Wherein the interactive data is obtained from the short video database 611 by the short video service background 610.
For example, the stitching process may be to associate the interaction data (such as forwarding, praise, comment related data) with the Feed ID of each piece of information corresponding to the interaction data, so that a binding relationship exists between the interaction data and the information. Or splicing the interactive data with the codes of the data corresponding to each piece of information to obtain integral spliced data.
The terminal 200-1 performs step 612C to render the advertisement information in the information stream using the short video SDK and display the corresponding information stream and the interactive data.
For example, after receiving the advertisement video stream data (including the associated interaction data) returned by the short video background, the client of the terminal 200-1 renders the interaction function control corresponding to the interaction data of the advertisement video stream data through the SDK for rendering the short video.
Referring to fig. 7A, fig. 7A is a schematic diagram of a man-machine interaction interface provided in an embodiment of the present application. The video frame 708A is a frame corresponding to the advertisement video, and when the page switch control 702A is triggered, the short video playing interface of the short video client is switched to the display interface of the commodity corresponding to the advertisement material. The commercial name 701A of the commercial corresponding to the advertisement material is "×" and is a mobile game. The merchandise may be game products, virtual props, physical items, and the like. The interactive function control of the man-machine interaction interface comprises: copy control 703A, praise control 704A, forward control 705A, share control 706A, and comment control 707A. The copy control 703A is used to copy the links corresponding to the advertisement video in the short video application, and the number of praise corresponding to the praise control 704A is 12, which indicates that the advertisement video has been praise by 12 users. When the sharing control 706A is triggered, a number of selectable applications are displayed, and the user can share the ad video from the short video client to other applications, such as: sharing in instant messaging software and sharing in a social platform. The interactive function control corresponding to the advertisement video is the same as the interactive function control corresponding to the short video.
The terminal 200-1 performs step 613C, and displays a corresponding interaction effect when receiving the interaction for the advertisement information.
For example, referring to fig. 7B, fig. 7B is a schematic diagram of a human-computer interaction interface provided in an embodiment of the present application. When the forward control 705A is triggered, a small rocket-shaped interactive special effect 701B is displayed. Referring to fig. 7C, fig. 7C is a schematic diagram of a man-machine interaction interface provided in an embodiment of the present application. In contrast to fig. 7B, the user triggered the endorsement control 704A and the forwarding control 705A, displaying the endorsement control 704A and the forwarding control 705A in a darkened color to characterize that the user has interacted with these controls. Meanwhile, the number of praise corresponding to the praise control 704A is updated, the interactive data corresponding to the interactive behavior of the short video server 610 is stored in the short video database 611, and the interactive data is synchronized to the clients of other users.
The following compares advertisements in a short video platform in the related art with an information stream including advertisement information generated by the information stream processing method provided in the embodiment of the present application.
The following table (2) is a comparison table between advertisement videos inserted in short videos (for example, advertisements displayed when the videos are paused, or advertisement videos played before the videos are loaded), advertisements released in short video forms on a short video platform, and advertisement information inserted in short video information streams in the embodiment of the present application.
Table (2), comparative Table
Advertisers can have the following problems by publishing advertisements in short video formats on the personal account number (object account number) of the short video platform: 1. short video has no jump to product page function. 2. Advertisement videos released in a short video form are recommended through the short video information stream server, users possibly interested in advertisements cannot be recommended by the advertisement recommendation server, and therefore accuracy of advertisement recommendation effect statistics of the advertisement recommendation server is reduced. 3. The recommendation effect of the short video is limited by the number of interests of the account number that issued the short video. For example: the account number for issuing the short video has few attention, so that the popularization efficiency of the short video is low. The recommended effect is limited.
The advertiser puts in the advertisement material through the advertisement platform, and in the related technology, in order to make the advertisement material have corresponding interaction function in the short video platform, the interaction function corresponding to the short video platform needs to be developed in the advertisement recommendation server so as to make the advertisement video pushed to the short video platform have interaction function. The interaction functions are as follows: forwarding, commenting, praying, etc., the interactive functionality involves user originated content (UGC, user Generated Content), and the development effort involves front-end, back-end. For interactive functions such as comments, corresponding security policies (such as sensitive word shielding and the like) are also required to be accessed, and the overall development workload is high. When the interaction form in the short video platform changes, the interaction function of the advertisement recommendation server needs to be synchronously developed and upgraded, so that the interaction experience of a user on the creator video and the advertisement video is consistent, higher development cost and subsequent maintenance cost are generated, and when the interaction function of the advertisement platform cannot be updated with the short video platform in time, the adverse effect of inconsistent product experience can exist. However, the update speed of the short video platform is higher, and if the server of the advertisement platform is updated synchronously frequently, the cost of recommending advertisements is increased, and the consumption of computing resources is caused.
Compared with the related art, the processing method of the information flow provided by the embodiment of the application can adapt the interaction function control of the advertisement information and the short video without additionally developing the interaction function of the advertisement platform by converting the advertisement material into the first information format corresponding to the short video in the short video platform, so that the short video platform can identify the related parameters of the advertisement information, and the interaction function of the advertisement video is realized. The interactive data of the advertisement information is counted through the short video platform, the computing resources of the statistical interactive data of the short video platform are multiplexed, the computing resources of the advertisement recommendation server side are saved, and the cost for developing the advertisement recommendation server is saved. The development of the short video interaction function special for the advertisement platform side can be omitted, the video advertisement can be rendered the same as the information stream content when rendered by the client, the related software development kit of the short video interaction function can be adapted, the workload of the front end or the rear end of the advertisement platform side on the related development of the interaction function can be omitted, the subsequent development can be omitted when the short video interaction function is upgraded, the additional development is not needed for the advertisement delivery platform, and different advertisement delivery ends can be universally connected.
Continuing with the description below of an exemplary architecture of the processing device 455 for information flow provided in embodiments of the present application implemented as a software module, in some embodiments, as shown in fig. 2B, the software module stored in the processing device 455 for information flow of the memory 450 may include: the information flow pushing module 4551 is configured to receive an information flow request sent by a terminal; the information flow pushing module 4551 is further configured to obtain an information flow for responding to the information flow request, where the information flow includes a plurality of first information; the recommendation information processing module 4552 is configured to obtain at least one recommendation material; the recommended information processing module 4552 is further configured to perform format conversion on at least one recommended material according to a first information format of the first information, so as to obtain at least one second information that conforms to the first information format, where the second information conforms to the first information format, and the first information format is used to adapt to an interactive function control of the first information; the information flow pushing module 4551 is configured to send an information flow with at least one piece of second information inserted therein to the terminal.
In some embodiments, the recommendation information processing module 4552 is configured to perform the following processing for each recommendation material: based on a first mapping table, format conversion is carried out on recommended materials conforming to a second information format to obtain second information conforming to the first information format, wherein the first mapping table comprises the following mapping relation between the two formats: the first information accords with a first information format, and the second information accords with the material is recommended.
In some embodiments, the first information format includes a first information identifier, a plurality of information stream field identifiers, an information stream data area corresponding to each information stream field identifier, and the second information format includes a plurality of material field identifiers, a material data area corresponding to each material field identifier; the mapping relation between the first information format and the second information format comprises the following mapping relation between two types of identifiers: different information flow field identifiers in the first information format and different material field identifiers in the second information format; the recommended information processing module 4552 is configured to query the first mapping table based on each material field identifier in the recommended material, obtain an information flow field identifier corresponding to each material field identifier, and replace the material field identifier in the recommended material with the queried information flow field identifier; acquiring a second information identifier of the recommended material, wherein the second information identifier is different from the first information identifier of any first information; and packaging the second information identification of the recommended materials and the replaced recommended materials to obtain second information conforming to the first information format.
In some embodiments, the recommended information processing module 4552 is configured to, before performing packaging processing on the second information identifier of the recommended material and the replaced recommended material to obtain second information that conforms to the first information format, perform the following processing on the information flow field identifier and the material field identifier that have the mapping relationship: the following two data types are aligned: the material field identifies a first data type to which the corresponding material data area belongs, and the information stream field identifies a second data type to which the corresponding information stream data area belongs; and in response to inconsistent comparison results, converting the material data in the material data area from the first data type to the second data type, wherein the material data is data in the material data area in the recommended material.
In some embodiments, the recommended information processing module 4552 is configured to assign a corresponding second information identifier to each recommended material by: querying a second mapping table based on the recommended material identification of the recommended material, wherein the second mapping table comprises the mapping relation between the following two types of identifications: a recommended material identifier of the different recommended materials and a second information identifier of the different recommended materials; each second information identifier is used for generating corresponding second information; when the recommended material identifiers are not queried, creating second information identifiers of the recommended materials, wherein the second information identifiers corresponding to different recommended materials are different; and when the recommended material identifier is queried, acquiring a second information identifier corresponding to the recommended material identifier from a second mapping table.
In some embodiments, the recommendation information processing module 4552 is configured to, after creating the second information identifier of the recommendation material, write a mapping relationship between the following two types of identifiers into the second mapping table: a recommended material identifier of the recommended material, and a second information identifier created for the recommended material.
In some embodiments, the information flow pushing module 4551 is configured to perform, for each second information, the following processing before sending the information flow with the at least one second information inserted therein to the terminal: querying a database based on second information identification of the second information; and when the interactive data associated with the second information identifier is queried, splicing at least part of the interactive data and the second information, and inserting the spliced interactive data and second information into the information stream.
In some embodiments, the information flow pushing module 4551 is configured to receive interaction data of at least one information in the information flow, where the interaction data is obtained by the terminal through an interaction function control corresponding to the information; the following data are written into the database: information identification of at least one piece of information, interaction data associated with the at least one piece of information; the database is a data source for synchronizing interactive data among different terminals.
In some embodiments, the recommendation information processing module 4552 is configured to obtain an object feature of an object corresponding to the terminal; performing feature extraction processing on a plurality of candidate materials to be recommended to obtain material features of each candidate material; determining the similarity between each material characteristic and the object characteristic, and sorting a plurality of alternative materials in a descending order according to the similarity; and selecting at least one candidate material ranked at the head from the first ranking result of the descending ranking as a recommended material.
In some embodiments, the information flow pushing module 4551 is configured to insert at least one second information into the information flow before sending the information flow into which the at least one second information is inserted to the terminal by: according to the similarity between each material feature and the object feature, the recommended materials corresponding to each material feature are ordered in a descending order, and a second ordering result is obtained; and inserting second information corresponding to each recommended material into the information stream according to the second sequencing result, wherein any two pieces of second information are not adjacent to each other.
In some embodiments, the information flow pushing module 4551 is configured to determine a time period between a current time and a last information flow update time of the terminal, where the current time is a time when the information flow request is received, and the last information flow update time is a time information flow update time with a minimum time distance from the current time; combining the first information with the generation time within the time period according to the descending order of the recommended parameters corresponding to each first information to obtain an information stream for responding to the information stream request; wherein the recommended parameters are determined by at least one of: generating time and interaction heat parameters.
In some embodiments, the processing device of the information stream further comprises: information flow display module 4553.
The information flow display module 4553 is configured to receive an information flow, where the information flow includes a plurality of first information, and at least one second information is inserted between the plurality of first information, the first information and the second information have the same plurality of fields, and a source of the first information is different from a source of the second information; based on the unified information template, displaying information flow, and respectively loading corresponding interactive function controls in the display areas of each first information and each second information; wherein the information template is used for controlling the positions of fields and interactive functional controls in the display area
In some embodiments, the information flow display module 4553 is configured to, in response to the first information being spliced with corresponding interaction data, display, in an interaction function control corresponding to the first information, the interaction data corresponding to the first information; and responding to the second information to splice the corresponding interaction data, and displaying the interaction data corresponding to the second information in the interaction function control corresponding to the second information.
In some embodiments, the information flow display module 4553 is configured to receive the interaction data and an information identifier associated with the interaction data; and updating the interactive function control in the display area for displaying the target information based on the interactive data, wherein the target information is information corresponding to the information identification in the information flow.
In some embodiments, the interactive functionality control of the first information has the same interactive processing logic and interactive effect display mode as the interactive functionality control of the second information.
In some embodiments, the information flow display module 4553 is configured to display interactive data of the first information in response to an operation of the interactive function control for the first information, and synchronize the interactive data of the first information between different terminals; and responding to the operation of the interaction function control for the second information, displaying the interaction data corresponding to the second information, and synchronizing the interaction data of the second information among different terminals.
In some embodiments, the at least one second information is obtained by the server by: and converting the format of at least one recommended material according to the first information format of the first information to obtain at least one second information conforming to the first information format.
Embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the method for processing the information flow according to the embodiment of the application.
The embodiments of the present application provide a computer readable storage medium storing executable instructions, wherein the executable instructions are stored, which when executed by a processor, cause the processor to perform a method for processing an information stream provided by the embodiments of the present application, for example, a method for processing an information stream as shown in fig. 3A.
In some embodiments, the computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; but may be a variety of devices including one or any combination of the above memories.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
As an example, executable instructions may be deployed to be executed on one electronic device or on multiple electronic devices located at one site or, alternatively, on multiple electronic devices distributed across multiple sites and interconnected by a communication network.
In summary, according to the embodiment of the present application, the recommended material is converted into the second information (i.e., the recommended information) in the information format conforming to the first information (i.e., the original information) of the information stream and is inserted into the information stream, so that when the information stream is displayed, the second information can be directly adapted to the interactive function control developed for the first information, and the same interactive function control is adopted, so that the terminal can multiplex the processing logic of the first information to process the second information, thereby saving computing resources and ensuring the consistency of the interactive functions and subsequent advanced versions of different information in the information stream; and because the information format conversion function does not relate to the transformation of the system architecture, the system can be efficiently and smoothly upgraded under the condition of no stopping service. The cost required for developing the interactive function is saved, the computing resources required by the recommendation server are saved, and the recommendation pushing efficiency is improved.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application. Any modifications, equivalent substitutions, improvements, etc. that are within the spirit and scope of the present application are intended to be included within the scope of the present application.

Claims (25)

1. A method of processing an information stream, the method comprising:
receiving an information flow request sent by a terminal;
obtaining an information stream for responding to the information stream request, wherein the information stream comprises a plurality of first information;
acquiring at least one recommended material;
converting the format of the at least one recommended material according to a first information format of the first information to obtain at least one second information conforming to the first information format, wherein the second information conforms to the first information format, and the first information format is used for adapting to an interactive function control of the first information;
and transmitting the information stream inserted with the at least one piece of second information to the terminal.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the format conversion is performed on the at least one recommended material according to the first information format of the first information to obtain at least one second information conforming to the first information format, including:
The following processing is performed for each of the recommended materials:
based on a first mapping table, carrying out format conversion on the recommended materials conforming to the second information format to obtain the second information conforming to the first information format, wherein the first mapping table comprises a mapping relation between the following two formats: the first information accords with the first information format, and the recommended material accords with the second information format.
3. The method of claim 2, wherein the step of determining the position of the substrate comprises,
the first information format comprises a first information identifier, a plurality of information flow field identifiers and an information flow data area corresponding to each information flow field identifier; the second information format comprises a plurality of material field identifications and material data areas corresponding to each material field identification;
the mapping relation between the first information format and the second information format comprises the following mapping relation between two types of identifiers: different information flow field identifiers in the first information format and different material field identifiers in the second information format;
the performing format conversion on the recommended material conforming to the second information format based on the first mapping table to obtain the second information conforming to the first information format includes:
Inquiring the first mapping table based on each material field identifier in the recommended material to obtain the information flow field identifier corresponding to each material field identifier, and replacing the material field identifier in the recommended material with the inquired information flow field identifier;
acquiring a second information identifier of the recommended material, wherein the second information identifier is different from the first information identifier of any first information;
and packaging the second information identification of the recommended material and the replaced recommended material to obtain the second information conforming to the first information format.
4. The method of claim 3, wherein before said encapsulating said second information identification of said recommended material, said replaced recommended material, to obtain said second information in accordance with said first information format, said method further comprises:
for the information flow field identification and the material field identification with the mapping relation, executing the following processing:
the following two data types are aligned: the material field identifies a first data type to which the corresponding material data area belongs, and the information stream field identifies a second data type to which the corresponding information stream data area belongs;
And in response to inconsistent comparison results, converting the material data in the material data area from the first data type to the second data type, wherein the material data is the data in the material data area in the recommended material.
5. The method of claim 3, wherein the obtaining the second information identification of the recommended material comprises:
assigning a corresponding second information identifier to each recommended material by the following method:
querying a second mapping table based on the recommended material identification of the recommended material, wherein the second mapping table comprises a mapping relation between the following two types of identifications: a recommended material identifier of different recommended materials and a second information identifier of different recommended materials; each second information identifier is used for generating corresponding second information;
when the recommended material identifiers are not queried, creating second information identifiers of the recommended materials, wherein the second information identifiers corresponding to different recommended materials are different;
and when the recommended material identifier is queried, acquiring a second information identifier corresponding to the recommended material identifier from the second mapping table.
6. The method of claim 5, wherein after said creating the second information identification of the recommended materials, the method further comprises:
writing the mapping relation between the following two types of identifiers into the second mapping table: and the recommended material identifier of the recommended material and the second information identifier created for the recommended material.
7. The method according to claim 1, wherein before said transmitting the information stream with the at least one second information inserted therein to the terminal, the method further comprises:
the following processing is performed for each of the second information:
identifying a query database based on the second information of the second information;
and when the interactive data associated with the second information identifier is queried, splicing at least part of the interactive data and the second information, and inserting the spliced interactive data and the second information into the information stream.
8. The method of claim 7, wherein the method further comprises:
receiving interaction data of at least one piece of information in the information stream, wherein the interaction data is acquired by the terminal through an interaction function control corresponding to the information;
Writing the following data into the database: an information identification of the at least one information, the interaction data associated with the at least one information; the database is a data source for synchronizing the interactive data between different terminals.
9. The method of claim 1, wherein the obtaining at least one recommended material comprises:
acquiring object characteristics of an object corresponding to the terminal;
performing feature extraction processing on a plurality of candidate materials to be recommended to obtain material features of each candidate material;
determining the similarity between each material characteristic and the object characteristic, and sorting the plurality of candidate materials in a descending order according to the similarity;
and selecting at least one candidate material with the sequence at the head from the first sequencing result of the descending sequence as a recommended material.
10. The method according to claim 9, characterized in that before said sending the information stream with the inserted at least one second information to the terminal, the method further comprises:
inserting the at least one second information into the information stream by:
According to the similarity between each material feature and the object feature, the recommended materials corresponding to each material feature are ordered in a descending order, and a second ordering result is obtained;
and inserting the second information corresponding to each recommended material into the information stream according to the second sorting result, wherein any two pieces of second information are not adjacent to each other.
11. The method of claim 1, wherein the obtaining the information stream for responding to the information stream request comprises:
determining a time period between a current time and a last information flow updating time of the terminal, wherein the current time is the time of receiving the information flow request, and the last information flow updating time is the one-time information flow updating time with the minimum time distance from the current time;
combining the first information with the generation time within the time period according to the descending order of the recommended parameters corresponding to each first information to obtain an information stream for responding to the information stream request;
wherein the recommended parameters are determined by at least one of: generating time and interaction heat parameters.
12. A method of processing an information stream, the method comprising:
receiving an information stream;
wherein the information stream comprises a plurality of first information, and at least one second information is inserted between the plurality of first information, the first information and the second information have the same plurality of fields, and the source of the first information is different from the source of the second information;
based on a unified information template, displaying the information flow, and respectively loading corresponding interactive function controls in the display areas of each piece of first information and each piece of second information;
the information template is used for controlling the positions of the fields and the interactive function controls in the display area.
13. The method according to claim 12, wherein the method further comprises:
responding to the first information to splice corresponding interaction data, and displaying the interaction data corresponding to the first information in the interaction function control corresponding to the first information;
and responding to the second information to splice corresponding interaction data, and displaying the interaction data corresponding to the second information in the interaction function control corresponding to the second information.
14. The method according to claim 12, wherein the method further comprises:
receiving interaction data and information identifications associated with the interaction data;
and updating the interactive function control in the display area for displaying target information based on the interactive data, wherein the target information is information corresponding to the information identification in the information flow.
15. The method of claim 12, wherein the step of determining the position of the probe is performed,
the interactive function control of the first information and the interactive function control of the second information have the same interactive processing logic and interactive effect display mode.
16. The method according to claim 12, wherein the method further comprises:
responding to the operation of the interaction function control for the first information, displaying the interaction data of the first information, and synchronizing the interaction data of the first information between different terminals;
and responding to the operation of the interaction function control for the second information, displaying the interaction data corresponding to the second information, and synchronizing the interaction data of the second information between different terminals.
17. The method of claim 12, wherein the at least one second message is obtained by the server by:
and converting the format of at least one recommended material according to a first information format of the first information to obtain at least one second information conforming to the first information format.
18. A method of processing an information stream, the method comprising:
the information flow server receives an information flow request sent by a terminal, sends the information flow request to the recommendation server, and acquires an information flow for responding to the information flow request from an information flow service storage database, wherein the information flow comprises a plurality of first information;
the recommendation server acquires at least one recommendation material from the recommendation material database, wherein the recommendation material is uploaded to the recommendation server by a delivery end and is stored in the recommendation material database by the recommendation server;
the recommendation server performs format conversion on the at least one recommendation material according to a first information format of the first information to obtain at least one piece of second information, and sends the at least one piece of second information to the information flow server, wherein the second information accords with the first information format, the first information format is used for adapting to an interaction function control of the first information, and the source of the first information is different from that of the second information;
The information flow server receives the at least one second information and transmits the information flow inserted with the at least one second information to the terminal.
19. A system for processing an information stream, the system comprising: the information flow server, the recommending server, the information flow business storage database and the recommending material database; wherein,
the information flow server is used for receiving an information flow request sent by a terminal and sending the information flow request to the recommendation server; obtaining an information stream for responding to the information stream request from the information stream service storage database, wherein the information stream comprises a plurality of first information;
the recommendation server is used for acquiring at least one recommendation material from the recommendation material database, wherein the recommendation material is uploaded to the recommendation server by a delivery end and is stored in the recommendation material database by the recommendation server; converting the format of the at least one recommended material according to a first information format of the first information to obtain at least one piece of second information, and sending the at least one piece of second information to the information flow server, wherein the second information accords with the first information format, the first information format is used for adapting to an interactive function control of the first information, and the source of the first information is different from that of the second information;
The information flow server is configured to send the information flow with the at least one piece of second information inserted therein to the terminal.
20. The system of claim 19, wherein the system further comprises a controller configured to control the controller,
the recommendation server is further configured to obtain a first mapping table from the recommended material database, where the first mapping table includes a mapping relationship between the first information format according to the first information and a second information format according to the recommended material;
the recommendation server is further configured to perform the following processing for each of the recommended materials: and carrying out format conversion on the recommended materials conforming to the second information format based on the first mapping table to obtain the second information conforming to the first information format.
21. The system of claim 19, wherein the system further comprises a controller configured to control the controller,
the information flow server is further configured to receive the at least one second information sent by the recommendation server before sending the information flow with the at least one second information inserted therein to the terminal, and perform the following processing for each of the second information: querying the information flow service storage database based on the second information identification of the second information;
The information flow server is further used for splicing at least part of the interactive data and the second information together and inserting the interactive data and the second information into the information flow when the interactive data associated with the second information identifier is queried.
22. An apparatus for processing an information stream, the apparatus comprising:
the information flow pushing module is used for receiving an information flow request sent by the terminal;
the information flow pushing module is further configured to obtain an information flow for responding to the information flow request, where the information flow includes a plurality of first information;
the recommendation information processing module is used for acquiring at least one recommendation material;
the recommended information processing module is further configured to perform format conversion on the at least one recommended material according to a first information format of the first information to obtain at least one second information conforming to the first information format, where the second information conforms to the first information format, and the first information format is used to adapt to an interactive function control of the first information;
the information flow pushing module is configured to send the information flow with the at least one piece of second information inserted therein to the terminal.
23. An electronic device, the electronic device comprising:
a memory for storing executable instructions;
a processor for implementing the method of processing an information stream according to any one of claims 1 to 11 or claims 12 to 17 or claim 18 when executing executable instructions stored in said memory.
24. A computer readable storage medium storing executable instructions which when executed by a processor implement the method of processing an information stream according to any one of claims 1 to 11 or claims 12 to 17 or claim 18.
25. A computer program product comprising a computer program or instructions which, when executed by a processor, carries out the method of processing an information stream according to any one of claims 1 to 11 or claims 12 to 17 or claim 18.
CN202210861551.1A 2022-07-20 2022-07-20 Information stream processing method, system, device, electronic equipment and storage medium Pending CN117478729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210861551.1A CN117478729A (en) 2022-07-20 2022-07-20 Information stream processing method, system, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210861551.1A CN117478729A (en) 2022-07-20 2022-07-20 Information stream processing method, system, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117478729A true CN117478729A (en) 2024-01-30

Family

ID=89638412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210861551.1A Pending CN117478729A (en) 2022-07-20 2022-07-20 Information stream processing method, system, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117478729A (en)

Similar Documents

Publication Publication Date Title
CN112104899B (en) Information recommendation method and device in live broadcast, electronic equipment and storage medium
US10643610B2 (en) Voice interaction based method and apparatus for generating multimedia playlist
US10299010B2 (en) Method of displaying advertising during a video pause
US10334328B1 (en) Automatic video generation using auto-adaptive video story models
CN101556617B (en) Systems and methods for associating metadata with media
US10362340B2 (en) Techniques for creation of auto-montages for media content
US20180077250A1 (en) Method and System for Processing Data Used By Creative Users to Create Media Content
US11755676B2 (en) Systems and methods for generating real-time recommendations
US9177341B2 (en) Determining search relevance from user feedback
CN104065979A (en) Method for dynamically displaying information related with video content and system thereof
CN104823454A (en) Pushing of content to secondary connected devices
CN111368141B (en) Video tag expansion method, device, computer equipment and storage medium
CN112231563B (en) Content recommendation method, device and storage medium
KR20200045354A (en) Automatic advertisement execution device, method for automatically generating campaign information for an advertisement medium to execute an advertisement and computer program for executing the method
CN104102683A (en) Contextual queries for augmenting video display
CN112182359A (en) Feature management method and system of recommendation model
CN101540767A (en) Server, digital television receiving terminal and program information display system and method
CN111339357A (en) Recommendation method and device based on live user behaviors
CN113259708A (en) Method, computer device and medium for introducing commodities based on short video
CN111459686A (en) Queue message storing and forwarding method and system and computer device with operating system
WO2009120004A2 (en) Keyword-advertisement method using meta-information related to digital contents and system thereof
CN117478729A (en) Information stream processing method, system, device, electronic equipment and storage medium
KR102150049B1 (en) Method and server for providing video content for digital signage
KR20220079029A (en) Method for providing automatic document-based multimedia content creation service
CN113608737A (en) Page generation method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination