Data processing method and device, computer equipment and storage medium

By calling back barrier-free auxiliary services in smart speakers, obtaining and counting event information of applications and pages, the problem of modifying the system source code in the existing technology is solved, and an efficient and safe point-buried statistical method is achieved.

CN119484231APending Publication Date: 2025-02-18CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411480971.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The existing smart speaker data burial technology requires modifying the system source code, which increases the difficulty of technology implementation and poses a potential threat to the stability and security of the system.

Method used

By monitoring the interface status changes of the smart speaker, call back the preset accessibility auxiliary services, obtain the event information of the application and pages, and use timers and statistical strategies for use time statistics, and finally store data based on the reporting strategy.

Benefits of technology

It realizes the burial point statistics of smart speaker applications and page usage time without modifying the system source code, improves processing intelligence and efficiency, and ensures the stability and security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484231A_ABST
    Figure CN119484231A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of data processing, and relates to a data processing method and device, computer equipment and a storage medium, and the method comprises the steps: calling back a preset barrier-free auxiliary service when monitoring that the interface state of an intelligent sound box is changed; obtaining an application opening event and an application closing event of the target application based on the barrier-free auxiliary service, and obtaining a page switching event of the target page; performing use time statistical processing on the application opening event and the application closing event based on a timer to obtain application use time of the target application; performing use time statistical processing on the page switching event based on a statistical strategy to obtain page use time of the target page; and storing the application use time and the page use time in a specified storage medium based on the obtained reporting strategy. In addition, the application usage time may be stored in the blockchain. According to the burying point statistical method for the intelligent loudspeaker box, the risk of modifying a system source code is avoided, and the stability of the system is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of data processing technology and financial technology, and in particular to data processing methods, devices, computer equipment and storage media. Background Art

[0002] With the rapid development of technology, smart speakers have become an indispensable part of modern family life and play an increasingly important role in the implementation of financial companies' business. Smart speakers can not only provide basic services such as music playback and information query, but also provide users with a more convenient and comprehensive financial service experience by integrating various financial applications such as payment, financial management, insurance, etc.

[0003] In order to optimize the user experience and improve user stickiness, financial companies need to conduct in-depth analysis of user behavior on smart speakers. Specifically, by collecting and analyzing data such as the frequency and duration of use of each application on the speaker, financial companies can accurately adjust the exposure position of commonly used applications and functions, thereby simplifying the steps for users to open applications and making commonly used functions more accessible. In addition, by monitoring key indicators such as the click-through rate of advertising positions and the length of time on the page, financial companies can also build a clearer interest preference portrait for users, thereby achieving accurate advertising delivery and effective conversion of push services.

[0004] In the process of realizing the above data analysis, user data tracking has become an indispensable part. User data tracking refers to the preset specific data collection points in the smart speaker system to capture and record various behavioral data of users during use. These data are an important basis for operational analysis and play a vital role in guiding product optimization and improving user experience.

[0005] However, the current data tracking technology for smart speakers has certain limitations. Specifically, the existing data tracking methods mainly target a single application itself and lack comprehensive monitoring of the overall application behavior of the system. At the same time, if data tracking is to be performed on all applications on the system, it is often necessary to modify the system source code, which not only increases the difficulty of technical implementation, but also destroys the purity of the system code, thereby posing a potential threat to the stability and security of the system. Summary of the invention

[0006] The purpose of the embodiments of the present application is to propose a data processing method, apparatus, computer equipment and storage medium to solve the technical problem that the existing data embedding method of smart speakers often requires modification of the system source code, thereby posing a potential threat to the stability and security of the system.

[0007] In order to solve the above technical problems, the present application provides a data processing method, which adopts the following technical solution:

[0008] When the interface status of the smart speaker is monitored to change, the preset accessibility assistance service is called back;

[0009] Acquire an application opening event and an application closing event of a target application based on the accessibility assistance service, and acquire a page switching event of a target page;

[0010] Based on a preset timer, statistically process the usage time of the application opening event and the application closing event to obtain the application usage time corresponding to the target application;

[0011] Performing usage time statistics processing on the page switching event based on a preset statistical strategy to obtain a page usage time corresponding to the target page;

[0012] Get the preset reporting strategy;

[0013] The application usage time and the page usage time are stored in a preset designated storage medium based on the reporting strategy.

[0014] Furthermore, the step of performing usage time statistics processing on the application opening event and the application closing event based on a preset timer to obtain the application usage time corresponding to the target application specifically includes:

[0015] Recording the application start time corresponding to the application opening event based on the timer;

[0016] Recording the application end time corresponding to the application closing event based on the timer;

[0017] Calculating a first difference between the application end time and the application start time;

[0018] The application usage time of the target application is generated based on the first difference.

[0019] Furthermore, the step of performing usage time statistics processing on the page switching event based on a preset statistical strategy to obtain the page usage time corresponding to the target page specifically includes:

[0020] Obtaining the page unloading time corresponding to the page switching event;

[0021] Obtaining the page loading time corresponding to the page switching event;

[0022] Calculating a second difference between the page unloading time and the page loading time;

[0023] The page usage time of the target page is generated based on the second difference.

