Data processing methods, apparatus, storage media and electronic equipment

By building a relationship table between the time period, data type and scenario category of the terminal's data usage data, the accuracy of end user data analysis in the prior art is solved, the accuracy of feature extraction is improved, and the specific time period and Data feature extraction in the scenario.

CN111797071BActive Publication Date: 2024-11-05GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910282435.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-09
Publication Date
2024-11-05
Estimated Expiration
2039-04-09

AI Technical Summary

Technical Problem

The prior art is difficult to accurately analyze the data characteristics of end users in specific time periods and scenarios, resulting in low accuracy of analysis conclusions.

Method used

By obtaining terminal usage data for multiple time periods, a relationship table between time periods and data types is constructed, and combined with scenario categories, a trinity relationship table between data types, time periods and scenario categories is formed to realize the use of data for terminals. Analysis of time characteristics and feature extraction.

Benefits of technology

It improves the accuracy of data feature extraction, can extract data features in specific time periods and scenarios in a targeted manner, and enhances the accuracy of data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111797071B_ABST
    Figure CN111797071B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a data processing method, device, storage medium and electronic device, wherein the embodiments of the present application can obtain terminal usage data of multiple time periods for statistics, construct a first relationship table between the time periods and the data types of the terminal usage data, obtain the scenario categories corresponding to the time periods, and in combination with the first relationship table, can construct a second relationship table between the time periods, scenario categories and the data types of the terminal usage data. Through this scheme, a three-in-one relationship table between the data types, time periods and scenario categories of the terminal usage data is formed, and the time characteristics of the terminal usage data are analyzed. When extracting features from data in a specific time period, the data features in the specific time period and specific scenario can be accurately extracted according to the second relationship table, thereby improving the accuracy of data feature extraction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device, storage medium and electronic device. Background Art

[0002] As a terminal manufacturer, you often need to analyze the behavior habits and status of terminal users in specific scenarios, so you need to collect terminal user data for analysis. For example, to analyze the rules and trends of user data in conference scenarios, you need to obtain the usage data of user terminals in conference scenarios and extract features from them for analysis.

[0003] However, the general feature extraction method is to extract all types of terminal usage data for analysis for all scenario categories and all time periods. In fact, users have obvious time characteristics when using terminal devices, and the data types used in different time periods are different. In addition, the corresponding scenario categories are also different in different time periods. In summary, the current analysis of the time characteristics of terminal usage data is very scarce, which makes it difficult to accurately extract data features in specific time periods and specific scenarios, resulting in low accuracy of analysis conclusions. Summary of the invention

[0004] The embodiments of the present application provide a data processing method, device, storage medium and electronic device, which can analyze the time characteristics of terminal usage data, thereby improving the accuracy of data feature extraction.

[0005] In a first aspect, an embodiment of the present application provides a data processing method, comprising:

[0006] Acquire terminal usage data of multiple time periods, wherein the terminal usage data includes multiple data types;

[0007] Collecting statistics on the terminal usage data in the multiple time periods, and constructing a first relationship table between the time periods and the data types of the terminal usage data according to the statistical results;

[0008] Obtaining scenario categories corresponding to the multiple time periods;

[0009] A second relationship table between time periods, scenario categories and data types of the terminal usage data is constructed according to the scenario categories corresponding to the multiple time periods and the first relationship table.

[0010] In a second aspect, an embodiment of the present application provides a data processing device, including:

[0011] A data acquisition module, used to acquire terminal usage data of multiple time periods, wherein the terminal usage data includes multiple data types;

[0012] A first association analysis module, configured to collect statistics on the terminal usage data in the plurality of time periods, and construct a first relationship table between the time periods and the data types of the terminal usage data according to the statistical results;

[0013] A category acquisition module, used to acquire the scenario categories corresponding to the multiple time periods;

[0014] The second association analysis module is used to construct a second relationship table between time periods, scenario categories and data types of the terminal usage data based on the scenario categories corresponding to the multiple time periods and the first relationship table.

[0015] In a third aspect, the storage medium provided in the embodiments of the present application stores a computer program thereon, and when the computer program runs on a computer, the computer executes a data processing method provided in any embodiment of the present application.

[0016] In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory has a computer program, and the processor executes a data processing method provided in any embodiment of the present application by calling the computer program.

[0017] The technical solution provided by the embodiment of the present application obtains terminal usage data of multiple time periods, and performs statistics on the terminal usage data of the multiple time periods, and constructs a first relationship table between the time period and the data type of the terminal usage data based on the statistical results, wherein the terminal usage data includes multiple data types. Next, the scenario category corresponding to the time period is obtained, and based on the first relationship table between the time period and the data type of the terminal usage data, a second relationship table between the time period, the scenario category and the data type of the terminal usage data can be constructed. Through this solution, not only can the time characteristics of the terminal usage data be mined and the correlation between the data type of the terminal usage data and the time period be found, but also the scenario category can be further combined to form a three-in-one relationship table between the data type of the terminal usage data, the time period and the scenario category, so as to realize the analysis of the time characteristics of the terminal usage data. When extracting features from the data of a specific time period, the data features under the specific time period and specific scenario can be extracted in a targeted manner based on the second relationship table, thereby improving the accuracy of data feature extraction. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A schematic diagram of a panoramic perception architecture of a data processing method provided in an embodiment of the present application.

[0020] Figure 2 A first flow chart of a data processing method provided in an embodiment of the present application.

[0021] Figure 3 A second flow chart of the data processing method provided in an embodiment of the present application.

[0022] Figure 4 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application.

[0023] Figure 5 A first structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0024] Figure 6 A second structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0026] refer to Figure 1 , Figure 1 A schematic diagram of a panoramic perception architecture of a data processing method provided in an embodiment of the present application. The data processing method is applied to an electronic device. The electronic device is provided with a panoramic perception architecture. The panoramic perception architecture is an integration of hardware and software used in the electronic device to implement the data processing method.

[0027] Among them, the panoramic perception architecture includes information perception layer, data processing layer, feature extraction layer, scenario modeling layer and intelligent service layer.

[0028] The information perception layer is used to obtain information about the electronic device itself or information in the external environment. The information perception layer may include multiple sensors. For example, the information perception layer includes multiple sensors such as distance sensors, magnetic field sensors, light sensors, acceleration sensors, fingerprint sensors, Hall sensors, position sensors, gyroscopes, inertial sensors, attitude sensors, barometers, heart rate sensors, etc.

