Self-learning decoding decision-making method and system based on AI large model

Through the self-learning decoding decision-making method based on the AI ​​large model, using target experiments and decoding configuration scorers, it solves the problem of relying on experience in the selection of decoding methods in the existing technology, and achieves more reliable and efficient decoding on fragmented devices. Effect.

CN118733108APending Publication Date: 2024-10-01CHINA TELECOM DIGITAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410945129.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The selection of decoding methods and configuration settings in the existing technology rely too much on the experience of developers, resulting in poor decoding results and unreliability on Android devices with severe model fragmentation.

Method used

It adopts a self-learning decoding decision-making method based on large AI models, intelligently scores decoding feedback through target experiments and decoding configuration scorers, and dynamically selects the best decoding configuration to avoid dependence on experience and adapt to the needs of different models.

Benefits of technology

It improves the reliability and consistency of decoding effects, especially on Android devices with serious model fragmentation, dynamically selecting the best decoding configuration and enhancing decoding performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733108A_ABST
    Figure CN118733108A_ABST
Patent Text Reader

Abstract

The invention relates to a self-learning decoding decision-making method and system based on an AI large model, and belongs to the technical field of software decoding, and the method comprises the steps that decoding equipment sends a decoding configuration request to a decoding decision-making device; the decoding decision-making device retrieves whether a target decision exists in a decision-making library or not through a decision-making manager; if yes, issuing the target decision to decoding equipment; otherwise, an experiment decoding configuration request is sent to the experiment manager; the experiment manager retrieves whether a target experiment exists in the experiment pool or not; if yes, entering the next step; otherwise, scheduling an experiment generator to create a target experiment; calling a decoding configuration generator, generating experiment decoding configuration, and issuing the experiment decoding configuration to decoding equipment; the decoding equipment carries out decoding operation, generates decoding feedback and returns the decoding feedback to the decoding decision maker; the decoding decision maker returns decoding feedback to the target experiment; calling a decoding configuration scoring device to intelligently score decoding feedback; and updating the target decision according to the decoding configuration score.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of software decoding, and in particular to a self-learning decoding decision method and system based on an AI large model. Background Art

[0002] With the development of audio and video technology, encoding and decoding, as its core and foundation, directly affects the quality of audio and video presentation and user experience. In the current technical context, the selection of decoding methods and the setting of decoding configuration are particularly important.

[0003] In the prior art, regarding how to set the decoding method and configuration, the current common practice is that developers set up a whitelist based on their understanding of the device, which model corresponds to which configuration, and at the same time set a default decoding configuration with good versatility; or before decoding, set it based on the decoding conditions of the device, such as whether it contains a hard decoder, which decoding configurations are supported, etc., and the basis for selection is still based on experience.

[0004] In the above technical solutions, the former method relies too much on the developer's experience, and the default decoding configuration used by the device often has poor decoding effect; the latter method uses a static judgment method, and the same judgment results may vary greatly on different models, which is often unreliable for Android devices with severe model fragmentation. Summary of the invention

[0005] In view of the above deficiencies in the prior art, the purpose of the invention is to provide a self-learning decoding decision method and system based on an AI large model. Through a target experiment, a decoding configuration scorer can be called to intelligently score the decoding feedback, thereby avoiding dependence on developer experience. The target experiment updates the target decision based on the decoding configuration score, and a dynamic judgment method is adopted to dynamically select the best decoding configuration for the decoding device, thereby enhancing the decoding effect, avoiding the use of the same judgment result on the same model, and being more reliable in Android devices with severe model fragmentation.

[0006] In a first aspect of the present invention, a self-learning decoding decision method based on an AI large model is proposed, comprising:

[0007] S1, the decoding device sends a decoding configuration request to the decoding decision maker;

[0008] S2, according to the decoding configuration request, the decoding decision maker searches the decision library through the decision manager to see whether there is a target decision; if so, the target decision is sent to the decoding device; otherwise, an experimental decoding configuration request is sent to the experiment manager;

[0009] S3, according to the experiment decoding configuration request, the experiment manager searches whether there is a target experiment in the experiment pool; if so, proceed to the next step; otherwise, schedule the experiment generator to create the target experiment and forward the experiment decoding configuration request to the target experiment;

[0010] S4, according to the target experiment, calling a decoding configuration generator to generate an experimental decoding configuration, and sending the experimental decoding configuration to the decoding device;

[0011] S5, according to the experimental decoding configuration, the decoding device performs a decoding operation, generates decoding feedback, and returns the decoding feedback to the decoding decision maker;

