CN111901408A - Content recommendation method and device in offline state and computer program product - Google Patents

Content recommendation method and device in offline state and computer program product Download PDF

Info

Publication number
CN111901408A
CN111901408A CN202010723768.7A CN202010723768A CN111901408A CN 111901408 A CN111901408 A CN 111901408A CN 202010723768 A CN202010723768 A CN 202010723768A CN 111901408 A CN111901408 A CN 111901408A
Authority
CN
China
Prior art keywords
content
access record
content access
area network
server
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.)
Granted
Application number
CN202010723768.7A
Other languages
Chinese (zh)
Other versions
CN111901408B (en
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 CN202010723768.7A priority Critical patent/CN111901408B/en
Publication of CN111901408A publication Critical patent/CN111901408A/en
Application granted granted Critical
Publication of CN111901408B publication Critical patent/CN111901408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The application provides a content recommendation method, a content recommendation device, a computer program product and a computer readable storage medium in an off-line state; the method comprises the following steps: acquiring a wide area network networking state in a space; when the networking state of the wide area network is an offline state, establishing local area network communication connection with the terminal equipment in the space; sending the content of the offline application to the terminal equipment through the local area network communication connection, and acquiring a content access record when the terminal equipment runs the offline application; when the networking state of the wide area network is an online state, acquiring a content updating result corresponding to the content access record through wide area network communication connection; and updating the content of the offline application according to the content updating result. By the method and the device, the content access records can be effectively collected in the offline state, and the applicability of content recommendation in the offline state is improved.

Description

Content recommendation method and device in offline state and computer program product
Technical Field
The present application relates to network communication and data processing technologies, and in particular, to a method and an apparatus for content recommendation in an offline state, a computer program product, and a computer-readable storage medium.
Background
In the process of using the terminal device, the user often accesses the content of the application in the terminal device, so as to use the functions provided by the application, such as browsing information, watching video or shopping. Since the content access record is a manifestation of the user's access habits, subsequent content recommendation is usually performed according to the content access record to satisfy the user preference.
In the solutions provided in the related art, generally, under the condition that a wide area network communication connection exists, that is, a wide area network networking state is an online state, a content access record of a user is obtained, and the content access record is reported to a certain address in real time, so as to perform data analysis and content recommendation. However, the user holding the terminal device has a characteristic of continuous movement, so that the terminal device may be in a space where the communication connection of the wide area network is disconnected, such as a cabin of an airplane that has taken off, a train car in which a wide area network signal (such as a 4G signal) is weak or even absent, and the like.
For content access record collection and content recommendation in such a space in an offline state, the related art has not provided an effective solution.
Disclosure of Invention
The embodiment of the application provides a content recommendation method and device in an offline state, a computer program product and a computer readable storage medium, which can effectively collect content access records of terminal equipment in a space in the offline state, and improve the applicability of content recommendation in the offline state.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a content recommendation method in an off-line state, which comprises the following steps:
acquiring a wide area network networking state in a space;
when the networking state of the wide area network is an offline state, establishing local area network communication connection with the terminal equipment in the space;
sending the content of the off-line application to the terminal equipment through the local area network communication connection, and
acquiring a content access record when the terminal equipment runs the offline application;
when the networking state of the wide area network is an online state, acquiring a content updating result corresponding to the content access record through wide area network communication connection;
and updating the content of the offline application according to the content updating result.
An embodiment of the present application provides a content recommendation device in an offline state, including:
the state acquisition module is used for acquiring the networking state of the wide area network in the space;
the establishing module is used for establishing local area network communication connection with the terminal equipment in the space when the networking state of the wide area network is an offline state;
a content sending module, configured to send the content of the offline application to the terminal device through the lan communication connection, and send the content to the terminal device
Acquiring a content access record when the terminal equipment runs the offline application;
a result obtaining module, configured to obtain, when the wan networking state is an online state, a content update result corresponding to the content access record through wan communication connection;
and the content updating module is used for updating the content of the offline application according to the content updating result.
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 content recommendation method in the offline state provided by the embodiment of the application when the executable instructions stored in the memory are executed.
The embodiment of the present application provides a computer program product, which includes executable instructions, and is configured to implement, when executed by a processor, the content recommendation method in an offline state provided in the embodiment of the present application.
An embodiment of the present application provides a computer-readable storage medium, which stores executable instructions for causing a processor to execute the method for recommending content in an offline state according to the embodiment of the present application.
The embodiment of the application has the following beneficial effects:
and when the networking state of the wide area network is in an off-line state, acquiring content access records of the terminal equipment in the space based on the local area network communication connection, and when the networking state of the wide area network is converted into the on-line state, acquiring a content updating result corresponding to the content access records so as to update the content of the off-line application. Therefore, effective acquisition of content access records is achieved in the offline state, and applicability of content recommendation in the offline state is improved.
Drawings
Fig. 1 is a schematic diagram of an architecture of a data acquisition system provided in the related art;
fig. 2 is an alternative architecture diagram of a content recommendation system in an offline state according to an embodiment of the present application;
fig. 3 is an alternative architecture diagram of a content recommendation system in an offline state in conjunction with a blockchain network according to an embodiment of the present application;
FIG. 4 is an alternative architecture diagram of a space service device provided by an embodiment of the present application;
fig. 5A is an alternative flowchart of a content recommendation method in an offline state according to an embodiment of the present application;
fig. 5B is an alternative flowchart of a content recommendation method in an offline state according to an embodiment of the present application;
fig. 5C is an alternative flowchart of a content recommendation method in an offline state according to an embodiment of the present application;
fig. 5D is an alternative flowchart of a content recommendation method in an offline state according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an alternative architecture of a data acquisition system provided by an embodiment of the present application;
FIG. 7 is an alternative interface diagram of an offline application provided by an embodiment of the present application;
fig. 8 is an alternative flow chart of data collection provided by the embodiments of the present application.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection 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 understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first", "second", and the like are only used for distinguishing similar objects and do not denote a particular order or importance, but rather the terms "first", "second", and the like may be used interchangeably with the order of priority or the order in which they are expressed, where permissible, to enable embodiments of the present application described herein to be practiced otherwise than as specifically illustrated and described herein. In the following description, the term "plurality" referred to means at least two.
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 application.
Before further detailed description of the embodiments of the present application, terms and expressions referred to in the embodiments of the present application will be described, and the terms and expressions referred to in the embodiments of the present application will be used for the following explanation.
1) The application comprises the following steps: for running on the terminal device to implement the corresponding function. The application type is not limited in the embodiment of the application, for example, the application may be a web application, an applet or an application program (APP), and the like; the functions realized by the application are not limited, for example, the functions of information display, music playing or online shopping in a shopping mall can be realized.
2) Wide Area Network (WAN): remote networks connecting computer communications in different regional (spatial) local or metropolitan area networks are typically spanned over a very large physical range, e.g., across continents or across countries. The internet is a public wide area network.
3) Local Area Network (LAN): the physical range of a network formed by interconnection of a plurality of devices in a certain space is far smaller than that of a wide area network.
4) Artificial Intelligence (AI): a theory, method, technique and application system for simulating, extending and expanding human intelligence, sensing environment, acquiring knowledge and using knowledge to obtain optimal results by using a digital computer or a machine controlled by a digital computer. In the embodiment of the application, the artificial intelligence model is constructed by using the artificial intelligence principle, for example, the artificial intelligence model can be a neural network model.
5) Database (Database): data sets that are stored together in a manner that enables sharing with multiple users, has as little redundancy as possible, and is independent of the application, the users can perform additions, queries, updates, and deletions to the data in the database.
6) Blockchain (Blockchain): an encrypted, chained transactional memory structure formed of blocks (blocks).
7) Block chain Network (Blockchain Network): the new block is incorporated into the set of a series of nodes of the block chain in a consensus manner.
The content access record of the application running in the terminal device can often reflect the access habit and preference of the user, so the content access record has the value of collection and analysis. In the solution provided in the related art, as shown in fig. 1, generally, in the presence of a wide area network communication connection (such as an internet connection in fig. 1), that is, in a case where a wide area network connection state is an online state, the application server 11 provides an online application to a terminal device (illustratively, terminal devices 121 and 122 are shown), and the terminal device transmits a content access record to the data analysis platform 13 through the internet for further analysis by the data analysis platform 13 in the process of running the online application, that is, accessing the content provided by the application server 11. However, the solutions provided by the related art cannot be applied to a space where the internet connection is disconnected (i.e., an offline state), so that targeted content recommendation cannot be performed in such a space.
Embodiments of the present application provide a content recommendation method and apparatus in an offline state, a computer program product, and a computer-readable storage medium, which can implement effective acquisition of content access records in the offline state, and improve applicability of content recommendation in the offline state. An exemplary application of the electronic device provided in the embodiments of the present application is described below, and the electronic device provided in the embodiments of the present application may be implemented as various types of terminal devices such as a notebook computer, a tablet computer, a desktop computer, a set-top box, a mobile device (e.g., a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, and a portable game device), and may also be implemented as a server.
Referring to fig. 2, fig. 2 is an alternative architecture diagram of the content recommendation system 100 according to the embodiment of the present application, in which a terminal device 400 is connected to a space service device 200 through a local area network 300, the space service device 200 is connected to a database 500, and is further connected to a server 700 through a wide area network 600. The space service equipment 200 may be a server or a terminal equipment, and for convenience of understanding, the server is taken as an example for description. In addition, the local area network 300 may be accessed by wired or wireless means, as may the wide area network 600.
In the embodiment of the present application, the space service apparatus 200 and the terminal apparatus 400 are in the same space, for example, the space may be a passenger cabin of an airplane or a train car, etc. When the wan communication connection in the space is disconnected (for example, the airplane takes off), that is, the wan networking state is the offline state, the space service device 200 provides the local area network 300 through the base-mounted device (not shown in fig. 2), and the terminal device 400 establishes the local area network communication connection with the space service device 200 through the local area network 300. The space service equipment 200 sends the content of the offline application to the terminal equipment 400 through the established local area network communication connection, so that the terminal equipment 400 runs the offline application, and displays an application interface of the offline application in the graphical interface 410, wherein the application interface includes the content sent by the space service equipment 200, and the content 1 and the content 2 are taken as examples in fig. 2.
When the terminal apparatus 400 detects that the access operation to the content satisfies the set access condition, such as the "browse" option in fig. 2, a content access record corresponding to the accessed content is generated and transmitted to the space service apparatus 200. The space service apparatus 200 stores the content access record in the database 500, but may also store the content access record in a file system of the space service apparatus 200 itself. When the space service apparatus 200 detects that the wan communication connection within the space is restored (for example, the airplane is dropped), that is, the wan networking status is changed from the offline status to the online status, the content access record stored in the database 500 or the file system is transmitted to the server 700 through the wan 600.
The server 700 performs preference analysis processing on the content of the offline application according to the received content access record to obtain a content update result, and transmits the content update result to the space service apparatus 200. The space service equipment 200 updates the content of the offline application according to the content update result, so that when the disconnection of the wide area network communication in the space is detected next time, the space service equipment 200 can send the updated content to the terminal equipment in the space, and the content recommendation effect is improved.
In some embodiments, the space service apparatus 200 may be a stand-alone physical server, or may be a server cluster or distributed system formed by a plurality of physical servers, and the server 700 is similar to the above. In addition, the server 700 may also be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, web services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms, for example, a cloud service that may provide preference analysis, so as to be called by the space service apparatus 200. The terminal device 400 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, and the like. The terminal device and the space service device, and the space service device and the server may be directly or indirectly connected through wired or wireless communication, which is not limited in the embodiment of the present application.
Referring to fig. 3, fig. 3 is an alternative architecture diagram of the content recommendation system 110 in an offline state in conjunction with a blockchain network according to an embodiment of the present application, and includes a space service apparatus 200, a server 700, a blockchain network 800 (exemplarily showing a node 810), and an authentication center 900.
The type of blockchain network 800 is flexible and may be, for example, any of a public chain, a private chain, or a federation chain. Taking a public chain as an example, any electronic device, such as a terminal device and a server, can access the blockchain network 800 without authorization; taking a federation chain as an example, an electronic device may access the blockchain network 800 after being authorized, and at this time, becomes a special type of node in the blockchain network 800, i.e., a client node. Note that the client node may provide only transaction initiation (e.g., for uplink storage of data or for querying of data on the chain) functionality, and may be implemented by default or selectively (e.g., depending on specific traffic needs) for the functions of the native node 810 of the blockchain network 800, such as the ranking function, consensus service, and ledger function, etc. Therefore, the data and service processing logic of the electronic device can be migrated into the blockchain network 800 to the maximum extent, and the credibility and traceability of the data and service processing process are realized through the blockchain network 800. Blockchain network 800 receives a transaction submitted from a client node, executes the transaction to update the ledger or query the ledger. It is noted that typically, the blockchain network 800 includes a plurality of nodes 810.
The spatial service device 200 can access the blockchain network 800 to become a client node of the blockchain network 800, and further perform data uplink. For example, after obtaining the content access record from the terminal device 400, the space service device 200 generates a transaction corresponding to the update operation according to the content access record, specifies an intelligent contract that needs to be invoked to implement the update operation and parameters transferred to the intelligent contract in the transaction, and also carries the digital certificate of the space service device 200 and a signed digital signature (for example, a digest of the transaction is encrypted by using a private key in the digital certificate of the space service device 200), and broadcasts the transaction to the consensus node 810 in the blockchain network 800. The digital certificate of the space service apparatus 200 is registered with the certificate authority 900.
When the consensus node 810 in the blockchain network 800 receives the transaction, the digital certificate and the digital signature carried by the transaction are verified, after the verification is successful, whether the space service equipment 200 has the transaction right or not is determined according to the identity of the space service equipment 200 carried in the transaction, and the transaction fails due to any verification judgment of the digital signature and the right verification. After successful verification, node 810 signs its own digital signature (e.g., by encrypting a digest of the transaction using node 810's private key) and continues to broadcast in blockchain network 800.
After receiving the transaction successfully verified, the consensus node 810 in the blockchain network 800 fills the transaction into a new block and broadcasts the new block. When broadcasting a new block, the consensus node 810 in the blockchain network 800 performs a consensus process on the new block, and if the consensus is successful, adds the new block to the tail of the blockchain stored in the node itself, and performs a transaction in the new block: and updating the key value pair corresponding to the content access record in the state database for the transaction of submitting the content access record.
The server 700 may also access the blockchain network 800 to become a client node of the blockchain network 800 to query for data on the chain. The inquiry process is similar to the uplink process described above, and is not described herein again, and for the transaction including the inquiry request submitted by the server 700, the node 810 adds the formed new block to the tail of the block chain stored in itself, and executes the transaction in the new block: for transactions that query content access records, the content access records in the status database are queried and returned to the submitter of the transaction. It should be noted that the data stored in the state database is the same as the block chain, so that the query request can be responded according to the data in the state database, thereby improving the response efficiency. Of course, in an actual application scenario, the state database may not be provided, and only the blockchain may perform data storage and data query.
Referring to fig. 4, fig. 4 is a schematic diagram of an architecture of a space service apparatus 200 provided in an embodiment of the present application, where the space service apparatus 200 shown in fig. 4 includes: at least one processor 210, memory 240, and at least one network interface 220. The various components in the space servicing apparatus 200 are coupled together by a bus system 230. It is understood that the bus system 230 is used to enable connected communication between these components. The bus system 230 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 230 in fig. 4.
The Processor 210 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The memory 240 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. Memory 240 optionally includes one or more storage devices physically located remote from processor 210.
The memory 240 includes either volatile memory or nonvolatile memory, and may 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). The memory 240 described in embodiments herein is intended to comprise any suitable type of memory.
In some embodiments, memory 240 is capable of storing data, examples of which include programs, modules, and data structures, or subsets or supersets thereof, to support various operations, as exemplified below.
An operating system 241, including system programs for handling various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and handling hardware-based tasks;
a network communication module 242 for communicating to other computing devices via one or more (wired or wireless) network interfaces 220, exemplary network interfaces 220 including: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), among others.
In some embodiments, the content recommendation device in the offline state provided in the embodiments of the present application may be implemented in software, and fig. 4 illustrates the content recommendation device 243 in the offline state stored in the memory 240, which may be software in the form of programs and plug-ins, and includes the following software modules: status acquisition module 2431, establishment module 2432, content sending module 2433, result acquisition module 2434, and content update module 2435, which are logical and thus can be arbitrarily combined or further split depending on the functions implemented. The functions of the respective modules will be explained below.
In other embodiments, the content recommendation Device 243 in the offline state provided by the embodiment of the present Application may be implemented in hardware, for example, the content recommendation Device 243 in the offline state provided by the embodiment of the present Application may be a processor in the form of a hardware decoding processor, which is programmed to execute the content recommendation method in the offline state provided by the embodiment of the present Application, for example, the processor in the form of the hardware decoding processor may employ one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), or other electronic components.
The content recommendation method in an offline state provided by the embodiment of the present application will be described in conjunction with exemplary applications and implementations of the electronic device provided by the embodiment of the present application.
Referring to fig. 5A, fig. 5A is an optional flowchart of a content recommendation method in an offline state according to an embodiment of the present application, and for convenience of understanding, the steps shown in fig. 5A are described in conjunction with the architecture diagram shown in fig. 2.
In step 101, when the wan networking status in the space is an offline status, the space service device establishes a lan communication connection with the terminal device in the space.
For example, the space service equipment may be fixed in a space, such as an airplane passenger cabin or a train car. The space service equipment can detect the networking state of the wide area network in the space in real time or periodically, and when the networking state of the wide area network is an offline state, for example, the wide area network cannot be connected to the internet, the space service equipment establishes a local area network communication connection with the terminal equipment in the space, wherein the space service equipment can start the base load equipment in the space so that the base load equipment provides local area network access, and the base load equipment is a router. Here, the terminal device may also detect the wan networking status in real time or periodically, and when detecting that the wan networking status is the offline status, search for the local area network for access, so as to establish a local area network communication connection with the space service device.
In step 102, the space service device sends the content of the offline application to the terminal device through the lan communication connection, and obtains a content access record when the terminal device runs the offline application.
Here, the space service device stores the content of the offline application, and the content may be stored in a database connected to the space service device or may be stored in a file system of the space service device itself. The content format is not limited in the embodiments of the present application, and may be, for example, a button, text, or video format. The space service equipment sends the content of the offline application to the terminal equipment through the established local area network communication connection, so that the terminal equipment runs the offline application and presents the content in an application interface of the offline application. When detecting that the content in the offline application is accessed, the terminal device sends the generated content access record to the space service device, where the format of the content access record is not limited, and may include, for example, a timestamp, an identifier of the content, and the like.
In some embodiments, before step 102, further comprising: the space service equipment adds an access condition corresponding to the content in the offline application, so that the terminal equipment generates a content access record when detecting that the access operation on the content meets the access condition.
Here, the space service device may add the access condition corresponding to the content to the offline application by means of the burial point, for example, the space service device may install a Software Development Kit (SDK) for burying the point, and add the access condition corresponding to the content to the offline application by means of the SDK. The access condition is not limited in the embodiment of the present application, and for example, the click operation may be detected, or the access duration (browsing duration) reaches a duration threshold.
Therefore, when the terminal device runs the off-line application, whether the access operation to the content meets the access condition or not can be automatically detected, and when the access condition is met, the content access record is generated. The format of the content access record may be preset by the SDK. By the data point burying mode, the access condition of the content in the terminal equipment is effectively monitored, the access condition can be adjusted according to different practical application scenes, and the flexibility is improved.
In step 103, when the wan networking status in the space is online, the space service device obtains the content update result corresponding to the content access record through the wan communication connection.
Here, the content update result may be new content issued by the relevant service person, or may be an intermediate result (e.g., a ranking result) for updating the existing content.
For example, new content corresponding to the offline application is stored in the cloud database, and when the space service device detects that the wan communication connection in the space is recovered, that is, the wan networking state is switched from the offline state to the online state, the corresponding content is selected from the cloud database according to the content access record, so as to serve as the content update result. The case that the content is news is taken as an explanation, the content access record can include the label of the accessed content, such as entertainment, and the cloud database also stores the label corresponding to the new content, such as the label corresponding to the new content a is entertainment and the label corresponding to the new content B is social, so that the space service equipment selects the new content a as the content updating result. As for the case where the content update result is an intermediate result, it will be described later.
In step 104, the space service device updates the content of the offline application according to the content update result.
When the content updating result is new content, the space service equipment directly takes the new content in the content updating result as the updated content in the offline application; when the content updating result is an intermediate result, the spatial service device updates, for example, reorders, the content already in the offline application according to the intermediate result.
Therefore, when the next time the wide area network communication connection in the space is detected to be disconnected, the space service equipment establishes local area network communication connection with the terminal equipment in the space, and sends the updated content in the offline application to the terminal equipment through the local area network communication connection, so that targeted content recommendation based on the content access record is realized.
As shown in fig. 5A, in the embodiment of the application, in the offline state, the content access record when the terminal device runs the offline application is effectively acquired, so that the content of the offline application is updated based on the content access record, the updated content can better meet the user preference, and the user experience is improved.
In some embodiments, referring to fig. 5B, fig. 5B is an optional flowchart of the content recommendation method in an offline state provided in the embodiment of the present application, and step 103 shown in fig. 5A may be implemented through step 201 to step 203, which will be described with reference to each step.
In step 201, when the wan networking status in the space is online, the space service device sends the content access record to the server through the wan communication connection.
Since the computing power of the space service device may be limited, when it is detected that the wan communication connection within the space is restored, the space service device may send the content access record to the server via the wan communication connection, so that the more computing power server (e.g., a server cluster) processes the content access record.
In some embodiments, sending the content access record to the server as described above may be implemented in such a way that: the space service equipment checks the content access record to obtain a first check value, and sends the content access record and the first check value to the server; when a retransmission request is acquired from the server, the content access record and the first check value are sent to the server again; wherein the retransmission request is transmitted by the server when the first check value is different from the second check value; the second check value is obtained by the server checking the received content access record.
In the embodiment of the application, the data can be ensured to be accurate through a data verification mechanism. For example, the space service device performs verification processing on the content access record to obtain a first verification value, and sends the content access record and the first verification value to the server together. For two same data, two check values obtained after the check processing are also the same; for two different data, two check values obtained after the check processing are different. The embodiment of the present application does not limit the checking method, and for example, the checking may be performed by a Hash (Hash) algorithm.
After receiving the content access record and the first check value, the server firstly performs the same check processing on the content access record to obtain a second check value, and then compares the second check value with the first check value. If the first check value is the same as the second check value, the content access record is proved to be accurate, and then the content access record is subjected to subsequent processing; and if the first check value is different from the second check value and proves that the content access record is damaged in the transmission process, sending a retransmission request to the space service equipment.
And after receiving the retransmission request, the space service equipment transmits the content access record and the first check value to the server again. Therefore, the server can finally obtain the accurate content access record, the integrity of the data is improved, and the accuracy of subsequent processing is also improved.
In some embodiments, sending the content access record to the server as described above may be implemented in such a way that: the space service equipment sends the content access record to the blockchain network so that the nodes of the blockchain network store the content access record to the blockchain, and responds to the query request sent by the server to send the content access record in the blockchain to the server.
In embodiments of the present application, the content access record may be transmitted via a blockchain network. For example, the space service equipment submits the content access record to the blockchain network in a transaction form, and after the node of the blockchain network verifies the transaction, fills the blocks and identifies the transactions consistently, the formed new blocks are added to the tail part of the blockchain, namely, the uplink of the content access record is completed. When the server needs to obtain the content access record, the server submits the query request to the blockchain network in a transaction form, after the node of the blockchain network verifies the transaction, fills the blocks and has consistent consensus, the formed new blocks are added to the tail of the blockchain, and meanwhile, the content access record stored in the blockchain is sent to the server. It should be noted that, in the presence of the state database, the nodes of the blockchain network may respond to the query request according to the content access record in the state database, so as to improve the response efficiency.
Due to the fact that the blockchain has the characteristic of being not capable of being tampered, the accuracy of the content access records stored in the blockchain can be guaranteed. In addition, the blockchain is used as a data transfer station of the content access record, so that the operation of sending the content access record by the space service equipment and the operation of acquiring the content access record by the server can be executed asynchronously, and the flexibility of data transmission is improved.
In step 202, the server performs preference analysis processing on the content of the offline application according to the content access record, so as to obtain a content update result.
Here, the preference analysis processing method is not limited, and for example, the server may perform the preference analysis processing by using a model or statistics, and obtain a content update result.
In some embodiments, the content access record includes content characteristics and user satisfaction; in this way, the server performs preference analysis processing on the content applied offline according to the content access record, and obtains a content update result: the server trains the artificial intelligence model according to the content access records, calls the trained artificial intelligence model, respectively carries out prediction processing on the content characteristics of the new contents, and carries out sequencing processing on the new contents according to the obtained prediction satisfaction degree to obtain a content updating result.
Here, the content access record may include content characteristics of the corresponding content and user satisfaction. The content features may be obtained by performing feature extraction in real time by the space service device when the corresponding content is accessed, or may be obtained by performing feature extraction in advance by the server and stored in the space service device. In addition, the space service equipment can also send the content access record comprising the content identification to the server, so that the server queries corresponding content according to the content identification, and performs feature extraction on the queried content to obtain content features. The feature extraction method in the embodiment of the present application is not limited, and may be adjusted according to the type of the content, for example, feature extraction is performed through a specific algorithm.
The user satisfaction may be acquired from the terminal device by the space service device when the corresponding content is accessed. For example, the offline application includes two options of satisfaction and dissatisfaction corresponding to the content, and the terminal device may obtain the selected user satisfaction (e.g., satisfaction) and send the user satisfaction to the space service device. Of course, the user satisfaction is not limited to the two categories of satisfaction and dissatisfaction, and can be adjusted according to the actual application scenario.
And the space service equipment sends the obtained plurality of content access records to the server so that the server trains the artificial intelligence model according to the plurality of content access records. Taking the neural network model as an example, the server may perform prediction processing on the content features in the content access records through the neural network model to obtain the prediction satisfaction to be compared. Then, according to a loss function of the neural network model, calculating a difference between the user satisfaction corresponding to the same content and the predicted satisfaction to be compared, performing back propagation in the neural network model according to the difference, and updating a weight parameter of the neural network model along a gradient descending direction in the back propagation process until a set iteration condition is met, wherein the loss function is a cross entropy loss function, and the iteration condition can be a set iteration number or a set accuracy threshold value and the like. After the training of the artificial intelligence model is completed, the server calls the trained artificial intelligence model, content characteristics (which can be obtained by characteristic extraction of the server) of a plurality of new contents are respectively subjected to prediction processing, and the prediction satisfaction degree of each new content is obtained.
The server may send the plurality of new contents and the corresponding prediction satisfaction together as a content update result to the space service device, so that the space service device sorts the plurality of new contents according to the prediction satisfaction, for example, sorts the plurality of new contents in an order from high to low according to the prediction satisfaction, and uses the sorted plurality of new contents as updated contents in the offline application. In addition, the server can also sort a plurality of new contents according to the prediction satisfaction, and then send the sorted plurality of new contents to the space service equipment as a content updating result so as to reduce the processing pressure of the space service equipment.
Therefore, when the next time the disconnection of the wide area network communication connection in the space is detected, the space service equipment can send the sequenced new contents to the terminal equipment in the space. In the above mode, the artificial intelligence model is used for carrying out preference analysis processing, so that the accuracy of the obtained prediction satisfaction degree is improved, and the content recommendation effect is enhanced.
In some embodiments, the content access record includes a content amount and an access duration; in this way, the server performs preference analysis processing on the content applied offline according to the content access record, and obtains a content update result: and the server divides the access time length and the content amount to obtain unit access time length, and sorts the content corresponding to the plurality of content access records according to the unit access time length to obtain a content updating result.
In another case, the content access record may include a content amount and an access time length of the corresponding content, for example, when the content is text, the content amount may be a text amount such as a word number; when the content is video or audio, the amount of content may be the duration the video or audio itself has. After the space service equipment sends the plurality of content access records to the server, the server divides the access duration in the content access records by the internal capacity to obtain unit access duration, and the unit access duration can reflect the preference of the user more accurately. For example, the user has a lower preference degree for the text a than the text B, but the user spends more time reading the text a because the number of words of the text a is more than that of the text B, and if the preference degree is determined directly according to the access duration, an error result that the user has a higher preference degree for the text a is obtained; if the degree of preference is determined by calculating the unit access time length, a correct result of a higher degree of preference of the user for the text B is obtained.
After obtaining the unit access duration, the server may send the unit access duration corresponding to the multiple content access records as a content update result to the space service device, so that the space service device performs sorting processing on the content (existing content) corresponding to the multiple content access records according to the unit access duration, and uses the sorted multiple content as the updated content in the offline application. In addition, the server may also perform sorting processing on the content corresponding to the multiple content access records according to the unit access duration, and send the obtained sorting result as a content update result to the space service device, where the sorting result may only include the identifiers of the sorted multiple content instead of the content itself, so as to reduce the pressure of data transmission. By the method, the obtained unit access duration can accurately reflect the preference of the user, and the content recommendation effect is improved from another angle.
In step 203, the space service apparatus acquires the content update result from the server.
Here, the space service device acquires the content update result transmitted by the server through the wide area network communication connection to update the content of the offline application according to the content update result.
As shown in fig. 5B, the space service device sends the obtained content access record to a server with higher computing power, so as to perform preference analysis processing, thereby improving the efficiency and effect of content update.
In some embodiments, referring to fig. 5C, fig. 5C is an optional flowchart of the content recommendation method in an offline state provided in this embodiment of the application, and step 102 shown in fig. 5A may be implemented by steps 301 to 303, which will be described with reference to the steps.
In step 301, the space service device sends the content of the offline application to the terminal device through the lan communication connection.
In step 302, when acquiring an initialization record sent when the terminal device initializes the offline application through the local area network communication connection, the space service device acquires the identification information of the terminal device from the base-load device.
Here, the space further includes a base-load device, which is configured to provide local area network access to the terminal device in the space to establish a local area network communication connection, for example, the base-load device may be a router. When the terminal device accesses the lan through the base device, the identification information of the terminal device is stored in the base device, and for example, the identification information may be an International Mobile Equipment Identity (IMEI), an Internet Protocol (IP) address, a Media Access Control (MAC) address, or the like.
When initializing the off-line application, the terminal equipment generates an initialization record and sends the initialization record to the space service equipment. And when the space service equipment acquires the initialization record, acquiring the identification information of the terminal equipment from the base load equipment. It should be noted that, in the embodiment of the present application, the execution sequence of step 301 and step 302 is not limited, for example, when the offline application is a web application, the space service device may first send the content of the web application to the terminal device, and then the terminal device initializes the web application; for example, when the offline application is an APP, the terminal device may start (initialize) the pre-installed APP, and then the space service device may send the content in the APP to the terminal device.
In step 303, the space service device obtains a content access record when the terminal device runs the offline application through the lan communication connection.
In fig. 5C, after step 303, the space service device may also add identification information of the terminal device to the content access record in step 304 to distinguish the content access records of different terminal devices.
Here, the space service device may add the identification information of the terminal device to the content access record corresponding to the terminal device, so that when a plurality of terminal devices exist in the space, the content access records of different terminal devices may be distinguished. In addition, the space service equipment can also add other information in the content access record, for example, when the space service equipment is deployed in an aircraft cabin, a flight number can be added in the content access record, so that the content access records generated in different airlines can be distinguished.
In fig. 5C, step 103 shown in fig. 5A can be updated as step 305, and in step 305, when the wan networking status in the space is online, the space service apparatus obtains a first content update result corresponding to each of the plurality of content access records and a second content update result corresponding to all the content access records through wan communication connection; wherein each content access record corresponds to one kind of identification information.
For example, in the case of performing the preference analysis processing by the server, the server may perform the preference analysis processing separately on each content access record to obtain a first content update result corresponding to each content access record; in addition, preference analysis processing is carried out on all the content access records uniformly to obtain a second content updating result. And then, the server sends the obtained first content updating result and the second content updating result to the space service equipment.
In addition, the space service equipment can also obtain a first content updating result corresponding to each content access record and a second content updating result corresponding to all the content access records in a unified manner from the cloud database. For convenience of understanding, taking the content access record including the identification information a and the content access record including the identification information B obtained through the step 304 as an example, the space service device may finally obtain a first content update result corresponding to the identification information a and a first content update result corresponding to the identification information B, and may also obtain a second content update result.
In fig. 5C, step 104 shown in fig. 5A can be implemented by step 306 or step 307, which will be described in conjunction with each step.
In step 306, the space service device updates the content of the offline application according to the first content update result, so as to send the content to the terminal device associated with the identification information corresponding to the first content update result.
For example, when it is detected again that the wide area network communication connection within the space is disconnected, the space service apparatus acquires the identification information of the terminal apparatus in the space. If the obtained identification information is identification information A, the terminal device is proved to establish local area network communication connection once, and the content of the offline application is updated according to a first content updating result corresponding to the identification information A so as to send the updated content to the terminal device; similarly, if the obtained identification information is identification information B, updating the content of the offline application according to a first content update result corresponding to the identification information B, so as to send the updated content to the terminal device.
In step 307, the space service device updates the content of the offline application according to the second content update result, so as to send the content to the terminal device newly establishing the local area network communication connection in the space.
And if the acquired identification information is neither the identification information A nor the identification information B, the terminal equipment is proved to be newly established with local area network communication connection, and the content of the offline application is updated according to the second content updating result so as to send the updated content to the terminal equipment.
As shown in fig. 5C, in the embodiment of the present application, identification information is added to the content access record, so that the content access records of different terminal devices can be effectively distinguished; by obtaining the first content updating result corresponding to different identification information, when the terminal device which has established the local area network communication connection is connected again, the targeted content updating can be realized according to the first content updating result corresponding to the identification information of the terminal device, and the content recommendation effect is further improved.
In some embodiments, referring to fig. 5D, fig. 5D is an optional flowchart of the content recommendation method in an offline state provided in this embodiment, based on fig. 5A, after step 102, in step 401, the space service device may further store the content access record to the local.
After the content access record of the terminal device is acquired, the space service device may temporarily store the content access record locally, so as to acquire a corresponding content update result subsequently according to the local content access record.
In some embodiments, the above-described spatial service device storing the content access record locally may be implemented in such a way that: the space service equipment executes any one of the following processes: storing the content access record to a database of the space service equipment; and writing the content access record into a content access file in a file system of the space service equipment.
The embodiment of the application provides two storage modes of the content access record, wherein the first mode is that the space service equipment stores the content access record to a local database; the second way is to write the content access record to a content access file in the local file system. According to different practical application scenes, any one mode can be selected for storage, and the flexibility of storage is improved.
In fig. 5D, after step 401, in step 402, when the number of content access records stored in the local is greater than the number threshold, the space service device deletes the content access records according to the sequence of the timestamps in the content access records from old to new until the number of content access records is equal to the number threshold.
In the embodiment of the present application, the content access record may include a timestamp, and the timestamp may be added by the terminal device according to the real-time local to the terminal device. Because the local real-time of the terminal equipment may not be set accurately, and the local real-time of different terminal equipment may have difference at the same time, the timestamp may be added according to the local real-time of the space service equipment when the space service equipment receives the content access record, so that the accuracy of the space service equipment is improved.
After the space service device stores the content access records to the local, the space service device may acquire the number of the content access records stored to the local at set time intervals. When the number of the content access records is larger than the number threshold, the space service equipment deletes the content access records according to the sequence of the timestamps in the content access records from old to new, namely preferentially deleting the content access records with the timestamps farthest from the real-time until the number of the content access records is equal to the number threshold. In this way, the space service equipment can continuously receive and store the new content access record, and the space service equipment can be prevented from being overloaded. The number threshold may be set according to a local capacity of the space service device, such as a capacity of a database or a file system.
Based on fig. 5A, after step 103, the space service apparatus may also perform a deletion process on the content access record stored locally in step 403.
For example, after the content access record is successfully sent to the server, the space service device deletes the content access record stored locally to make the storage space free, so that a new content access record can be obtained and stored when the wide area network communication connection is disconnected next time.
It is worth noting that the server can complete some time-series sensitive analysis of the user behavior according to the time stamp in the content access record. For example, the server generates a content access sequence according to a plurality of content access records including timestamps, trains an artificial intelligence model through the content access sequence, calls the trained artificial intelligence model for prediction, and takes the predicted content access sequence as a content update result. After receiving the content updating result, the space service equipment preferentially sends the content in the content updating result to the terminal equipment.
As shown in fig. 5D, the space service device temporarily stores the content access record, and deletes the content access record after obtaining the content update result, so that the local storage space is effectively utilized, and the local storage space is prevented from being occupied for a long time.
Next, an exemplary application of the embodiment of the present application in a practical application scenario will be described. For convenience of understanding, a scene that a space is an airplane cabin is taken for illustration, the space service device may be split into an onboard cabin entertainment system and a data caching system, where the onboard cabin entertainment system is configured to provide content of an offline application, which may be a web application, an applet, or an APP, and the data caching system is configured to perform a data caching operation.
In fig. 6, when the aircraft takes off, the wide area network (e.g., internet) communication connection in the cabin is disconnected, and the aircraft is in an offline state, a user may access the content of the offline application provided by the in-cabin entertainment system 61 through a terminal device (e.g., terminal device 621 or terminal device 622 shown in fig. 6), and the terminal device may generate corresponding embedded data (corresponding to the above content access record), and send the embedded data to the data caching system 63 for caching. Here, the terminal device may also send the buried point data to the cabin entertainment system 61, and the data is forwarded by the cabin entertainment system 61 to the data cache system 63. When the airplane lands on the ground, the wide area network communication connection in the passenger cabin is restored and is in an on-line state, the data cache system 63 sends the cached buried point data to the data analysis platform 64 (corresponding to the server above), and meanwhile, the locally cached buried point data is deleted. The data analysis platform 64 may store the received buried point data in a database, such as a cloud database, and further process the data according to the buried point data, for example, implement content delivery with emphasis according to the number of exposures and clicks of the content (such as advertisements) in the buried point data, for example, analyze the buried point data to obtain a user portrait, recommend content based on the user portrait, and analyze the user behavior sensitive to time series according to the timestamp in the buried point data.
The embodiment of the present application provides an interface schematic diagram of the offline application shown in fig. 7, and for convenience of understanding, the case of using the offline application as the information application is described. In fig. 7, the content is each piece of information in the interface, and the content 71 is taken as an example, and includes an information title, a map and an information time, although the form of the content is not limited thereto. The trigger condition (corresponding to the above access condition) of the buried point data may be set according to the actual application scenario, for example, the trigger condition corresponding to the content 71 is that the content 71 is clicked, so that the terminal device generates the buried point data corresponding to the content 71 when detecting that the content 71 is clicked.
For the buried point data stored in the data cache system, the buried point data includes, but is not limited to, ranking (for example, the number of the buried point data acquired by the data cache system), timestamp, name of the airline company, flight number, content ID information (corresponding to the above content identifier), content type (for example, information type, small video type, or short video type), index value of the content in the front-end page content list, name of the page where the content is located (for example, recommended page under the information), content title (information title), and directory where the content is located (for example, digital directory or game directory, etc.). Where certain portions of the landfill data, such as ranking, airline names, and flight numbers, may be added by the data caching system.
The embodiment of the present application provides a schematic flow chart of data acquisition as shown in fig. 8, including an onboard cabin entertainment system, a data caching system, and a data analysis platform, which are described below:
1) an in-cabin entertainment system.
The onboard cabin entertainment system provides services for offline applications upon detection of a wide area network communication disconnection within the cabin, such as aircraft takeoff. The user can access the content of the offline application through the terminal equipment, and the terminal equipment generates the data of the embedded point when detecting that the access to the content meets the triggering condition, and directly reports the data of the embedded point to the data cache system, or forwards the data of the embedded point to the data cache system through the airborne passenger cabin entertainment system.
In the embodiment of the present application, a plurality of buried point data types may be defined in an offline application, for example, the following two types are included:
Figure BDA0002600947090000221
Figure BDA0002600947090000231
here, the in-cabin entertainment system may configure the trigger condition of each content, the type and format (field) of the generated buried point data, and the destination Uniform Resource Locator (URL) of data reporting in an offline application by running the relevant buried point SDK. Here, the destination URL may be an address of the data cache system.
2) A data caching system.
The data caching system is mainly used for realizing two functions. One is to receive the data of the embedded points reported by the in-cabin entertainment system, and after receiving the data of the embedded points, the data cache system supplements some fields, such as ranking, airline name, flight number, and identification information of the terminal device, in the data of the embedded points. When the field is completed, the data caching system stores the buried data locally, for example, to a local cache database or writes to a local file system. The method comprises the steps that a quantity threshold value is set for buried point data due to the hardware limitation of a data cache system, and when the quantity of the buried point data stored locally is larger than the quantity threshold value, the buried point data stored firstly is deleted until the quantity of the buried point data is equal to the quantity threshold value.
And secondly, locally stored data are reported to a data analysis platform. When the data cache system detects that the wide area network communication connection is recovered, if the aircraft lands, if the data of the buried point is locally stored, a data reporting function is triggered, and the data of the buried point is sent to the data analysis platform through the wide area network communication connection. Here, the data caching system may report data respectively according to the type of the buried point data. And after the data cache system reports all locally stored buried point data to the data analysis platform, locally deleting the buried point data.
3) And a data analysis platform.
After the data analysis platform receives the reported buried point data, different types of buried point data can be stored in different databases respectively. Here, the type of the data analysis platform and the database is not limited, for example, the data analysis platform may be constructed based on a micro service architecture, and the database may be a distributed cloud database.
Through the method, the data of the embedded points, namely the user behavior data, is effectively collected in the off-line state, and the collected data of the embedded points is further analyzed conveniently, so that the content recommendation effect is improved.
Continuing with the exemplary structure of the offline-state content recommendation device 243 provided by the embodiment of the present application implemented as a software module, in some embodiments, as shown in fig. 4, the software module stored in the offline-state content recommendation device 243 of the memory 240 may include: a status obtaining module 2431, configured to obtain a wan networking status in the space; an establishing module 2432, configured to establish a local area network communication connection with a terminal device in a space when a wan networking state is an offline state; the content sending module 2433 is configured to send content of the offline application to the terminal device through the lan communication connection, and obtain a content access record when the terminal device runs the offline application; a result obtaining module 2434, configured to obtain, when the wan networking status is an online status, a content update result corresponding to the content access record through the wan communication connection; and a content update module 2435, configured to update the content of the offline application according to the content update result.
In some embodiments, the result obtaining module 2434 is further configured to: the content access record is sent to a server through wide area network communication connection, so that the server performs preference analysis processing on the offline applied content according to the content access record to obtain a content updating result; and obtaining the content updating result from the server.
In some embodiments, the result obtaining module 2434 is further configured to: and sending a plurality of content access records comprising content characteristics and user satisfaction to a server so that the server trains an artificial intelligence model according to the content access records, calls the trained artificial intelligence model, respectively performs prediction processing on the content characteristics of a plurality of new contents, and performs sequencing processing on the plurality of new contents according to the obtained prediction satisfaction to obtain a content updating result.
In some embodiments, the result obtaining module 2434 is further configured to: and sending the content access records comprising the content volume and the access duration to a server so that the server divides the access duration and the content volume to obtain unit access duration, and sequencing the content corresponding to the content access records according to the unit access duration to obtain a content updating result.
In some embodiments, the result obtaining module 2434 is further configured to: verifying the content access record to obtain a first verification value, and sending the content access record and the first verification value to a server; when a retransmission request is acquired from the server, the content access record and the first check value are sent to the server again; wherein the retransmission request is transmitted by the server when the first check value is different from the second check value; the second check value is obtained by the server checking the received content access record.
In some embodiments, the result obtaining module 2434 is further configured to: and sending the content access record to the blockchain network so that the nodes of the blockchain network store the content access record to the blockchain, and responding to the query request sent by the server and sending the content access record in the blockchain to the server.
In some embodiments, the content recommendation device 243 in the offline state further includes: the identification acquisition module is used for acquiring identification information of the terminal equipment from the base load equipment when acquiring an initialization record sent by the terminal equipment during initialization of offline application through local area network communication connection; the base load device is used for providing local area network access for the terminal device in the space so as to establish local area network communication connection; and the identification adding module is used for adding the identification information of the terminal equipment to the content access records so as to distinguish the content access records of different terminal equipment.
In some embodiments, the result obtaining module 2434 is further configured to: acquiring first content updating results corresponding to the multiple content access records respectively and second content updating results corresponding to all the content access records through wide area network communication connection; wherein, each content access record corresponds to one identification information; a content update module 2435, further to: updating the content of the offline application according to the first content updating result so as to send the content to the terminal equipment associated with the identification information corresponding to the first content updating result; and updating the content of the offline application according to the second content updating result so as to send the content to the terminal equipment which newly establishes the local area network communication connection in the space.
In some embodiments, the content recommendation device 243 in the offline state further includes: and the condition adding module is used for adding the access condition corresponding to the content in the offline application so as to enable the terminal equipment to generate the content access record when detecting that the access operation on the content meets the access condition.
In some embodiments, the content recommendation device 243 in the offline state further includes: the storage module is used for storing the content access record to the space service equipment; and the first deleting module is used for deleting the content access record stored in the space service equipment.
In some embodiments, the storage module is further to: any one of the following processes is performed: storing the content access record to a database of the space service equipment; and writing the content access record into a content access file in a file system of the space service equipment.
In some embodiments, the content recommendation device 243 in the offline state further includes: and the second deleting module is used for deleting the content access records according to the sequence of the timestamps from old to new in the content access records when the number of the content access records stored in the space service equipment is larger than the number threshold value until the number of the content access records is equal to the number threshold value.
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 computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the computer device executes the content recommendation method in the offline state according to the embodiment of the present application.
Embodiments of the present application provide a computer-readable storage medium storing executable instructions, which when executed by a processor, cause the processor to perform a method provided by embodiments of the present application, for example, a content recommendation method in an offline state as shown in fig. 5A, 5B, 5C, or 5D. Note that the computer includes various computing devices including a terminal device and a server.
In some embodiments, the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
In summary, the following technical effects can be achieved through the embodiments of the present application:
1) in an offline state, the content access records of the terminal equipment running the offline application are effectively collected, so that the content of the offline application is updated based on the content access records, the updated content can better meet the user preference, and the user experience is improved.
2) Two modes of preference analysis processing are provided, one is that a model is trained through content access records comprising content characteristics and user satisfaction, and the prediction satisfaction corresponding to new content is determined through the trained model; and secondly, calculating the unit access duration. Therefore, the flexibility of preference analysis processing is improved, and the accuracy of content recommendation according to the result obtained by the preference analysis processing is improved.
3) Through a verification processing mechanism, whether the content access record sent by the space service equipment is consistent with the content access record received by the server or not is verified, and the integrity and the effectiveness of the data are improved.
4) The space service equipment can uplink the content access record so that the server can inquire to obtain the content access record, the accuracy of the content access record is improved from another angle, and the space service equipment is suitable for asynchronous transmission scenes.
5) Identification information is added in the content access records, so that the content access records of different terminal devices can be effectively distinguished; by obtaining the first content updating result corresponding to the identification information, the pertinence to the terminal equipment which has established the communication connection of the local area network is improved, and the content recommendation effect is further improved.
6) The space service equipment temporarily stores the content access record and deletes the content access record after obtaining the content updating result, so that the effective utilization of the local storage space is realized, and the local storage space is prevented from being occupied for a long time.
The above description is only an example of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims (15)