[0029] Among them, the distance sensor can be used to detect the distance between the electronic device and the external object. The magnetic field sensor can be used to detect the magnetic field information of the environment in which the electronic device is located. The light sensor can be used to detect the light information of the environment in which the electronic device is located. The acceleration sensor can be used to detect the acceleration data of the electronic device. The fingerprint sensor can be used to collect the fingerprint information of the user. The Hall sensor is a magnetic field sensor made according to the Hall effect, which can be used to realize the automatic control of the electronic device. The position sensor can be used to detect the current geographical location of the electronic device. The gyroscope can be used to detect the angular velocity of the electronic device in all directions. The inertial sensor can be used to detect the motion data of the electronic device. The attitude sensor can be used to sense the attitude information of the electronic device. The barometer can be used to detect the air pressure of the environment in which the electronic device is located. The heart rate sensor can be used to detect the heart rate information of the user.

[0030] The data processing layer is used to process the data obtained by the information perception layer. For example, the data processing layer can perform data cleaning, data integration, data transformation, data reduction, etc. on the data obtained by the information perception layer.

[0031] Among them, data cleaning refers to cleaning the large amount of data obtained by the information perception layer to eliminate invalid data and duplicate data. Data integration refers to integrating multiple single-dimensional data obtained by the information perception layer into a higher or more abstract dimension to comprehensively process multiple single-dimensional data. Data transformation refers to converting the data type or format of the data obtained by the information perception layer so that the transformed data meets the processing requirements. Data reduction refers to maximizing the reduction of data volume while keeping the original appearance of the data as much as possible.

[0032] The feature extraction layer is used to extract features from the data processed by the data processing layer to extract features included in the data. The extracted features can reflect the state of the electronic device itself, the state of the user, or the environmental state of the environment in which the electronic device is located.

[0033] Among them, the feature extraction layer can extract features or process the extracted features through filtering, packaging, integration and other methods.

[0034] The filtering method refers to filtering the extracted features to delete redundant feature data. The packaging method is used to screen the extracted features. The integration method refers to integrating multiple feature extraction methods together to build a more efficient and accurate feature extraction method for extracting features.

[0035] The scenario modeling layer is used to construct a model based on the features extracted by the feature extraction layer, and the obtained model can be used to represent the state of the electronic device, the state of the user, or the state of the environment, etc. For example, the scenario modeling layer can construct a key value model, a pattern identification model, a graph model, an entity relationship model, an object-oriented model, etc. based on the features extracted by the feature extraction layer.

[0036] The intelligent service layer is used to provide intelligent services to users based on the model constructed by the scenario modeling layer. For example, the intelligent service layer can provide basic application services to users, perform system intelligent optimization for electronic devices, and provide personalized intelligent services to users.

[0037] In addition, the panoramic perception architecture may also include multiple algorithms, each of which can be used to analyze and process data, and the multiple algorithms may constitute an algorithm library. For example, the algorithm library may include Markov algorithm, invisible Dirichlet distribution algorithm, Bayesian classification algorithm, support vector machine, K-means clustering algorithm, K-nearest neighbor algorithm, conditional random field, residual network, long short-term memory network, convolutional neural network, recurrent neural network and other algorithms.

[0038] Based on the above-mentioned panoramic perception architecture, the electronic device collects the terminal usage data of the target user through the information perception layer and / or other methods. The data processing layer processes the terminal usage data, for example, data cleaning and data integration are performed on the acquired terminal usage data. Next, the feature extraction layer processes the terminal usage data according to the feature extraction scheme provided in the embodiment of the present application, for example, the terminal usage data of multiple time periods are obtained, and the terminal usage data of these multiple time periods are counted, and a first relationship table between the time period and the data type of the terminal usage data is constructed according to the statistical results, wherein the terminal usage data includes multiple data types. Next, the scenario category corresponding to the time period is obtained, and according to the first relationship table between the time period and the data type of the terminal usage data, a second relationship table between the time period, the scenario category and the data type of the terminal usage data can be constructed. Through this solution, not only can the time characteristics of terminal usage data be mined and the correlation between the data type and time period of the terminal usage data be discovered, but the scenario categories can also be further combined to form a three-in-one relationship table between the data type, time period and scenario category of the terminal usage data, thereby realizing the analysis of the time characteristics of the terminal usage data. When extracting features from data in a specific time period, the data features in a specific time period and a specific scenario can be extracted in a targeted manner based on the second relationship table, thereby improving the accuracy of data feature extraction.

[0039] The embodiment of the present application provides a data processing method, and the execution subject of the data processing method can be a data processing device provided in the embodiment of the present application, or an electronic device integrating the data processing device, wherein the data processing device can be implemented in hardware or software. Among them, the electronic device can be a smart phone, a tablet computer, a PDA, a laptop computer, or a desktop computer.

[0040] Please refer to Figure 2 , Figure 2 This is a schematic diagram of the first flow chart of the data processing method provided in the embodiment of the present application. The specific flow chart of the data processing method provided in the embodiment of the present application can be as follows:

[0041] Step 101: Acquire terminal usage data of multiple time periods, wherein the terminal usage data includes multiple data types.

[0042] In the embodiment of the present application, the terminal usage data is generated based on the user's use of the smart terminal, such as an electronic device. For example, the terminal usage data mainly includes the following three categories: environmental data, user behavior data and terminal operation data. Among them, each category of data includes multiple data types, for example, environmental data includes data types such as temperature and light; user behavior data may include: the time, location and frequency of opening the application; terminal operation data may include: the operation status of the terminal, such as the switch status of the mobile data network, the connection status of the wireless hotspot, the identity information of the connected wireless hotspot, the currently running application, the last foreground application, the length of time the current application stays in the background, the time when the current application was last switched to the background, the plug-in status of the headphone jack, the charging status, the battery power information and the screen display time and other data types. The terminal usage data may further include data collected by sensors integrated in the terminal, such as a combination of one or more of a motion sensor, a light sensor, a temperature sensor and a humidity sensor.

