Method and device for processing interactive data

By constructing an interactive state array for interactive scenarios and storing task execution status using binary data types, the problems of large data storage resources and low query efficiency in the prior art are solved, and more efficient storage and query efficiency are achieved.

CN119690998APending Publication Date: 2025-03-25BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411774865.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

In Internet applications, the existing methods occupy a large amount of data storage resources due to the continuous increase in data records, and the efficiency of querying users to execute status data is low, which affects the management efficiency of interactive data in interactive scenarios.

Method used

An interactive state array is built for the interactive scene, and the binary data type is used to store the task execution status of each interactive user performing each interactive task, forming interactive data according to the set time range, and analyzing the user execution status of each interactive task in the interactive scene.

Benefits of technology

By building an array that stores binary data, the amount of stored data in the task execution state is reduced, the consumption of storage resources is reduced, and the efficiency of querying task execution state data is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690998A_ABST
    Figure CN119690998A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for processing interactive data, and relates to the technical field of big data. A specific embodiment of the method comprises the following steps: constructing an interaction state array for an interaction scene, and storing a task execution state of executing each interaction task by each interaction user in the interaction scene by using the interaction state array; the data type of the task execution state is binary; according to a set time range, one piece of interaction data of the interaction scene is formed according to the interaction state array; and analyzing the user execution condition of each interaction task in the interaction scene based on the one or more pieces of interaction data. According to the embodiment of the invention, for each set time range, only one piece of binary interaction data is needed to indicate the task execution states of all interaction users for all interaction tasks, so that the storage data volume of the task execution states is reduced to a greater extent, the consumption of storage resources is reduced, and the user experience is improved. And meanwhile, the query efficiency for the task execution state is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data technology, and in particular to a method and device for processing interactive data. Background Art

[0002] In Internet applications (Application, APP for short), in order to increase the usage frequency of application users, different interactive scenarios are usually built for the application, and the user's activity in the application is increased by attracting users to participate in the interactive scenarios.

[0003] For any interactive scenario, it is necessary to store the execution status of each interactive task in the interactive scenario participated by each user for subsequent data analysis; currently, for an interactive scenario, a data table is usually used to store the user execution status of multiple interactive tasks, that is, a data record is generated for each user execution status; when the number of application users grows rapidly and the number of users is large, and the number of interactive scenarios and interactive tasks is large, the existing methods have the problem of large data storage resource usage due to the continuous increase in data records, and there is a problem of low efficiency in querying user execution status data, which affects the management efficiency of interactive data in interactive scenarios. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method and device for processing interactive data, which can construct an interactive state array for an interactive scene, and use the interactive state array to store the task execution status of each interactive task performed by each interactive user in the interactive scene; wherein the data type of the task execution status is binary; according to a set time range, a piece of interactive data of the interactive scene is formed according to the interactive state array; based on one or more pieces of interactive data, the user execution status of each interactive task in the interactive scene is analyzed. By constructing an array for storing binary data for the interactive scene, the embodiment of the present invention only needs one piece of binary interactive data for each set time range to reflect the task execution status of all interactive users for all interactive tasks, which greatly reduces the amount of stored data of the task execution status, reduces the consumption of storage resources, and improves the efficiency of querying the task execution status data.

[0005] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a method for processing interactive data is provided, comprising: constructing an interactive state array for storing task execution status for an interactive scene, wherein the interactive scene includes multiple interactive users and multiple interactive tasks; using the interactive state array to store the task execution status of each interactive user performing each interactive task; wherein the data type of the task execution status is binary; according to a set time range, forming a piece of interactive data for the interactive scene within the set time range according to the task execution status stored in the interactive state array; and analyzing the user execution status of multiple interactive tasks in the interactive scene based on one or more pieces of interactive data.

[0006] Optionally, an interactive state array storing task execution status is constructed for the interactive scene, including: obtaining the number of tasks of multiple interactive tasks in the interactive scene, and the number of users executing each interactive user; taking the product of the number of tasks and the number of users as the number of elements contained in the interactive state array, and constructing an interactive state array containing elements of the number of elements.