[0024] Furthermore, the step of storing the application usage time and the page usage time in a preset designated storage medium based on the reporting strategy specifically includes:

[0025] Get multiple preset encryption algorithms;

[0026] Filter out a target encryption algorithm from all the encryption algorithms;

[0027] Based on the target encryption algorithm, the application usage time and the page usage time are encrypted respectively to obtain the corresponding target application usage time and target page usage time;

[0028] Calling the specified storage medium;

[0029] Based on the reporting strategy, the target application usage time and the target page usage time are stored in the designated storage medium.

[0030] Furthermore, before the step of calling back a preset accessibility assistance service when a change in the interface state of the smart speaker is detected, the method further includes:

[0031] Determine whether a service configuration request triggered by a user is received;

[0032] If yes, display the preset service configuration page;

[0033] Receiving service configuration data input by the user in the service configuration page;

[0034] Building a corresponding barrier-free auxiliary service based on the service configuration data;

[0035] The accessibility assistance service is registered.

[0036] Furthermore, after the step of storing the application usage time and the page usage time in a preset designated storage medium based on the reporting strategy, the method further includes:

[0037] Get the current time and determine whether the current time reaches the preset timing statistical time;

[0038] If so, traverse all usage time data stored in the designated storage medium, extract all first usage time data corresponding to the same designated application, and extract all second usage time data corresponding to the same designated page;

[0039] Accumulating all the first usage time data to obtain a first total usage time corresponding to the designated application;

[0040] Accumulating all the second usage time data to obtain a second total usage time corresponding to the designated page;

[0041] The first total usage time and the second total usage time are stored.

[0042] Furthermore, the data processing method further includes:

[0043] Get the preset test cases;

[0044] In a preset test environment, the accessibility assistance service is tested using the test case to obtain a corresponding test result;

[0045] Analyze the test results to obtain corresponding analysis results;

[0046] The accessibility assistance service is optimized based on the analysis results.

[0047] In order to solve the above technical problems, the embodiment of the present application further provides a data processing device, which adopts the following technical solution:

[0048] The callback module is used to call back the preset accessibility assistance service when the interface status of the smart speaker is monitored to change;

[0049] A first acquisition module, configured to acquire an application opening event and an application closing event of a target application based on the accessibility assistance service, and acquire a page switching event of a target page;

[0050] A first processing module, configured to perform usage time statistics processing on the application opening event and the application closing event based on a preset timer to obtain the application usage time corresponding to the target application;

[0051] A second processing module is used to perform usage time statistics processing on the page switching event based on a preset statistical strategy to obtain a page usage time corresponding to the target page;

[0052] The second acquisition module is used to obtain a preset reporting strategy;

[0053] The storage module is used to store the application usage time and the page usage time in a preset designated storage medium based on the reporting strategy.

[0054] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0055] When the interface status of the smart speaker is monitored to change, the preset accessibility assistance service is called back;

[0056] Acquire an application opening event and an application closing event of a target application based on the accessibility assistance service, and acquire a page switching event of a target page;

[0057] Based on a preset timer, statistically process the usage time of the application opening event and the application closing event to obtain the application usage time corresponding to the target application;

[0058] Performing usage time statistics processing on the page switching event based on a preset statistical strategy to obtain a page usage time corresponding to the target page;

[0059] Get the preset reporting strategy;

[0060] The application usage time and the page usage time are stored in a preset designated storage medium based on the reporting strategy.

[0061] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0062] When the interface status of the smart speaker is monitored to change, the preset accessibility assistance service is called back;

[0063] Acquire an application opening event and an application closing event of a target application based on the accessibility assistance service, and acquire a page switching event of a target page;

[0064] Based on a preset timer, statistically process the usage time of the application opening event and the application closing event to obtain the application usage time corresponding to the target application;

[0065] Performing usage time statistics processing on the page switching event based on a preset statistical strategy to obtain a page usage time corresponding to the target page;

[0066] Get the preset reporting strategy;

[0067] The application usage time and the page usage time are stored in a preset designated storage medium based on the reporting strategy.

[0068] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0069] When the present application monitors a change in the interface state of the smart speaker, a preset accessibility assistance service is called back; then, based on the accessibility assistance service, an application opening event and an application closing event of the target application, as well as a page switching event of the target page, are obtained; thereafter, based on a preset timer, usage time statistics processing is performed on the application opening event and the application closing event to obtain the application usage time corresponding to the target application; and based on a preset statistical strategy, usage time statistics processing is performed on the page switching event to obtain the page usage time corresponding to the target page; subsequently, a preset reporting strategy is obtained; and finally, based on the reporting strategy, the application usage time and the page usage time are stored in a preset designated storage medium. When the present application monitors changes in the interface state of the smart speaker, it calls back the preset barrier-free auxiliary service, and obtains the application opening event and application closing event of the target application based on the barrier-free auxiliary service, as well as the page switching event of the target page, and then automatically performs usage time statistics processing on the application opening event and the application closing event based on the use of a timer to obtain the application usage time of the target application, and automatically performs usage time statistics processing on the page switching event based on the use of a statistical strategy to obtain the page usage time of the target page, and then stores the application usage time and page usage time in a preset designated storage medium based on the obtained reporting strategy. The present application provides an efficient, secure and universal point-burying statistics method, which automatically and accurately performs point-burying statistics on the application usage time and page usage time of smart speakers based on the use of barrier-free auxiliary services, thereby improving the processing intelligence and efficiency of point-burying statistics for smart speakers. The point-burying statistics method for smart speakers proposed in the present application not only avoids the risk of modifying the system source code, but also ensures the stability and security of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0071] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0072] Figure 2 A flowchart of an embodiment of a data processing method according to the present application;