[0043] In addition, in the embodiment of the present application, the continuous time is divided into multiple time periods, and the terminal usage data is collected according to the time periods. The acquired terminal usage data is stored in a preset database, for example, MySQL is used to construct a terminal usage database in advance, and the acquired terminal usage data is stored in the database.

[0044] There are many ways to divide the time periods. For example, in some embodiments, the time periods can be divided manually, such as every hour as a time period. Assuming that a day (24 hours) is a time interval, a day can be divided into 24 time periods. Alternatively, every half hour is a time period, so a day is divided into 48 time periods.

[0045] Alternatively, in other embodiments, the time periods may be divided based on information entropy. Specifically, before the step of acquiring terminal usage data of multiple time periods, the method further includes: dividing the preset time interval into multiple time periods.

[0046] The step of dividing the preset time interval into a plurality of time periods comprises:

[0047] Calculating the total information entropy of the preset time interval according to the terminal usage data within the preset time interval;

[0048] According to each time division point in the preset value range, the time interval is divided into two time periods, and the weighted average information entropy of the two divided time periods is calculated;

[0049] Determine the time segmentation point at which the difference between the weighted average information entropy and the total information entropy is the largest;

[0050] Dividing the time interval into a first time period and a second time period according to the time division point;

[0051] The first time period and the second time period are taken as a new time interval, and the above steps are repeatedly performed until the number of segments of the time interval is greater than a third preset threshold.

[0052] The total information entropy of a time interval can be calculated using any type of data in the terminal usage data, for example, the startup data of the target application is obtained from the terminal usage data; the total information entropy of the preset time interval is calculated based on the startup data. For example, the WeChat APP is used as the target application, and the startup data of the WeChat APP is the number of startups.

[0053] Assuming 10 minutes is a time unit, there are a total of 144 time units in 24 hours. The number of times the WeChat APP is opened in each ten-minute period is counted. t , where t represents the tth ten minutes.

[0054] Based on the number of times the WeChat APP is opened, calculate the probability within the tth ten minutes:

[0055] Next, the time interval is divided into multiple time periods based on the information entropy of time:

[0056] a. Calculate the total information entropy of the entire time interval: Where T=144.

[0057] b. Assume that the time interval is segmented at the xth point, and the value range of x is [2, 143]. Taking the segmentation at the 10th point as an example, the time interval can be divided into two parts: 1 to 10 and 11 to 144. Next, the weighted average information entropy of the two time periods [1, 10] and [11, 144] after segmentation is calculated:

[0058] c. Calculate the difference between the weighted average information entropy and the information entropy: ΔE(10)=Ent([1, T])-Ent([1, T]; 10).

[0059] d. Repeat steps b and c. Since the range of x in step b is [2, 143], each x can get a ΔE(x). Select the largest ΔE(x) and use the corresponding x as the time segmentation point. Assuming that when x is 20, ΔE is the largest, then the time segmentation point is 20, and the time interval is divided into two time segments [1, 20] and [21, 144].

[0060] After step d, two time periods can be obtained: [1, x] and [x+1, 144]. Repeat steps a to d for the two divided time periods until the number of segments of the time interval reaches a third preset threshold, such as 24, and then stop iterating. Assuming that the third preset threshold is 20, the 24-hour time interval can be divided into 20 time periods.

[0061] Step 102: Count the terminal usage data in the multiple time periods, and construct a first relationship table between the time periods and the data types of the terminal usage data according to the statistical results.

[0062] After obtaining the terminal usage data for each time period, the data type associated with each time period is then found from all data types.

[0063] Reference Figure 3 As shown, Figure 3 A second flow chart of the data processing method provided in the embodiment of the present application. In some embodiments, step 102, statistics are collected on the terminal usage data of the multiple time periods, and a first relationship table between the time periods and the data types of the terminal usage data is constructed based on the statistical results, including:

[0064] Step 1021: Count the usage frequency of each data type in each time period according to the terminal usage data;

[0065] Step 1022: The data type whose usage frequency in a time period is greater than a first preset threshold is used as the associated data type in the time period, and the usage frequency is used as the corresponding association degree;

[0066] Step 1023: construct a first relationship table between time periods and data types of terminal usage data according to the data type and the degree of association associated with each time period.

[0067] Due to the changes in the data types used by users in different time periods, for example, the frequency of use of payment apps in the time periods corresponding to breakfast, lunch and dinner is significantly higher than in other time periods. For another example, GPS data may only be turned on in the morning or evening when users go to and from get off work, and will not be turned on or rarely turned on in other time periods. The terminal usage data can be counted based on the usage frequency of each data type. From all the terminal usage data, the usage frequency corresponding to each data type in each of the time periods is counted. If the usage frequency of terminal usage data of a certain data type in a time period is greater than the first preset threshold, it is determined that the data type is associated with the time period, otherwise, it is determined that the data type is not related to the time period. In this way, when analyzing the data of the time period, only the terminal usage data of the data type associated with the time period can be collected, ignoring those irrelevant data types, so as to reduce the scale of collected data and make the collected data targeted. Among them, the first preset threshold can be pre-set according to actual conditions.

[0068] Among them, the usage frequency can be used as the correlation of the data type. After determining the data type and correlation degree associated with each time period, a first relationship table is constructed according to the data type and correlation degree associated with each time period. The first relationship table contains the data type associated with each time period and the correlation degree of the associated data type. When storing, the first relationship table can be stored in the form of a table or in the form of data pairs, for example, stored as <t i , d(t i )>, where i∈(1,n), a complete time interval can be divided into n consecutive time periods, t i represents the ith time period among the continuous n time periods, d(t i ) indicates t i The data type associated with the time period and its degree of association.

[0069] Step 103: Obtain scenario categories corresponding to the multiple time periods.

[0070] Next, determine the scenario category for each time period. Since the solution of the present application can be used to analyze the user's historical terminal usage data. Therefore, the scenario category corresponding to each time period can be determined based on the scenario category sequence corresponding to the time interval. Among them, the scenario category refers to the category of the scene in which the terminal user is located. The scenario category needs to be defined in advance and determined based on the user's use of the electronic device. For example, the scenario category may include office, running, eating, traveling, playing games, watching movies, paying, fitness, dining, etc. In an embodiment of the present application, the scenario category sequence within the preset time interval is known.

[0071] Step 104: construct a second relationship table between time periods, scenario categories, and data types of the terminal usage data according to the scenario categories corresponding to the multiple time periods and the first relationship table.