[0007] Optionally, before using the interaction status array to store the task execution status of each interactive user performing each interactive task, it includes: determining, for each interactive user, a mapping relationship between a user identifier of the interactive user and an element of the interaction status array; and storing the task execution status of the user identifier in the element of the interaction status array according to the mapping relationship.

[0008] Optionally, determining the mapping relationship between the user identifier of the interactive user and the elements of the interaction status array includes: determining a first mapping relationship between each interactive task and the element interval of the interaction status array, and determining a second mapping relationship between the elements in the element interval corresponding to each interactive task and the user identifier of the interactive user who performs the interactive task; and determining the mapping relationship between the user identifier of the interactive user and the elements of the interaction status array by combining the first mapping relationship and the second mapping relationship.

[0009] Optionally, determining a first mapping relationship between elements of an interaction state array and interaction tasks includes: obtaining the number of users who perform each interaction task in an interactive scene; based on the elements of the interaction state array, dividing an element interval containing elements of the number of users for each interaction task; wherein the multiple element intervals are continuous storage spaces; and using a mapping relationship between a task identifier of each interaction task and a corresponding element interval as a first mapping relationship between each interaction task and an element of the interaction state array.

[0010] Optionally, a second mapping relationship between the elements in the element interval corresponding to each interactive task and the user identifier of the interactive user who performs the interactive task is determined, including: for each interactive task, obtaining the starting element position of the element interval of the interactive task, and based on the starting element position, determining the offset position of the element corresponding to each user identifier who performs the interactive task in the element interval; and taking the mapping relationship between the element corresponding to the offset position and the user identifier of the interactive user who performs the interactive task as the second mapping relationship.

[0011] Optionally, based on one or more pieces of interactive data, the user execution status of interactive tasks in the interactive scenario is analyzed, including: for a piece of interactive data, obtaining a set time range corresponding to the interactive data; based on a mapping relationship between a user identifier of an interactive user and an element of an interactive status array, from one piece of data, for each interactive task within the set time range, counting the task execution status corresponding to each user identifier that executes the interactive task; and analyzing the user execution status of each interactive task in the interactive scenario according to the statistical value of the task execution status corresponding to each user identifier.

[0012] To achieve the above-mentioned purpose, according to a second aspect of an embodiment of the present invention, there is provided a device for processing interactive data, characterized in that it comprises: an array construction module, a storage state module and a data analysis module; wherein,

[0013] An array building module is used to build an interactive state array for storing task execution states for an interactive scene, wherein the interactive scene includes multiple interactive users and multiple interactive tasks;

[0014] A storage status module is used to store the task execution status of each interactive task performed by each interactive user using an interactive status array; wherein the data type of the task execution status is binary;

[0015] The data analysis module is used to form an interactive data of the interactive scene within the set time range according to the task execution status stored in the interactive state array; based on one or more interactive data, analyze the user execution status of the interactive task in the interactive scene.

[0016] Optionally, the device for processing interactive data is used to construct an interactive state array for storing task execution status for an interactive scene, including: obtaining the number of tasks of multiple interactive tasks in the interactive scene, and the number of users executing each interactive user; taking the product of the number of tasks and the number of users as the number of elements contained in the interactive state array, and constructing an interactive state array containing elements of the number of elements.

[0017] Optionally, the device for processing interactive data is used, before using the interactive status array to store the task execution status of each interactive user performing each interactive task, to include: determining, for each interactive user, a mapping relationship between a user identifier of the interactive user and an element of the interactive status array; and storing the task execution status of the user identifier in the element of the interactive status array according to the mapping relationship.

[0018] Optionally, the device for processing interactive data is used to determine the mapping relationship between the user identifier of the interactive user and the elements of the interactive status array, including: determining a first mapping relationship between each interactive task and the element interval of the interactive status array, determining a second mapping relationship between the elements in the element interval corresponding to each interactive task and the user identifier of the interactive user who performs the interactive task; combining the first mapping relationship and the second mapping relationship to determine the mapping relationship between the user identifier of the interactive user and the elements of the interactive status array.