[0012] S6, the decoding decision maker returns the decoding feedback to the target experiment;

[0013] S7, according to the target experiment, calling a decoding configuration scorer to intelligently score the decoding feedback to obtain a decoding configuration score;

[0014] S8, updating the target decision according to the decoding configuration score and through the target experiment.

[0015] Further, calling a decoding configuration scorer in S7 to intelligently score the decoding feedback to obtain a decoding configuration score specifically includes:

[0016] S701, the decoding configuration scorer generates an AI large model context according to the accumulated decoding feedback, decoding configuration and related model information;

[0017] S702, generating a Prompt instance using the AI ​​big model Prompt template according to the AI ​​big model context;

[0018] S703, input the Prompt instance into the AI ​​big model, and generate a decoding configuration score through the AI ​​big model.

[0019] Further, after S8, the self-learning decoding decision method based on the AI ​​big model further includes:

[0020] S9, reordering all the model decision items in the target decision according to the decoding configuration score, and determining the model decision item with the highest decoding configuration score as the optimal decoding solution.

[0021] Furthermore, the model decision items include: static model decision items and dynamic model decision items. The static model decision items include CPU main frequency, CPU instruction set, CPU manufacturer, GPU frequency, GPU model, GPU temperature, system type, system version and memory size. The dynamic model decision items include CPU average utilization, CPU average temperature, memory average occupancy and actual utilization of soft decoding or hard decoding.

[0022] Further, after S9, the self-learning decoding decision method based on the AI ​​big model further includes:

[0023] S10, determining whether there is an unscored decoding configuration in the target experiment; if so, continuing the target experiment; otherwise, ending the target experiment and saving the updated target decision to the decision library.

[0024] The second aspect of the present invention proposes a self-learning decoding decision system based on an AI big model, comprising:

[0025] A sending module, used for the decoding device to send a decoding configuration request to the decoding decision maker;

[0026] A first retrieval module is used for, according to the decoding configuration request, the decoding decision maker searches the decision library through the decision manager to see whether there is a target decision; if so, the target decision is sent to the decoding device; otherwise, the experimental decoding configuration request is sent to the experiment manager;

[0027] The second retrieval module is used for the experiment manager to retrieve whether there is a target experiment in the experiment pool according to the experiment decoding configuration request; if so, proceed to the next step; otherwise, schedule the experiment generator to create the target experiment and forward the experiment decoding configuration request to the target experiment;

[0028] A first generating module is used to call a decoding configuration generator according to the target experiment, generate an experimental decoding configuration, and send the experimental decoding configuration to the decoding device;

[0029] A second generating module, configured to generate decoding feedback by the decoding device according to the experimental decoding configuration and return the decoding feedback to the decoding decision maker;

[0030] A return module, used for the decoding decision maker to return the decoding feedback to the target experiment;

[0031] A scoring module, used to call a decoding configuration scorer to intelligently score the decoding feedback according to the target experiment to obtain a decoding configuration score;

[0032] An updating module is used to update the target decision according to the decoding configuration score through the target experiment.

[0033] Furthermore, the scoring module is specifically used for:

[0034] The decoding configuration scorer generates an AI large model context based on the accumulated decoding feedback, decoding configuration, and related model information;

[0035] Generate a Prompt instance using the AI ​​big model Prompt template according to the AI ​​big model context;

[0036] The Prompt instance is input into the AI ​​big model, and a decoding configuration score is generated by the AI ​​big model.

[0037] Furthermore, the self-learning decoding decision system based on the AI ​​big model also includes:

[0038] The reordering module is used to reorder all the model decision items in the target decision according to the decoding configuration score, and determine the model decision item with the highest decoding configuration score as the optimal decoding solution.

[0039] Furthermore, the model decision items include: static model decision items and dynamic model decision items. The static model decision items include CPU main frequency, CPU instruction set, CPU manufacturer, GPU frequency, GPU model, GPU temperature, system type, system version and memory size. The dynamic model decision items include CPU average utilization, CPU average temperature, memory average occupancy and actual utilization of soft decoding or hard decoding.

[0040] Furthermore, the self-learning decoding decision system based on the AI ​​big model also includes:

[0041] The judgment module is used to judge whether there is an unscored decoding configuration in the target experiment; if so, continue the target experiment; otherwise, end the target experiment and save the updated target decision to the decision library.

[0042] The beneficial effects of the present invention are as follows:

[0043] The method and system of the present invention, through a target experiment, call a decoding configuration scorer to intelligently score decoding feedback, thereby avoiding dependence on developer experience, and updating the target decision according to the decoding configuration score through the target experiment. A dynamic judgment method is adopted to dynamically select the best decoding configuration for the decoding device, thereby enhancing the decoding effect, avoiding the use of the same judgment result on the same model, and being more reliable in Android devices with severe model fragmentation. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0045] Figure 1 A flowchart of a self-learning decoding decision method based on an AI large model provided by an embodiment of the present invention;

[0046] Figure 2 A structural diagram of a self-learning decoding decision system based on an AI big model provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0048] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0049] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0050] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0051] The present invention proposes a self-learning decoding decision method and system based on an AI large model, which solves the problem that the prior art relies too much on the experience of developers and the default decoding configuration used by the device often has poor decoding effect; in addition, the static judgment method adopted will result in very different performances of the same judgment results on different models, which is often unreliable for Android devices with serious model fragmentation.

[0052] Method Embodiment

[0053] Reference Manual Attached Figure 1 , showing a flow chart of a self-learning decoding decision method based on an AI big model provided in an embodiment of the present invention.

[0054] An embodiment of the present invention provides a self-learning decoding decision method based on an AI large model, comprising:

[0055] Specifically, the method includes steps S1 to S10.

[0056] S1, the decoding device sends a decoding configuration request to the decoding decision maker.

[0057] Specifically, the decoding device prepares for decoding and requests a decoding configuration from a decoding decision maker.

[0058] Among them, the Decode Strategy Maker (DSM) is a self-learning decoding decision system based on an AI large model, which can generate and issue decoding configurations for decoding devices.

[0059] The decoding configuration (d-config, Decode Config) is a set of initialization parameters required to build a decoding decision maker.

[0060] In the present invention, the advantage of the decoding device requesting the decoding configuration from the decoding decision maker based on the AI ​​large model is that a highly automated and intelligent decoding decision process can be achieved. Through the decoding decision maker, the decoding device can obtain the most optimized decoding configuration according to the current environmental conditions, hardware configuration, and characteristics of the decoding task. This self-learning system based on the AI ​​large model can continuously optimize the decoding strategy based on feedback and improve decoding efficiency and quality. At the same time, the dynamic generation and distribution of the decoding configuration enables the system to quickly adapt to different decoding requirements and environmental changes, thereby achieving a better balance in real-time performance and effect performance.

[0061] S2: According to the decoding configuration request, the decoding decision maker searches the decision library through the decision manager to see if there is a target decision. If so, the target decision is sent to the decoding device. Otherwise, an experimental decoding configuration request is sent to the experiment manager.

[0062] Specifically, according to the decoding configuration request, the decision manager in the decoding decider first retrieves the decision of the decoding device type in the decision library, that is, the target decision. If the retrieval is successful, the target decision is sent to the decoding device. If the retrieval fails, the experimental decoding configuration is requested from the experiment manager.

[0063] Among them, the Strategy Manager is a device used to manage decisions.

[0064] Among them, the Strategy Store is a database that stores decoding decisions.

[0065] The strategy is a set of all feasible decoding configurations and corresponding decoding configuration scores obtained through experiments for a specific model.

[0066] Among them, the experiment manager (expt Manager, Experiment Manager) is a device used to manage experiments.

[0067] Among them, the experiment decoding configuration (expt d-config, Experiment Decode Config) is issued by the experiment and can obtain the decoding configuration of the experiment decoding feedback.

[0068] In the present invention, more intelligent and flexible decoding configuration optimization and management can be achieved through the combined use of the decision manager and the experiment manager of the decoding decision maker. First, the decision manager can quickly find and issue the optimal decoding configuration suitable for the current decoding device by retrieving the decision library, thereby improving decoding efficiency and performance. If a suitable target decision cannot be found, the system will automatically enter the process of the experiment manager, and dynamically generate experimental decoding configurations for the current decoding device through experimental generation and evaluation to cope with different decoding environments and task requirements. This method not only improves the automation and intelligence level of decoding decisions, but also can continuously optimize decoding strategies to ensure that the best decoding experience can be provided in various situations.

[0069] S3, according to the experiment decoding configuration request, the experiment manager checks whether there is a target experiment in the experiment pool. If so, it proceeds to the next step. Otherwise, the scheduling experiment generator creates the target experiment and forwards the experiment decoding configuration request to the target experiment.