[0073] Figure 3 is a schematic structural diagram of an embodiment of a data processing device according to the present application;

[0074] Figure 4It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0075] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0076] 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.

[0077] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0078] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102 and a server 103. The terminal device 101 may be a laptop 1011, a tablet computer 1012 or a mobile phone 1013. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0079] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0080] The terminal device 101 can be any electronic device with a display screen and supporting web browsing. In addition to the laptop computer 1011, tablet computer 1012 or mobile phone 1013, the terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer, a desktop computer, etc.

[0081] The server 103 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal device 101 .

[0082] It should be noted that the data processing method provided in the embodiments of the present application is generally executed by a server / terminal device, and accordingly, the data processing device is generally arranged in the server / terminal device.

[0083] It should be understood that Figure 1 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.

[0084] Continue to refer Figure 2 , showing a flow chart of an embodiment of the data processing method according to the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The data processing method provided in the embodiment of the present application can be applied to any scenario that requires data processing, and the data processing method can be applied to products in these scenarios, for example, statistical processing of buried data of smart speakers in financial enterprises. The data processing method comprises the following steps:

[0085] Step S201, when a change in the interface status of the smart speaker is detected, the preset accessibility assistance service is called back.

[0086] In this embodiment, the electronic device (eg, Figure 1The server / terminal device shown in the figure) can call back the preset accessibility assistance service through a wired connection or a wireless connection. It should be pointed out that the above-mentioned wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or developed in the future. The executor of this application is specifically the management system of the smart speaker, or simply referred to as the system. Register the customized accessibility assistance service to the system in advance, and set the monitoring mechanism. When the system detects that the user interface status has changed, it will call back the accessibility assistance service and pass the relevant information.

[0087] Step S202: acquiring an application opening event and an application closing event of a target application based on the accessibility assistance service, and acquiring a page switching event of a target page.

[0088] In this embodiment, in the onAccessibilityEvent method of the above-mentioned custom accessibility assistance service, the state changes such as opening, closing and switching of applications and pages can be judged according to the event type and event content, so as to capture the application opening event and application closing event of the target application, and the page switching event of the target page. Among them, the above-mentioned target application can be any application associated with the smart speaker, and the above-mentioned target page can be any page associated with the above-mentioned smart speaker.

[0089] Step S203: performing usage time statistics processing on the application opening event and the application closing event based on a preset timer to obtain the application usage time corresponding to the target application.

[0090] In this embodiment, the above-mentioned specific implementation process of performing usage time statistics processing on the application opening event and the application closing event based on a preset timer to obtain the application usage time corresponding to the target application will be described in further details in subsequent specific embodiments of the present application and will not be elaborated in detail here.

[0091] Step S204: performing usage time statistics processing on the page switching event based on a preset statistical strategy to obtain a page usage time corresponding to the target page.

[0092] In this embodiment, the above-mentioned specific implementation process of performing usage time statistics processing on the page switching event based on a preset statistical strategy to obtain the page usage time corresponding to the target page will be further described in detail in the subsequent specific embodiments of this application and will not be elaborated on here.

[0093] Step S205: obtaining a preset reporting strategy.

[0094] In this embodiment, there is no specific limitation on the selection of the above reporting strategy, which can be selected according to actual usage requirements, for example, a network request (such as HTTP POST) or a local database operation can be used.

[0095] Step S206: storing the application usage time and the page usage time in a preset designated storage medium based on the reporting strategy.

[0096] In this embodiment, the specific implementation process of storing the application usage time and the page usage time in a preset designated storage medium based on the reporting strategy will be described in further detail in subsequent specific embodiments of the present application and will not be elaborated on here.

[0097] When the present application monitors a change in the interface state of the smart speaker, a preset accessibility assistance service is called back; then, based on the accessibility assistance service, an application opening event and an application closing event of the target application, as well as a page switching event of the target page, are obtained; thereafter, based on a preset timer, usage time statistics processing is performed on the application opening event and the application closing event to obtain the application usage time corresponding to the target application; and based on a preset statistical strategy, usage time statistics processing is performed on the page switching event to obtain the page usage time corresponding to the target page; subsequently, a preset reporting strategy is obtained; and finally, based on the reporting strategy, the application usage time and the page usage time are stored in a preset designated storage medium. When the present application monitors changes in the interface state of the smart speaker, it calls back the preset barrier-free auxiliary service, and obtains the application opening event and application closing event of the target application based on the barrier-free auxiliary service, as well as the page switching event of the target page, and then automatically performs usage time statistics processing on the application opening event and the application closing event based on the use of a timer to obtain the application usage time of the target application, and automatically performs usage time statistics processing on the page switching event based on the use of a statistical strategy to obtain the page usage time of the target page, and then stores the application usage time and page usage time in a preset designated storage medium based on the obtained reporting strategy. The present application provides an efficient, secure and universal point-burying statistics method, which automatically and accurately performs point-burying statistics on the application usage time and page usage time of smart speakers based on the use of barrier-free auxiliary services, thereby improving the processing intelligence and efficiency of point-burying statistics for smart speakers. The point-burying statistics method for smart speakers proposed in the present application not only avoids the risk of modifying the system source code, but also ensures the stability and security of the system.