[0019] Optionally, a device for processing interactive data is used to determine a first mapping relationship between elements of an interactive state array and interactive tasks, including: obtaining the number of users who perform each interactive task in an interactive scene; based on the elements of the interactive state array, dividing an element interval containing elements of the number of users for each interactive task; wherein multiple element intervals are continuous storage spaces; and using the mapping relationship between the task identifier of each interactive task and the corresponding element interval as the first mapping relationship between each interactive task and an element of the interactive state array.

[0020] Optionally, the device for processing interactive data is used to determine a second mapping relationship between elements in an element interval corresponding to each interactive task and a user identifier of an interactive user who performs the interactive task, including: for each interactive task, obtaining a starting element position of the element interval of the interactive task, and based on the starting element position, determining an offset position in the element interval of an element corresponding to each user identifier who performs the interactive task; and using the mapping relationship between the element corresponding to the offset position and the user identifier of the interactive user who performs the interactive task as the second mapping relationship.

[0021] Optionally, a device for processing interactive data is used to analyze the user execution status of interactive tasks in an interactive scenario based on one or more interactive data, including: for a piece of interactive data, obtaining a set time range corresponding to the interactive data; based on a mapping relationship between a user identifier of an interactive user and an element of an interactive status array, from a piece of data, for each interactive task within the set time range, counting the task execution status corresponding to each user identifier that executes the interactive task; and analyzing the user execution status of each interactive task in the interactive scenario according to the statistical value of the task execution status corresponding to each user identifier.

[0022] To achieve the above-mentioned purpose, according to the third aspect of an embodiment of the present invention, there is provided an electronic device for processing interactive data, characterized in that it comprises: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described in the above-mentioned methods for processing interactive data.

[0023] To achieve the above-mentioned purpose, according to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, any method as described in the above-mentioned method for processing interactive data is implemented.

[0024] To achieve the above-mentioned purpose, according to a fifth aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, characterized in that when the computer program is executed by a processor, any of the above-mentioned methods for processing interactive data is implemented.

[0025] An embodiment of the above invention has the following advantages or beneficial effects: being able to construct an interactive state array for an interactive scene, using the interactive state array to store the task execution status of each interactive task performed by each interactive user in the interactive scene; wherein the data type of the task execution status is binary; forming a piece of interactive data of the interactive scene according to the interactive state array according to a set time range; and analyzing the user execution status of each interactive task in the interactive scene based on one or more pieces of interactive data. The embodiment of the present invention constructs an array for storing binary data for the interactive scene, and for each interactive scene within a set time range, only one piece of binary interactive data is needed to indicate the task execution status of all interactive users for all interactive tasks, thereby greatly reducing the amount of stored data of the task execution status, reducing the consumption of storage resources, and improving the efficiency of querying the task execution status data.

[0026] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0028] Figure 1 is a flow chart of a method for processing interactive data provided by an embodiment of the present invention;

[0029] FIG2 is a schematic diagram of the structure of an interactive state array provided by an embodiment of the present invention;

[0030] Figure 3is a schematic diagram of a structure of interactive data provided by an embodiment of the present invention;

[0031] Figure 4 is a structural diagram of a device for processing interactive data provided by an embodiment of the present invention;

[0032] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0033] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0035] In the technical solution of the present invention, the collection, use, storage, sharing and transfer of user personal information involved are in compliance with the provisions of relevant laws and regulations, and it is necessary to inform the user and obtain the user's consent or authorization. When applicable, the user's personal information is de-identified and / or anonymized and / or encrypted. After collecting user information, we will de-identify the data through technical means.

[0036] The interactive scenario can be a user community built for users in the application. Different types of applications can improve the frequency of user usage of the application by building one or more user communities for users, increasing user activity and increasing user stickiness. In order to increase user activity and usage frequency, the application can publish a variety of interactive tasks for each interactive user in the user group, such as: signing in, step counting, and receiving coupons for completing tasks. Through interactive tasks, the frequency of user usage of the application is increased, while the user experience is improved.