1. A content recommendation method in an offline state is characterized by comprising the following steps:
acquiring a wide area network networking state in a space;
when the networking state of the wide area network is an offline state, establishing local area network communication connection with the terminal equipment in the space;
sending the content of the off-line application to the terminal equipment through the local area network communication connection, and
acquiring a content access record when the terminal equipment runs the offline application;
when the networking state of the wide area network is an online state, acquiring a content updating result corresponding to the content access record through wide area network communication connection;
and updating the content of the offline application according to the content updating result.
2. The content recommendation method according to claim 1, wherein said obtaining a content update result corresponding to the content access record via a wide area network communication connection comprises:
sending the content access record to a server over the wide area network communication connection such that
The server performs preference analysis processing on the content of the offline application according to the content access record to obtain a content updating result;
and obtaining the content updating result from the server.
3. The content recommendation method according to claim 2, wherein said sending the content access record to a server comprises:
sending a plurality of content access records including content characteristics and user satisfaction to the server such that
And the server trains an artificial intelligence model according to the content access records, calls the trained artificial intelligence model, respectively predicts the content characteristics of the new contents, and sequences the new contents according to the obtained prediction satisfaction to obtain a content updating result.
4. The content recommendation method according to claim 2, wherein said sending the content access record to a server comprises:
sending a plurality of content access records including content volume and access duration to the server so that
And the server divides the access duration and the content volume to obtain unit access duration, and sorts the content corresponding to the content access records according to the unit access duration to obtain a content updating result.
5. The content recommendation method according to claim 2, wherein said sending the content access record to a server comprises:
verifying the content access record to obtain a first verification value, and sending the content access record and the first verification value to the server;
when a retransmission request is acquired from the server, the content access record and the first check value are sent to the server again;
wherein the retransmission request is transmitted by the server when the first check value is different from the second check value; and the second check value is obtained by the server checking the received content access record.
6. The content recommendation method according to claim 2, wherein said sending the content access record to a server comprises:
sending the content access record to a blockchain network such that
And the node of the block chain network stores the content access record to a block chain, and responds to a query request sent by the server to send the content access record in the block chain to the server.
7. The content recommendation method according to any one of claims 1 to 6, further comprising:
when acquiring an initialization record sent when the terminal equipment initializes the offline application through the local area network communication connection, acquiring identification information of the terminal equipment from base load equipment;
the base load device is used for providing local area network access to the terminal device in the space so as to establish the local area network communication connection;
after the content access record when the terminal device runs the offline application is obtained, the method further includes:
and adding the identification information of the terminal equipment to a content access record so as to distinguish the content access records of different terminal equipment.
8. The content recommendation method according to claim 7,
the obtaining of the content update result corresponding to the content access record through the wide area network communication connection includes:
acquiring first content updating results corresponding to the various content access records respectively and second content updating results corresponding to all the content access records through the wide area network communication connection; wherein each content access record corresponds to one identification information;
the updating the content of the offline application according to the content updating result comprises:
updating the content of the offline application according to the first content updating result so as to send the content to the terminal equipment associated with the identification information corresponding to the first content updating result;
and updating the content of the offline application according to the second content updating result so as to send the content to the terminal equipment newly establishing local area network communication connection in the space.
9. The content recommendation method according to any one of claims 1 to 6, wherein before sending the content of the offline application to the terminal device through the local area network communication connection, the method further comprises:
adding an access condition corresponding to the content in the offline application so that
And the terminal equipment generates a content access record when detecting that the access operation on the content meets the access condition.
10. The content recommendation method according to any one of claims 1 to 6,
after the content access record when the terminal device runs the offline application is obtained, the method further includes:
storing the content access record to a space service device;
after the content update result corresponding to the content access record is obtained through the wide area network communication connection, the method further includes:
and deleting the content access record stored in the space service equipment.
11. The content recommendation method according to claim 10, wherein said storing the content access record to a space service device comprises:
any one of the following processes is performed:
storing the content access record to a database of the space service equipment;
and writing the content access record into a content access file in a file system of the space service equipment.
12. The content recommendation method according to claim 10, wherein after storing the content access record to a space service device, further comprising:
when the number of the content access records stored in the space service equipment is larger than a number threshold, deleting the content access records according to the sequence of the timestamps in the content access records from old to new until the number of the content access records is equal to the number threshold.
13. A content recommendation apparatus in an offline state, comprising:
the state acquisition module is used for acquiring the networking state of the wide area network in the space;
the establishing module is used for establishing local area network communication connection with the terminal equipment in the space when the networking state of the wide area network is an offline state;
a content sending module, configured to send the content of the offline application to the terminal device through the lan communication connection, and send the content to the terminal device
Acquiring a content access record when the terminal equipment runs the offline application;
a result obtaining module, configured to obtain, when the wan networking state is an online state, a content update result corresponding to the content access record through wan communication connection;
and the content updating module is used for updating the content of the offline application according to the content updating result.
14. A computer program product comprising executable instructions for implementing a method for content recommendation in an offline state according to any one of claims 1 to 12 when executed by a processor.
15. A computer-readable storage medium storing executable instructions for implementing the method of content recommendation in an offline state of any one of claims 1 to 12 when executed by a processor.
CN202010723768.7A 2020-07-24 2020-07-24 Content recommendation method and device in offline state and computer program product Active CN111901408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010723768.7A CN111901408B (en) 2020-07-24 2020-07-24 Content recommendation method and device in offline state and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010723768.7A CN111901408B (en) 2020-07-24 2020-07-24 Content recommendation method and device in offline state and computer program product

