Attribute information processing method and device, equipment, program and storage medium

By splitting and preprocessing attribute information, static and dynamic attribute tables are formed, and bitmap compression technology is used to solve the problem of high space occupation and cost when storing tag data, and achieve efficient query results.

CN118550448APending Publication Date: 2024-08-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310212131.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the fields of user operation information analysis and artificial intelligence learning, a large amount of storage space is required to store a large amount of labeled data, resulting in high hardware device storage space usage and increased costs, especially when the amount of labeled data is huge.

Method used

By splitting the attribute information of the target object, static attribute information and dynamic attribute information are obtained, and preprocessed to form a static attribute table and a dynamic attribute table to reduce static data redundancy, use bitmap compression technology to optimize storage, and improve query performance. Efficiency and accuracy.

Benefits of technology

In the storage stage of attribute information, static data redundancy is reduced to save storage space and usage costs of hardware devices. In the query stage, subclass attribute queries are performed through static and dynamic attribute tables to improve query efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550448A
    Figure CN118550448A
Patent Text Reader

Abstract

The invention provides an attribute information processing method and device and electronic device.The method comprises the steps that original attribute information of a target object is split, and static attribute information and dynamic attribute information of the target object are obtained; performing bitmap compression processing on the static attribute information to obtain a static attribute table; determining a sub-attribute value corresponding to each sub-attribute of the initial dynamic attribute table; and performing third preprocessing on the initial dynamic attribute table subjected to key value processing based on the page view parameter corresponding to the original attribute information to obtain a dynamic attribute table, thereby reducing static data redundancy in the storage stage of the attribute information, and saving the storage space and the use cost of hardware equipment. The embodiment of the invention can also be applied to various scenes such as cloud technology, artificial intelligence, intelligent traffic, auxiliary driving and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to information storage technology, and in particular to attribute information processing methods, devices, electronic devices, computer program products and storage media, so that the fields in which the present solution can be applied include but are not limited to autonomous driving, vehicle networking, smart transportation and other fields. Background Art

[0002] In areas such as user operation information analysis and artificial intelligence learning, it is necessary to use and store labeled data. For example, data such as gender, age, city, and recent active duration used to mark the user's portrait information in the detection and analysis of user operation information data belong to statistical labels. In the user's operation information analysis, data such as "the number of short videos watched in the past 30 days is 2, and the number of likes is 1" defines "viewing activity" and other data belong to rule labels. In artificial intelligence learning, data generated through data mining, such as judging the user's preference for a certain product based on his consumption habits, belong to machine learning mining labels.

[0003] A large amount of storage space will be required to store these tag data. If storage technology that can save storage space is used to store these tag data, the storage space occupied can be reduced, thereby reducing the storage space requirement under the same performance effect, especially when the amount of tag data is huge, it can achieve very obvious cost savings. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides an attribute information processing method, device, electronic device, software program and storage medium, which can reduce static data redundancy in the storage stage of attribute information, save storage space and usage costs of hardware devices, and in the query stage of attribute information, sub-class attribute queries can be performed through the static attribute table and the dynamic attribute table to obtain query results of the sub-class attributes, thereby improving query efficiency and accuracy.

[0005] An embodiment of the present invention provides a method for processing attribute information, the method comprising:

[0006] Splitting original attribute information of the target object to obtain static attribute information and dynamic attribute information of the target object;

[0007] Performing a first preprocessing on the static attribute information to obtain a static attribute table;

[0008] Performing a second preprocessing on the dynamic attribute information to obtain an initial dynamic attribute table of the target object, wherein the initial dynamic attribute table includes attribute categories of the target object, and the attribute categories are individually optional items;

[0009] Determine a sub-attribute value corresponding to each sub-attribute of the initial dynamic attribute table;

[0010] Based on the access volume parameter corresponding to the original attribute information, the initial dynamic attribute table that has undergone key value processing is subjected to a third preprocessing to obtain a dynamic attribute table.

[0011] The embodiment of the present invention further provides an attribute information processing device, the device comprising:

[0012] An information transmission module, used for splitting the original attribute information of the target object to obtain static attribute information and dynamic attribute information of the target object;

[0013] An information processing module, configured to perform a first preprocessing on the static attribute information to obtain a static attribute table;

[0014] The information processing module is used to perform a second preprocessing on the dynamic attribute information to obtain an initial dynamic attribute table of the target object, wherein the initial dynamic attribute table includes an attribute category of the target object, and the attribute category is a separate optional item;

[0015] The information processing module is used to determine the sub-attribute value corresponding to each sub-attribute of the initial dynamic attribute table;

[0016] The information processing module is used to perform a third preprocessing on the initial dynamic attribute table after key value processing based on the access volume parameter corresponding to the original attribute information to obtain a dynamic attribute table;

[0017] In the above solution, the information processing module is used to obtain identification information of the use environment of the target object;

[0018] The information processing module is used to determine the splitting standard of the original attribute information according to the identification information of the use environment of the target object;

[0019] The information processing module is used to split the original attribute information of the target object according to the splitting standard of the original attribute information to obtain the static attribute information and the dynamic attribute information of the target object.

[0020] In the above solution, the information processing module is used to perform repeatability detection on the static attribute information to obtain repeated static attribute information;

[0021] The information processing module is used to delete the repeated static attribute information in the static attribute table.

[0022] In the above solution, the information processing module is used to perform table reduction processing on the static attribute information, attribute all attributes in the static attribute information to the optional items in the attribute value column of the initial static attribute table, and obtain the initial static attribute table;

[0023] The information processing module is used for compressing the initial static attribute table by bitmap compression to obtain the static attribute table when the static attribute information is non-short type data;

[0024] The information processing module is used to compress the initial static attribute table by means of efficient bitmap compression to obtain the static attribute table when the static attribute information is short type data.

[0025] In the above scheme, the information processing module is used to determine the sub-attribute categories included in each category of behavior attributes in the dynamic attribute information;

[0026] The information processing module is used to establish a corresponding relationship between the category and subcategory of the behavior attribute;

[0027] The information processing module is used to save the attribute categories in the initial dynamic attribute table as separate optional items to obtain the initial dynamic attribute table of the target object.

[0028] In the above solution, the information processing module is used to obtain the visit volume parameter corresponding to the original attribute information;

[0029] The information processing module is used to query the sub-attributes with the same access volume parameter in the initial dynamic attribute table after key value processing;

[0030] The information processing module is used to perform a third preprocessing on the sub-attributes having the same access volume parameter to obtain a dynamic attribute table.

[0031] In the above solution, the information processing module is used to detect the enumeration number of the sub-attributes;

[0032] The information processing module is used to stop performing the third preprocessing on the sub-attributes with the same access volume parameter when the enumeration quantity of the sub-attributes is greater than the enumeration quantity threshold.

[0033] In the above scheme, the device also includes:

[0034] The query module is used to receive a data query instruction, and in response to the data query instruction, perform a subclass attribute query through the static attribute table and the dynamic attribute table to obtain a query result of the subclass attribute.

[0035] An embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0036] A memory for storing executable instructions;

[0037] The processor is used to implement the aforementioned attribute information processing method when running the executable instructions stored in the memory.

[0038] An embodiment of the present invention further provides a computer program product, including a computer program or instructions, wherein when the computer program or instructions are executed by a processor, the aforementioned attribute information processing method is implemented.

[0039] The embodiment of the present invention further provides a computer-readable storage medium storing executable instructions, which implement the aforementioned attribute information processing method when executed by a processor.

[0040] The embodiments of the present invention have the following beneficial effects:

[0041] 1) The present invention splits the original attribute information of the target object to obtain the static attribute information and dynamic attribute information of the target object; performs a first preprocessing on the static attribute information to obtain a static attribute table; performs a second preprocessing on the dynamic attribute information to obtain an initial dynamic attribute table of the target object; determines the sub-attribute value corresponding to each sub-attribute of the initial dynamic attribute table; performs a third preprocessing on the initial dynamic attribute table after key value processing based on the access volume parameter corresponding to the original attribute information to obtain a dynamic attribute table; thereby reducing static data redundancy in the storage stage of attribute information, saving storage space and usage cost of hardware devices.

[0042] 2) At the same time, when querying the attribute information, in response to the received data query instruction, the subclass attribute query is performed through the static attribute table and the dynamic attribute table to obtain the query result of the subclass attribute. Therefore, in the query stage of the attribute information, the subclass attribute query is performed using the static attribute table and the dynamic attribute table respectively, which not only makes the query result of the subclass attribute more accurate, but also improves the query efficiency because the query is performed using the static attribute table and the dynamic attribute table respectively. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of a usage scenario of the attribute information processing method provided in an embodiment of the present invention;

[0044] Figure 2 An optional flowchart of the attribute information processing method provided in an embodiment of the present invention;

[0045] Figure 3 Schematic diagram of the splitting effect of original attribute information in an embodiment of the present invention;

[0046] Figure 4 Schematic diagram of the effect of table shrinkage processing in an embodiment of the present invention;

[0047] Figure 5 This is a schematic diagram of the principle of the first preprocessing in an embodiment of the present invention;

[0048] Figure 6 Schematic diagram of the processing process of bit-efficient image compression in an embodiment of the present invention;

[0049] Figure 7 A schematic diagram of a process of efficient bitmap compression in an embodiment of the present invention;

[0050] Figure 8 A schematic diagram of performing second preprocessing on dynamic attribute information in an embodiment of the present invention;

[0051] Fig. 9 Schematic diagram of key value processing in an embodiment of the present invention;

[0052] Fig.10 is a schematic diagram of the third preprocessing in an embodiment of the present invention;

[0053] Fig.11 A schematic diagram of unified management of subclass attributes in an embodiment of the present invention;

[0054] Fig.12 A schematic diagram of query analysis of all attributes in an embodiment of the present invention;

[0055] Fig.13 A schematic diagram of an application environment of the attribute information processing method in an embodiment of the present invention;

[0056] Fig.14 A schematic diagram of a method for processing attribute information in an embodiment of the present invention;

[0057] Fig.15 A schematic diagram of the composition structure of an attribute information processing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present invention. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present invention. Figure 3 Schematic diagram of the splitting effect of the original attribute information in an embodiment of the present invention

[0059] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be 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.

[0060] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.

[0061] 1) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.

[0062] 2) Based on, used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.

[0063] 3) Clickhouse (Click Stream, Data WareHouse): An open source column-based database management system (DBMS) for online analytical processing (OLAP), referred to as CK, which is mainly used for online analytical processing queries (OLAP) and can generate analytical data reports in real time using SQL queries.

[0064] 4) BitMap: A commonly used data structure that represents a dense set in a finite field. Each element appears at least once and no other data is associated with the element.

[0065] 5)RoaringBitMap: RoaringBitMap is a highly efficient bitmap compression, referred to as RBM.

[0066] 6) UV: Unique Visitor, stands for the number of visits, which refers to the number of independent visitors. One computer terminal is one visitor.

[0067] 7) PV: Page View, represents the number of visits, that is, the number of page visits. Each time a page is opened, the PV count increases by 1, and the same is true for refreshing the page.

[0068] 8) OLAP: OLAP generally refers to online analytical processing. Online analytical processing OLAP is a software technology that enables analysts to observe information from all aspects quickly, consistently and interactively to achieve a deep understanding of the data.

[0069] Among them, the embodiments of the present invention can be implemented in combination with cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software and network in a wide area network or a local area network to realize data calculation, storage, processing and sharing. It can also be understood as a general term for network technology, information technology, integration technology, management platform technology and application technology based on cloud computing business model applications. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites, so cloud technology needs to be supported by cloud computing.

[0070] Through cloud technology and the attribute information processing method provided in this application, all the results of using the logic rule network can be recorded in the corresponding cloud server. When the target object browses media information in different terminals, the logic rule network stored in the cloud server can be used to classify whether to recommend information to the user.

[0071] It should be noted that cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called the "cloud". From the user's point of view, the resources in the "cloud" can be infinitely expanded, and can be obtained at any time, used on demand, expanded at any time, and paid for by use. As a basic capability provider for cloud computing, a cloud computing resource pool platform will be established, referred to as a cloud platform, generally referred to as Infrastructure as a Service (IaaS), and various types of virtual resources will be deployed in the resource pool for external customers to choose to use. The cloud computing resource pool mainly includes: computing devices (which can be virtualized machines, including operating systems), storage devices and network devices.

[0072] Before introducing the attribute information processing method provided by this application, the storage and query of the attribute information of the target object in the related art are first explained. The related art includes the following methods:

[0073] 1) Use Impala+Kudu as the query and storage engine to perform OLAP queries on data, splitting user data into user data and event data. However, the solution itself does not directly use ClickHouse. ClickHouse is three times faster than Impala in single-table queries. The defect of this solution is that it does not use ClickHouse, but ClickHouse is three times faster than Impala in single-table queries.

[0074] 2) ClickHouse+kafka is used to build an agile BI platform. The ClickHouse wide table and index optimization solution are used. The wide table design will make the data redundant, and the RoaringBitMap method is not mentioned. The extraction of crowd packages can be realized for advertising scenarios. It mentions the storage of user tags based on RoaringBitMap, which is similar to the way this article handles static user attributes, but does not mention the data processing method for user complex event behaviors and event sub-attributes. The defect of this solution is that it cannot realize data processing of user complex event behaviors and event sub-attributes.

[0075] 3) Use Greenplum based on RoaringBitMap storage, where Greenplum combines RoaringBitMap to implement RoaringBitMap with 100 million members and 100,000 tags in milliseconds. However, it only supports UV query of events, and does not mention UV and PV query of event sub-attributes. The defect of this solution is that it only supports UV query of events, and cannot implement UV and PV query of event sub-attributes.