[0037] Usually an interactive scene (user community) contains multiple interactive users who join the community. In the existing method, the task status of each interactive user in each interactive scene is stored in the database in the form of a record. With the increase in the number of user communities and interactive users, the amount of data may grow exponentially, consuming a large amount of storage resources. For example, in the case of 10,000 communities, each community has 10 tasks, and each user community contains 5,000 users, the amount of data for one day will reach 500 million data records if the user task status is recorded once a day. If the user task status needs to be recorded every day for multiple consecutive days (such as a year, a month, etc.), the amount of data will increase significantly, thereby bringing greater storage pressure. The user tasks in the embodiment of the present application can be, for example, check-in / consecutive check-in tasks in the APP, speech and discussion tasks to promote activity; there are also marketing activities to participate in activities; promotion of retention tasks such as visiting circles, watching videos, and watching live broadcasts; conversion tasks such as visiting venues, asking doctors, and placing orders, but are not limited to this.

[0038] In view of this, if Figure 1 As shown, an embodiment of the present invention provides a method for processing interactive data, which may include the following steps:

[0039] Step S101: constructing an interactive state array storing task execution states for an interactive scene, wherein the interactive scene includes a plurality of interactive users and a plurality of interactive tasks.

[0040] Step S102: using an interactive state array to store the task execution state of each interactive task performed by each interactive user; wherein the data type of the task execution state is binary.

[0041] Specifically, a corresponding interactive state array is constructed for each interactive scene (user community), and the interactive state array is used to store the task execution status of all users of all interactive tasks. In an embodiment of the present invention, the data type of the task execution status is binary (bitmap), that is, the task execution status of each interactive user is represented by "1" or "0" in the interactive state array, for example, "1" represents a completed task, and "0" represents an uncompleted task. Further, the task execution status of all users of all tasks in the interactive scene can be stored through the interactive state array. That is, the task execution status of each interactive user for each interactive task can be stored in the interactive state array with a binary data type, so that within a set time range (for example, one day), only one binary data is needed to store the task execution status of all interactive users for all interactive tasks, which greatly reduces the amount of task status data and saves storage resources. Among them, the array is a set of elements stored in a continuous space and having the same data type; each variable constituting the array is an element of the array, and the digital number used to distinguish each element of the array is called a subscript.

[0042] Furthermore, when constructing an interactive state array for an interactive scene, it is first necessary to determine the number of elements contained in the interactive state array (i.e., the bitmap capacity). For example: the number of interactive tasks contained in an interactive scene (e.g., user community 1) is 10, and the number of interactive users contained in the interactive scene (e.g., user community 1) is 1000; then the number of elements in the interactive state array of the user community is 10 * 1000 (i.e., the product of the number of tasks and the number of users), and each element in the interactive state array stores binary data "0" or "1" (0 or 1 represents the task execution status). Each element in the interactive state array only needs to store 1 bit of data, i.e., the interactive state array has a bitmap data structure. That is, constructing an interactive state array for storing task execution status for an interactive scene includes: obtaining the number of tasks of multiple interactive tasks in the interactive scene, and the number of users who execute each interactive user; taking the product of the number of tasks and the number of users as the number of elements contained in the interactive state array, and constructing an interactive state array containing elements of the number of elements, wherein the elements of the number of elements are used to store the execution status of each task of the interactive scene.

[0043] It can be seen that the interaction status array of the embodiment of the present invention, for a certain interaction scenario, for example: recording the task execution status of all users of all interactive tasks once a day, then forms a binary data every day according to the element value (1 or 0) of each element stored in the interaction status array, thereby reducing the number of data records and reducing the number of each data piece through binary values, thereby greatly reducing the amount of stored data and the consumption of storage resources, and due to the reduction in the amount of stored data, the efficiency of querying task execution status data is improved.