Publications (2)

Publication Number Publication Date
CN111901408A true CN111901408A (en) 2020-11-06
CN111901408B CN111901408B (en) 2021-08-24

Family

ID=73190946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010723768.7A Active CN111901408B (en) 2020-07-24 2020-07-24 Content recommendation method and device in offline state and computer program product

Country Status (1)

Country Link
CN (1) CN111901408B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114780855A (en) * 2022-05-05 2022-07-22 穗保(广州)科技有限公司 Information sharing system based on Internet security

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551889A (en) * 2008-04-02 2009-10-07 陈红军 Electronic self-help order and entertainment media service system
US20130297698A1 (en) * 2012-05-07 2013-11-07 Nokia Corporation Method and Apparatus for Utilizing Context and Profile Information in Content Searching and Recommendation
CN104506587A (en) * 2014-12-10 2015-04-08 北京喜乐航科技有限公司 Network information providing method and network storage equipment
CN104899303A (en) * 2015-06-10 2015-09-09 杭州祥声通讯股份有限公司 Cloud big data analysis system applied to rail transportation means
CN105827694A (en) * 2016-03-11 2016-08-03 腾讯科技(深圳)有限公司 Obtaining method and apparatus for network resources
US20170031920A1 (en) * 2015-07-31 2017-02-02 RCRDCLUB Corporation Evaluating performance of recommender system
CN108416006A (en) * 2018-02-28 2018-08-17 百度在线网络技术(北京)有限公司 Information off-line recommends method, apparatus, client, server and storage medium
CN109063102A (en) * 2018-07-27 2018-12-21 宁波光舟通信技术有限公司 Data transmission method for uplink, device and the airborne smart machine of airborne smart machine
CN109905444A (en) * 2017-12-11 2019-06-18 触信(厦门)智能科技有限公司 A kind of train local area network automatic push method
CN110472152A (en) * 2019-08-16 2019-11-19 南京云帐房网络科技有限公司 Online offline mixed recommendation method and system
KR20200058799A (en) * 2018-11-20 2020-05-28 이상현 Server for recommending clothing products and system for recommending clothing products using the same

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551889A (en) * 2008-04-02 2009-10-07 陈红军 Electronic self-help order and entertainment media service system
US20130297698A1 (en) * 2012-05-07 2013-11-07 Nokia Corporation Method and Apparatus for Utilizing Context and Profile Information in Content Searching and Recommendation
CN104506587A (en) * 2014-12-10 2015-04-08 北京喜乐航科技有限公司 Network information providing method and network storage equipment
CN104899303A (en) * 2015-06-10 2015-09-09 杭州祥声通讯股份有限公司 Cloud big data analysis system applied to rail transportation means
US20170031920A1 (en) * 2015-07-31 2017-02-02 RCRDCLUB Corporation Evaluating performance of recommender system
CN105827694A (en) * 2016-03-11 2016-08-03 腾讯科技(深圳)有限公司 Obtaining method and apparatus for network resources
CN109905444A (en) * 2017-12-11 2019-06-18 触信(厦门)智能科技有限公司 A kind of train local area network automatic push method
CN108416006A (en) * 2018-02-28 2018-08-17 百度在线网络技术(北京)有限公司 Information off-line recommends method, apparatus, client, server and storage medium
CN109063102A (en) * 2018-07-27 2018-12-21 宁波光舟通信技术有限公司 Data transmission method for uplink, device and the airborne smart machine of airborne smart machine
KR20200058799A (en) * 2018-11-20 2020-05-28 이상현 Server for recommending clothing products and system for recommending clothing products using the same
CN110472152A (en) * 2019-08-16 2019-11-19 南京云帐房网络科技有限公司 Online offline mixed recommendation method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114780855A (en) * 2022-05-05 2022-07-22 穗保(广州)科技有限公司 Information sharing system based on Internet security
CN114780855B (en) * 2022-05-05 2022-11-25 穗保(广州)科技有限公司 Information sharing system based on Internet security