[0076] In order to solve the above defects, Figure 1 A schematic diagram of a usage scenario of the attribute information processing method provided in an embodiment of the present invention, see Figure 1 , the terminal (including terminal 10-1 and terminal 10-2) is provided with a corresponding client capable of executing different classification functions, for example, the terminal (including terminal 10-1 and terminal 10-2) is provided with a corresponding client capable of playing multimedia information, the terminal is connected to server 200 via network 300, network 300 may be a wide area network or a local area network, or a combination of the two, and a wireless link is used to realize data transmission, wherein the multimedia information includes but is not limited to videos, pictures, Flash animations and advertising information. In the use scenario involved in multimedia information processing, in the process of the terminal (terminal 10-1 and / or terminal 10-2) acquiring and exposing the corresponding multimedia information to server 200 via network 300, the user can perform different operations on the exposed multimedia information through the terminal (terminal 10-1 and / or terminal 10-2), and generate different user operation information, for example, when the multimedia information is a video, the user can share and / or like the exposed video while watching the information. When the multimedia information is an advertisement, during the exposure of the advertisement through the terminal (terminal 10 - 1 and / or terminal 10 - 2 ), the user may forward and / or comment on the advertisement.

[0077] As an example, the server 200 is used to continuously expose the multimedia information on the terminal based on the access volume and exposure time limit allocated corresponding to the current exposure of the multimedia information.

[0078] The server 200 detects and analyzes the continuous exposure to determine the attributes of the multimedia information (which will be described below in conjunction with the accompanying drawings), such as whether the multimedia information is the target multimedia information to be recommended. When it is determined that the exposed multimedia information is the target multimedia information to be recommended, the exposed multimedia information can be directly recommended to the viewing users of the multimedia information, or, as a source of video recall, recommended to the user after recall processing. The behavior of the viewing user as the target object in sharing and / or liking the video can be used as event data. The server needs to store the static attribute information and dynamic attribute information generated by the target object to query the user's subclass attributes to recommend more suitable videos to the user. When the multimedia information is a dynamic GIF advertisement, during the exposure of the advertisement through the terminal (terminal 10-1 and / or terminal 10-2), the user can forward and / or comment on the advertisement, or jump to the corresponding product purchase link page through the GIF advertisement.

[0079] See also Figure 2 , Figure 2 An optional flow chart of the attribute information processing method provided in the embodiment of the present invention is provided. It can be understood that: Figure 2 The steps shown can be performed by various electronic devices running the attribute information processing device, such as a dedicated server with an attribute information processing device, or a cloud service cluster. Figure 2 The steps shown are explained.

[0080] Step 201: The attribute information processing device splits the original attribute information of the target object to obtain static attribute information and dynamic attribute information of the target object.

[0081] When the original attribute information of the target object is split, it can be achieved in the following way: obtaining the identification information of the use environment of the target object; determining the splitting standard of the original attribute information according to the identification information of the use environment of the target object; splitting the original attribute information of the target object according to the splitting standard of the original attribute information to obtain the static attribute information and dynamic attribute information of the target object. Among them, the original attribute information can be the sum of data when multimedia information is recommended in various industries, for example, it can include the sum of all basic data in multiple multimedia information recommendation environments such as commodity recommendation with identification information of the use environment as 1, advertisement recommendation with identification information of the use environment as 2, e-commerce advertisement recommendation with identification information of the use environment as 3, and financial advertisement recommendation with identification information of the use environment as 4. When obtaining the original attribute information, the original log of the data record information data of the user's use process can be effectively extracted, such as extracting the user's device number (user account), multimedia information type, multimedia information browsing time, and multimedia information recommendation environment to obtain original attribute information of different dimensions.

[0082] For a short video application adopting a membership system, a target user identifier 2 is determined in the original attribute information of the target object; according to the target user identifier 2, the corresponding original attribute information 1 of the target object (wherein, user ID: 2, device type: e1, user level v1, event type: a, browsing, event execution times: 3) and the original attribute information 2 of the target object (user ID: 2, device type: e1, user level v2, event type: b, click, event execution times: 5) are determined in the original attribute information of the target object; the attribute information of the user in the original attribute information of each target object is determined, specifically, the target object The user's attribute information "user ID: 2, device type: e1, user level v1" in the original attribute information 1 and the user's attribute information "user ID: 2, device type: e1, user level v1" in the original attribute information 2 of the target object; deduplicate the user's attribute information to obtain the user's attribute information "user ID: 2, device type: e1, user level v1" corresponding to the target user ID 2; merge the event attribute information in the original attribute information 1 of the target object and the original attribute information 2 of the target object according to the user's attribute information to form the original attribute information of different target objects in the same application.

[0083] refer to Figure 3 , Figure 3 It is a schematic diagram of the splitting effect of the original attribute information in an embodiment of the present invention, wherein the original attribute information includes the triggering time of the event, the identification information of the target object, the static attributes include channel, version, city, and brand, and the dynamic attributes include: behavior attribute f1, and the sub-attributes of the behavior attribute f1 include: f1_sub_feature1, f1_sub_feature2, and f1_sub_feature3; behavior attribute f2, and the sub-attributes of the behavior attribute f2 include: f2_sub_feature1, f2_sub_feature2, and f2_sub_feature3.

[0084] Through the processing of step 201, the original attribute information can be divided into static user attributes and dynamic behavior attributes: the static user attributes include the user's channel, version, user type (whether a member, etc.) on the product, as well as the user's own demographic attributes, hobbies and machine attributes of the device; the dynamic behavior attributes include a series of behavior event data reported by the user using the functions in the product and the extended sub-attribute data of the event. Since static attributes are long-term unchanged public attributes, while dynamic behavior event attributes are constantly changing. As shown in the figure below, the user's attributes are split into static attributes and dynamic attributes. The dynamic attributes are the behavior attributes generated by a certain event of the user using the product, while the static attributes include channel, version, city, and brand. These attributes have high repetition, and each event report will carry these static attributes. The split static attributes can reduce a large amount of repeated redundant data. Therefore, it is necessary to perform compression processing through step 202. At the same time, in some embodiments of the present invention, the static attribute information can be tested for repetitiveness to obtain repeated static attribute information; and the repeated static attribute information is deleted in the static attribute table. In this way, static data redundancy can be reduced in the storage stage of attribute information, saving storage space and usage costs of hardware devices.

[0085] It is understandable that in the specific implementation of the present application, user-related data such as original attribute information and industry historical data in the media information recommendation environment is involved. When the embodiment of the present application is applied to a specific product or technology, it is necessary to obtain user permission or consent, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0086] Step 202: The attribute information processing device performs a first preprocessing on the static attribute information to obtain a static attribute table.