[0044] Furthermore, each element of the array has a unique identifier, which is usually identified by an array subscript. Any array element in the array can be located through the array subscript to obtain the element value stored in the array element; after constructing the number of elements in the interaction status array, for each interactive user, the mapping relationship between the user identifier of the interactive user and the element of the interaction status array is determined.

[0045] Specifically, determining the mapping relationship between the user identifier of the interactive user and the elements of the interactive status array includes: determining a first mapping relationship between each interactive task and the element interval of the interactive status array, and determining a second mapping relationship between the elements in the element interval corresponding to each interactive task and the user identifier of the interactive user who performs the interactive task; combining the first mapping relationship and the second mapping relationship to determine the mapping relationship between the user identifier of the interactive user and the elements of the interactive status array.

[0046] Specifically, the elements of the interactive state array are used to store the task execution status of all interactive tasks in a certain interactive scene. For example, interactive scene 1 includes 10 interactive tasks, and interactive scene 1 includes 1,000 interactive users. Any one or more of the 1,000 interactive users may execute one or more of the 10 interactive tasks. Therefore, within the element interval of the data corresponding to different interactive tasks, the elements of a certain interactive user in the element interval of the interactive task for the interactive task are further determined. That is, first determine the first mapping relationship between the interactive task identifier and the element interval of the interactive state array, and then determine the second mapping relationship between the user identifier of the interactive user and the elements in each element interval.

[0047] Furthermore, determining a first mapping relationship between elements of the interaction state array and interaction tasks includes: obtaining the number of users executing each interactive user in the interaction scene; based on the elements of the interaction state array, dividing an element interval containing elements of the number of users for each interaction task; wherein a plurality of element intervals are continuous storage spaces; and using a mapping relationship between a task identifier of each interaction task and a corresponding element interval as a first mapping relationship between each interaction task and an element of the interaction state array.

[0048] like Figure 2 As shown in the structural diagram of the interaction state array, it contains 10 element intervals (element intervals 1 to 10), and the element intervals correspond to interactive tasks (task 1 to task 10), that is, element intervals are constructed for each task. It can be understood that the number of users performing different interactive tasks can be different. For the convenience of explanation, the number of interactive users in the interactive scene (for example, 1000) is used as the number of users performing each interactive task.

[0049] like Figure 2 As shown, multiple element intervals are continuous storage spaces, different interactive tasks have task identifiers, and the task identifiers correspond to the element intervals formed by the element subscripts of the interactive status array one by one. For example, the element interval corresponding to task 1 (i.e., the task identifier) ​​is subscript 1~1000, and the element interval corresponding to task 2 is subscript 1001~2000, etc.

[0050] In an embodiment of the present invention, the formula for calculating the range of the element interval of each interactive task is shown in formula (1):

[0051] 1 + M * (T - 1) ~ M * T (1)

[0052] Wherein, M is the number of interactive users included in the interactive scene, and T is the interactive task identifier (for example, the task number, for example, the task number of task 1 is "1", and the task number of task 2 is "2").

[0053] Furthermore, for any interactive user, the element position of the interactive user in each element interval is determined, so that the task execution status of the interactive user performing the interactive task is stored through the element in the element interval. In an embodiment of the present invention, the formula for calculating the element position of a certain interactive user in each element interval is shown in formula (2):

[0054] User position = starting element position of element interval + U–1 = M*(T-1) + U (2)

[0055] Among them, U represents the user identifier, and the user identifier is represented by a digital number, for example. A mapping table between user identifiers (string type identifiers) and user identifiers (digital numbers) can also be constructed. In different interactive tasks, the identifiers (digital numbers) of all interactive users have the same order. For example, the offset position of user 100 in element interval 1 of task 1 is the same as the offset position of user 100 in element interval 2 of task 2, and the offset positions in all element intervals are the same, so as to improve the query efficiency of locating a certain interactive user in the subsequent analysis of the user task execution status, and analyze the execution status of a specific user based on the binary data (1 or 0) corresponding to the task execution status of any interactive user; the starting element position of the element interval is, for example, "1", "1001", "2001", etc., which can be calculated by "M*(T-1)", where M is the number of interactive users included in the interactive scene, T is the interactive task number, and "U-1" is the offset position of the element corresponding to the user identifier in the element interval.