[0072] After obtaining the scenario category corresponding to each time period, the relationship between the scenario category, time period, and data type of terminal usage data is learned based on the scenario category and the above-mentioned first relationship table. The data type that has a strong correlation with the time period and the scenario category corresponding to the time period is found from the first relationship table, and a second relationship table is constructed.

[0073] For example, in some embodiments, step 104, constructing a second relationship table between time periods, scenario categories, and data types of the terminal usage data according to the scenario categories corresponding to the multiple time periods and the first relationship table, includes:

[0074] Based on a preset regression algorithm, a regression analysis is performed on the scenario category corresponding to the time period, and the associated data type and the degree of association, to determine the data type associated with both the time period and the scenario category corresponding to the time period;

[0075] According to the time period and the data type associated with the scenario category corresponding to the time period, a second relationship table between the time period, the scenario category and the data type of the terminal usage data is constructed.

[0076] The regression algorithm can be a ridge regression algorithm, a multivariate regression algorithm, a lasso (least absolute shrinkage and selection operator) regression algorithm, etc. Next, taking ridge regression as an example, we will learn the relationship between scenario categories, time periods, and data types of terminal usage data.

[0077] In some embodiments, based on a preset regression algorithm, a regression analysis is performed on the scenario category corresponding to the time period, and the associated data type and the degree of association, and the step of determining the data type associated with both the time period and the scenario category corresponding to the time period includes:

[0078] Taking the correlation degree of the data type associated with the time period as an independent variable and the scenario category corresponding to the time period as a dependent variable, constructing an optimization objective equation of ridge regression;

[0079] Solve the optimization objective equation according to the gradient descent method to obtain a weight vector;

[0080] determining a weight of a data type associated with the time period according to the weight vector;

[0081] The data type with a weight greater than a second preset threshold is used as the data type associated with both the time period and the scenario category corresponding to the time period.

[0082] For example, the preset regression algorithm is the ridge regression algorithm; determine each time period t j After the scenario category is determined, the scenario category is used as the y value of the ridge regression model, that is, the dependent variable. i ) as the x vector of the ridge regression model, i.e., the independent variable. Construct the optimization objective equation of the ridge regression learning model:

[0083] Where W is a weight vector, which represents the weight of each data type, W = (w1, w2, ...w j , ..., w m ), m represents the time period t i The number of data types in w j Represents the weight of the j-th data type among m data types, where j∈(1,m).

[0084] Specifically, the equation can be solved using a gradient descent algorithm to obtain a weight vector W. The time period t can be determined based on the weight vector j The weight of each data type associated.

[0085] For example, if the weight of a data type in the t1 time period is greater than the second preset threshold, it is determined that the data type has a strong correlation with both the t1 time period and the scenario category corresponding to the time period t1, and the data type is retained; if the weight of a data type in the t1 time period is less than or equal to the second preset threshold, the data is discarded. In this way, the data type associated with each time period and the scenario category corresponding to the time period can be found, and then the second relationship table can be generated, where the second relationship table can be expressed as <t i , c i, d′(t i )>, where c i represents the situation category of the time period ti, d′(t i ) indicates that i Time period and context i Both have strongly associated data types.

[0086] Specifically, in another optional implementation, after step 104, constructing a second relationship table between time periods, scenario categories, and data types of the terminal usage data according to the scenario categories corresponding to the multiple time periods and the first relationship table, the method further includes:

[0087] Determining a target time period, and a scenario category for said target time period;

[0088] determining, according to the second relationship table, a data type associated with both the target time period and the scenario category corresponding to the target time period;

[0089] Acquire terminal usage data belonging to the determined data type within the target time period;

[0090] According to a preset feature extraction algorithm, data features are extracted from the acquired terminal usage data as time domain features corresponding to the target time period.

[0091] After obtaining the second relationship table of the trinity between the time period, the scenario category and the data type of the terminal usage data, the data features of a certain time period can be extracted according to the relationship table. For example, to obtain the data features of the target time period, the scenario category of the time period is first determined, and then the data types associated with the time period and the scenario category are searched according to the second relationship table, and the terminal usage data belonging to these data types are obtained. The time domain features are extracted according to the time domain feature extraction method. Taking the acceleration sensor data as an example, the acceleration sensor data sequence within the target time period is statistically analyzed to obtain the peak value, mean value, root mean square value, kurtosis index, waveform factor and other time domain features in the data sequence.

[0092] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.

[0093] As can be seen from the above, the data processing method proposed in the embodiment of the present application can obtain terminal usage data of multiple time periods, and perform statistics on the terminal usage data of these multiple time periods, and construct a first relationship table between the time period and the data type of the terminal usage data based on the statistical results, wherein the terminal usage data includes multiple data types. Next, the scenario category corresponding to the time period is obtained, and according to the first relationship table between the time period and the data type of the terminal usage data, a second relationship table between the time period, the scenario category and the data type of the terminal usage data can be constructed. Through this scheme, not only can the time characteristics of the terminal usage data be mined and the correlation between the data type of the terminal usage data and the time period be found, but also the scenario category can be further combined to form a three-in-one relationship table between the data type, time period and scenario category of the terminal usage data, so as to realize the analysis of the time characteristics of the terminal usage data. When extracting features from the data of a specific time period, the data features under the specific time period and specific scenario can be extracted in a targeted manner according to the second relationship table, thereby improving the accuracy of data feature extraction.

[0094] In one embodiment, a data processing device is also provided. Figure 4 , Figure 4 The data processing device 400 is a schematic diagram of the structure of the data processing device 400 provided in the embodiment of the present application. The data processing device 400 is applied to an electronic device, and the data processing device 400 includes a data acquisition module 401, a first association analysis module 402, a category acquisition module 403 and a second association analysis module 404, as follows:

[0095] The data acquisition module 401 is used to acquire terminal usage data of multiple time periods, wherein the terminal usage data includes multiple data types.