[0098] In some optional implementations, step S203 includes the following steps:

[0099] An application start time corresponding to the application opening event is recorded based on the timer.

[0100] In this embodiment, in the customized barrier-free auxiliary service, a global timer is pre-initialized to record the current time. When an application opening is detected, that is, an application opening event corresponding to the target application is detected, the current time is recorded as the corresponding application start time.

[0101] The application end time corresponding to the application closing event is recorded based on the timer.

[0102] In this embodiment, when the application closing is detected, that is, when the application closing event corresponding to the target application is detected, the current time is recorded as the corresponding application end time.

[0103] A first difference between the application end time and the application start time is calculated.

[0104] In this embodiment, the application start time is subtracted from the application end time to obtain the corresponding first difference, that is, the application usage time of the target application is obtained.

[0105] The application usage time of the target application is generated based on the first difference.

[0106] In this embodiment, the first difference may be used as the application usage time of the target application.

[0107] The present application records the application start time corresponding to the application opening event based on the timer; and records the application end time corresponding to the application closing event based on the timer; and then calculates the first difference between the application end time and the application start time; and subsequently generates the application usage time of the target application based on the first difference. The present application records the application start time corresponding to the application opening event and the application end time corresponding to the application closing event based on the use of a timer, and then calculates the first difference between the application end time and the application start time, thereby automatically and accurately generating the application usage time of the target application based on the obtained first difference, thereby improving the generation intelligence and generation accuracy of the application usage time of the target application.

[0108] In some optional implementations of this embodiment, step S204 includes the following steps:

[0109] Obtain the page unloading time corresponding to the page switching event.

[0110] In this embodiment, the page switching event includes a page loading event and a page unloading event corresponding to the target page. When the target page is unloaded, the current time of the target page can be recorded and used as the page unloading time by monitoring the onUnload event of the page.

[0111] Get the page loading time corresponding to the page switching event.

[0112] In this embodiment, when the target page is unloaded, the current time of the target page can be recorded by monitoring the onload event of the page and used as the page loading time.

[0113] A second difference between the page unloading time and the page loading time is calculated.

[0114] In this embodiment, the corresponding second difference is obtained by subtracting the page loading time from the page unloading time, that is, the page usage time of the target page is obtained.

[0115] The page usage time of the target page is generated based on the second difference.

[0116] In this embodiment, the second difference may be used as the page usage time of the target page.

[0117] The present application obtains the page unloading time corresponding to the page switching event; and obtains the page loading time corresponding to the page switching event; then calculates the second difference between the page unloading time and the page loading time; and subsequently generates the page usage time of the target page based on the second difference. The present application obtains the page unloading time corresponding to the page switching event and the page loading time corresponding to the page switching event based on the use of statistical strategies, and then calculates the second difference between the page unloading time and the page loading time, thereby automatically and accurately generating the page usage time of the target page according to the obtained second difference, thereby improving the generation intelligence and generation accuracy of the page usage time of the target page.

[0118] In some optional implementations, step S206 includes the following steps:

[0119] Get multiple preset encryption algorithms.

[0120] In this embodiment, the above-mentioned multiple encryption algorithms may at least include AES (Advanced Encryption Standard), DES (Data Encryption Standard), RSA, ECC (Elliptic Curves Cryptography) and other algorithms.

[0121] A target encryption algorithm is selected from all the encryption algorithms.

[0122] In this embodiment, there is no specific limitation on the method of selecting the target encryption algorithm. For example, one algorithm may be randomly selected from all the encryption algorithms mentioned above and used as the target encryption algorithm.

[0123] The application usage time and the page usage time are encrypted based on the target encryption algorithm to obtain the corresponding target application usage time and target page usage time.

[0124] In this embodiment, the application usage time and the page usage time may be encrypted respectively according to the encryption processing steps in the target encryption algorithm, thereby obtaining the corresponding target application usage time and target page usage time.

[0125] The designated storage medium is called.

[0126] In this embodiment, the above-mentioned designated storage medium may specifically include a backend server, a blockchain or a local database.

[0127] Based on the reporting strategy, the target application usage time and the target page usage time are stored in the designated storage medium.

[0128] In this embodiment, the target application usage time and the target page usage time may be stored in the designated storage medium according to the reporting method of the above-mentioned reporting strategy.