[0056] Further, the element position of a certain interactive user in each element interval is determined, that is, the mapping relationship between the user identification of the interactive user and multiple elements in the interactive state array (i.e., the second mapping relationship) is determined, so that based on the second mapping relationship, the task execution status of the interactive user can be determined as 1 (executed) or 0 (not executed) through the element value (0 or 1) of the element in the interactive state array. That is, the second mapping relationship between the elements in the element interval corresponding to each interactive task and the user identification of the interactive user who performs the interactive task is determined, including: for each interactive task, obtaining the starting element position of the element interval of the interactive task, based on the starting element position, determining the offset position of the element corresponding to each user identification who performs the interactive task in the element interval; and taking the mapping relationship between the element corresponding to the offset position and the user identification of the interactive user who performs the interactive task as the second mapping relationship.

[0057] By determining the first mapping relationship and the second mapping relationship, the mapping relationship between the user identifier and the elements of the interaction status array can be determined, that is, before using the interaction status array to store the task execution status of each interactive user performing each interactive task, it includes: for each interactive user, determining the mapping relationship between the user identifier of the interactive user and the elements of the interaction status array; according to the mapping relationship, storing the task execution status of the user identifier in the elements of the interaction status array.

[0058] Step S103: according to the set time range, based on the task execution status stored in the interaction status array, form a piece of interaction data of the interaction scene within the set time range; based on one or more pieces of interaction data, analyze the user execution status of the interaction task in the interaction scene.

[0059] Specifically, after determining the mapping relationship between the elements of the interaction status array and each interaction task and the user identifier indicated by the interactive user, according to the set time range, based on the mapping relationship and the task execution status stored in the interaction status array, an interaction data of the interaction scene within the set time range is formed, wherein the set time range can be days, hours, etc. The set time range can be set according to the granularity of the time dimension that needs to be analyzed and counted for the interaction task. The present invention does not limit the specific value of the set time range.

[0060] Figure 3 A schematic diagram of task execution status stored in an interactive state array with a set time range of days is shown. The set time range is taken as an example. Figure 3As shown, for the interactive user identified as "User 100" (i.e., user number 100) in the interactive scenario, the task execution status for Task 1 on "Day N" is "0", the task execution status for Task 2 is "0", and the task execution status for Task 10 is "1"; similarly, for the interactive user identified as "User 100", the task execution status for Task 1 on "Day N+1" is "1", the task execution status for Task 2 is "0", and the task execution status for Task 10 is "0".

[0061] like Figure 3 As shown, for the "Nth day", the task execution status of each interactive user for each interactive task (eg, task 1 to task 10) may be stored; similarly, the task execution status of the "N+1th day" may be stored.

[0062] Furthermore, the task execution status of all interactive users within each set time range of each interactive scene is a record; further, the task completion status of a certain interactive user for one or more interactive tasks is extracted from the binary value of a record (i.e., a binary interactive data); by counting the task completion status of a certain interactive user for one or more interactive tasks (e.g., calculating the statistical value of completed tasks), other operations for the interactive user (e.g., displaying the check-in task ranking, task rewards, etc.) can be triggered; for a certain interactive task, the number of interactive users who have completed the interactive task (i.e., the user number statistical value), the proportion of the number of completed interactive users to the total number of interactive users (statistical value), etc. can be counted, or the number of interactive users who have completed the interactive task for each interactive task in the interactive scene (i.e., the user number statistical value) can be counted to horizontally analyze the user execution status of each interactive task; further, the task execution status corresponding to the user identifier within multiple set time ranges is obtained; in the time range dimension, the user status of interactive users of different interactive tasks in the interactive scene is compared and analyzed. That is, based on one or more pieces of interactive data, the user execution status of interactive tasks in the interactive scenario is analyzed, including: for one piece of interactive data, obtaining a set time range corresponding to the interactive data; based on the mapping relationship between the user identifier of the interactive user and the elements of the interactive status array, from one piece of data, for each interactive task within the set time range, counting the task execution status corresponding to each user identifier that executes the interactive task; according to the statistical value of the task execution status corresponding to each user identifier, analyzing the user execution status of each interactive task in the interactive scenario.

