Set top box application starting control method, device and equipment
By preprocessing and user behavior analysis of massive set-top box log data, generating application management configuration files, and controlling application startup, the problems of slow startup speed and excessive resource utilization are solved, and user experience and system security are improved.
Patent Information
- Application Number
- CN202411336215.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-10
AI Technical Summary
When the set-top box is started, the startup speed is extended due to the automatic operation of a large number of applications or initialization operations, and the system resources are used up too much, which affects performance. The existing solutions are difficult to fully meet user needs and limit user flexibility.
Through regular configuration, match massive log data of set-top box, perform preprocessing and user behavior analysis, generate application management configuration files, notify the box to update the configuration, enable it to control the startup and disable of the application, and optimize the application startup configuration.
Automatically adjust the application startup configuration, reduce user manual operation needs, improve user experience, identify and limit unnecessary applications to automatically start, reduce system resource waste, and enhance security.
Smart Images

Figure CN119299781A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart televisions and set-top boxes, and in particular to a set-top box application startup control method, device and equipment. Background Art
[0002] In the current context of accelerating digital life, smart TVs and set-top boxes, as the core terminals for home entertainment and information acquisition, are becoming increasingly popular and important. With the continuous advancement of technology and the richness and diversity of Internet content, users' demand for personalized and efficient entertainment experience is growing, which directly promotes the booming development of the third-party application market. From video streaming services, game platforms to education, fitness, smart home control and other applications, users can easily install and enjoy the convenience and fun brought by these applications according to their interests and needs.
[0003] However, with the surge in the number of third-party applications, the system management of set-top boxes faces unprecedented challenges. First, the boot speed has become an issue that cannot be ignored. Since a large number of applications try to run automatically or perform initialization operations when the system starts, the time it takes for the set-top box to go from cold start to a fully usable state is significantly extended, causing inconvenience to users. Secondly, the reasonable allocation of system resources has also become particularly important. The simultaneous operation of multiple applications often takes up too much CPU, memory, and storage space, which not only affects the overall performance of the set-top box, but may also lead to negative experiences such as application crashes and slow responses.
[0004] In order to meet these challenges, some set-top box manufacturers in the market have begun to try to optimize application management through technical means, but existing solutions often have limitations. For example, by restricting the installation location of third-party applications, although the occupation of system resources by applications can be controlled to a certain extent, this method sacrifices the flexibility and freedom of users and limits the ability of users to freely install applications according to their own needs. In addition, some set-top boxes identify and prevent unnecessary self-starting behaviors by monitoring system events, but the accuracy and efficiency of this method are often restricted by system complexity and application diversity, and it is difficult to fully meet user needs. Summary of the invention
[0005] In view of the problems existing in set-top box application management, the present invention provides a set-top box application startup control method, device and equipment.
[0006] In a first aspect, the technical solution of the present invention provides a set-top box application startup control method, comprising the following steps: Match target log data in the massive logs of set-top boxes through rule configuration; Preprocess the target log data; Perform user behavior analysis on the preprocessed log data to obtain user application configuration strategies; Write the box configuration for application management according to the user application configuration policy and generate the configuration file; Upload the configuration file to the specified location and notify the box to update the configuration content, so that the box can perform corresponding startup and disable operations according to the content specified in the configuration file.
[0007] As a further limitation of the technical solution of the present invention, the step of matching target log data in the massive logs of the set-top box through rule configuration includes: Send log acquisition requests to the box end through rule configuration; The receiving box configures the returned logs based on the rules in the request.
[0008] As a further limitation of the technical solution of the present invention, the step of preprocessing the target log data includes: Clean the target log data; Aggregate different logs into a complete event or action.
[0009] As a further limitation of the technical solution of the present invention, the step of cleaning the target log data includes: Remove irrelevant or redundant log entries; Format the retained logs; De-duplicate the same event in the log; Use regular expressions to extract key information from logs.
[0010] As a further limitation of the technical solution of the present invention, after the step of extracting key information from the log using a regular expression, the following steps are further included: Perform calculations on derived data; specifically including: Calculate the duration of the operation based on the time information in the log; The frequency of operations is calculated based on the operation information in the log.
[0011] As a further limitation of the technical solution of the present invention, the step of aggregating different logs into a complete event or action includes: Different log entries are associated and combined based on their common features, including timestamp, device ID, and session ID. Arrange the associated log entries in chronological order to form a complete sequence of events; After completing log correlation and event serialization, aggregate the logs into a complete event or action.
[0012] As a further limitation of the technical solution of the present invention, the step of performing user behavior analysis on the preprocessed log data to obtain the user application configuration policy includes: Extract features related to user behavior from log data; According to the analysis objectives, model-influencing features are selected from the extracted relevant features and feature processing is performed; The processed features are input into the K-means model for training to obtain a trained K-means model. Based on the trained K-means model, users are grouped according to their behavioral features. Based on time series analysis and changing trends in user behavior, the recommendation strategy is dynamically adjusted to obtain the application configuration strategy.
[0013] As a further limitation of the technical solution of the present invention, the steps of uploading the configuration file to a specified location and notifying the box end to update the configuration content so that the box end performs corresponding startup and disable operations according to the content specified in the configuration file include: Upload the configuration generated json format file to the specified OSS directory; and publish Topic messages through MQTT to notify the box that new configuration content needs to be updated; When the box subscribes to a Topic message, it downloads and applies a new configuration file. During the application process, the box performs corresponding startup and disable operations according to the content specified in the configuration file.
[0014] In a second aspect, the technical solution of the present invention further provides a set-top box application startup control device, including a log acquisition module, a log preprocessing module, a user behavior analysis module, a configuration module and an output module; The log acquisition module is used to match the target log data in the massive logs of the set-top box through rule configuration; A preprocessing module, used to preprocess the target log data; User behavior analysis module, used to perform user behavior analysis on pre-processed log data to obtain user application configuration strategy; Configuration module, used to write the box configuration of application management according to the user application configuration policy and generate the configuration file; The output module is used to upload the configuration file to the specified location and notify the box to update the configuration content, so that the box can perform corresponding startup and disable operations according to the content specified in the configuration file.
[0015] As a further limitation of the technical solution of the present invention, the log acquisition module includes a request sending unit and a log receiving unit; A request sending unit is used to send log acquisition requests to the box end through rule configuration; The log receiving unit is used to receive the logs returned by the box based on the rule configuration in the request.
[0016] As a further limitation of the technical solution of the present invention, the pre-processing module includes a cleaning processing unit and a log aggregation unit; A cleaning processing unit, used for cleaning target log data; The log aggregation unit is used to aggregate different logs into a complete event or action.
[0017] As a further limitation of the technical solution of the present invention, the cleaning processing unit is specifically used to remove irrelevant or redundant log entries; format the retained logs; deduplicate the same event in the logs; and extract key information from the logs using regular expressions.
[0018] As a further limitation of the technical solution of the present invention, the cleaning processing unit is also used to calculate the derived data; specifically including: calculating the duration of the operation according to the time information in the log; calculating the frequency of the operation according to the operation information in the log.
[0019] As a further limitation of the technical solution of the present invention, the log aggregation unit is specifically used to associate and combine different log entries through common features of the logs; wherein the common features include timestamps, device IDs, and session IDs; the associated log entries are arranged in chronological order to form a complete event sequence; after completing log association and event serialization, the logs are aggregated into a complete event or action.
[0020] As a further limitation of the technical solution of the present invention, the user behavior analysis module is specifically used to extract features related to user behavior from log data; according to the analysis objectives, model influencing features are selected from the extracted related features and feature processing is performed; the processed features are input into the K-means model for training to obtain a trained K-means model, and based on the trained K-means model, users are grouped according to behavioral characteristics; based on time series analysis and changing trends of user behavior, the recommendation strategy is dynamically adjusted to obtain an application configuration strategy.
[0021] As a further limitation of the technical solution of the present invention, the output module is specifically used to generate a json format file from the configuration and upload it to a specified OSS directory; and publish a Topic message through MQTT to notify the box end that there is new configuration content that needs to be updated; when the box end subscribes to the Topic message, it downloads and applies the new configuration file. During the application process, the box end performs corresponding startup and disable operations according to the content specified in the configuration file.
[0022] In the third aspect, the technical solution of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; the memory stores computer program instructions executable by the at least one processor, and the computer program instructions are executed by the at least one processor so that the at least one processor can execute the set-top box application startup control method as described in the first aspect.
[0023] It can be seen from the above technical solutions that the present invention has the following advantages: the method can automatically adjust and optimize the startup configuration of applications in the set-top box, reduce the need for manual operation by users, and make the application startup of the set-top box more in line with the actual usage habits of users, thereby significantly improving the user experience. It can identify and limit the automatic startup of unnecessary or low-frequency applications in the background, effectively reducing the waste of system resources. By strictly controlling application startup, this method helps prevent malware or unauthorized applications from automatically running on the set-top box, enhancing system security and protecting user privacy and data security.
[0024] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0026] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.
[0027] Figure 2 is a schematic block diagram of an apparatus according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] like Figure 1 As shown, an embodiment of the present invention provides a set-top box application startup control method, comprising the following steps: Step 1: Match the target log data in the massive logs of the set-top box through rule configuration; It should be noted that the box-side application module integrates functions such as log collection, configuration update, and application management, and uses a lightweight service framework Android Service to implement background operation, ensuring that configuration updates and application startup management tasks are completed without affecting the normal user experience. The application management module will dynamically adjust according to information such as the package name, version, blacklist and whitelist in the configuration file to achieve application startup control. For Android set-top boxes, various applications installed in them will generate corresponding different logs when users perform different operations. The operating subject of this application is the head end, where the head end refers to the server end, which sends log acquisition requests to the box end through rule configuration; the receiving box end returns logs based on the rule configuration in the request.
[0030] Step 2: Preprocess the target log data; The preprocessing process in this step includes cleaning the target log data; Aggregate different logs into a complete event or action.
[0031] On the one hand, the target log data is cleaned. First, irrelevant or redundant log entries are removed. This can be filtered by predefined rules or keywords. For example, only logs related to video applications are retained, and logs of other system services are removed. The retained logs are formatted to conform to a unified format specification. This may include standardization of timestamp formats, unified identification of log levels, etc. In some cases, the same event may appear multiple times in the log, and deduplication is required to avoid repeated analysis. For example, continuous error logs may actually be multiple reports of the same error. Duplicate logs are judged and removed by time intervals or content similarities. Use regular expressions or other parsing methods to extract key information from the log, such as user ID, operation type, operation object, etc. Then, further statistical analysis or behavioral analysis can be performed based on this information. After the basic information is extracted, derived data can be calculated. For example, the duration of an operation can be calculated based on the time information in the log, or the frequency of an operation can be calculated based on the operation information in the log. These derived data can provide important basis for subsequent user behavior analysis.
[0032] Logs such as Linux kernel-level syslog and Android-specific logcat can be captured in real time. Use the log classification strategy (DIWE) and configure the level according to the actual user situation. Use the regular expression method to accurately match logs of specific formats or contents to reduce redundant data. For example, if we are concerned about the user's behavior of opening video apk, then the log collection rules can be configured with specific keywords, such as video_start to capture the opening of all video apk.
[0033] On the other hand, log aggregation: First, different log entries need to be grouped together by associating them. This can be based on common features such as timestamps, device IDs, session IDs, etc. For example, when a user performs an operation, this operation may generate logs in multiple applications or system modules. By matching the timestamps and other related information of these logs, they can be associated. Arrange the associated log entries in chronological order to form a complete sequence of events. This allows the user's operation process to be reconstructed and the relationship between different operation steps to be analyzed. After completing log association and event serialization, these logs can be aggregated into a higher-level event or action. For example, the entire process from the user starting the video application to the video playing can be described by aggregating multiple log entries to describe a complete "play video" event.
[0034] Step 3: Perform user behavior analysis on the preprocessed log data to obtain the user application configuration strategy; After completing the log cleaning, we can simply classify these by different dimensions, such as application opening frequency, usage duration, application opening time, etc. By deeply mining user behavior and analyzing user preferences, we can obtain different user portraits to personalize the application startup requirements of the user's set-top box.
[0035] In this stage, we use the big data processing framework Spark to process and analyze log data in batches, and use machine learning algorithms such as clustering algorithms to deeply mine user behavior data to identify user usage habits, preferences, and potential needs. We can also combine time series to analyze and capture the changing trends of user behavior over time. For example, the clustering algorithm clusters some users into "live broadcast enthusiasts" and "movie enthusiasts". At this time, we can give a list of recommended applications based on user habits and start them automatically when the computer is turned on, so that users can watch them directly when they turn on the computer.
[0036] The specific implementation process is as follows: Extract features related to user behavior from log data, such as application usage duration, access frequency, usage time, etc. Select features that have an impact on the model based on the analysis objectives, and perform feature engineering (such as standardization, normalization, binning, etc.).
[0037] Using the k-clustering algorithm, data does not need to be labeled, just ensure that the input data is representative and consistent. Select the K-means clustering algorithm to classify user groups in unsupervised learning. Input the processed data into the K-means model for training. The model will learn the rules of user behavior by constantly adjusting internal parameters and divide users into different groups.
[0038] The model is evaluated through cross-validation, confusion matrix, ROC curve and other methods to ensure that the model has good generalization ability. If the model performs poorly, the model can be optimized by adjusting model parameters.
[0039] Use the K-means clustering algorithm to group users according to their behavioral characteristics. For example, cluster analysis can divide users into "live streaming enthusiasts", "movie enthusiasts", "game players", etc. The behavioral characteristics of users in each group are similar, which facilitates subsequent personalized service recommendations.
[0040] Develop personalized recommendation strategies based on user habits and preferences. For example, set the live broadcast application to start automatically at boot for the "live broadcast enthusiasts" group; recommend popular movie applications to the "movie enthusiasts" group. Dynamically adjust recommendation strategies based on time series analysis and changing trends in user behavior. For example, if a user has recently used a specific application frequently, you can adjust the application to start automatically at boot or increase its recommendation frequency.
[0041] Step 4: Write the box configuration of application management according to the user application configuration policy and generate the configuration file; The head-end configuration uses a flexible configuration management system. According to user analysis, statistical rules can be obtained. At the same time, combined with the operator's requirements, some applications can be freely specified to start automatically when the machine is turned on, and some applications cannot be started. In this way, the required head-end configuration is written. These configurations can include: application package name packageName, version, MD5 value, blacklist list, whitelist list, etc. After the configuration is written, the configuration module will publish a related Topic through MQTT to notify the box end that new configuration content needs to be updated. At the same time, the configuration management system provides version control function to ensure the traceability and rollback of the configuration.
[0042] After each configuration is generated, a json format file will be generated based on the configuration and uploaded to the specified OSS directory for download and use by the box end.
[0043] During use, first 1) user analysis and rule formulation: a) Obtain the user's application usage habits, frequency and preferences through log data and user behavior analysis system. For example, a user frequently uses the video application "VideoApp" from 9 to 11 every night.
[0044] b) According to the analysis results and operator requirements, formulate corresponding configuration rules. For example, configure the "VideoApp" application for the user to start automatically when the computer is turned on, and set some infrequently used applications such as "MusicApp" to not start.
[0045] 2) Configuration management system operation: a) Select user groups: In the configuration management system, select the user groups for which configurations need to be generated. For example, based on the previous analysis results, select the "live broadcast enthusiasts" user group.
[0046] b) Formulate configuration content: Enter the configuration writing interface and fill in relevant configuration information.
[0047] Application package name: Specify the application package name that needs to be started automatically at boot, such as "com.example.videoapp".
[0048] Version: Specify the application version number, such as "1.2.3", to ensure that the correct version of the application is started.
[0049] Blacklist: Add the application package name that needs to be banned, such as "com.example.musicapp".
[0050] Whitelist: Add the application package names that need to be allowed, such as "com.example.weatherapp".
[0051] 3) Generate configuration files: After the configuration is completed, the system will automatically generate a new version number, such as "v1.0.5", to identify the version of this configuration. The system will record the generation time, generator, and version content of the configuration version to ensure the traceability of the configuration.
[0052] JSON file generation: The system converts the generated configuration content into a JSON format file, for example: { "version": "v1.0.5", "packageName": "com.example.videoapp", "autoStart": true, "versionCode": "1.2.3", "blacklist": ["com.example.musicapp"], "whitelist": ["com.example.weatherapp"] } Upload to OSS: The generated JSON configuration file will be uploaded to the specified OSS (Object Storage Service) directory, for example "oss: / / configs / user_profiles / v1.0.5.json".
[0053] 4)MQTT Notification: After the system generates the configuration, it will publish a Topic via MQTT to notify the box that new configuration content is available. For example, if the published Topic is "config / update", the message content includes the path and version number of the configuration file: { "topic": "config / update", "message": { "path": "oss: / / configs / user_profiles / v1.0.5.json", "version": "v1.0.5" } } Step 5: Upload the configuration file to the specified location and notify the box to update the configuration content, so that the box can perform corresponding startup and disable operations according to the content specified in the configuration file.
[0054] It should be noted that the box-side application module integrates log collection, configuration update, application management and other functions, and uses the lightweight service framework Android Service to achieve background operation, ensuring that configuration updates and application startup management tasks are completed without affecting the normal user experience. The application management module will dynamically adjust according to the package name, version, blacklist and whitelist information in the configuration file to achieve application startup control.
[0055] When the box-end device is turned on and connected to the network, its built-in service module first checks whether there is a new configuration update notification. When subscribing to a specific Topic message, the configuration update module of the box-end application module will download the latest configuration file from the specified path of OSS. According to the various information in the configuration file, such as package name, version, blacklist and whitelist, the application management module will use the corresponding strategy to modify the startup information of the apk, set the whitelist application to start and start automatically at startup, and set the blacklist application to shut down and prohibit it from starting automatically at startup.
[0056] Through comprehensive multi-dimensional analysis, user personalized configuration recommendations, flexible application startup configuration strategies and other technical means, flexible and accurate control of third-party application startup behavior on set-top boxes is achieved. This method not only helps to optimize system startup speed and resource utilization, but also significantly improves user experience.
[0057] In some embodiments, when performing user behavior analysis, in the log vectorization parsing scenario, due to the lack of prior knowledge of the types of log events, clustering algorithms such as K-means that require a pre-set number of clusters cannot be applied. At the same time, the composition of the log text contains constant templates and variable parameters, so it is easily affected by noise during the vectorization representation process. Therefore, the method of constructing 𝜖-neighborhood can be used to cluster similar log vectors to achieve the classification of log event vectors. The specific process is as follows: (1) Traverse the sample set to find all core object sets that satisfy the 𝜖-neighborhood; (2) Randomly select core objects xi , find all density-reachable samples of the core object to generate clusters; (3) remove the samples involved in step (2) from the core object set; (4) repeat steps (2) and (3) until all core objects are removed.
[0058] like Figure 2 As shown, an embodiment of the present invention further provides a set-top box application startup control device, including a log acquisition module, a log preprocessing module, a user behavior analysis module, a configuration module and an output module; The log acquisition module is used to match the target log data in the massive logs of the set-top box through rule configuration; A preprocessing module, used to preprocess the target log data; User behavior analysis module, used to perform user behavior analysis on pre-processed log data to obtain user application configuration strategy; Configuration module, used to write the box configuration of application management according to the user application configuration policy and generate the configuration file; The output module is used to upload the configuration file to the specified location and notify the box to update the configuration content, so that the box can perform corresponding startup and disable operations according to the content specified in the configuration file.
[0059] In some embodiments, the log acquisition module includes a request issuing unit and a log receiving unit; A request sending unit is used to send log acquisition requests to the box end through rule configuration; The log receiving unit is used to receive the logs returned by the box based on the rule configuration in the request.
[0060] In some embodiments, the pre-processing module includes a cleaning processing unit and a log aggregation unit; A cleaning processing unit, used for cleaning target log data; The log aggregation unit is used to aggregate different logs into a complete event or action.
[0061] The cleaning processing unit is used to remove irrelevant or redundant log entries, format the retained logs, deduplicate the same events in the logs, and extract key information from the logs using regular expressions. It is also used to calculate derived data, including: calculating the duration of the operation based on the time information in the logs; and calculating the frequency of the operation based on the operation information in the logs.
[0062] The log aggregation unit is specifically used to associate and combine different log entries through common features of the logs; the common features include timestamp, device ID, and session ID; the associated log entries are arranged in chronological order to form a complete event sequence; after completing log association and event serialization, the logs are aggregated into a complete event or action.
[0063] In some embodiments, the user behavior analysis module is specifically used to extract features related to user behavior from log data; according to the analysis objectives, model influencing features are selected from the extracted related features and feature processing is performed; the processed features are input into the K-means model for training to obtain a trained K-means model, and based on the trained K-means model, users are grouped according to their behavioral characteristics; based on time series analysis and changing trends in user behavior, the recommendation strategy is dynamically adjusted to obtain an application configuration strategy.
[0064] In some embodiments, the output module is specifically used to upload the configuration-generated json format file to a specified OSS directory; and publish a Topic message through MQTT to notify the box end that there is new configuration content that needs to be updated; when the box end subscribes to the Topic message, it downloads and applies the new configuration file. During the application process, the box end performs corresponding startup and disable operations according to the content specified in the configuration file.
[0065] The embodiment of the present invention also provides an electronic device, which includes: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus. The communication bus can be used for information transmission between the electronic device and the sensor. The processor can call the logic instructions in the memory to execute the following method: match the target log data in the massive log of the set-top box through rule configuration; pre-process the target log data; perform user behavior analysis on the pre-processed log data to obtain the user application configuration strategy; write the box configuration of the application management according to the user application configuration strategy, and generate a configuration file; upload the configuration file to the specified location and notify the box end to update the configuration content, so that the box end performs corresponding startup and disable operations according to the content specified in the configuration file.
[0066] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.
[0067] 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.
[0068] An embodiment of a set-top box application startup control device provided in an embodiment of the present invention belongs to the same inventive concept as the set-top box application startup control method of the above-mentioned embodiments. For details not described in detail in the embodiment of the set-top box application startup control device, reference can be made to the embodiment of the above-mentioned set-top box application startup control method.
[0069] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.
Claims
1. A set-top box application startup control method, characterized in that: The steps include: Match target log data in the massive logs of set-top boxes through rule configuration; Preprocess the target log data; Perform user behavior analysis on the preprocessed log data to obtain user application configuration strategies; Write the box configuration for application management according to the user application configuration policy and generate the configuration file; Upload the configuration file to the specified location and notify the box to update the configuration content, so that the box can perform corresponding startup and disable operations according to the content specified in the configuration file.
2. The set-top box application startup control method according to claim 1, characterized in that: The steps of matching target log data in the massive logs of the set-top box through rule configuration include: Send log acquisition requests to the box end through rule configuration; The receiving box configures the returned logs based on the rules in the request.
3. The set-top box application startup control method according to claim 1, characterized in that: The steps for preprocessing the target log data include: Clean the target log data; Aggregate different logs into a complete event or action.
4. The set-top box application startup control method according to claim 3, characterized in that: The steps for cleaning the target log data include: Remove irrelevant or redundant log entries; Format the retained logs; De-duplicate the same event in the log; Use regular expressions to extract key information from logs.
5. The set-top box application startup control method according to claim 4, characterized in that: The steps of using regular expressions to extract key information from logs also include: Perform calculations on derived data; specifically including: Calculate the duration of the operation based on the time information in the log; The frequency of operations is calculated based on the operation information in the log.
6. The set-top box application startup control method according to claim 3, characterized in that: The steps to aggregate different logs into a complete event or action include: Different log entries are associated and combined based on their common features, including timestamp, device ID, and session ID. Arrange the associated log entries in chronological order to form a complete sequence of events; After completing log correlation and event serialization, aggregate the logs into a complete event or action.
7. The set-top box application startup control method according to claim 3, characterized in that: The steps of performing user behavior analysis on the preprocessed log data to obtain the user application configuration policy include: Extract features related to user behavior from log data; According to the analysis objectives, model-influencing features are selected from the extracted relevant features and feature processing is performed; The processed features are input into the K-means model for training to obtain a trained K-means model. Based on the trained K-means model, users are grouped according to their behavioral features. Based on time series analysis and changing trends in user behavior, the recommendation strategy is dynamically adjusted to obtain the application configuration strategy.
8. The set-top box application startup control method according to claim 1, characterized in that: The steps of uploading the configuration file to the specified location and notifying the box to update the configuration content so that the box can start and disable the corresponding operations according to the content specified in the configuration file include: Upload the configuration generated json format file to the specified OSS directory; and publish Topic messages through MQTT to notify the box that new configuration content needs to be updated; When the box subscribes to a Topic message, it downloads and applies a new configuration file. During the application process, the box performs corresponding startup and disable operations according to the content specified in the configuration file.
9. A set-top box application startup control device, characterized in that: It includes log acquisition module, log preprocessing module, user behavior analysis module, configuration module and output module; The log acquisition module is used to match the target log data in the massive logs of the set-top box through rule configuration; A preprocessing module, used to preprocess the target log data; User behavior analysis module, used to perform user behavior analysis on pre-processed log data to obtain user application configuration strategy; Configuration module, used to write the box configuration of application management according to the user application configuration policy and generate the configuration file; The output module is used to upload the configuration file to the specified location and notify the box to update the configuration content, so that the box can perform corresponding startup and disable operations according to the content specified in the configuration file.
10. An electronic device, characterized in that: The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; the memory stores computer program instructions that can be executed by the at least one processor, and the computer program instructions are executed by the at least one processor so that the at least one processor can execute the set-top box application startup management method as described in any one of claims 1 to 8.