[0070] Specifically, according to the experiment decoding configuration request, the experiment manager first searches the experiment pool to see if there is an experiment of the decoding device type, that is, the target experiment. If not, the scheduling experiment generator creates the target experiment and sends the experiment decoding configuration request to the target experiment.

[0071] Among them, the Experiment Pool is a pool for storing experimental information.

[0072] The experiment (expt, Experiment) is for each new model, and a feasible decoding configuration of the model and an intelligent score of the decoding configuration are obtained by constructing an experiment.

[0073] Among them, the experiment generator (expt generator, Experiment Generator) is a device used to generate experiments for specific models.

[0074] In the present invention, the experiment manager realizes the dynamic generation and optimization of the decoding configuration through the synergy of the experiment pool and the experiment generator. First, by searching the experiment pool, it is possible to quickly find existing experiments suitable for the decoding device type, thereby avoiding repeated creation of experiments and saving system resources and time. If a suitable target experiment cannot be found, the experiment manager will automatically schedule the experiment generator to generate a new target experiment based on the current decoding device requirements and environmental characteristics. This method of dynamically generating experiments can ensure that the system can respond to new decoding requirements and equipment changes in a timely manner, obtain the optimal decoding configuration and intelligent scoring through experiments, thereby improving decoding efficiency and quality. On the whole, this design combining the experiment pool and the experiment generator makes the system more flexible, intelligent and efficient in the decoding decision-making process.

[0075] S4, according to the target experiment, calling the decoding configuration generator, generating the experimental decoding configuration, and sending the experimental decoding configuration to the decoding device.

[0076] Specifically, the target experiment of the decoding device first calls the decoding configuration generator to generate an experimental decoding configuration, and sends the experimental decoding configuration to the decoding device.

[0077] The decoding configuration generator (d-config Generator, Decode Config Generator) is a device used to generate experimental decoding configurations for specific models.

[0078] In the present invention, by calling a decoding configuration generator to generate an experimental decoding configuration and sending it to a decoding device, the decoding process can be effectively optimized and personalized. First, the decoding configuration generator can accurately generate a decoding configuration suitable for the current decoding task based on the requirements of the target experiment and the parameters of a specific model. This customized decoding configuration can maximize the performance utilization of the decoding device and improve decoding efficiency and quality. Secondly, the distribution of the experimental decoding configuration enables the decoding device to obtain the latest optimized configuration in a timely manner, ensuring that stable and high-quality decoding services can be provided in different scenarios. On the whole, by generating and sending experimental decoding configurations through the decoding configuration generator, the system can continuously optimize and adapt to different decoding requirements during the decoding decision-making process, thereby improving user experience and system performance.

[0079] S5, according to the experimental decoding configuration, the decoding device performs a decoding operation, generates decoding feedback, and returns the decoding feedback to the decoding decider.

[0080] Specifically, according to the experimental decoding configuration, the decoding device performs a decoding operation, and after the decoding is completed, generates decoding feedback and returns it to the decoding decision maker.

[0081] The decoding feedback (d-feedback) is the feedback generated by the decoding device after performing a decoding operation.

[0082] In the present invention, the decoding device performs decoding operations according to the experimental decoding configuration and generates decoding feedback to return to the decoding decision maker, thereby realizing closed-loop feedback and optimization of the decoding process. First, the decoding feedback can provide the actual results and performance data of the decoding operation, including information on the speed, quality, resource occupancy, etc. of the decoding. These feedback data are very valuable to the decoding decision maker, and can help the system evaluate the effect and performance of the current decoding configuration and provide a basis for subsequent decisions. Secondly, the return of the decoding feedback enables the decoding decision maker to dynamically adjust and optimize according to the real-time decoding situation, so as to find the best balance between decoding efficiency and quality. On the whole, through the loop feedback mechanism of decoding feedback, the system can continuously improve the decoding strategy, improve decoding efficiency and user experience.

[0083] S6, the decoding decider returns the decoding feedback to the target experiment.

[0084] In the present invention, by transmitting decoding feedback to the target experiment, the decoding configuration and evaluation method of the experiment can be updated and adjusted in real time. This feedback mechanism enables the target experiment to be intelligently evaluated based on the actual decoding effect and performance data, thereby generating a more optimized decoding configuration. At the same time, the target experiment can perform statistical analysis and model optimization based on different decoding feedback data, thereby continuously improving the decision strategy and algorithm of the decoding decision maker, and improving the efficiency and quality of decoding. In short, through the closed-loop transmission of decoding feedback, the system can achieve self-learning and optimization, and provide continuous improvement and optimization solutions for the decoding process.