[0063] The embodiment of the present invention constructs an array for storing binary data for an interactive scene. For each set time range, only one piece of interactive data (binary data) is needed to include the task execution status of all interactive users in an interactive scene for all interactive tasks, thereby greatly reducing the amount of stored data of the task execution status, reducing the consumption of storage resources, and improving the efficiency of querying the task execution status data.

[0064] like Figure 4 As shown, the embodiment of the present invention provides a device 400 for processing interactive data, including: an array construction module 401, a storage state module 402 and a data analysis module 403; wherein,

[0065] An array construction module 401 is used to construct an interactive state array storing task execution states for an interactive scene, wherein the interactive scene includes multiple interactive users and multiple interactive tasks;

[0066] The storage status module 402 is used to store the task execution status of each interactive task performed by each interactive user using the interactive status array; wherein the data type of the task execution status is binary;

[0067] The data analysis module 403 is used to form an interactive data of the interactive scene within the set time range according to the task execution status stored in the interactive state array; based on one or more interactive data, analyze the user execution status of the interactive task in the interactive scene.

[0068] An embodiment of the present invention also provides an electronic device for processing interactive data, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in any of the above embodiments.

[0069] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method for processing interactive data provided by any of the above embodiments is implemented.

[0070] An embodiment of the present invention further provides a computer program product, including a computer program, which implements any of the above-mentioned methods for processing interactive data when executed by a processor.

[0071] Figure 5 An exemplary system architecture 500 is shown to which the method for processing interactive data or the apparatus for processing interactive data according to the embodiments of the present invention can be applied.

[0072] like Figure 5As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0073] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various client applications can be installed on terminal devices 501, 502, 503, such as electronic mall client applications, web browser applications, search applications, instant messaging tools, etc.

[0074] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting various client applications, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0075] The server 505 may be a server that provides various services, such as a background management server that provides support for client applications used by users using the terminal devices 501, 502, and 503. The background management server receives a request to analyze the user execution status of an interactive task in an interactive scene or receives a request to query the task execution status of a certain interactive user, queries the user's task execution status from the interactive status array, and feeds back the statistical results obtained by counting multiple task execution statuses as the user execution status to the terminal device.

[0076] It should be noted that the method for processing interactive data provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the device for processing interactive data is generally disposed in the server 505 .

[0077] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0078] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0079] like Figure 6As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0080] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0081] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0082] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0083] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0084] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be provided in a processor, for example, they may be described as: a processor including an array construction module, a state storage module, and a data analysis module. The names of these modules do not, in some cases, constitute limitations on the modules themselves, for example, the array construction module may also be described as a "module for constructing an interactive state array for storing task execution states for interactive scenarios."

[0085] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: constructing an interactive state array for storing task execution status for an interactive scene, wherein the interactive scene includes multiple interactive users and multiple interactive tasks; using the interactive state array to store the task execution status of each interactive user performing each interactive task; wherein the data type of the task execution status is binary; according to a set time range, according to the task execution status stored in the interactive state array, forming an interactive data of the interactive scene within the set time range; based on the one or more interactive data, analyzing the user execution of multiple interactive tasks in the interactive scene.

[0086] The embodiments of the present invention can construct an interactive state array for an interactive scene, and use the interactive state array to store the task execution state of each interactive task performed by each interactive user in the interactive scene; wherein the data type of the task execution state is binary; according to a set time range, a piece of interactive data of the interactive scene is formed according to the interactive state array; based on one or more pieces of interactive data, the user execution status of each interactive task in the interactive scene is analyzed. The embodiments of the present invention construct an array for storing binary data for the interactive scene, and for each set time range, only one piece of interactive data is needed to include the task execution state of all interactive users for all interactive tasks, thereby greatly reducing the amount of stored data of the task execution state, reducing the consumption of storage resources, and improving the efficiency of querying the task execution state data.