[0096] In the embodiment of the present application, the terminal usage data is generated based on the user's use of the smart terminal, such as an electronic device. For example, the terminal usage data mainly includes the following three categories: environmental data, user behavior data and terminal operation data. Among them, each category of data includes multiple data types, for example, environmental data includes data types such as temperature and light; user behavior data may include: the time, location and frequency of opening the application; terminal operation data may include: the operation status of the terminal, such as the switch status of the mobile data network, the connection status of the wireless hotspot, the identity information of the connected wireless hotspot, the currently running application, the last foreground application, the length of time the current application stays in the background, the time when the current application was last switched to the background, the plug-in status of the headphone jack, the charging status, the battery power information and the screen display time and other data types. The terminal usage data may further include data collected by sensors integrated in the terminal, such as a combination of one or more of a motion sensor, a light sensor, a temperature sensor and a humidity sensor.

[0097] In addition, in the embodiment of the present application, the data acquisition module 401 divides the continuous time into multiple time periods, collects the terminal usage data according to the time periods, and stores the acquired terminal usage data in a preset database, for example, a terminal usage database is pre-built using MySQL, and the acquired terminal usage data is stored in the database.

[0098] There are many ways to divide the time periods. For example, in some embodiments, the time periods can be divided manually, such as every hour as a time period. Assuming that a day (24 hours) is a time interval, a day can be divided into 24 time periods. Alternatively, every half hour is a time period, so a day is divided into 48 time periods.

[0099] Alternatively, in other embodiments, the time period may be divided based on information entropy. Specifically, the device further includes a time period division module, which is used to divide the preset time interval into a plurality of time periods.

[0100] Specifically, the time period division module is also used to: calculate the total information entropy of the preset time interval based on the terminal usage data within the preset time interval; divide the time interval into two time periods according to each time division point in the preset value range, and calculate the weighted average information entropy of the two divided time periods; determine the time division point at which the difference between the weighted average information entropy and the total information entropy is the largest; divide the time interval into a first time period and a second time period according to the time division point; and, use the first time period and the second time period as new time intervals, and repeat the above steps until the number of segments of the time interval is greater than a third preset threshold.

[0101] The total information entropy of a time interval can be calculated using any type of data in the terminal usage data, for example, the startup data of the target application is obtained from the terminal usage data; the total information entropy of the preset time interval is calculated based on the startup data. For example, the WeChat APP is used as the target application, and the startup data of the WeChat APP is the number of startups.

[0102] Assuming 10 minutes is a time unit, there are a total of 144 time units in 24 hours. The number of times the WeChat APP is opened in each ten-minute period is counted. t , where t represents the tth ten minutes.

[0103] Based on the number of times the WeChat APP is opened, calculate the probability within the tth ten minutes:

[0104] Next, the time interval is divided into multiple time periods based on the information entropy of time:

[0105] a. Calculate the total information entropy of the entire time interval: Where T=144.

[0106] b. Assume that the time interval is segmented at the xth point, and the value range of x is [2, 143]. Taking the segmentation at the 10th point as an example, the time interval can be divided into two parts: 1 to 10 and 11 to 144. Next, the weighted average information entropy of the two time periods [1, 10] and [11, 144] after segmentation is calculated:

[0107] c. Calculate the difference between the weighted average information entropy and the information entropy: ΔE(10)=Ent([1, T])-Ent([1, T]; 10).

[0108] d. Repeat steps b and c. Since the range of x in step b is [2, 143], each x can get a ΔE(x). Select the largest ΔE(x) and use the corresponding x as the time segmentation point. Assuming that when x is 20, ΔE is the largest, then the time segmentation point is 20, and the time interval is divided into two time segments [1, 20] and [21, 144].

[0109] After step d, two time periods can be obtained: [1, x] and [x+1, 144]. Repeat steps a to d for the two divided time periods until the number of segments of the time interval reaches a third preset threshold, such as 24, and then stop iterating. Assuming that the third preset threshold is 20, the 24-hour time interval can be divided into 20 time periods.

[0110] The first association analysis module 402 is used to collect statistics on the terminal usage data in the multiple time periods, and to construct a first relationship table between the time periods and the data types of the terminal usage data according to the statistical results.

[0111] After obtaining the terminal usage data of each time period, the first association analysis module 402 then finds data types associated with each time period from all data types.

[0112] In some embodiments, the first association analysis module 402 is also used to: count the usage frequencies corresponding to each data type within each time period based on the terminal usage data; use the data type whose usage frequency within a time period is greater than a first preset threshold as the associated data type for the time period, and use the usage frequency as the corresponding degree of association; and construct a first relationship table between the time period and the data type of the terminal usage data based on the data type and degree of association associated with each time period.

[0113] Due to the changes in the data types used by users in different time periods, for example, the frequency of use of payment apps in the time periods corresponding to breakfast, lunch and dinner is significantly higher than in other time periods. For another example, GPS data may only be turned on in the morning or evening when users go to and from get off work, and will not be turned on or rarely turned on in other time periods. The terminal usage data can be counted based on the usage frequency of each data type. The first association analysis module 402 counts the usage frequency corresponding to each data type in each of the time periods from all the terminal usage data. If the usage frequency of the terminal usage data of a certain data type in a time period is greater than the first preset threshold, it is determined that the data type is associated with the time period, otherwise, it is determined that the data type is irrelevant to the time period. In this way, when analyzing the data of the time period, only the terminal usage data of the data type associated with the time period can be collected, ignoring those irrelevant data types, so as to reduce the scale of the collected data and make the collected data targeted. Among them, the first preset threshold can be pre-set according to the actual situation.

[0114] Among them, the frequency of use can be used as the correlation of the data type. After determining the data type and correlation associated with each time period, the first correlation analysis module 402 constructs a first relationship table according to the data type and correlation associated with each time period. The first relationship table contains the data type associated with each time period and the correlation of the associated data type. When storing, the first relationship table can be stored in the form of a table or in the form of data pairs, for example, stored as <t i , d(t i )>, where i∈(1,n), a complete time interval can be divided into n consecutive time periods, ti represents the ith time period among the continuous n time periods, d(t i ) indicates t i The data type associated with the time period and its degree of association.

[0115] The category acquisition module 403 is used to acquire the scenario categories corresponding to the multiple time periods.

[0116] Next, determine the scenario category for each time period. Since the solution of the present application can be used to analyze the user's historical terminal usage data. Therefore, the scenario category corresponding to each time period can be determined based on the scenario category sequence corresponding to the time interval. Among them, the scenario category refers to the category of the scene in which the terminal user is located. The scenario category needs to be defined in advance and determined based on the user's use of the electronic device. For example, the scenario category may include office, running, eating, traveling, playing games, watching movies, paying, fitness, dining, etc. In an embodiment of the present application, the scenario category sequence within the preset time interval is known.