[0085] S7, according to the target experiment, calling the decoding configuration scorer to intelligently score the decoding feedback to obtain a decoding configuration score.

[0086] The decoding configuration scorer (d-config Marker, Decode Config Marker) is a device that receives experimental decoding feedback and generates a decoding configuration score.

[0087] The decoding configuration score (d-scroe, Decode Config Score) is a comprehensive score of a decoding configuration obtained by calculating the experimental decoding feedback after a specific experimental decoding configuration is issued in an experiment.

[0088] In a possible implementation manner, calling a decoding configuration scorer in S7 to intelligently score the decoding feedback to obtain a decoding configuration score specifically includes sub-steps S701 to S703:

[0089] S701, the decoding configuration scorer generates an AI large model context based on the accumulated decoding feedback, decoding configuration and related model information.

[0090] S702, generate a Prompt instance according to the AI ​​big model context using the AI ​​big model Prompt template.

[0091] Among them, the Prompt template is a structured template that contains predefined placeholders and a fixed format to guide the AI ​​model to generate a specific type of output. These templates usually contain instructions or questions in natural language to help the model understand the context and goals of the task.

[0092] Among them, the Prompt instance is a specific instance generated based on the Prompt template, in which the placeholder has been replaced by specific data. By filling in specific data, the Prompt instance forms a complete input and guides the AI ​​model to generate the corresponding output.

[0093] S703, input the Prompt instance into the AI ​​big model, and generate a decoding configuration score through the AI ​​big model.

[0094] In the present invention, by using a decoding configuration scorer to intelligently score the decoding feedback and obtain the decoding configuration score, the intelligentization and optimization of the decoding strategy are realized. First, the decoding configuration scorer uses the context and Prompt instances generated by the AI ​​large model to comprehensively analyze and evaluate the performance of each experimental decoding configuration based on the accumulated decoding feedback, decoding configuration and related model information. This method can not only take into account the various factors in the decoding feedback, but also use the powerful processing power of the AI ​​large model to extract and analyze deeper data and patterns, so as to more accurately evaluate the effect and performance of the decoding configuration. Secondly, the use of the AI ​​large model makes the scoring process highly automated and intelligent, which can quickly adapt to different decoding scenarios and requirements, provide the system with instant and accurate decoding configuration scores, and further optimize the decoding decision process. In short, through this intelligent scoring method, the selection accuracy of the decoding configuration and the overall performance of the system can be improved, providing users with a better decoding experience.

[0095] S8, based on the decoding configuration score, updates the target decision through target experiments.

[0096] In the present invention, through the decoding configuration score, the system can quantitatively evaluate and compare different decoding configurations based on real-time decoding feedback data and the intelligent score generated by the AI ​​large model. This scoring-based update mechanism enables the system to automatically adjust and optimize decoding decisions, and continuously improve the efficiency and quality of decoding. At the same time, with the support of target experiments, the update process can be guaranteed to be scientific and reliable, ensuring that each decision improvement is based on sufficient experimental data and analysis results. In general, this update method based on decoding configuration scores enables the decoding system to continue to evolve and improve in a dynamic environment, thereby achieving a higher level of decoding performance and user satisfaction.

[0097] In a possible implementation manner, after S8, the method further includes:

[0098] S9, reordering all the model decision items in the target decision according to the decoding configuration score, and determining the model decision item with the highest decoding configuration score as the best decoding solution.

[0099] Among them, the model strategy element (MSE) is the decoding decision element of the model.

[0100] Among them, the model decision items include: static model decision items and dynamic model decision items. The static model decision items include CPU main frequency, CPU instruction set, CPU manufacturer, GPU frequency, GPU model, GPU temperature, system type, system version and memory size. The dynamic model decision items include CPU average utilization, CPU average temperature, memory average occupancy and actual utilization of soft decoding or hard decoding.

[0101] Among them, the static model decision item (S-MSE, static MSE) is the hardware and system properties that can be statically obtained before the decoding device runs.

[0102] The dynamic model decision item (D-MSE, dynamic MSE) is the real-time performance data dynamically collected during the decoding process.

[0103] Furthermore, based on the scores of the static model decision item and the dynamic model decision item, the best decoding solution for the model is calculated as soft decoding or hard decoding, and the decoding operation is performed using the best decoding solution.