[0087] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for processing interactive data, characterized in that: include: Constructing an interactive state array storing task execution states for an interactive scene, wherein the interactive scene includes a plurality of interactive users and a plurality of interactive tasks; The interactive state array is used to store the task execution state of each interactive task performed by each interactive user; wherein the data type of the task execution state is binary; According to the set time range, and based on the task execution status stored in the interaction status array, forming a piece of interaction data of the interaction scene within the set time range; Based on one or more pieces of interaction data, user execution status of the plurality of interaction tasks in the interaction scenario is analyzed.

2. The method according to claim 1, characterized in that The interactive state array for storing the task execution state for the interactive scene is constructed, including: Get the number of tasks for multiple interactive tasks in the interactive scenario, and the number of users who execute each interactive user; The product of the number of tasks and the number of users is used as the number of elements included in the interaction state array, and the interaction state array containing the elements of the number of elements is constructed.

3. The method according to claim 1, characterized in that Before using the interaction status array to store the task execution status of each interactive task performed by each interactive user, the method includes: For each of the interactive users, determining a mapping relationship between a user identifier of the interactive user and an element of the interactive status array; According to the mapping relationship, the task execution status of the user identifier is stored in the element of the interaction status array.

4. The method according to claim 3, characterized in that The determining of the mapping relationship between the user identification of the interactive user and the elements of the interaction status array includes: Determine a first mapping relationship between each of the interactive tasks and an element interval of the interactive state array, and determine a second mapping relationship between an element in the element interval corresponding to each of the interactive tasks and a user identifier of an interactive user who performs the interactive task; The mapping relationship between the user identification of the interactive user and the elements of the interaction status array is determined in combination with the first mapping relationship and the second mapping relationship.

5. The method according to claim 4, characterized in that The determining of a first mapping relationship between elements of the interaction state array and interaction tasks includes: Get the number of users who perform each interactive task in the interactive scene; Based on the elements of the interaction state array, an element interval containing elements of the number of users is divided for each interaction task; wherein the multiple element intervals are continuous storage spaces; The mapping relationship between the task identifier of each interactive task and the corresponding element interval is used as the first mapping relationship between each interactive task and the element of the interactive state array.

6. The method according to claim 4, characterized in that The determining of a second mapping relationship between an element in an element interval corresponding to each interactive task and a user identifier of an interactive user who performs the interactive task includes: For each interactive task, the starting element position of the element interval of the interactive task is obtained, and based on the starting element position, the offset position of the element corresponding to each user identifier performing the interactive task in the element interval is determined; and the mapping relationship between the element corresponding to the offset position and the user identifier of the interactive user performing the interactive task is used as the second mapping relationship.

7. The method according to claim 3, characterized in that The analyzing the user execution of the interactive task in the interactive scenario based on one or more pieces of interactive data includes: For a piece of the interaction data, obtaining a set time range corresponding to the interaction data; Based on the mapping relationship between the user identification of the interactive user and the elements of the interaction status array, From the piece of data, for each interactive task within the set time range, statistics are obtained on the task execution status corresponding to each user identifier that executes the interactive task; The user execution status of each of the interactive tasks in the interactive scene is analyzed according to the statistical value of the task execution status corresponding to each user identification.

8. A device for processing interactive data, characterized in that: include: Construct array module, storage status module and analysis data module; among them, The array building module is used to build an interactive state array storing task execution states for an interactive scene, wherein the interactive scene includes multiple interactive users and multiple interactive tasks; The storage status module is used to store the task execution status of each interactive task performed by each interactive user using the interactive status array; wherein the data type of the task execution status is binary; The data analysis module is used to form an interactive data of the interactive scene within the set time range according to the task execution status stored in the interactive state array; based on one or more interactive data, analyze the user execution status of the interactive task in the interactive scene.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

11. A computer program product, comprising a computer program, characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.