[0117] The second association analysis module 404 is used to construct a second relationship table between time periods, scenario categories and data types of the terminal usage data according to the scenario categories corresponding to the multiple time periods and the first relationship table.

[0118] After obtaining the scenario category corresponding to each time period, the second association analysis module 404 learns the relationship between the scenario category, time period, and data type of terminal usage data based on the scenario category and the above-mentioned first relationship table, finds out the data type that has a strong association with the time period and the scenario category corresponding to the time period from the first relationship table, and constructs a second relationship table.

[0119] For example, in some embodiments, the second association analysis module 404 is also used to: perform regression analysis on the scenario category corresponding to the time period, and the associated data type and correlation degree based on a preset regression algorithm to determine the data type associated with both the time period and the scenario category corresponding to the time period; and construct a second relationship table between the time period, the scenario category and the data type of the terminal usage data based on the data type associated with both the time period and the scenario category corresponding to the time period.

[0120] The regression algorithm can be a ridge regression algorithm, a multivariate regression algorithm, a lasso (least absolute shrinkage and selection operator) regression algorithm, etc. Next, taking ridge regression as an example, we will learn the relationship between scenario categories, time periods, and data types of terminal usage data.

[0121] Among them, in some embodiments, the second association analysis module 404 is also used to: use the correlation degree of the data type associated with the time period as an independent variable, and the scenario category corresponding to the time period as a dependent variable to construct an optimization objective equation for ridge regression; solve the optimization objective equation according to the gradient descent method to obtain a weight vector; determine the weight of the data type associated with the time period according to the weight vector; and use the data type whose weight is greater than a second preset threshold as the data type associated with both the time period and the scenario category corresponding to the time period.

[0122] For example, the preset regression algorithm is the ridge regression algorithm; determine each time period t j After the scenario category is determined, the scenario category is used as the y value of the ridge regression model, that is, the dependent variable. i ) as the x vector of the ridge regression model, i.e., the independent variable. Construct the optimization objective equation of the ridge regression learning model:

[0123] Where W is a weight vector, which represents the weight of each data type, W = (w1, w2, ...w j , ..., w m ), m represents the number of data types in time period ti, w j Represents the weight of the j-th data type among m data types, where j∈(1,m).

[0124] Specifically, the second association analysis module 404 can use a gradient descent algorithm to solve the equation and obtain a weight vector W. The time period t can be determined based on the weight vector. j The weight of each data type associated.

[0125] For example, if the weight of a data type in the t1 time period is greater than the second preset threshold, it is determined that the data type has a strong correlation with both the t1 time period and the scenario category corresponding to the time period t1, and the data type is retained; if the weight of a data type in the t1 time period is less than or equal to the second preset threshold, the data is discarded. In this way, the data type associated with each time period and the scenario category corresponding to the time period can be found, and then the second relationship table can be generated, where the second relationship table can be expressed as <t i , c i , d′(t i )>, where c i Indicates t i The situation category of the time period, d′(t i ) indicates that i Time period and context i Both have strongly associated data types.

[0126] Specifically, in another optional embodiment, the device also includes a feature extraction module, which is used to determine a target time period and a scenario category of the target time period; determine a data type associated with both the target time period and the scenario category corresponding to the target time period according to the second relationship table; obtain terminal usage data of the determined data type within the target time period; and, according to a preset feature extraction algorithm, extract data features from the obtained terminal usage data as time domain features corresponding to the target time period.

[0127] After obtaining the second relationship table of the trinity between the time period, the scenario category and the data type of the terminal usage data, the feature extraction module can extract the data features of a certain time period according to the relationship table. For example, to obtain the data features of the target time period, first determine the scenario category of the time period, then find the data types associated with the time period and the scenario category according to the second relationship table, obtain the terminal usage data belonging to these data types, extract the time domain features according to the time domain feature extraction method, take the acceleration sensor data as an example, perform statistics on the acceleration sensor data sequence within the target time period, and obtain the peak value, mean value, root mean square value, kurtosis index, waveform factor and other time domain features in the data sequence.

[0128] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.

[0129] As can be seen from the above, the data processing device proposed in the embodiment of the present application can obtain terminal usage data of multiple time periods, and perform statistics on the terminal usage data of these multiple time periods, and construct a first relationship table between the time period and the data type of the terminal usage data based on the statistical results, wherein the terminal usage data includes multiple data types. Next, the scenario category corresponding to the time period is obtained, and according to the first relationship table between the time period and the data type of the terminal usage data, a second relationship table between the time period, the scenario category and the data type of the terminal usage data can be constructed. Through this scheme, not only can the time characteristics of the terminal usage data be mined and the correlation between the data type of the terminal usage data and the time period be found, but also the scenario category can be further combined to form a three-in-one relationship table between the data type, time period and scenario category of the terminal usage data, so as to realize the analysis of the time characteristics of the terminal usage data. When extracting features from the data of a specific time period, the data features under the specific time period and specific scenario can be extracted in a targeted manner according to the second relationship table, thereby improving the accuracy of data feature extraction.

[0130] The present application also provides an electronic device. The electronic device may be a smart phone, a tablet computer, or the like. Figure 5 As shown, Figure 5 The first structural diagram of the electronic device provided in the embodiment of the present application. The electronic device 300 includes a processor 301 and a memory 302. The processor 301 is electrically connected to the memory 302.

[0131] The processor 301 is the control center of the electronic device 300. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or calling computer programs stored in the memory 302, and calling data stored in the memory 302, thereby monitoring the electronic device as a whole.

[0132] In this embodiment, the processor 301 in the electronic device 300 loads instructions corresponding to one or more computer program processes into the memory 302 according to the following steps, and the processor 301 runs the computer program stored in the memory 302 to implement various functions:

[0133] Acquire terminal usage data of multiple time periods, wherein the terminal usage data includes multiple data types;

[0134] Collecting statistics on the terminal usage data in the multiple time periods, and constructing a first relationship table between the time periods and the data types of the terminal usage data according to the statistical results;

[0135] Obtaining scenario categories corresponding to the multiple time periods;