Also Published As

Publication number Publication date
CN111901408B (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN102307210B (en) Data downloading system and data management and downloading method thereof
CN103428525B (en) Internet video and the online query of TV programme and control method for playing back and system
CN102130933B (en) Recommending method, system and equipment based on mobile Internet
CN110597943A (en) Interest point processing method and device based on artificial intelligence and electronic equipment
AU2008294452B2 (en) Method and system of interacting with a server, and method and system for generating and presenting search results
CN103023875B (en) A kind of account management system and method
CN100456286C (en) Universal file search system and method
CN102333092B (en) Network user identification method and application server
CN111375200B (en) Method and system for intelligently configuring game resources, computer storage medium and equipment
CN108683668B (en) Resource checking method, device, storage medium and equipment in content distribution network
CN106874778B (en) Intelligent terminal file acquisition and data recovery system and method based on android system
WO2017167121A1 (en) Method and device for determining and applying association relationship between application programs
CN107809383A (en) A kind of map paths method and device based on MVC
CN111465932A (en) Integrating responses from queries to heterogeneous data sources
CN106254528A (en) A kind of resource downloading method and buffer memory device
CN111582900A (en) Media file delivery method and device, storage medium and electronic device
CN113656673A (en) Master-slave distributed content crawling robot for advertisement delivery
CN111177481B (en) User identifier mapping method and device
CN111901408B (en) Content recommendation method and device in offline state and computer program product
WO2022057525A1 (en) Method and device for data retrieval, electronic device, and storage medium
CN113626624A (en) Resource identification method and related device
CN112148745B (en) Multi-HBase cluster access method, device and storage medium
CN116974948A (en) Service system testing method, system, equipment and medium
CN105468771A (en) Software recommendation methods and apparatus
CN103209199B (en) A kind of method and information carrying means of transmission information

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
GR01 Patent grant
GR01 Patent grant