[0087] In some embodiments of the present invention, the static attribute information is first preprocessed to obtain the static attribute table, which can be implemented in the following manner:

[0088] First, the static attribute information is reduced in size, and all attributes in the static attribute information are attributed to the optional items in the attribute value column of the initial static attribute table. Figure 4 , Figure 4Schematic diagram of the effect of table reduction processing in an embodiment of the present invention. When the static attribute information is reduced, the static attribute information table in the original static attribute information is a wide table, which needs to be constructed into a narrow table through table reduction processing. A wide table is a table with more fields and contains more dimensional levels, resulting in more redundant information, while a narrow table is often more suitable for OLTP and conforms to the principle of paradigm design. When reducing the table, all attributes (including channel, version, city, brand) are attributed to the optional attribute value column of the initial static attribute table (i.e. Figure 4 The attribute_name column shown in the figure) and the content corresponding to the static attribute are attributed to the attribute_value column. Figure 4 As shown, for example, the user with user id 1 corresponds to a city value of ct1, a channel value of c1, a version value of v1, and a brand value of b1; the user with user id 2 corresponds to a city value of ct2, a channel value of c2, a version value of v2, and a brand value of b2; the user with user id 3 corresponds to a city value of ct2, a channel value of c2, a version value of v2, and a brand value of b2; by shrinking the static attribute information, attribute_name includes channel, version, city, and brand, and attribute_value includes channel values ​​c1 and c2, version values ​​v1 and v2, city values ​​ct1 and ct2, and brand values ​​b1 and b2, thereby achieving the effect of converting the original wide table into a narrow table.

[0089] pass Figure 4 The processing shown in the figure greatly reduces the number of columns in the table, but greatly increases the number of rows in the table. Therefore, bitmap compression can be used for further compression. The principle of bitmap compression is to use each bit to represent a binary state, such as yes or no, and use the position information of the bit itself to correspond to different data. Figure 5 This is a schematic diagram of the principle of the first preprocessing in the embodiment of the present invention. The principle of bitmap compression constructs a 2^32-bit memory space, and each bit stores an unsigned int type of data. If there is a 1, it is 1, and if there is no 0, it is 0. The maximum range of unsigned int type data that can be stored is 2^32. Figure 5 As shown, if the number 8 exists, the corresponding value of the 8th bit is assigned to 1. Figure 5The data inserted are 1, 2, 6, and 8, and then all the data are traversed in turn and the bitmap is updated until all 2^32 data bits are filled.

[0090] In passing Figure 5 When the first preprocessing method shown processes the static attribute information, the size of the bitmap is completely corresponding to the range of the number. For example, the BitMap corresponding to the int32 type is 512MB (232 bits = 229B = 29MB = 512MB), while the BitMap corresponding to the short type is 8KB. When the short type data is stored, the advantage of BitMap no longer exists. In order to solve this defect, after obtaining the initial static attribute table, it is necessary to determine the data type of the static attribute information. When the static attribute information is non-short type data, the initial static attribute table is compressed by bitmap compression to obtain the static attribute table; when the static attribute information is short type data (wherein, short type data stores 16-bit (2 bytes) signed integers, and the value range is -32768 to 32767. The use of the Short data type can contain integer values ​​that do not require the full data width of Integer. In some cases, the common language runtime can pack Short variables tightly together and save memory consumption), the initial static attribute table is compressed by efficient bitmap compression to obtain the static attribute table. Specifically, the efficient bitmap (RBM Roaring Bit Map), taking a 32-bit efficient bitmap as an example, is first divided into 2^16 spaces (Containers), each of which contains a bitmap of 2^16 bits in size, and the total memory usage is still 2^32=512Mb. This is no different from an ordinary bitmap, and the characteristic of the efficient bitmap is that the bitmap in each space does not need to allocate memory space when it is not used. This can greatly reduce the memory usage, thereby reducing the hardware consumption cost of the attribute information processing method provided in this application.

[0091] Figure 6 The figure is a schematic diagram of the processing process of high-efficiency bitmap compression in an embodiment of the present invention. The decimal number 35 is put into the high-efficiency bitmap. Its hexadecimal number is: 00000023, the first 16 bits are 0000, and the last 16 bits are 0023. Therefore, it is necessary to first find the corresponding pass number 0 according to the value of the first 16 bits: 0, and then determine the value 35 according to the value of the last 16 bits: 35. Figure 6 Which position in the bucket of the efficient bitmap is shown.

[0092] In some embodiments of the present invention, in order to achieve Figure 6For example, to insert a 4-byte data into the efficient bitmap, first use the high 16 bits of the data to find the corresponding space, and then use the low 16 bits of the data to insert it into the container. Within each space, the efficient bitmap does not simply use the bitmap to store data, but constructs three spaces for different storage objects:

[0093] 1) When the stored data is 2 bytes (4 bytes of original data, the lower 16 bits are used to insert into a specific Container), and the total number of stored items is less than 4096, the current space type uses arrayContainer (that is, a linked list structure). In this process, since 4096*2B=8Kb, and if a space is a bitmap structure, the upper limit of the storage space is 2^16bit=8Kb of space. Therefore, when the number of data is less than 4096, using the arrayContainer space type will save more space.

[0094] 2) When the number of data stored in the array container reaches 4096 (that is, when the memory is used to 8Kb), the type of space is converted from array container to BitMap container. BitMap container is a normal bitmap with a size of 2^16bit, which can store 2^16=65536 data. At this time, the array container stores sparse data and the bitmap container stores dense data, which can minimize memory waste. At the same time, using 8Kb of memory has another advantage, which is that it can be placed in the first-level cache (L1 Cache). Since the first-level cache is generally built next to the core, it is the most closely integrated high-speed cache with the CPU, which can effectively improve the CPU's operating efficiency. The larger the first-level cache, the higher the CPU's operating efficiency. Therefore, using 8Kb of memory can speed up data calculation.

[0095] 3) When the type of data to be stored is continuous data, the space type is run container. The compression principle is to only record the initial number and the continuous length for continuous numbers. For example, if there is a string of numbers 12, 13, 14, 15, 16, then after compression, only 12, 5 will remain.

[0096] Through the above processing, the static attribute information can be double compressed, which not only reduces the number of rows of stored data, but also realizes the compression of user IDs. Figure 7 Schematic diagram of the process of efficient bitmap compression in an embodiment of the present invention, wherein: Figure 4In the initial static attribute table obtained from , attribute_name includes channel, version, city, and brand, and attribute_value includes channel values ​​c1 and c2, version values ​​v1 and v2, city values ​​ct1 and ct2, and brand values ​​b1 and b2. Through efficient bitmap compression, we get Figure 7 The static attribute table shown in the figure, wherein attribute_name in the static attribute table includes channel, version, city, and brand; attribute_value includes channel values ​​c1 and c2, version values ​​v1 and v2, city values ​​ct1 and ct2, and brand values ​​b1 and b2; the final efficient bitmap column includes different user IDs according to the content in attribute_name and the value in attribute_value, so that the initial 12 rows of the static attribute table are compressed to 8 rows in the static attribute table, with a compression rate of more than 33%.

