Disclosure of Invention
In view of the above, the present invention is directed to a video statistics and transaction system and method for implementing block-chain evidence storage of audience statistics data and video content transaction based on evidence storage.
In a first aspect, an embodiment of the present invention provides a video statistics and transaction system, where the system includes:
the authentication configuration module is used for respectively configuring the acquisition strategies of the terminal acquisition module and the front acquisition module and sending corresponding configuration information to the block chain;
the terminal acquisition module is used for acquiring user behavior data of terminal service application according to an acquisition strategy, generating a user behavior data packet and a corresponding original data abstract from the user behavior data, sending the original data abstract to a block chain, and sending the user behavior data packet to the distributed storage and calculation module through the prepositive acquisition module and the central data aggregation module;
the distributed storage and calculation module is used for preprocessing the user behavior data packet, generating an effective user behavior data set and a corresponding effective data abstract, and sending the effective data abstract to a block chain;
and the block chain is used for storing the configuration information, the original data abstract and the effective data abstract and generating a data asset abstract index according to the effective data abstract and the original data abstract.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the authentication configuration module is further configured to:
performing block chain registration on the participating terminal according to the terminal registration rule to obtain terminal registration information;
and sending the terminal registration information to a server for authentication, wherein the participating terminal has the authority of returning data after the server passes the authentication.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where after the server authenticates the terminal registration information, the server is further configured to:
checking whether the configuration information is updated, and in some cases, sending the updated configuration information to the participant terminal.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where sending the user behavior data packet to a distributed storage and computation module through the pre-acquisition module and a central data aggregation module includes:
the terminal acquisition module sends the user behavior data packet to the central data aggregation module through the front acquisition module, and the central data aggregation module gathers and logs the user behavior data packet sent by the front acquisition module and sends the user behavior data packet to the distributed storage and calculation module.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the fourth possible implementation manner further includes another data system;
the other data systems are used for acquiring content data of a third-party docking system, generating a content data packet and a corresponding content data abstract according to the content data, sending the content data abstract to the block chain, and sending the content data packet to the central data aggregation module.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the blockchain includes a blockchain node and a blockchain ledger;
the block chain node is used for managing each admitted participant certificate through CA and determining the validity of the configuration information, the original data abstract, the valid data abstract and the content data abstract according to the participant certificate;
the block chain ledger book is used for recording the admitted participants, the original data abstract, the effective data abstract and the content data abstract, and generating the data asset abstract index by using the original data abstract, the effective data abstract and the content data abstract according to an intelligent contract on a chain.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the terminal acquisition module is a client server CS architecture set top box, and the terminal acquisition module is configured to:
and integrating the first service data in a standard format by adopting an SDK (software development kit) mode, and sending a first service data abstract obtained after integration to the block chain, wherein the first service data comprises the user behavior data and the content data, and the first service data abstract comprises the original data abstract and the content data abstract.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where the terminal acquisition module is a browser server BS architecture set top box, and the terminal acquisition module is configured to:
and sending a first service data abstract to the block chain by adopting a probe mode, wherein the first service data abstract comprises the original data abstract and the content data abstract.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides an eighth possible implementation manner of the first aspect, wherein the terminal acquisition module is further configured to:
and sending a second service data summary generated by the second service data to the block chain in a node mode according to preset time or preset quantity.
In a second aspect, an embodiment of the present invention further provides a video statistics and transaction method, where the method includes:
an authentication configuration step: the authentication configuration module respectively configures the acquisition strategies of the terminal acquisition module and the front acquisition module and sends corresponding configuration information to the block chain;
a data acquisition step: the terminal acquisition module acquires user behavior data of terminal service application according to an acquisition strategy, generates a user behavior data packet and a corresponding original data abstract from the user behavior data according to a service rule, sends the original data abstract to a block chain, and sends the user behavior data packet to a distributed storage and calculation module through the prepositive acquisition module and a central data aggregation module;
data summarization step: the central data aggregation module collects and logs the user behavior data packets sent by the plurality of front-end acquisition modules, and sends the user behavior data packets to the distributed storage and calculation module;
and (3) data processing: the distributed storage and calculation module preprocesses the user behavior data packet to generate an effective user behavior data set and a corresponding effective data abstract, and sends the effective data abstract to a block chain;
storing certificates and generating indexes: and the block chain stores the configuration information, the original data abstract and the effective data abstract and generates a data asset abstract index according to the effective data abstract and the original data abstract.
The embodiment of the invention has the following beneficial effects: the invention provides a video statistics and transaction system and a method thereof, comprising the following steps: the authentication configuration module respectively configures the acquisition strategies of the terminal acquisition module and the front acquisition module and sends corresponding configuration information to the block chain; the terminal acquisition module acquires user behavior data of the terminal service application according to an acquisition strategy, generates a user behavior data packet and a corresponding original data abstract from the user behavior data, sends the original data abstract to a block chain, and sends the user behavior data packet to the distributed storage and calculation module through the prepositive acquisition module and the central data aggregation module; the central data aggregation module collects and logs the user behavior data packets sent by the plurality of front-end acquisition modules, and sends the user behavior data packets to the distributed storage and calculation module; the distributed storage and calculation module preprocesses the user behavior data packet to generate an effective user behavior data set and a corresponding effective data abstract, and sends the effective data abstract to a block chain; and the block chain stores the configuration information, the original data abstract and the effective data abstract and generates a data asset abstract index according to the effective data abstract and the original data abstract. The invention can realize the block chain certificate storage of the audience statistical data and the video content transaction based on the certificate storage basis.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
New media such as IPTV services are currently being developed rapidly in recent years. Macroscopically, the television and radio administrative department needs to know the content quality accurately and watch the behavior of users, so as to better meet the increasing multifaceted requirements of the masses in the aspect of spiritual civilization, and provide correct service guidance. Microscopically, an IPTV service needs to be operated accurately, and a new media/advertisement/operator needs to perform data acquisition work on IPTV user behaviors so as to provide a more suitable media, and advertisement marketing and delivery are performed accurately and perfectly, so that data asset storage and accurate change are realized.
Based on this, the video statistics and transaction system and method provided by the embodiment of the invention can realize the block chain evidence storage of the audience statistics data and the video content transaction based on the evidence storage basis by adopting the block chain and central digital currency technologies.
To facilitate understanding of the embodiment, the video statistics and transaction system disclosed in the embodiment of the present invention will be described in detail first.
The first embodiment is as follows:
fig. 1 is a block diagram of a video statistics and transaction system according to an embodiment of the present invention.
The video statistics and transaction system manages each authorized participant Certificate through a Certificate Authority (CA) of the block chain, and the Certificate is used for endorsement of data of the participant for chain Certificate storage. As shown in fig. 1, the video statistics and transaction system is a hierarchical structure, and for the characteristic of large broadcast television video data volume, alliance link nodes are established in a physical unification and logical multi-strip mode. The monitoring department (central office/Guangzhou node group) can lay all nodes, namely, the data of all the regional video statistics in the country are possessed. In addition, the certificate node is integrally arranged with the supervised full node. The certificate node is responsible for providing certificate admission for each participating supervision or administration unit of each part, an existing data platform unit, a big data analysis company, a content provider, an advertisement provider, a video on demand platform and the like so as to decide the admission qualification of video statistical data participating in each province or province.
The system can be abstracted into nodes of a plurality of roles such as a radio and television supervisor, a local supervisor, content providing, local existing data platform, interest-relevant parties such as advertisements and the like, big data service, video on demand platform and the like.
Referring to fig. 2, a basic flow module of the video statistics and transaction system and its working sequence are described.
The authentication configuration module is mainly used for authenticating the participating terminals and configuring the terminal acquisition module and the preposed acquisition module. The authentication configuration module respectively configures the acquisition strategies of the terminal acquisition module and the front acquisition module and sends corresponding configuration information to the block chain; the configuration information includes information such as transmission mode, transmission switch (i.e. whether transmission is performed or not, 0 is transmission prohibition, 1 is transmission), and uploading period.
The authentication configuration module is further to: performing block chain registration on the participating terminals according to terminal registration rules set by a radio and television management department to obtain terminal registration information; and authenticating under the condition that the participating terminal is powered on, sending the terminal registration information to the server for authentication, and enabling the participating terminal to have the authority of returning data after the server passes the authentication. The terminal registration information may include information such as a number, a model number, a terminal manufacturer ID (IDentity) number, a terminal MAC number, and a terminal SN of the participating terminal registered in the block chain.
In addition, after the authentication of the terminal registration information by the server is passed, the server is further configured to: checking whether the configuration information is updated or not, and in some cases, sending the updated configuration information to the participant terminal to update the participant terminal and save the latest configuration.
And the terminal acquisition module is used for acquiring the user behavior data according to the acquisition strategy, generating a user behavior data packet and a corresponding original data abstract from the user behavior data according to the service rule, sending the original data abstract to the block chain, and sending the user behavior data packet to the distributed storage and calculation module through the prepositive acquisition module and the central data aggregation module.
During specific implementation, the terminal acquisition module monitors terminal service application, the terminal service application sends user behavior data generated by user operation to the terminal acquisition module through a message interface of the middleware, and then the terminal acquisition module uniformly reports all the user behavior data to the next module, namely: and sending the original data abstract to a block chain for evidence storage, sending the user behavior data packet to a preposed acquisition module, and providing the user behavior data packet for various application integration.
Here, the terminal acquisition module uploads the User behavior data by a TCP (Transmission Control Protocol) Protocol as a default, and supports a UDP (User Datagram Protocol) as an auxiliary Protocol, and the Transmission mode can be flexibly configured by the authentication configuration module.
The front-mounted acquisition module: and sending the received user behavior data packet to a central data aggregation module in real time.
And the other data systems are used for acquiring content data of a third-party docking system (such as an EPG system, an on-demand system, a review system, an advertisement system and the like), generating a content data packet and a corresponding content data abstract according to the content data, sending the content data abstract to the block chain, and sending the content data packet to the central data aggregation module.
And the central data aggregation module is used for simultaneously receiving the user behavior data packets sent by the plurality of preposed acquisition modules and the content data packets sent by other data systems, summarizing and logging the user behavior data packets and the content data packets, and sending the user behavior data packets and the content data packets to the distributed storage and calculation module.
And the distributed storage and calculation module is used for preprocessing the user behavior data packet, generating an effective user behavior data set and a corresponding effective data abstract and sending the effective data abstract to the block chain.
Specifically, the Distributed storage and computation module performs Distributed storage on the received user behavior data packet and content data packet, the Distributed storage is based on a Hadoop Distributed File System, called HDFS (Hadoop Distributed File System) storage cluster for short, and is used for performing persistent storage on the user behavior data packet and the content data packet, and the HDFS has the advantages of high fault tolerance, high throughput, good expansibility and the like, and is suitable for persistent storage of mass large data.
The distributed storage and calculation module carries out preprocessing work such as cleaning, filtering and conversion on the user behavior data to generate an effective user behavior data set and stores the effective user behavior data set; meanwhile, the effective data abstract can form a block chain data asset abstract index together with the original data abstract and the content data abstract of a third party.
The distributed storage and calculation module also provides an analysis calculation function, and calculates partial statistical function in real time for a third-party service party and a supervisor to use; more, the data analysis requirements of the content provider, the advertiser and the third-party service party are obtained through the block chain through non-real-time analysis, and data analysis results and block chain data asset abstract indexes according to the data are returned.
And the block chain is used for storing the configuration information, the original data abstract and the effective data abstract and generating a data asset abstract index according to the effective data abstract and the original data abstract.
Specifically, the block chain includes block chain nodes and a block chain ledger.
And the block chain node is used for managing each admitted participant certificate through the CA, signing and endorsement on the configuration information, the original data abstract, the valid data abstract and the content data abstract according to the participant certificate to determine validity, and achieving data indexing which is not falsifiable and traceable through a block chain account book.
And the block chain ledger book is used for recording the admitted participants, the original data abstract, the effective data abstract and the content data abstract and generating a data asset abstract index from the original data abstract, the effective data abstract and the content data abstract according to the intelligent contract on the chain.
Furthermore, the terminal acquisition module has various modes for acquiring the data summaries.
In the first, the terminal acquisition module is a CS (Client/Server) architecture set-top box, and the terminal acquisition module is configured to: the method comprises the steps of performing standard format integration on first service data in an SDK (Software Development Kit) mode, and sending a first service data abstract obtained after integration to a block chain, wherein the first service data comprises user behavior data and content data, and the first service data abstract comprises an original data abstract and a content data abstract.
Specifically, an acquisition mode of an Android Package (APK) application integrated by an SDK JAR package is adopted, the APK is connected with a block chain node and a data acquisition interface as required, the acquisition SDK is responsible for integrating acquired first service data into a standard format, reporting a first data abstract to the block chain node, and reporting a corresponding first service data package to a front acquisition module. The SDK can communicate with the authentication configuration module and control the data reporting type, the reporting period and the like of the set-top box.
In the second type, the terminal acquisition module is a BS (Browser/Server Browser Server) architecture set-top box, and the terminal acquisition module is configured to: and sending the first service data abstract to a block chain by adopting a probe mode, wherein the first service data abstract comprises an original data abstract and a content data abstract.
Specifically, the terminal acquisition module provides a probe and a data interface, buries a point for an EPG (Electronic Program Guide) template service block, and implants the probe. The EPG business module related server can distribute certificates by CA, after the related probe data is signed by the certificate, the probe is responsible for uploading the business data abstract to the block chain node in real time, and reporting the business data to the preposed acquisition module for analysis and historical storage. The probe mode has the advantage of quick updating without the need of set-top box upgrading.
And the third mode is a node data abstract uploading mode. The terminal acquisition module is also used for: and sending the second service data summary generated by the second service data to the block chain in a node mode according to preset time or preset quantity.
Specifically, the method is suitable for frequent and auxiliary data, such as heartbeat data acquired by collection, and the data volume and the frequency are large, so that block chaining evidence storage is not suitable for all the data; there are also unnecessary statistics in the acquisition that do not involve video statistics. The second service data is the auxiliary data and the unnecessary statistical data. The data can be uploaded with a data summary on time or by volume and signed by a digital certificate of the node to determine authority. In addition, the program information of the EPG and the like also belong to second service data, and can be uploaded and stored in a mode of signing a data summary by a node.
Example two:
fig. 3 is a flowchart of a video statistics and transaction method according to a second embodiment of the present invention.
Based on the video statistical system, the embodiment of the invention provides a video statistical and transaction method. Referring to fig. 3, the video statistics and transaction method mainly includes the following steps:
authentication configuration step S01: the authentication configuration module respectively configures the acquisition strategies of the terminal acquisition module and the front acquisition module and sends corresponding configuration information to the block chain;
data acquisition step S02: the terminal acquisition module acquires user behavior data of terminal service application according to an acquisition strategy, generates a user behavior data packet and a corresponding original data abstract from the user behavior data according to a service rule, sends the original data abstract to a block chain, and sends the user behavior data packet to the distributed storage and calculation module through the prepositive acquisition module and the central data aggregation module;
data processing step S03: the distributed storage and calculation module preprocesses the user behavior data packet to generate an effective user behavior data set and a corresponding effective data abstract, and sends the effective data abstract to a block chain;
deposit certificate and index generation step S04: and the block chain stores the configuration information, the original data abstract and the effective data abstract and generates a data asset abstract index according to the effective data abstract and the original data abstract.
The embodiment of the invention has the following beneficial effects: the invention provides a video statistics and transaction system and a method thereof, comprising the following steps: the authentication configuration module respectively configures the acquisition strategies of the terminal acquisition module and the front acquisition module and sends corresponding configuration information to the block chain; the terminal acquisition module acquires user behavior data of the terminal service application according to an acquisition strategy, generates a user behavior data packet and a corresponding original data abstract from the user behavior data, sends the original data abstract to a block chain, and sends the user behavior data packet to the distributed storage and calculation module through the prepositive acquisition module and the central data aggregation module; the central data aggregation module collects and logs the user behavior data packets sent by the plurality of front-end acquisition modules, and sends the user behavior data packets to the distributed storage and calculation module; the distributed storage and calculation module preprocesses the user behavior data packet to generate an effective user behavior data set and a corresponding effective data abstract, and sends the effective data abstract to a block chain; and the block chain stores the configuration information, the original data abstract and the effective data abstract and generates a data asset abstract index according to the effective data abstract and the original data abstract. The invention can realize the block chain certificate storage of the audience statistical data and the video content transaction based on the certificate storage basis, and has the following advantages and high efficiency: the identity information recorded on the block chain can be fully utilized without opening the card on site, so that the card can be opened at any time; and strong supervision: financial institutions and regulatory agencies may be helped to monitor credit usage in accordance with laws and regulations.
The method provided by the embodiment of the invention has the same implementation principle and technical effect as the same embodiments, and for the sake of brief description, no part of the embodiment of the method is mentioned, and reference may be made to the corresponding contents in the same embodiments.
The embodiment of the invention further provides an electronic device, which comprises a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, and the steps of the video statistics and transaction method provided by the embodiment are realized when the processor executes the computer program.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the video statistics and transaction method according to the above embodiment are performed.
In the description of the present invention, it should be noted that the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the several embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.