[0129] The present application obtains a plurality of preset encryption algorithms; and selects a target encryption algorithm from all the encryption algorithms; then encrypts the application usage time and the page usage time based on the target encryption algorithm to obtain the corresponding target application usage time and target page usage time; then calls the designated storage medium; and subsequently stores the target application usage time and the target page usage time in the designated storage medium based on the reporting strategy. Before storing the application usage time and the page usage time in the preset designated storage medium, the present application will also intelligently use the target encryption algorithm selected from the preset plurality of encryption algorithms to encrypt the application usage time and the page usage time respectively to obtain the corresponding target application usage time and target page usage time, and then store the target application usage time and the target page usage time in the designated storage medium based on the reporting strategy, thereby effectively ensuring the data security of the target application usage time and the target page usage time during data transmission and improving the security of data storage.

[0130] In some optional implementations, before step S201, the electronic device may further perform the following steps:

[0131] Determine whether a service configuration request triggered by a user is received.

[0132] In this embodiment, the user may be an administrator of the smart speaker. The service configuration request may be a processing request triggered by the user for configuring an accessibility assistance service corresponding to the smart speaker.

[0133] If yes, display the default service configuration page.

[0134] In this embodiment, the service configuration page is a page pre-built according to the personalized configuration requirements of the barrier-free auxiliary service. The desensitization rule configuration page at least includes a service configuration area, allowing relevant personnel to perform customized configuration processing of the barrier-free auxiliary service.

[0135] The service configuration data input by the user in the service configuration page is received.

[0136] In this embodiment, the user can input corresponding service configuration data in the service configuration page according to his / her own service configuration requirements, and can add, delete, modify, etc. the service configuration data, thereby generating final service configuration data.

[0137] Construct a corresponding barrier-free auxiliary service based on the service configuration data.

[0138] In this embodiment, a customized barrier-free assistance service can be developed in the management system in the smart speaker according to the service configuration data input by the user. The barrier-free assistance service will receive notifications from the smart speaker regarding changes in the user interface state, including application opening, application closing, and page switching.

[0139] The accessibility assistance service is registered.

[0140] In this embodiment, a custom accessibility assistance service is registered in the system and a monitoring mechanism is set. When the system detects a change in the user interface state, it will call back the accessibility assistance service and pass relevant information. In the callback function of the accessibility assistance service, the user can write logic to collect the usage time of the application and the usage time of the page. When the application or page changes, the usage time of the previous page is recorded and reported to the backend server or local database for storage.

[0141] This application determines whether a service configuration request triggered by a user is received; if so, displays a preset service configuration page; then receives the service configuration data entered by the user in the service configuration page; then builds a corresponding barrier-free auxiliary service based on the service configuration data; and subsequently registers the barrier-free auxiliary service. After receiving a service configuration request triggered by a user, this application displays a service configuration page, and then builds a corresponding barrier-free auxiliary service based on the service configuration data received from the user entered in the service configuration page, thereby realizing intelligent and accurate construction of a customized barrier-free auxiliary service that meets the user's needs based on the user's service configuration requirements, thereby improving the configuration efficiency and intelligence of the barrier-free auxiliary service. And by registering the barrier-free auxiliary service, it is beneficial to automatically and accurately perform point-of-use statistics on the application usage time and page usage time of the smart speaker based on the use of the barrier-free auxiliary service, thereby improving the processing intelligence and efficiency of point-of-use statistics on the smart speaker.

[0142] In some optional implementations of this embodiment, after step S206, the electronic device may further perform the following steps:

[0143] Get the current time and determine whether the current time reaches the preset timing statistical time.

[0144] In this embodiment, the above-mentioned timed statistical time is a pre-set regular time for performing statistical processing of the total usage time of the usage time data in the specified storage medium. There is no specific limitation on the selection of the value of the timed statistical time, which can be set according to actual business usage requirements.

[0145] If so, all the usage time data stored in the designated storage medium are traversed to extract all the first usage time data corresponding to the same designated application, and to extract all the second usage time data corresponding to the same designated page.

[0146] In this embodiment, all usage time data stored in the designated storage medium can be traversed according to the application identifier and the page identifier, and then all first usage time data corresponding to the same designated application and all second usage time data corresponding to the same designated page can be extracted.

[0147] All the first usage time data are accumulated to obtain a first total usage time corresponding to the designated application.

[0148] In this embodiment, the total usage time of the same application can be obtained by accumulating the usage time data of the same application.

[0149] All the second usage time data are accumulated to obtain a second total usage time corresponding to the designated page.

[0150] In this embodiment, the total usage time of the same page can be obtained by accumulating the usage time data of the same page.

[0151] The first total usage time and the second total usage time are stored.

[0152] In this embodiment, the calculated first total usage time and second total usage time may be updated to a database table of a local database, or may be saved in other storage methods.