[0097] Through the processing of step 201 and step 202, the static attribute information is compressed to obtain a static attribute table, and then the dynamic attribute information is processed through step 203.

[0098] Step 203: The attribute information processing device performs second preprocessing on the dynamic attribute information to obtain an initial dynamic attribute table of the target object.

[0099] Among them, the initial dynamic attribute table includes the attribute categories of the target object, and the attribute categories are separately optional. Taking the user watching multimedia information as an example, each operation behavior of the user will be recorded in the user's dynamic attribute table. As the user's behavior increases and the user scale increases, this dynamic attribute model needs to carry hundreds of millions or even tens of billions of data. For example, when the multimedia information is a video advertisement, the user can share and / or like the exposed video advertisement while watching the information, or click on it. When the multimedia information is a dynamic GIF advertisement, during the exposure of the advertisement through the terminal, the user can forward and / or comment on the advertisement, or jump to the corresponding product purchase link page through the GIF advertisement. These behaviors can be recorded in the user's dynamic attribute table.

[0100] Performing a second preprocessing on the dynamic attribute information to obtain an initial dynamic attribute table of the target object can be achieved by: determining the sub-attribute categories included in each category of behavior attributes in the dynamic attribute information; establishing a corresponding relationship between the category and sub-category of the behavior attribute; saving the attribute categories in the initial dynamic attribute table as separate optional items to obtain the initial dynamic attribute table of the target object. Figure 8 , Figure 8 The diagram is a schematic diagram of the second preprocessing of the dynamic attribute information in the embodiment of the present invention, wherein, for the behavior attribute f1 and the behavior attribute f2, the behavior attribute f1 has many sub-category attributes (f1_sub_feature1, f1_sub_feature2, f1_sub_feature3) under this major attribute. Since there are different numbers of sub-category behavior attributes under different major behavior attributes, each behavior attribute corresponds to a table. As the number of major behavior categories increases, the number of corresponding tables also increases. In order to correctly find the corresponding table name, these behavior attributes need to be organized into a table for management. Therefore, through Figure 8 The second preprocessing process shown in FIG. 1 first performs a second preprocessing on the user's dynamic attribute information, and separates the user's behavior attribute categories into a separate column, that is, Figure 8 A feature column is shown.

[0101] Step 204: the attribute information processing device determines the sub-attribute value corresponding to each sub-attribute of the initial dynamic attribute table, saves the sub-attribute and the corresponding sub-attribute value of each attribute category in the initial dynamic attribute table in the sub-attribute optional items, and obtains the initial dynamic attribute table after key value processing.

[0102] In some embodiments of the present invention, in order to obtain an initial dynamic attribute table that has been processed with key values ​​(the storage volume of the initial dynamic attribute table that has been processed with key values ​​is smaller, saving more storage space), it is necessary to perform key value processing on the initial dynamic attribute table, which can be specifically achieved in the following manner: first determine the sub-attribute value corresponding to each sub-attribute; then save all sub-attributes and corresponding sub-attribute values ​​in the initial dynamic attribute table in the sub-attribute optional items to obtain the initial dynamic attribute table that has been processed with key values. Fig. 9 , Fig. 9 Schematic diagram of key-value processing in an embodiment of the present invention, wherein a key-value data model is used to retain all sub-class attributes in the "sub_attribute" field. Since the sub-class attributes corresponding to different major categories are different, the key-value data model can not only display the sub-attributes under the major category, but also clearly query the attribute values ​​under the sub-attributes, such as Fig. 9As shown, the table of behavior attribute f1 and the table of behavior attribute f2 can be merged by using sub-attribute. For example, for a user with id 1, when feature is 1, the “sub-attribute sub_attribute” column can include {“f1_sub_feature1”: “sal1”, “f1_sub_feature2”: “sal2”, “f1_sub_feature3”: “sal3”}; for a user with id 2, the “sub-attribute sub_attribute” column can include {“f1_sub_feature1”: “sal1”, “f1_sub_feature2”: “sal2”, “f1_sub_feature3”: “sal3”}. f1_sub_feature3":"sal3"}; for the user with id 3, the "sub-attribute" column may include {"f1_sub_feature1":"sal1","f1_sub_feature2":"sal2","f1_sub_feature3":"sal3"}; for the user with id 1, when feature is 2, the "sub-attribute" column may include {"f2_sub_feature1":"sa21","f2_sub_feature2":"sa22","f2_sub_feature3":"sa23"} , "f2_sub_feature4": "sa24"}, thus merging a table with 7 columns and 4 rows and a table with 8 columns and 4 rows into an initial dynamic attribute table with 7 columns and 5 rows.

[0103] Step 205: The attribute information processing device performs a third preprocessing on the initial dynamic attribute table that has undergone key value processing based on the access volume parameter corresponding to the original attribute information to obtain a dynamic attribute table.

[0104] In some embodiments of the present invention, the third preprocessing method may use efficient bitmap compression, and the third preprocessing of the initial dynamic attribute table after key value processing may be implemented in the following manner:

[0105] Obtain the access volume parameter corresponding to the original attribute information; query the sub-attribute with the same access volume parameter in the initial dynamic attribute table after key value processing; perform the third preprocessing on the sub-attribute with the same access volume parameter to obtain the dynamic attribute table. Fig.10 , Fig.10 Schematic diagram of the third preprocessing in the embodiment of the present invention, such as Fig.10As shown, for users with the same PV, efficient bitmap compression can be performed. An rbm column can be set in the dynamic attribute table to compress ids with the same pv. For example, when pv=2, the value corresponding to the rbm column is {1, 3}, and the corresponding sub-attribute "sub_attribute" column includes {"f2_sub_feature1": "sa21", "f2_sub_feature2": "sa22", "f2_sub_feature3": "sa23" , "f2_sub_feature4": "sa24"}; when pv=1, the corresponding value of the rbm column is {1, 2}.