[0104] Optionally, when the Android model supports MediaCodec hard decoding, ByteBuffer-based decoding or Surface-based decoding is used. Surface-based decoding consumes more memory. When both ByteBuffer decoding and Surface decoding fail, FFMSEg-based soft decoding is used as a fallback to determine the actual decoding method used by the Android model and the corresponding score.

[0105] Among them, MediaCodec hard decoding is a multimedia codec class provided by Android, which is used to encode and decode audio and video on Android devices. Through the MediaCodec class, developers can use hardware acceleration functions to achieve efficient audio and video processing, including video hard decoding, hard encoding, audio hard decoding, hard encoding and other operations. MediaCodec provides two modes, ByteBuffer and Surface, to receive and process decoded data and pre-encoded data.

[0106] Among them, ByteBuffer decoding is ByteBuffer is a class in Java, which is used to store data in memory. In video hard decoding, ByteBuffer is usually used as the input buffer of the decoder. The hard decoder can directly obtain data from ByteBuffer and perform decoding processing, so that hardware acceleration functions (such as GPU) can be used to improve decoding efficiency and performance.

[0107] Among them, Surface decoding is a class provided by Android for image display, which can render image data directly to the screen. In video hard decoding, Surface is usually used as the output target of the decoder. The hard decoder renders the decoded video frame directly to Surface, so that the hardware acceleration function can be used to achieve smooth video playback and display.

[0108] Among them, the soft decoding of FFMSEg is FFmpeg, an open source multimedia processing tool library that supports decoding and encoding of multiple audio and video formats. In Android, if hard decoding methods (such as ByteBuffer and Surface) fail or are not supported, FFmpeg can be used as an alternative for soft decoding. Soft decoding is performed on the CPU and usually consumes more resources than hard decoding, but can achieve compatibility on a wider range of devices.

[0109] In the present invention, all model decision items in the target decision are reordered according to the decoding configuration score and the best decoding solution is determined, thereby achieving more accurate and intelligent decoding strategy optimization. First, the comprehensive scoring of static model decision items and dynamic model decision items can help the system quickly identify and select the hardware and system configuration that best suits the current decoding task. This dynamic model decision process not only takes into account the static properties of the device such as the model and main frequency of the CPU and GPU, but also takes into account the dynamic performance data in the decoding process such as CPU usage, temperature, memory occupancy, etc., so as to achieve the best balance between real-time performance and resource utilization efficiency. Secondly, the best decoding solution (soft decoding or hard decoding) is determined according to the model decision item with the highest score, which can ensure that the best decoding method is selected in each decoding operation, thereby improving decoding efficiency and quality. In general, this method optimizes and personalizes the decoding process through intelligent model decision and decoding solution selection, providing users with a smoother and higher-quality decoding experience.

[0110] In a possible implementation manner, after S9, the method further includes:

[0111] S10, determining whether there is an unscored decoding configuration in the target experiment. If so, continue the target experiment. Otherwise, end the target experiment and save the updated target decision to the decision library.

[0112] In the present invention, by judging whether there is an unscored decoding configuration in the target experiment, and deciding whether to continue the experiment or end the experiment and save the updated target decision accordingly, the improvement of the decoding strategy and the continuous optimization of the system are achieved. First, judging and processing the unscored decoding configuration can ensure that the system has comprehensively evaluated and optimized all possible decoding situations, avoiding missing any potential optimization opportunities. Secondly, continuing the target experiment can further collect and analyze the decoding feedback data, continuously update and adjust the decoding decision, so that the system continuously optimizes the decoding efficiency and quality in continuous experimental iterations. Finally, ending the experiment and saving the updated target decision to the decision library can ensure that the system can make decisions based on the latest data and analysis results in the future decoding decision process, and continuously improve the overall performance and user experience of the decoding system. In general, this complete experimental life cycle management can effectively promote the continuous evolution and optimization of the decoding strategy, and provide users with stable and efficient decoding services.

[0113] The beneficial effects of the present invention are as follows:

[0114] The method and system of the present invention, through a target experiment, call a decoding configuration scorer to intelligently score decoding feedback, thereby avoiding dependence on developer experience, and updating the target decision according to the decoding configuration score through the target experiment. A dynamic judgment method is adopted to dynamically select the best decoding configuration for the decoding device, thereby enhancing the decoding effect, avoiding the use of the same judgment result on the same model, and being more reliable in Android devices with severe model fragmentation.

[0115] System Example

[0116] Reference Manual Attached Figure 2 , showing a structural diagram of a self-learning decoding decision system based on an AI big model provided in an embodiment of the present invention.