[0153] The present application obtains the current time and determines whether the current time reaches the preset timing statistical time; if so, traverses all the usage time data stored in the designated storage medium, extracts all the first usage time data corresponding to the same designated application, and extracts all the second usage time data corresponding to the same designated page; then accumulates all the first usage time data to obtain the first total usage time corresponding to the designated application; and accumulates all the second usage time data to obtain the second total usage time corresponding to the designated page; and subsequently stores the first total usage time and the second total usage time. When the present application detects that the previous time reaches the preset timing statistical time, it will automatically and intelligently traverse all the usage time data stored in the designated storage medium, extract all the first usage time data corresponding to the same designated application, and extract all the second usage time data corresponding to the same designated page, and then respectively accumulate all the first usage time data to obtain the first total usage time corresponding to the designated application, and accumulate all the second usage time data to obtain the second total usage time corresponding to the designated page, so that the total usage time of the application and the total usage time of the page can be automatically and accurately counted, improving the generation efficiency and generation intelligence of the total usage time of the application and the total usage time of the page. The generated first total usage time and second total usage time will be stored and processed later, so as to ensure the data security of the obtained total usage time of the application and the total usage time of the page.

[0154] In some optional implementations of this embodiment, the electronic device may further perform the following steps:

[0155] Get the preset test cases.

[0156] In this embodiment, the above test cases are test cases that include basic function testing, boundary condition testing, and compatibility testing. Among them, the basic function testing includes: verifying whether the accessibility assistance service can correctly receive and process notifications of user interface state changes, such as button clicks, text reading, etc. The boundary condition testing includes: testing the performance of the accessibility assistance service under extreme conditions (such as insufficient memory, unstable network). Compatibility testing includes: testing the compatibility of the accessibility assistance service on different Android versions to ensure that there are no version-specific bugs.

[0157] In a preset test environment, the accessibility assistance service is tested using the test case to obtain corresponding test results.

[0158] In this embodiment, smart speaker devices of different brands, models and Android versions are collected, including low-end and high-end devices, to cover a wide range of user groups. Accessibility services are correctly enabled on each smart speaker device, and the required permissions are granted. Then, a test script is written using a UI automation testing tool, and the above test cases are automatically executed, and the corresponding test results are obtained. Among them, detailed log information, including errors, warnings and performance data, can be recorded during the test process as test results.

[0159] The test results are analyzed to obtain corresponding analysis results.

[0160] In this embodiment, by analyzing the test results, the existing performance bottleneck problems, such as response delay, crash, etc., are identified and used as the corresponding analysis results. Specifically, by checking the code of the barrier-free auxiliary service, the parts that may cause performance problems, such as complex logic processing, frequent UI updates, etc., are identified. Then, the performance analysis tool is used to monitor the CPU, memory, and network usage of the barrier-free auxiliary service to find out the performance bottleneck.

[0161] The accessibility assistance service is optimized based on the analysis results.

[0162] In this embodiment, the above-mentioned optimization processing may include code optimization and resource usage optimization. Specifically, the above-mentioned code optimization may at least include: optimizing algorithms and data structures to reduce unnecessary calculations and memory allocations. Process time-consuming tasks (such as network requests, file reading and writing) in background threads or asynchronous tasks to avoid blocking the main thread. For frequently accessed data, use a caching mechanism to reduce repeated calculations and IO operations. The above-mentioned resource usage optimization may at least include: timely release of objects that are no longer used to avoid memory leaks. Reduce unnecessary CPU and sensor usage and reduce power consumption. Optimize network requests, reduce data transmission volume, and improve network response speed.

[0163] This application obtains preset test cases; then, in a preset test environment, uses the test cases to test the accessibility assistance service to obtain corresponding test results; then analyzes the test results to obtain corresponding analysis results; and subsequently optimizes the accessibility assistance service based on the analysis results. This application prepares a test environment and uses preset test cases to perform detailed tests and analyses on the accessibility assistance service, and then, based on the analysis results obtained by analyzing the test results, performs targeted optimization on the accessibility assistance service, which can effectively ensure that the accessibility assistance service can run stably and efficiently on various devices and Android versions, thereby providing users with a better experience.

[0164] In some optional implementations, the user information obtained is subject to the user's consent and complies with relevant laws and policies.

[0165] In addition, the non-Company software tools or components that appear in the embodiments of the present application are merely examples and do not represent actual use.

[0166] In addition, this application is based on the tracking time statistics of the accessibility auxiliary service of the Android system, which keeps the business logic at the application layer, while ensuring the functional purity of the system framework layer, and the tracking business logic is placed in the application layer. If there is an iteration demand in the later stage, it is only necessary to complete the business function iteration by upgrading the application, and there is no need to upgrade the system ROM, which simplifies the overall upgrade process of the smart speaker. And when using the accessibility auxiliary service, you only need to apply for low-sensitivity application permissions, without touching sensitive user permissions, to ensure the legality and compliance of the application. In addition, after enabling the auxiliary service, all application usage time can be recorded. Whether it is a self-developed application or a third-party application, even if there is no pre-tracking in the application development stage, it can ensure that the usage time information can be collected, which has extremely high versatility.

[0167] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0168] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned page usage time and application usage time, the above-mentioned page usage time and application usage time can also be stored in a blockchain node.

[0169] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0170] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0171] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0172] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0173] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0174] Further references Figure 3 , as a response to the above Figure 2 In order to realize the method shown in the figure, the present application provides an embodiment of a data processing device, and the device embodiment is Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0175] like Figure 3 As shown, the data processing device 300 described in this embodiment includes: a callback module 301, a first acquisition module 302, a first processing module 303, a second processing module 304, a second acquisition module 305 and a storage module 306. Among them:

[0176] The callback module 301 is used to call back the preset barrier-free auxiliary service when a change in the interface state of the smart speaker is detected;

[0177] A first acquisition module 302 is used to acquire an application opening event and an application closing event of a target application based on the accessibility assistance service, and acquire a page switching event of a target page;

[0178] A first processing module 303 is used to perform usage time statistics processing on the application opening event and the application closing event based on a preset timer to obtain the application usage time corresponding to the target application;

[0179] The second processing module 304 is used to perform usage time statistics processing on the page switching event based on a preset statistical strategy to obtain the page usage time corresponding to the target page;

[0180] The second acquisition module 305 is used to acquire a preset reporting strategy;

[0181] The storage module 306 is used to store the application usage time and the page usage time in a preset designated storage medium based on the reporting strategy.

[0182] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0183] In some optional implementations of this embodiment, the first processing module 303 includes:

[0184] A first recording submodule, configured to record an application start time corresponding to the application opening event based on the timer;

[0185] A second recording submodule, configured to record an application end time corresponding to the application closing event based on the timer;

[0186] A first calculation submodule, used for calculating a first difference between the application end time and the application start time;

[0187] A first generating submodule is configured to generate application usage time of the target application based on the first difference.

[0188] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0189] In some optional implementations of this embodiment, the second processing module 304 includes:

[0190] A first acquisition submodule, used to acquire a page unloading time corresponding to the page switching event;

[0191] A second acquisition submodule is used to acquire the page loading time corresponding to the page switching event;

[0192] A second calculation submodule, used for calculating a second difference between the page unloading time and the page loading time;

[0193] The second generating submodule is used to generate the page usage time of the target page based on the second difference.

[0194] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0195] In some optional implementations of this embodiment, the storage module 306 includes:

[0196] The third acquisition submodule is used to acquire multiple preset encryption algorithms;

[0197] A screening submodule, used for screening out a target encryption algorithm from all the encryption algorithms;

[0198] An encryption submodule, used to encrypt the application usage time and the page usage time respectively based on the target encryption algorithm to obtain the corresponding target application usage time and target page usage time;

[0199] A calling submodule, used for calling the specified storage medium;

[0200] The storage submodule is used to store the target application usage time and the target page usage time in the designated storage medium based on the reporting strategy.

[0201] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0202] In some optional implementations of this embodiment, the data processing device further includes:

[0203] A first determination module, used to determine whether a service configuration request triggered by a user is received;

[0204] Display module, used to display the preset service configuration page if yes;

[0205] A receiving module, used for receiving the service configuration data input by the user in the service configuration page;

[0206] A construction module, used to construct a corresponding barrier-free auxiliary service based on the service configuration data;

[0207] The registration module is used to register the accessibility assistance service.

[0208] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0209] In some optional implementations of this embodiment, the data processing device further includes:

[0210] The second judgment module is used to obtain the current time and judge whether the current time reaches the preset timing statistical time;

[0211] an extraction module, for, if yes, traversing all the usage time data stored in the designated storage medium, extracting all the first usage time data corresponding to the same designated application, and extracting all the second usage time data corresponding to the same designated page;

[0212] A third processing module, configured to accumulate all the first usage time data to obtain a first total usage time corresponding to the designated application;

[0213] a fourth processing module, configured to accumulate all the second usage time data to obtain a second total usage time corresponding to the designated page;

[0214] The fifth processing module is used to store the first total usage time and the second total usage time.

[0215] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0216] In some optional implementations of this embodiment, the data processing device further includes:

[0217] The third acquisition module is used to obtain preset test cases;

[0218] A testing module, used to test the accessibility assistance service using the test case in a preset test environment to obtain corresponding test results;

[0219] An analysis module, used to analyze the test results to obtain corresponding analysis results;

[0220] An optimization module is used to optimize the accessibility assistance service based on the analysis result.

[0221] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data processing method in the aforementioned implementation mode, and are not described in detail here.

[0222] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0223] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0224] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0225] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of data processing methods, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.

[0226] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the computer-readable instructions stored in the memory 41 or process data, such as computer-readable instructions for running the data processing method.

[0227] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.

[0228] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0229] In an embodiment of the present application, when a change in the interface state of the smart speaker is monitored, the preset barrier-free auxiliary service is called back, and the application opening event and application closing event of the target application are obtained based on the barrier-free auxiliary service, as well as the page switching event of the target page. Then, based on the use of a timer, the application opening event and the application closing event are automatically processed for usage time statistics to obtain the application usage time of the target application, and based on the use of a statistical strategy, the page switching event is automatically processed for usage time statistics to obtain the page usage time of the target page. Subsequently, based on the obtained reporting strategy, the application usage time and the page usage time are stored in a preset designated storage medium. The present application provides an efficient, secure and universal point-burying statistics method, which automatically and accurately performs point-burying statistics on the application usage time and page usage time of smart speakers based on the use of barrier-free auxiliary services, thereby improving the processing intelligence and efficiency of point-burying statistics for smart speakers. The point-burying statistics method for smart speakers proposed in the present application not only avoids the risk of modifying the system source code, but also ensures the stability and security of the system.