[0106] In some embodiments of the present invention, when Fig.10 When the sub_attribute under the behavior attribute f1 shown in the figure has 85w enumerations, it means that the compression effect of the third preprocessing is poor. For example, when f1_sub_feature1 in the sub_attribute under the behavior attribute f1 is the timestamp of the start of the event, since it is almost impossible for the timestamps to be repeated, many enumeration values ​​appear in the sub_attribute under the behavior attribute f1, resulting in poor compression effect of efficient bitmap compression. Therefore, in order to ensure the compression effect of the third preprocessing and avoid too many enumeration values ​​of a sub-class attribute in the sub-attribute sub_attribute, which affects the compression effect of the third preprocessing, it is necessary to set the corresponding enumeration number threshold. By detecting the enumeration number of the sub-attribute, when the enumeration number of the sub-attribute is greater than the enumeration number threshold, stop the third preprocessing of the sub-attribute with the same access volume parameters. Reference Fig.11 , Fig.11 Schematic diagram of unified management of subclass attributes in an embodiment of the present invention, wherein Fig.11 Manage the subclass attributes under the behavior attribute in a unified way and maintain a configuration table of the subclass attributes under the behavior attribute, including the attributes, subclass attributes, number of enumerations, and whether to perform efficient bitmap compression for each behavior attribute. Fig.11 In the feature, sub_feature is a dynamic behavior attribute, sub_feature is a subclass attribute, cnt is the number of sub_feature value enumerations, IsRBM indicates whether to perform efficient bitmap compression, and compression is performed when IsRBM is 1. When the enumeration is greater than the enumeration number threshold N (for example, N is 1000), no compression is performed. Some special subclass attributes such as file directories can also be set in the configuration table to IsRBM 0 or 1, and personalized configuration is performed to determine whether to perform efficient bitmap compression, so as to flexibly meet the usage requirements of different users and different data processing environments.

[0107] Through steps 201 to 205, after data splitting and classification processing is performed on the original attribute information of the target object, a static attribute table and a dynamic attribute table are formed, and the splitting and storage of the original attribute information of the target object are completed. After receiving the data query instruction, the static attribute table and the dynamic attribute table formed in the data storage stage through steps 201 to 205 can be used to execute the corresponding query instruction through step 206 to realize query analysis based on all attributes.

[0108] Step 206: The attribute information processing device responds to the data query instruction and performs a subclass attribute query through the static attribute table and the dynamic attribute table to obtain a query result of the subclass attribute.

[0109] refer to Fig.12 , Fig.12 Schematic diagram of query analysis of all attributes in an embodiment of the present invention, wherein firstly, the user's attributes are established according to the static attribute table and dynamic attribute table of the target object, and then compressed into a target object bitmap according to different attribute values ​​to obtain Fig.12 The two tables shown are used for product analysis and user group analysis. Fig.12 The static attribute table and dynamic attribute table shown in the figure can calculate business indicators (such as the five important links in the user life cycle: user addition, activation, retention, collection, and self-propagation) by dynamically configuring SQL, put the calculation results in ClickHouse that executes online analytical processing queries, and then configure visual reports.

[0110] At the same time, based on Fig.12 The static attribute table and dynamic attribute table shown can extract the bitmaps of different target objects for different events operated every day, the target object bitmaps corresponding to each dimension value under different dimensions, and the target object bitmap under a certain condition, and then use different functions to calculate these three groups of target object bitmaps according to different scenarios for different product analysis tools (for example: event tools, retention tools, funnel tools) to obtain product analysis results.

[0111] Finally, user group analysis can generate some user groups, and then perform efficient bitmap compression, introduce product tools to perform user group analysis of static attributes (demographic attributes, machine data, etc.) and dynamic attributes (user operation information and sub-category attributes), making the user group analysis results of static attributes and dynamic attributes more accurate.

[0112] In order to more clearly illustrate the processing process of the attribute information processing method provided by the present application, the attribute information processing method provided by the embodiment of the present invention is described below by taking the video recommendation scene in the video advertisement playback interface as an example, wherein: Fig.13 FIG. 1 is a schematic diagram of an application environment of the attribute information processing method in an embodiment of the present invention, wherein Fig.13 As shown in Table 1, the video ad playback interface can be displayed in the corresponding APP, or it can be triggered by the instant messaging client applet. When recording and querying the effect of video ad playback, the event tool, retention tool, and funnel tool in the product analysis tool can be used to query and analyze all attributes to obtain product analysis results. As shown in Table 1, the dynamic attribute information in the original attribute information includes: the number of visiting users (uv), the number of visits (pv), the number of likes, the number of comments, and the number of shares.

[0113] Table 1

[0114]

[0115]

[0116] in, Fig.14 The process diagram of the attribute information processing method in an embodiment of the present invention includes the following steps:

[0117] Step 1401: Split the original attribute information of the user who watches the video advertisement to obtain static attribute information and dynamic attribute information of the target object.

[0118] Among them, static attributes include channel, version, city, and brand. For short video applications that adopt a membership system, determine the target user identifier 2 in the original attribute information of the target object; determine the corresponding original attribute information 1 of the target object in the original attribute information of the target object based on the target user identifier 2 (including user ID: 2, device type: e1, user level v1, event type: a, number of views and event executions: 3) and original attribute information 2 of the target object (user ID: 2, device type: e1, user level v2, event type: b, number of clicks and event executions: 5); determine the attribute information of the user in the original attribute information of each target object, specifically to determine the target object. The user's attribute information "user ID: 2, device type: e1, user level v1" in the original attribute information 1 and the user's attribute information "user ID: 2, device type: e1, user level v1" in the original attribute information 2 of the target object; deduplicate the user's attribute information to obtain the user's attribute information "user ID: 2, device type: e1, user level v1" corresponding to the target user ID 2; merge the event attribute information in the original attribute information 1 of the target object and the original attribute information 2 of the target object according to the user's attribute information to form the original attribute information of different target objects in the same application.

[0119] Step 1402: bitmap compression is performed on the static attribute information and the dynamic attribute information respectively to obtain a static attribute table and a dynamic attribute table.

[0120] Among them, when the static attribute table and the dynamic attribute table are stored, the data volume of the video advertisement viewing user for 24 hours is reduced from 35.4G / day to 10.8G / day, which reduces the storage by at least 70%.

[0121] Step 1403: In response to the data query instruction, query the subclass attributes through the static attribute table and the dynamic attribute table to obtain the query result of the subclass attributes.

[0122] In the query stage, in the attribute information of users who watch video ads for 24 hours, the query efficiency of the event analysis subclass attribute is improved by 95%. When the original attribute information is directly stored, the query takes 12.8 seconds, and it only takes 0.6 seconds to execute the attribute information processing provided by this application; further, when comparing the viewing trends of multiple days (20 days) of different video ad viewing scenarios (different events) for data query, it only takes 4 seconds to execute the attribute information processing provided by this application, and it takes 180 seconds to use array join when querying under the condition of directly storing the original attribute information. In the retention analysis query, the response is achieved in seconds. The multi-day retention time of the statistical points of tens of millions of users in 20 days is 20 seconds. Under the multi-screening conditions of querying 7 days, the multi-day retention time of the statistical points of tens of millions of users is 5 seconds. When performing user event funnel analysis, the query efficiency is improved by at least 90% in different scenarios.

[0123] Step 1404: Use the query results of the subclass attributes to perform query analysis on all attributes.

[0124] Through full-attribute query analysis, the priority and configured traffic of different video ads can be flexibly adjusted, so that the delivery effect of video ads can meet both the viewing needs of users and the delivery needs of advertisers.