[0117] The present invention proposes a self-learning decoding decision system 20 based on an AI big model, comprising:

[0118] The sending module 201 is used for the decoding device to send a decoding configuration request to the decoding decision maker.

[0119] The first retrieval module 202 is used to retrieve whether the target decision exists in the decision library through the decision manager according to the decoding configuration request. If yes, the target decision is sent to the decoding device. Otherwise, the experiment decoding configuration request is sent to the experiment manager.

[0120] The second retrieval module 203 is used for the experiment manager to retrieve whether there is a target experiment in the experiment pool according to the experiment decoding configuration request. If yes, proceed to the next step. Otherwise, schedule the experiment generator to create the target experiment and forward the experiment decoding configuration request to the target experiment.

[0121] The first generating module 204 is used to call a decoding configuration generator according to a target experiment, generate an experimental decoding configuration, and send the experimental decoding configuration to a decoding device.

[0122] The second generating module 205 is used for the decoding device to perform decoding operations according to the experimental decoding configuration, generate decoding feedback, and return the decoding feedback to the decoding decision maker.

[0123] The return module 206 is used for the decoding decision maker to return the decoding feedback to the target experiment.

[0124] The scoring module 207 is used to call the decoding configuration scorer to intelligently score the decoding feedback according to the target experiment to obtain a decoding configuration score.

[0125] The updating module 208 is used to update the target decision through target experiments according to the decoding configuration score.

[0126] Furthermore, the scoring module 207 is specifically used for:

[0127] The decoding configuration scorer generates the AI ​​big model context based on the accumulated decoding feedback, decoding configuration, and related model information.

[0128] According to the AI ​​big model context, use the AI ​​big model Prompt template to generate a Prompt instance.

[0129] Input the Prompt instance into the AI ​​big model and generate a decoding configuration score through the AI ​​big model.

[0130] Furthermore, the self-learning decoding decision system based on the AI ​​big model also includes:

[0131] The reordering module 209 is used to reorder all the model decision items in the target decision according to the decoding configuration score, and determine the model decision item with the highest decoding configuration score as the best decoding solution.

[0132] Furthermore, the model decision items include: static model decision items and dynamic model decision items. The static model decision items include CPU main frequency, CPU instruction set, CPU manufacturer, GPU frequency, GPU model, GPU temperature, system type, system version and memory size. The dynamic model decision items include CPU average utilization, CPU average temperature, memory average occupancy and actual utilization of soft decoding or hard decoding.

[0133] Furthermore, the self-learning decoding decision system based on the AI ​​big model also includes:

[0134] The judgment module 210 is used to judge whether there is an unscored decoding configuration in the target experiment. If so, continue the target experiment. Otherwise, end the target experiment and save the updated target decision to the decision library.

[0135] The present invention provides a self-learning decoding decision system 20 based on an AI big model, which can implement the various steps and technical effects of the above-mentioned self-learning decoding decision method based on an AI big model. To avoid repetition, the present invention will not go into details.

[0136] The beneficial effects of the present invention are as follows:

[0137] The method and system of the present invention, through a target experiment, call a decoding configuration scorer to intelligently score decoding feedback, thereby avoiding dependence on developer experience, and updating the target decision according to the decoding configuration score through the target experiment. A dynamic judgment method is adopted to dynamically select the best decoding configuration for the decoding device, thereby enhancing the decoding effect, avoiding the use of the same judgment result on the same model, and being more reliable in Android devices with severe model fragmentation.

[0138] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.