[0230] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the data processing method as described above.

[0231] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0232] In an embodiment of the present application, when a change in the interface state of the smart speaker is monitored, the preset barrier-free auxiliary service is called back, and the application opening event and application closing event of the target application are obtained based on the barrier-free auxiliary service, as well as the page switching event of the target page. Then, based on the use of a timer, the application opening event and the application closing event are automatically processed for usage time statistics to obtain the application usage time of the target application, and based on the use of a statistical strategy, the page switching event is automatically processed for usage time statistics to obtain the page usage time of the target page. Subsequently, based on the obtained reporting strategy, the application usage time and the page usage time are stored in a preset designated storage medium. The present application provides an efficient, secure and universal point-burying statistics method, which automatically and accurately performs point-burying statistics on the application usage time and page usage time of smart speakers based on the use of barrier-free auxiliary services, thereby improving the processing intelligence and efficiency of point-burying statistics for smart speakers. The point-burying statistics method for smart speakers proposed in the present application not only avoids the risk of modifying the system source code, but also ensures the stability and security of the system.

[0233] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0234] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A data processing method, characterized in that: The steps include: When the interface status of the smart speaker is monitored to change, the preset accessibility assistance service is called back; Acquire an application opening event and an application closing event of a target application based on the accessibility assistance service, and acquire a page switching event of a target page; Based on a preset timer, statistically process the usage time of the application opening event and the application closing event to obtain the application usage time corresponding to the target application; Performing usage time statistics processing on the page switching event based on a preset statistical strategy to obtain a page usage time corresponding to the target page; Get the preset reporting strategy; The application usage time and the page usage time are stored in a preset designated storage medium based on the reporting strategy.

2. The data processing method according to claim 1, characterized in that: The step of performing usage time statistics processing on the application opening event and the application closing event based on a preset timer to obtain the application usage time corresponding to the target application specifically includes: Recording the application start time corresponding to the application opening event based on the timer; Recording the application end time corresponding to the application closing event based on the timer; Calculating a first difference between the application end time and the application start time; The application usage time of the target application is generated based on the first difference.

3. The data processing method according to claim 1, characterized in that: The step of performing usage time statistics processing on the page switching event based on a preset statistical strategy to obtain the page usage time corresponding to the target page specifically includes: Obtaining the page unloading time corresponding to the page switching event; Obtaining the page loading time corresponding to the page switching event; Calculating a second difference between the page unloading time and the page loading time; The page usage time of the target page is generated based on the second difference.

4. The data processing method according to claim 1, characterized in that: The step of storing the application usage time and the page usage time in a preset designated storage medium based on the reporting strategy specifically includes: Get multiple preset encryption algorithms; Filter out a target encryption algorithm from all the encryption algorithms; Based on the target encryption algorithm, the application usage time and the page usage time are encrypted respectively to obtain the corresponding target application usage time and target page usage time; Calling the specified storage medium; Based on the reporting strategy, the target application usage time and the target page usage time are stored in the designated storage medium.

5. The data processing method according to claim 1, characterized in that: Before the step of calling back the preset accessibility assistance service when a change in the interface state of the smart speaker is detected, the method further includes: Determine whether a service configuration request triggered by a user is received; If yes, display the preset service configuration page; Receiving service configuration data input by the user in the service configuration page; Building a corresponding barrier-free auxiliary service based on the service configuration data; The accessibility assistance service is registered.

6. The data processing method according to claim 1, characterized in that: After the step of storing the application usage time and the page usage time in a preset designated storage medium based on the reporting strategy, the method further includes: Get the current time and determine whether the current time reaches the preset timing statistical time; If so, traverse all usage time data stored in the designated storage medium, extract all first usage time data corresponding to the same designated application, and extract all second usage time data corresponding to the same designated page; Accumulating all the first usage time data to obtain a first total usage time corresponding to the designated application; Accumulating all the second usage time data to obtain a second total usage time corresponding to the designated page; The first total usage time and the second total usage time are stored.

7. The data processing method according to claim 1, characterized in that: The data processing method further includes: Get the preset test cases; In a preset test environment, the accessibility assistance service is tested using the test case to obtain a corresponding test result; Analyze the test results to obtain corresponding analysis results; The accessibility assistance service is optimized based on the analysis results.

8. A data processing device, characterized in that: include: The callback module is used to call back the preset accessibility assistance service when the interface status of the smart speaker is monitored to change; A first acquisition module, configured to acquire an application opening event and an application closing event of a target application based on the accessibility assistance service, and acquire a page switching event of a target page; A first processing module, configured to perform usage time statistics processing on the application opening event and the application closing event based on a preset timer to obtain the application usage time corresponding to the target application; A second processing module is used to perform usage time statistics processing on the page switching event based on a preset statistical strategy to obtain a page usage time corresponding to the target page; The second acquisition module is used to obtain a preset reporting strategy; The storage module is used to store the application usage time and the page usage time in a preset designated storage medium based on the reporting strategy.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the data processing method according to any one of claims 1 to 7 when executing the computer-readable instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the data processing method according to any one of claims 1 to 7 are implemented.