[0125] For example, an advertiser places video ads A and B for two consumer products. When the multimedia information recommendation model provided in this application determines that the score of the target multimedia information of A is 1 and the score of the target multimedia information of B is 2, it can be determined that the priority of ad B is higher than that of ad A, indicating that the current user may be more interested in video ad B. Therefore, based on the score of the target multimedia information, ad B is recommended to the user first, and more playback traffic is allocated for ad B to increase the exposure rate of ad B, so that users can have a better viewing experience, thereby increasing the triggering rate of ad B.

[0126] In order to implement the attribute information processing method provided by the present application, the present application also provides corresponding hardware devices. The structure of the attribute information processing device of the embodiment of the present invention is described in detail below. The attribute information processing device can be implemented in various forms, such as a dedicated terminal with an attribute information processing function, or a server provided with an attribute information processing device processing function, such as the preamble Figure 1 Server 200 in. Fig.15 The following is a schematic diagram of the composition structure of the attribute information processing device provided in the embodiment of the present invention. It can be understood that Fig.15 Only an exemplary structure of the attribute information processing device is shown, not all structures, and it can be implemented as needed. Fig.15 Partial or complete structure shown.

[0127] The attribute information processing device provided in the embodiment of the present invention includes: at least one processor 201, a memory 202, a user interface 203 and at least one network interface 204. The various components in the attribute information processing device are coupled together through a bus system 205. It can be understood that the bus system 205 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 205 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Fig.15 Various buses are labeled as bus system 205 .

[0128] The user interface 203 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.

[0129] It is understood that the memory 202 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. The memory 202 in the embodiment of the present invention can store data to support the operation of the terminal (such as 10-1). Examples of these data include: any computer program for operating on the terminal (such as 10-1), such as an operating system and an application. Among them, the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application can include various applications.

[0130] In some embodiments, the attribute information processing device provided in the embodiment of the present invention may be implemented in a combination of software and hardware. As an example, the attribute information processing device provided in the embodiment of the present invention may be a processor in the form of a hardware decoding processor, which is programmed to execute the attribute information processing method provided in the embodiment of the present invention. For example, the processor in the form of a hardware decoding processor may be 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.

[0131] As an example of the attribute information processing device provided by the embodiment of the present invention being implemented by a combination of software and hardware, the attribute information processing device provided by the embodiment of the present invention can be directly embodied as a combination of software modules executed by the processor 201. The software module can be located in a storage medium, and the storage medium is located in the memory 202. The processor 201 reads the executable instructions included in the software module in the memory 202, and completes the attribute information processing method provided by the embodiment of the present invention in combination with the necessary hardware (for example, including the processor 201 and other components connected to the bus 205).

[0132] As an example, the processor 201 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0133] As an example of hardware implementation of the attribute information processing device provided in the embodiment of the present invention, the device provided in the embodiment of the present invention can be directly executed by a processor 201 in the form of a hardware decoding processor, for example, 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 to implement the attribute information processing method provided in the embodiment of the present invention.

[0134] The memory 202 in the embodiment of the present invention is used to store various types of data to support the operation of the attribute information processing device. Examples of such data include: any executable instructions for operating on the attribute information processing device, such as executable instructions, and the program for implementing the attribute information processing method of the embodiment of the present invention can be included in the executable instructions.

[0135] In other embodiments, the attribute information processing device provided by the embodiment of the present invention can be implemented in software. Fig.15 The attribute information processing device stored in the memory 202 is shown, which may be software in the form of a program and a plug-in, and includes a series of modules. As an example of a program stored in the memory 202, an attribute information processing device may be included, and the attribute information processing device includes the following software modules:

[0136] The information transmission module 2081 is used to split the original attribute information of the target object to obtain the static attribute information and dynamic attribute information of the target object;

[0137] The information processing module 2082 is used to perform a first preprocessing on the static attribute information to obtain a static attribute table;

[0138] The information processing module 2082 is used to perform a second preprocessing on the dynamic attribute information to obtain an initial dynamic attribute table of the target object, wherein the initial dynamic attribute table includes an attribute category of the target object, and the attribute category is a separate optional item;

[0139] An information processing module 2082 is used to determine a sub-attribute value corresponding to each sub-attribute of the initial dynamic attribute table;

[0140] The information processing module 2082 is used to perform a third preprocessing on the initial dynamic attribute table after key value processing based on the access volume parameter corresponding to the original attribute information to obtain a dynamic attribute table.

[0141] In the above scheme, the device also includes:

[0142] The query module 2083 is used to respond to the data query instruction, perform subclass attribute query through the static attribute table and the dynamic attribute table, and obtain the query result of the subclass attribute.

[0143] In the above solution, the information processing module 2082 is used to obtain identification information of the use environment of the target object;

[0144] The information processing module 2082 is used to determine the splitting standard of the original attribute information according to the identification information of the use environment of the target object;

[0145] The information processing module 2082 is used to split the original attribute information of the target object according to the splitting standard of the original attribute information to obtain the static attribute information and dynamic attribute information of the target object.

[0146] In the above solution, the information processing module 2082 is used to perform repeatability detection on the static attribute information to obtain repeated static attribute information;

[0147] The information processing module 2082 is used to delete duplicate static attribute information in the static attribute table.

[0148] In the above solution, the information processing module 2082 is used to perform table reduction processing on the static attribute information, and attribute all attributes in the static attribute information to the optional items in the attribute value column of the initial static attribute table to obtain the initial static attribute table;

[0149] The information processing module 2082 is used to compress the initial static attribute table by bitmap compression to obtain a static attribute table when the static attribute information is non-short type data;

[0150] The information processing module 2082 is used to compress the initial static attribute table by means of efficient bitmap compression to obtain a static attribute table when the static attribute information is short type data.

[0151] In the above solution, the information processing module 2082 is used to determine the sub-attribute categories included in each category of behavior attributes in the dynamic attribute information;

[0152] Information processing module 2082, used to establish a correspondence between the category and sub-category of the behavior attribute;

[0153] The information processing module 2082 is used to save the attribute categories in the initial dynamic attribute table as separate optional items to obtain the initial dynamic attribute table of the target object.

[0154] In the above solution, the information processing module 2082 is used to determine the sub-attribute value corresponding to each sub-attribute;

[0155] The information processing module 2082 is used to save all sub-attributes and corresponding sub-attribute values ​​in the initial dynamic attribute table in the sub-attribute optional items to obtain the initial dynamic attribute table after key value processing.

[0156] In the above solution, the information processing module 2082 is used to obtain the visit volume parameter corresponding to the original attribute information;

[0157] Information processing module 2082, used to query the sub-attributes with the same access volume parameter in the initial dynamic attribute table after key value processing;

[0158] The information processing module 2082 is used to perform a third preprocessing on the sub-attributes with the same access volume parameter to obtain a dynamic attribute table.