[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A self-learning decoding decision method based on an AI large model, characterized in that: include: S1, the decoding device sends a decoding configuration request to the decoding decision maker; S2, according to the decoding configuration request, the decoding decision maker searches the decision library through the decision manager to see whether there is a target decision; if so, the target decision is sent to the decoding device; otherwise, an experimental decoding configuration request is sent to the experiment manager; S3, according to the experiment decoding configuration request, the experiment manager searches whether there is a target experiment in the experiment pool; if so, proceed to the next step; otherwise, schedule the experiment generator to create the target experiment and forward the experiment decoding configuration request to the target experiment; S4, according to the target experiment, calling a decoding configuration generator to generate an experimental decoding configuration, and sending the experimental decoding configuration to the decoding device; S5, according to the experimental decoding configuration, the decoding device performs a decoding operation, generates decoding feedback, and returns the decoding feedback to the decoding decision maker; S6, the decoding decision maker returns the decoding feedback to the target experiment; S7, according to the target experiment, calling a decoding configuration scorer to intelligently score the decoding feedback to obtain a decoding configuration score; S8, updating the target decision according to the decoding configuration score and through the target experiment.

2. The self-learning decoding decision method based on the AI ​​big model according to claim 1 is characterized in that: The calling of the decoding configuration scorer in S7 to intelligently score the decoding feedback to obtain a decoding configuration score specifically includes: S701, the decoding configuration scorer generates an AI large model context according to the accumulated decoding feedback, decoding configuration and related model information; S702, generating a Prompt instance using the AI ​​big model Prompt template according to the AI ​​big model context; S703, input the Prompt instance into the AI ​​big model, and generate a decoding configuration score through the AI ​​big model.

3. The self-learning decoding decision method based on AI big model according to claim 1 is characterized in that: After S8, the method further includes: S9, reordering all the model decision items in the target decision according to the decoding configuration score, and determining the model decision item with the highest decoding configuration score as the optimal decoding solution.

4. The self-learning decoding decision method based on AI big model according to claim 3 is characterized in that: The model decision items include: static model decision items and dynamic model decision items. The static model decision items include CPU main frequency, CPU instruction set, CPU manufacturer, GPU frequency, GPU model, GPU temperature, system type, system version and memory size. The dynamic model decision items include CPU average utilization, CPU average temperature, memory average occupancy and actual utilization of soft decoding or hard decoding.

5. The self-learning decoding decision method based on AI big model according to claim 3 is characterized in that: After S9, the method further includes: S10, determining whether there is an unscored decoding configuration in the target experiment; if so, continuing the target experiment; otherwise, ending the target experiment and saving the updated target decision to the decision library.

6. A self-learning decoding decision system based on an AI large model, characterized in that: The self-learning decoding decision system is used to implement the self-learning decoding decision method based on the AI ​​large model as described in any one of claims 1 to 5, and the system includes: A sending module, used for the decoding device to send a decoding configuration request to the decoding decision maker; A first retrieval module is used for, according to the decoding configuration request, the decoding decision maker searches the decision library through the decision manager to see whether there is a target decision; if so, the target decision is sent to the decoding device; otherwise, the experimental decoding configuration request is sent to the experiment manager; The second retrieval module is used for the experiment manager to retrieve whether there is a target experiment in the experiment pool according to the experiment decoding configuration request; if so, proceed to the next step; otherwise, schedule the experiment generator to create the target experiment and forward the experiment decoding configuration request to the target experiment; A first generating module is used to call a decoding configuration generator according to the target experiment, generate an experimental decoding configuration, and send the experimental decoding configuration to the decoding device; A second generating module, configured to generate decoding feedback by the decoding device according to the experimental decoding configuration and return the decoding feedback to the decoding decision maker; A return module, used for the decoding decision maker to return the decoding feedback to the target experiment; A scoring module, used to call a decoding configuration scorer to intelligently score the decoding feedback according to the target experiment to obtain a decoding configuration score; An updating module is used to update the target decision according to the decoding configuration score through the target experiment.

7. The self-learning decoding decision system based on the AI ​​big model according to claim 6 is characterized in that: The scoring module is specifically used for: The decoding configuration scorer generates an AI large model context based on the accumulated decoding feedback, decoding configuration, and related model information; Generate a Prompt instance using the AI ​​big model Prompt template according to the AI ​​big model context; The Prompt instance is input into the AI ​​big model, and a decoding configuration score is generated by the AI ​​big model.

8. The self-learning decoding decision system based on AI big model according to claim 6 is characterized in that: The system further comprises: The reordering module is used to reorder all the model decision items in the target decision according to the decoding configuration score, and determine the model decision item with the highest decoding configuration score as the optimal decoding solution.

9. The self-learning decoding decision system based on AI big model according to claim 8 is characterized in that: The model decision items include: static model decision items and dynamic model decision items. The static model decision items include CPU main frequency, CPU instruction set, CPU manufacturer, GPU frequency, GPU model, GPU temperature, system type, system version and memory size. The dynamic model decision items include CPU average utilization, CPU average temperature, memory average occupancy and actual utilization of soft decoding or hard decoding.

10. The self-learning decoding decision system based on AI big model according to claim 8 is characterized in that: The system further comprises: The judgment module is used to judge whether there is an unscored decoding configuration in the target experiment; if so, continue the target experiment; otherwise, end the target experiment and save the updated target decision to the decision library.