[0136] A second relationship table between time periods, scenario categories and data types of the terminal usage data is constructed according to the scenario categories corresponding to the multiple time periods and the first relationship table.

[0137] In some embodiments, after the step of constructing a second relationship table between time periods, scenario categories, and data types of the terminal usage data, the method further includes:

[0138] Determining a target time period, and a scenario category for said target time period;

[0139] determining, according to the second relationship table, a data type associated with both the target time period and the scenario category corresponding to the target time period;

[0140] Acquire terminal usage data belonging to the determined data type within the target time period;

[0141] According to a preset feature extraction algorithm, data features are extracted from the acquired terminal usage data as time domain features corresponding to the target time period.

[0142] In some embodiments, the step of performing statistics on the terminal usage data of the multiple time periods and constructing a first relationship table between the time periods and the data types of the terminal usage data according to the statistical results includes:

[0143] According to the terminal usage data, counting the usage frequency corresponding to each data type in each of the time periods;

[0144] The data type whose usage frequency in a time period is greater than a first preset threshold is used as the associated data type of the time period, and the usage frequency is used as the corresponding association degree;

[0145] According to the data type and the degree of association associated with each time period, a first relationship table between the time period and the data type of the terminal usage data is constructed.

[0146] In some embodiments, the step of constructing a second relationship table between time periods, scenario categories, and data types of the terminal usage data according to the scenario categories corresponding to the multiple time periods and the first relationship table includes:

[0147] Based on a preset regression algorithm, a regression analysis is performed on the scenario category corresponding to the time period, and the associated data type and the degree of association, to determine the data type associated with both the time period and the scenario category corresponding to the time period;

[0148] According to the time period and the data type associated with the scenario category corresponding to the time period, a second relationship table between the time period, the scenario category and the data type of the terminal usage data is constructed.

[0149] In some embodiments, the preset regression algorithm is a ridge regression algorithm; based on the preset regression algorithm, a regression analysis is performed on the scenario category corresponding to the time period, and the associated data type and correlation degree, and the step of determining the data type associated with both the time period and the scenario category corresponding to the time period includes:

[0150] Taking the correlation degree of the data type associated with the time period as an independent variable and the scenario category corresponding to the time period as a dependent variable, constructing an optimization objective equation of ridge regression;

[0151] Solve the optimization objective equation according to the gradient descent method to obtain a weight vector;

[0152] determining a weight of a data type associated with the time period according to the weight vector;

[0153] The data type with a weight greater than a second preset threshold is used as the data type associated with both the time period and the scenario category corresponding to the time period.

[0154] In some embodiments, before the step of acquiring terminal usage data for multiple time periods, the method further includes:

[0155] Divide the preset time interval into multiple time periods.

[0156] In some embodiments, the step of dividing the preset time interval into a plurality of time periods includes:

[0157] Calculating the total information entropy of the preset time interval according to the terminal usage data within the preset time interval;

[0158] According to each time division point in the preset value range, the time interval is divided into two time periods, and the weighted average information entropy of the two divided time periods is calculated;

[0159] Determine the time segmentation point at which the difference between the weighted average information entropy and the total information entropy is the largest;

[0160] Dividing the time interval into a first time period and a second time period according to the time division point;

[0161] The first time period and the second time period are taken as a new time interval, and the above steps are repeatedly performed until the number of segments of the time interval is greater than a third preset threshold.

[0162] In some embodiments, the step of calculating the total information entropy of a preset time interval based on the terminal usage data within the preset time interval includes:

[0163] Obtaining the startup data of the target application from the terminal usage data;

[0164] The total information entropy of the preset time interval is calculated according to the startup data.

[0165] The memory 302 can be used to store computer programs and data. The computer programs stored in the memory 302 contain instructions that can be executed in the processor. The computer programs can form various functional modules. The processor 301 executes various functional applications and data processing by calling the computer programs stored in the memory 302.

[0166] In some embodiments, Figure 6 As shown, Figure 6 A second structural diagram of an electronic device provided in an embodiment of the present application. The electronic device 300 further includes: a radio frequency circuit 303, a display screen 304, a control circuit 305, an input unit 306, an audio circuit 307, a sensor 308, and a power supply 309. The processor 301 is electrically connected to the radio frequency circuit 303, the display screen 304, the control circuit 305, the input unit 306, the audio circuit 307, the sensor 308, and the power supply 309, respectively.

[0167] The radio frequency circuit 303 is used to send and receive radio frequency signals to communicate with network devices or other electronic devices through wireless communication.

[0168] The display screen 304 may be used to display information input by a user or information provided to a user and various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of images, texts, icons, videos and any combination thereof.

[0169] The control circuit 305 is electrically connected to the display screen 304 and is used to control the display screen 304 to display information.

[0170] The input unit 306 can be used to receive input numbers, character information or user feature information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. The input unit 306 can include a fingerprint recognition module.

[0171] The audio circuit 307 can provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 307 includes a microphone. The microphone is electrically connected to the processor 301. The microphone is used to receive voice information input by the user.

[0172] The sensor 308 is used to collect external environment information. The sensor 308 may include one or more sensors such as an environment brightness sensor, an acceleration sensor, and a gyroscope.

[0173] The power supply 309 is used to supply power to various components of the electronic device 300. In some embodiments, the power supply 309 may be logically connected to the processor 301 through a power management system, so that the power management system can manage charging, discharging, power consumption, and other functions.

[0174] although Figure 6 Not shown, the electronic device 300 may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0175] As can be seen from the above, an embodiment of the present application provides an electronic device, which can obtain terminal usage data of multiple time periods, and perform statistics on the terminal usage data of the multiple time periods, and construct a first relationship table between the time period and the data type of the terminal usage data based on the statistical results, wherein the terminal usage data includes multiple data types. Next, the scenario category corresponding to the time period is obtained, and according to the first relationship table between the time period and the data type of the terminal usage data, a second relationship table between the time period, the scenario category and the data type of the terminal usage data can be constructed. Through this scheme, not only can the time characteristics of the terminal usage data be mined and the correlation between the data type of the terminal usage data and the time period be found, but also the scenario category can be further combined to form a three-in-one relationship table between the data type, time period and scenario category of the terminal usage data, so as to realize the analysis of the time characteristics of the terminal usage data. When extracting features from the data of a specific time period, the data features under the specific time period and specific scenario can be extracted in a targeted manner according to the second relationship table, thereby improving the accuracy of data feature extraction.