[0159] In the above solution, the information processing module 2082 is used to detect the enumeration number of sub-attributes;

[0160] The information processing module 2082 is used to stop performing the third preprocessing on the sub-attributes with the same access volume parameters when the enumeration quantity of the sub-attributes is greater than the enumeration quantity threshold.

[0161] according to Fig.15 The electronic device shown, in one aspect of the present application, the present application also provides a computer program product or a computer program, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the electronic device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the electronic device executes the different embodiments and combinations of embodiments provided in various optional implementations of the above-mentioned attribute information processing method or data classification method.

[0162] Beneficial technical effects:

[0163] First, the present invention obtains static attribute information and dynamic attribute information of the target object by splitting the original attribute information of the target object; performs a first preprocessing on the static attribute information to obtain a static attribute table; performs a second preprocessing on the dynamic attribute information to obtain an initial dynamic attribute table of the target object, wherein the initial dynamic attribute table includes attribute categories of the target object, and the attribute categories are separate optional items; determines the sub-attribute value corresponding to each sub-attribute of the initial dynamic attribute table; performs a third preprocessing on the initial dynamic attribute table after key value processing based on the access volume parameter corresponding to the original attribute information to obtain a dynamic attribute table; thereby, static data redundancy can be reduced in the storage stage of attribute information, saving storage space and usage cost of hardware devices.

[0164] 2) At the same time, when querying the attribute information, in response to the received data query instruction, the subclass attribute query is performed through the static attribute table and the dynamic attribute table to obtain the query result of the subclass attribute. Therefore, in the query stage of the attribute information, the subclass attribute query is performed using the static attribute table and the dynamic attribute table respectively, which not only makes the query result of the subclass attribute more accurate, but also improves the query efficiency because the query is performed using the static attribute table and the dynamic attribute table respectively.

[0165] 3) In the field of advertising, by using the attribute information processing method provided in this application, through query analysis of all attributes and using dynamic attribute tables to efficiently query UV and PV, the priority and configured traffic of different video advertisements can be flexibly adjusted, so that the delivery effect of video advertisements meets both the viewing needs of users and the delivery needs of advertisers.

[0166] The above are only embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for processing attribute information, characterized in that: The method comprises: Splitting original attribute information of the target object to obtain static attribute information and dynamic attribute information of the target object; Performing a first preprocessing on the static attribute information to obtain a static attribute table; Performing a second preprocessing on the dynamic attribute information to obtain an initial dynamic attribute table of the target object, wherein the initial dynamic attribute table includes attribute categories of the target object, and the attribute categories are individually optional items; Determine a sub-attribute value corresponding to each sub-attribute of the initial dynamic attribute table; The sub-attributes and corresponding sub-attribute values ​​of each attribute category in the initial dynamic attribute table are stored in the sub-attribute optional items to obtain the initial dynamic attribute table after key value processing; Based on the access volume parameter corresponding to the original attribute information, the initial dynamic attribute table that has undergone key value processing is subjected to a third preprocessing to obtain a dynamic attribute table.

2. The method according to claim 1, characterized in that The original attribute information of the target object is split to obtain static attribute information and dynamic attribute information of the target object, including: Obtaining identification information of the use environment of the target object; Determining a splitting standard of the original attribute information according to the identification information of the use environment of the target object; The original attribute information of the target object is split according to the splitting standard of the original attribute information to obtain static attribute information and dynamic attribute information of the target object.

3. The method according to claim 2, characterized in that The method further comprises: Performing a repeatability test on the static attribute information to obtain repeated static attribute information; The repeated static attribute information is deleted in the static attribute table.

4. The method according to claim 1, characterized in that: The first preprocessing of the static attribute information to obtain a static attribute table includes: Performing table reduction processing on the static attribute information, assigning all attributes in the static attribute information to the optional items in the attribute value column of the initial static attribute table, and obtaining the initial static attribute table; When the static attribute information is non-short type data, compressing the initial static attribute table by bitmap compression to obtain the static attribute table; When the static attribute information is short type data, the initial static attribute table is compressed by means of efficient bitmap compression to obtain the static attribute table.

5. The method according to claim 1, characterized in that The performing second preprocessing on the dynamic attribute information to obtain an initial dynamic attribute table of the target object includes: Determining the sub-attribute categories included in each category of behavior attributes in the dynamic attribute information; Establishing a correspondence between the category and subcategory of the behavior attribute; The attribute categories in the initial dynamic attribute table are saved as separate optional items to obtain the initial dynamic attribute table of the target object.

6. The method according to claim 1, characterized in that The method of performing a third preprocessing on the initial dynamic attribute table after key value processing based on the access volume parameter corresponding to the original attribute information to obtain a dynamic attribute table includes: Get the visit volume parameter corresponding to the original attribute information; Querying the initial dynamic attribute table processed by key value for sub-attributes having the same access quantity parameter; Sub-attributes with the same access parameter are efficiently bitmap compressed to obtain a dynamic attribute table.

7. The method according to claim 6, characterized in that The method further comprises: Detect the enumeration number of the sub-attribute; When the enumeration quantity of the sub-attribute is greater than the enumeration quantity threshold, efficient bitmap compression of the sub-attributes with the same access quantity parameter is stopped.

8. The method according to claim 1, characterized in that: The method further comprises: Receive data query instructions; In response to the data query instruction, a subclass attribute query is performed through the static attribute table and the dynamic attribute table to obtain a query result of the subclass attribute.

9. An attribute information processing device, characterized in that: The device comprises: An information transmission module, used for splitting the original attribute information of the target object to obtain static attribute information and dynamic attribute information of the target object; An information processing module, configured to perform a first preprocessing on the static attribute information to obtain a static attribute table; The information processing module is used to perform a second preprocessing on the dynamic attribute information to obtain an initial dynamic attribute table of the target object, wherein the initial dynamic attribute table includes an attribute category of the target object, and the attribute category is a separate optional item; The information processing module is used to determine the sub-attribute value corresponding to each sub-attribute of the initial dynamic attribute table; The information processing module is used to save the sub-attributes and corresponding sub-attribute values ​​of each attribute category in the initial dynamic attribute table in the sub-attribute optional items to obtain the initial dynamic attribute table after key value processing; The information processing module is used to perform a third preprocessing on the initial dynamic attribute table after key value processing based on the access volume parameter corresponding to the original attribute information to obtain a dynamic attribute table.

10. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the attribute information processing method described in any one of claims 1 to 8 is implemented.

11. An electronic device, characterized in that: The electronic device comprises: A memory for storing executable instructions; The processor is used to implement the attribute information processing method described in any one of claims 1 to 8 when running the executable instructions stored in the memory.

12. A computer-readable storage medium storing executable instructions, characterized in that: When the executable instructions are executed by a processor, the attribute information processing method described in any one of claims 1 to 8 is implemented.