[0176] An embodiment of the present application further provides a storage medium, in which a computer program is stored. When the computer program runs on a computer, the computer executes the data processing method described in any of the above embodiments.

[0177] It should be noted that, a person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the storage medium can include but is not limited to: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0178] The term "module" used herein can be regarded as a software object executed on the computing system. The different components, modules, engines and services described herein can be regarded as implementation objects on the computing system. The apparatus and method described herein can be implemented in software, and of course can also be implemented in hardware, all within the scope of protection of this application.

[0179] The terms "first", "second", and "third" in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments also include other steps or modules inherent to these processes, methods, products, or devices.

[0180] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0181] The data processing method, device, storage medium and electronic device provided in the embodiments of the present application are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present application.

Claims

1. A data processing method, characterized in that: include: Dividing continuous time into multiple time periods, including: calculating the total information entropy of the preset time interval according to the terminal usage data in the preset time interval; dividing the time interval into two time periods according to each time division point in the preset value range, and calculating the weighted average information entropy of the two divided time periods; determining the time division point at which the difference between the weighted average information entropy and the total information entropy is the largest; dividing the time interval into a first time period and a second time period according to the time division point; using the first time period and the second time period as new time intervals, and repeatedly performing the above steps until the number of segments of the time interval is greater than a third preset threshold; wherein, using any type of data in the terminal usage data to calculate the total information entropy of the time interval; Acquire terminal usage data of multiple time periods, wherein the terminal usage data includes multiple data types; Collecting statistics on the terminal usage data in the multiple time periods, and constructing a first relationship table between the time periods and the data types of the terminal usage data according to the statistical results; Obtaining scenario categories corresponding to the multiple time periods; According to the scenario categories corresponding to the multiple time periods and the first relationship table, a second relationship table is constructed between the time periods, scenario categories and the data types of the terminal usage data, so that when feature extraction is performed on the data of a specific time period, the data features in the specific time period and specific scenario can be extracted in a targeted manner according to the second relationship table.

2. The data processing method according to claim 1, characterized in that: After the step of constructing a second relationship table between time periods, scenario categories, and data types of the terminal usage data, the method further includes: Determining a target time period, and a scenario category for said target time period; determining, according to the second relationship table, a data type associated with both the target time period and the scenario category corresponding to the target time period; Acquire terminal usage data belonging to the determined data type within the target time period; According to a preset feature extraction algorithm, data features are extracted from the acquired terminal usage data as time domain features corresponding to the target time period.

3. The data processing method according to claim 1, characterized in that: The step of collecting statistics on the terminal usage data of the multiple time periods and constructing a first relationship table between the time periods and the data types of the terminal usage data according to the statistical results includes: According to the terminal usage data, counting the usage frequency corresponding to each data type in each of the time periods; The data type whose usage frequency in a time period is greater than a first preset threshold is used as the associated data type of the time period, and the usage frequency is used as the corresponding association degree; According to the data type and the degree of association associated with each time period, a first relationship table between the time period and the data type of the terminal usage data is constructed.

4. The data processing method according to claim 3, characterized in that: The step of constructing a second relationship table between time periods, scenario categories, and data types of the terminal usage data according to the scenario categories corresponding to the multiple time periods and the first relationship table includes: Based on a preset regression algorithm, a regression analysis is performed on the scenario category corresponding to the time period, and the associated data type and the degree of association, to determine the data type associated with both the time period and the scenario category corresponding to the time period; According to the time period and the data type associated with the scenario category corresponding to the time period, a second relationship table between the time period, the scenario category and the data type of the terminal usage data is constructed.

5. The data processing method according to claim 4, characterized in that: The preset regression algorithm is a ridge regression algorithm; based on the preset regression algorithm, a regression analysis is performed on the scenario category corresponding to the time period, and the associated data type and correlation degree, and the step of determining the data type associated with both the time period and the scenario category corresponding to the time period includes: Taking the correlation degree of the data type associated with the time period as an independent variable and the scenario category corresponding to the time period as a dependent variable, constructing an optimization objective equation of ridge regression; Solve the optimization objective equation according to the gradient descent method to obtain a weight vector; determining a weight of a data type associated with the time period according to the weight vector; The data type with a weight greater than a second preset threshold is used as the data type associated with both the time period and the scenario category corresponding to the time period.

6. The data processing method according to claim 1, characterized in that: The step of calculating the total information entropy of the preset time interval according to the terminal usage data in the preset time interval includes: Obtaining the startup data of the target application from the terminal usage data; The total information entropy of the preset time interval is calculated according to the startup data.

7. A data processing device, characterized in that: include: A time period division module, used to divide continuous time into multiple time periods, including: calculating the total information entropy of the preset time interval according to the terminal usage data within the preset time interval; dividing the time interval into two time periods according to each time division point in the preset value range, and calculating the weighted average information entropy of the two divided time periods; determining the time division point at which the difference between the weighted average information entropy and the total information entropy is the largest; dividing the time interval into a first time period and a second time period according to the time division point; using the first time period and the second time period as new time intervals, and repeating the above steps until the number of segments of the time interval is greater than a third preset threshold; wherein, using any type of data in the terminal usage data to calculate the total information entropy of the time interval; A data acquisition module, used to acquire terminal usage data of multiple time periods, wherein the terminal usage data includes multiple data types; A first association analysis module, configured to collect statistics on the terminal usage data in the plurality of time periods, and construct a first relationship table between the time periods and the data types of the terminal usage data according to the statistical results; A category acquisition module, used to acquire the scenario categories corresponding to the multiple time periods; The second association analysis module is used to construct a second relationship table between time periods, scenario categories and data types of the terminal usage data according to the scenario categories corresponding to the multiple time periods and the first relationship table, so that when feature extraction is performed on data in a specific time period, data features in a specific time period and a specific scenario can be specifically extracted according to the second relationship table.

8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed on a computer, the computer is caused to execute the data processing method according to any one of claims 1 to 6.

9. An electronic device comprising a processor and a memory, wherein the memory stores a computer program, characterized in that: The processor is used to execute the data processing method according to any one of claims 1 to 6 by calling the computer program.