Animation playing method and device and electronic equipment
By determining and playing attractive open-screen animations at the start of the application, the problems of low click-through rate and long application startup time in the prior art are solved, and higher user attraction and faster application startup speed are achieved.
Patent Information
- Application Number
- CN202411812543.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-12-10
AI Technical Summary
In the prior art, the open-screen animation played when the application is started cannot attract users, resulting in low click-through rates and a problem of long application startup time.
By receiving the application startup request, the push parameters of multiple animations to be selected are determined in response, including playback threshold, predicted playback value, predicted playback value, loss value, click value and animation click value. Based on these parameters, the first target animation is determined from the plurality of animations to be selected, and the animation is played when the application is started.
By intelligently selecting animations, it meets the needs of playback volume while attracting users to the greatest extent, solving the problem of low click-through rate of open-screen animations and reducing the application startup time.
Smart Images

Figure CN119829175A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to an animation playing method, device and electronic equipment. Background Art
[0002] Open screen animation is an important part of animation content promotion, and accurate animation push is crucial for animation promotion. At present, the main method used to determine the open screen animation played when the application is started is to prioritize quantity and make real-time decisions. However, the animation determined by this method not only cannot solve the problem of low click-through rate of open screen animation, but also has the problem of long application startup time.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide an animation playback method, device and electronic device to at least solve the technical problem in the related art that when an application is started, the splash screen animation played cannot attract users, resulting in a low click rate of the splash screen animation page.
[0005] According to one aspect of an embodiment of the present invention, there is provided an animation playback method, comprising: receiving an application startup request, wherein the application startup request is used to request the startup of a target application; in response to the application startup request, when the startup mode of the target application is to convert from a closed state to a startup state, determining push parameters of a plurality of animations to be selected, wherein the push parameters include: a playback volume threshold, a predicted playback value, a predicted total playback value, a loss value, a click value and an animation click value, the predicted playback value being used to predict the number of playbacks of the corresponding animation to be selected when the target application is started this time, the predicted total playback value being used to predict the total number of playbacks of the corresponding animation to be selected, the loss value being used to characterize the loss generated when the predicted total playback value of the corresponding animation to be selected does not reach the playback volume threshold, the click value being used to characterize the value generated after the corresponding animation to be selected is selected, and the animation click value being used to characterize the ratio of the predicted number of clicks of the corresponding animation to be selected to the predicted total playback value; determining a first target animation from the plurality of animations to be selected based on the push parameters of the plurality of animations to be selected; and playing the first target animation when the target application is started.
[0006] Optionally, when the target application is started from a background state to a foreground state, the animation storage result is read, wherein the animation storage result is used to determine the animation to be played when the target application is started this time; a second target animation corresponding to the animation storage result is determined; and the second target animation is played when the target application is started.
[0007] Optionally, in response to an application startup request, when the startup mode of the target application is to convert from a closed state to a started state, push parameters of multiple animations to be selected are determined, including: obtaining behavior data of a target account corresponding to the target application, and animation data corresponding to the multiple animations to be selected; and determining push parameters corresponding to the multiple animations to be selected based on the behavior data and the animation data corresponding to the multiple animations to be selected.
[0008] Optionally, based on the push parameters of multiple animations to be selected, a first target animation is determined from the multiple animations to be selected, including: determining a first function according to the push parameters corresponding to the multiple animations to be selected, wherein the first function is used to represent the total loss generated when the predicted total playback value of the corresponding animation to be selected does not reach the playback volume threshold; determining a second function according to the push parameters corresponding to the multiple animations to be selected, wherein the second function is used to represent the predicted total value generated by the corresponding animation to be selected; determining an objective function with the goal of maximizing click-through rate and multiple constraints corresponding to the objective function according to the first function, the second function and the push parameters corresponding to the multiple animations to be selected, wherein the constraints include quantity preservation constraints, which are used to constrain the predicted playback value of the corresponding animation to be selected; solving the objective function under the constraints corresponding to the multiple animations to be selected, and determining the first target animation from the multiple animations to be selected.
[0009] Optionally, a first function is determined based on push parameters corresponding to multiple animations to be selected, including: determining the playback volume thresholds corresponding to multiple animations to be selected based on the push parameters corresponding to multiple animations to be selected, and obtaining difference items corresponding to the multiple animations to be selected by multiplying the difference items corresponding to the multiple animations to be selected and the loss values corresponding to the multiple animations to be selected to obtain the first function.
[0010] Optionally, a second function is determined based on push parameters corresponding to multiple animations to be selected, including: determining the animation click values corresponding to multiple animations to be selected based on the push parameters corresponding to multiple animations to be selected, and multiplying the products of the click values of the selected animations corresponding to multiple animations to be selected, to obtain product terms corresponding to the multiple animations to be selected; determining the product terms corresponding to multiple animations to be selected, and multiplying the products of the predicted total playback values corresponding to the multiple animations to be selected, to obtain the second function.
[0011] Optionally, after playing the target animation when starting the target application, the method further includes: triggering an animation storage request; and updating the animation storage result in response to the animation storage request to obtain an updated stored animation.
[0012] According to one aspect of an embodiment of the present invention, an animation playback device is provided, comprising: a receiving module, configured to receive an application startup request, wherein the application startup request is used to request the startup of a target application; a first determining module, configured to determine, in response to the application startup request, push parameters of a plurality of animations to be selected when the startup mode of the target application is converted from a closed state to a startup state, wherein the push parameters include: a playback volume threshold, a predicted playback value, a predicted total playback value, a loss value, a click value, and an animation click value, wherein the predicted playback value is used to predict the number of playbacks of the corresponding animation to be selected when the target application is started this time, the predicted total playback value is used to predict the total number of playbacks of the corresponding animation to be selected, the loss value is used to characterize the loss generated when the predicted total playback value of the corresponding animation to be selected does not reach the playback volume threshold, the click value is used to characterize the value generated after the corresponding animation to be selected is selected, and the animation click value is used to characterize the ratio of the predicted number of clicks of the corresponding animation to be selected to the predicted total playback value; a second determining module, configured to determine a first target animation from a plurality of animations to be selected based on the push parameters of the plurality of animations to be selected; and a playback module, configured to play the first target animation when the target application is started.
[0013] According to one aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement any one of the above-mentioned animation playback methods.
[0014] According to one aspect of an embodiment of the present invention, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute any of the above-mentioned animation playback methods.
[0015] In an embodiment of the present invention, an application startup request is received, wherein the application startup request is used to request the startup of a target application. In response to the application startup request, when the startup mode of the target application is to convert from a closed state to a startup state, push parameters of multiple animations to be selected are determined, wherein the push parameters include: a playback volume threshold, a predicted playback value, a predicted total playback value, a loss value, a click value, and an animation click value. The predicted playback value is used to predict the number of playbacks of the corresponding animation to be selected when the target application is started this time. The predicted total playback value is used to predict the total number of playbacks of the corresponding animation to be selected. The loss value is used to characterize the loss generated when the predicted total playback value of the corresponding animation to be selected does not reach the playback volume threshold. The click value is used to characterize the value generated after the corresponding animation to be selected is selected. The animation click value is used to characterize the ratio of the predicted number of clicks of the corresponding animation to be selected to the predicted total playback value. Based on the push parameters of multiple animations to be selected, a first target animation is determined from multiple animations to be selected. The first target animation is played when the target application is started. It can be seen that by determining the first target animation from multiple animations to be selected based on the push parameters of multiple animations to be selected, the purpose of playing the first target animation when the target application is started is achieved. Since the push parameters can reflect the playback volume threshold that the corresponding animation to be selected needs to meet, the loss caused by non-playing, and the value generated by clicks, and the playback parameters can also predict the playback volume and click volume through the user's behavior data, the first animation to be selected determined by the push parameters can attract users to the greatest extent on the basis of meeting the playback volume, thereby solving the technical problem in the related technology that when the application is started, the opening screen animation played cannot attract users, resulting in a low click-through rate of the opening screen animation page. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0017] Figure 1 is a flowchart of an animation playing method according to an embodiment of the present invention;
[0018] Figure 2 is a flowchart of determining the opening screen animation when the mobile phone application software is started according to an optional implementation mode of the present invention;
[0019] Figure 3 is a parameter adjustment flow chart of hot start provided according to an optional embodiment of the present invention;
[0020] Figure 4 is a structural block diagram of an animation playing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] Example 1
[0024] According to an embodiment of the present invention, an embodiment of an animation playback method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0025] Figure 1 is a flowchart of an animation playing method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0026] Step S102: receiving an application start request, wherein the application start request is used to request to start a target application.
[0027] In step S102 provided in the present application, a start request of a target application is received.
[0028] Among them, the application launch request is involved. The application launch request refers to a signal sent by the user by clicking the application icon, waking up the application from the background, or through other means, such as from the notification bar, shortcuts, third-party launchers, etc., indicating that the user wants to start or switch to a specific application.
[0029] Among them, the target application is involved, which refers to the specific application that the user wants to launch or switch to. This can be any software installed on the device, such as social media applications, games, office software, music players, news clients, etc.
[0030] Through this step, an application start request from a user to start a target application can be received, which is a basic step for subsequently determining a target animation to be played.
[0031] Step S104, in response to the application startup request, when the startup mode of the target application is to convert from a closed state to a started state, determine the push parameters of multiple animations to be selected, wherein the push parameters include: a playback volume threshold, a predicted playback value, a predicted total playback value, a loss value, a click value and an animation click value, the predicted playback value is used to predict the number of playbacks of the corresponding animation to be selected when the target application is started this time, the predicted total playback value is used to predict the total number of playbacks of the corresponding animation to be selected, the loss value is used to represent the loss generated when the predicted total playback value of the corresponding animation to be selected does not reach the playback volume threshold, the click value is used to represent the value generated after the corresponding animation to be selected is selected, and the animation click value is used to represent the ratio of the predicted number of clicks of the corresponding animation to the predicted total playback value.
[0032] In step S104 provided in the present application, in response to the application start request, when the start mode of the target application is to convert from a closed state to a started state, push parameters of a plurality of animations to be selected are determined.
[0033] Among them, the startup method is involved, which refers to the way the application transitions from different states to the running state.
[0034] Among them, it involves the animation to be selected, which refers to the animation material displayed to the user when the application is started, such as application introduction, brand promotion, etc., which is used to attract user attention and enhance the visual effects and brand awareness of the application.
[0035] Among them, push parameters are involved. Push parameters refer to a series of indicators or set values used to guide and optimize content push decisions. These parameters usually reflect multiple aspects such as push goals, user preferences, content effects, system limitations, and business goals, and are an important basis for deciding push content.
[0036] Among them, the playback volume threshold is involved. The playback volume threshold refers to the minimum standard for the number of playbacks of the selected animation set by the system, which is used to measure whether the animation has achieved the expected exposure. The playback volume threshold is the basis for animation effect evaluation and contractual obligations, ensuring that the animation reaches a certain number of displays.
[0037] Among them, the predicted playback value is involved. The predicted playback value refers to the number of times a selected animation will be played when the application is started this time, predicted by the system based on historical data and current environmental conditions. The predicted playback value reflects the potential exposure of the animation in the current startup scenario.
[0038] Among them, the predicted total playback value is involved. The predicted total playback value refers to the predicted total number of playbacks of the selected animation within a certain time period. It is used to evaluate the potential exposure of the animation, which helps to formulate the overall strategy and rationally allocate resources.
[0039] Among them, the loss value is involved. The loss value refers to the loss that will be incurred when the predicted total playback value of the animation does not reach the playback volume threshold. It is used to measure the severity of the situation when the playback volume does not reach the playback volume threshold in different selected animations.
[0040] Among them, the click value is involved. Click value refers to the value generated when a user clicks on the animation. It can be direct monetary gain, or it can be increased user engagement or brand exposure value.
[0041] Among them, the animation click value is involved. The animation click value refers to the ratio of the number of times a specific animation is clicked to the total number of times it is played. This is an important indicator to measure the attractiveness of the animation and the degree of user interaction.
[0042] Among them, the predicted number of clicks is involved. The predicted number of clicks refers to the estimated number of times the corresponding selected animation may be clicked by users when it is displayed based on historical data, user behavior patterns, characteristics and the current startup scenario.
[0043] In this step, first, respond to the application startup request, and then, when the startup mode of the target application is to convert from a closed state to a started state, determine the push parameters of multiple animations to be selected. These parameters include the playback volume threshold, predicted playback value, predicted total playback value, loss value, click value and animation click value, etc.
[0044] Through this step, the push parameters of multiple animations to be selected can be determined. These parameters reflect the playback threshold that the animation needs to reach, the potential loss that may be caused by not playing the animation, and the user's interest in the animation content and predicted participation. They can fully reflect the key needs of the animation itself and the market performance expectations, and provide a basis for the precise promotion of the animation.
[0045] Step S106: determining a first target animation from the plurality of animations to be selected based on the push parameters of the plurality of animations to be selected.
[0046] In step S106 provided in the present application, a first target animation is determined from the plurality of animations to be selected according to the push parameters of the plurality of animations to be selected.
[0047] Among them, the first target animation is involved. The first target animation refers to the animation selected to be displayed to the user when the target application is started from the closed state to the started state after analyzing and comparing the push parameters of all the candidate animations. This animation is the animation that is considered to be the most optimized and can best meet the system's set goals among all the candidate animations.
[0048] In this step, a first target animation is determined from the plurality of animations to be selected based on the push parameters of the plurality of animations to be selected. In this way, on the basis of satisfying the animation playback volume requirement, the animation that best matches the user preference can be intelligently selected.
[0049] It should be noted that you can monitor network conditions and device performance in real time, adjust the loading priority and format of the animation, and ensure that the animation can be displayed quickly and smoothly under any network conditions, avoiding affecting the user experience due to long loading time.
[0050] Step S108, playing the first target animation when starting the target application.
[0051] In step S108 provided in the present application, a first target animation is played when the target application is started.
[0052] Through the above steps S102-S108, it is possible to receive an application startup request, wherein the application startup request is used to request the startup of a target application. In response to the application startup request, when the startup mode of the target application is to convert from a closed state to a startup state, the push parameters of multiple animations to be selected are determined, wherein the push parameters include: a playback volume threshold, a predicted playback value, a predicted total playback value, a loss value, a click value, and an animation click value. The predicted playback value is used to predict the number of playbacks of the corresponding animation to be selected when the target application is started this time. The predicted total playback value is used to predict the total number of playbacks of the corresponding animation to be selected. The loss value is used to characterize the loss generated when the predicted total playback value of the corresponding animation to be selected does not reach the playback volume threshold. The click value is used to characterize the value generated after the corresponding animation to be selected is selected. The animation click value is used to characterize the ratio of the predicted number of clicks of the corresponding animation to be selected to the predicted total playback value. Based on the push parameters of multiple animations to be selected, a first target animation is determined from multiple animations to be selected. The first target animation is played when the target application is started. It can be seen that by determining the first target animation from multiple animations to be selected based on the push parameters of multiple animations to be selected, the purpose of playing the first target animation when the target application is started is achieved. Since the push parameters can reflect the playback volume threshold that the corresponding animation to be selected needs to meet, the loss caused by not playing, and the value generated by clicks, and the playback parameters can also predict the playback volume and click volume through the user's behavior data, the first animation to be selected determined by the push parameters can attract users to the greatest extent on the basis of meeting the playback volume, thereby solving the technical problem in the related technology that when the application is started, the opening screen animation played cannot attract users, resulting in a low click-through rate of the opening screen animation page.
[0053] As an optional embodiment, when the startup mode of the target application is to convert from a background state to a foreground state, read the animation storage result, wherein the animation storage result is used to determine the animation played when the target application is started this time; determine a second target animation corresponding to the animation storage result; and play the second target animation when starting the target application.
[0054] In this embodiment, specific steps of playing the second target animation when the target application is started in a mode of switching from a background state to a foreground state are described.
[0055] Among them, the background state is involved. The background state refers to the state where the application is running but not active, that is, the application does not directly interact with the user, but runs in the background as a process in the device's system. The application in this state may be suspended or partially running due to system resource management, but it is still part of the system.
[0056] Among them, the foreground state is involved. The foreground state refers to the active state of the application where the user can directly interact. At this time, the interface and functions of the application are fully visible and available to the user.
[0057] Among them, animation storage results are involved. Animation storage results refer to the animation selection results calculated and cached when the application was closed or in the background state last time, and used for display when the application is started next time. This result contains the animation information selected by the system, such as animation name, display parameters, etc., which is used to quickly restore the application's opening screen display.
[0058] Among them, the second target animation is involved. The second target animation refers to the animation predetermined in the animation storage result read when the startup mode of the target application is converted from the background state to the foreground state, that is, the animation played when the target application is started this time.
[0059] In this step, when the target application is started from the background state to the foreground state, the previously cached animation storage result is directly read. This result contains the second target animation information determined when the last opening screen animation was played, which is used to quickly determine the opening screen content to be displayed during this startup. In this way, the delay of real-time requests and online decisions is avoided, thereby reducing the startup time of the application and improving the user experience.
[0060] As an optional embodiment, in response to an application startup request, when the startup mode of the target application is to convert from a closed state to a started state, push parameters of multiple animations to be selected are determined, including: obtaining behavior data of a target account corresponding to the target application, and animation data corresponding to the multiple animations to be selected; and determining push parameters corresponding to the multiple animations to be selected based on the behavior data and the animation data corresponding to the multiple animations to be selected.
[0061] In this embodiment, specific steps of determining push parameters of multiple animations to be selected when the startup mode of the target application is to convert from a closed state to a started state are described.
[0062] Among them, the target account is involved. The target account refers to the user account associated with the target application currently being launched. This account contains various behavioral data, preference settings, historical interaction records, and other information of the user during the use of the application. It is an important data source for personalized animation recommendations and decisions.
[0063] Among them, behavioral data is involved. Behavioral data refers to the data related to animation playback contained in the user's account information, such as animation preferences, history of clicked animations, etc. These data help analyze user behavior patterns and predict their reactions to animation content.
[0064] Among them, animation data is involved. Animation data refers to data related to the animation, such as the target number of animation plays, type, content, length, format, number of impressions, number of clicks, animation business information, etc.
[0065] In this step, first, the behavior data of the target account corresponding to the target application and the animation data corresponding to multiple animations to be selected are obtained. Then, the push parameters of the corresponding animations to be selected are determined based on the data. These parameters reflect the potential performance of each animation to be selected in the current startup scenario, including their playback possibility and expected number of clicks.
[0066] It should be noted that in order to further optimize the user experience and animation effects, other intelligent strategies can be combined to enrich the push parameters. For example, the geographic location information and time information of the user's device can be used to predict the user's animation preferences in different time periods and locations, so as to add geographic location and time factors into the push parameters.
[0067] As an optional embodiment, based on the push parameters of multiple animations to be selected, a first target animation is determined from the multiple animations to be selected, including: determining a first function according to the push parameters corresponding to the multiple animations to be selected, wherein the first function is used to represent the total loss generated when the predicted total playback value of the corresponding animation to be selected does not reach the playback volume threshold; determining a second function according to the push parameters corresponding to the multiple animations to be selected, wherein the second function is used to represent the predicted total value generated by the corresponding animation to be selected; determining an objective function with the goal of maximizing click-through rate and multiple constraints corresponding to the objective function according to the first function, the second function and the push parameters corresponding to the multiple animations to be selected, wherein the constraints include quantity preservation constraints, which are used to constrain the predicted playback value of the corresponding animation to be selected; solving the objective function under the constraints corresponding to the multiple animations to be selected, and determining the first target animation from the multiple animations to be selected.
[0068] In this embodiment, specific steps of determining a first target animation from a plurality of animations to be selected based on the push parameters of the plurality of animations to be selected are described.
[0069] Among them, the first function is involved, which refers to the total loss function faced when the total predicted playback value of the selected animation does not reach the playback volume threshold, where the total loss includes direct cost loss and potential effect loss.
[0070] Among them, the second function is involved, which refers to the total value function generated by displaying the prediction of the selected animation, where the total value includes indirect values such as the investment brought by clicks and potential user conversions.
[0071] Among them, the click-through rate is involved. The click-through rate refers to the ratio of the number of times users actually click on the animation to the total number of times the animation is displayed.
[0072] Among them, the objective function is involved. The objective function refers to a mathematical expression defined in the optimization problem to quantify and guide the goal of the decision-making process.
[0073] Among them, constraints are involved. Constraints refer to a series of rules or restrictions that must be followed in the decision-making process.
[0074] Among them, the quantity guarantee constraint is involved. The quantity guarantee constraint refers to the requirement on the number of times the selected animations are displayed, ensuring that multiple selected animations can achieve a certain exposure.
[0075] In this step, first, based on the push parameters corresponding to the multiple animations to be selected, a first function for measuring the total loss of the animation and a second function for measuring the total value of the animation are determined. Then, based on the first function, the second function and the push parameters corresponding to the multiple animations to be selected, an objective function with the goal of maximizing the click-through rate and multiple constraints corresponding to the objective function are determined. Finally, based on the constraints, the objective function is solved to determine the first target animation.
[0076] Through this step, the potential risks and potential benefits of animation display can be evaluated, for example, the loss of not reaching the playback volume threshold, the click value, and by solving the objective function, the balance between benefits and risks can be achieved while pursuing the maximization of click rate. At the same time, constraints such as the quantity guarantee constraint ensure that the minimum exposure requirements of the selected animation are met, so as to better allocate animation resources.
[0077] It should be noted that machine learning models, such as deep neural networks (DNN) or recurrent neural networks (RNN), can be used to predict the click-through rate and playback volume of different animations in the future based on historical data and user behavior, so as to more accurately calculate the first function term and the second function term and improve the predictability and optimization effect of the objective function.
[0078] As an optional embodiment, a first function is determined based on push parameters corresponding to multiple animations to be selected, including: determining the playback volume thresholds corresponding to multiple animations to be selected based on the push parameters corresponding to the multiple animations to be selected, and obtaining difference items corresponding to the multiple animations to be selected by multiplying the difference items corresponding to the multiple animations to be selected and the loss values corresponding to the multiple animations to be selected to obtain the first function.
[0079] In this embodiment, specific steps of determining the first function according to the push parameters respectively corresponding to a plurality of animations to be selected are described.
[0080] Among them, a difference item is involved, and the difference item refers to the difference between the predicted total playback value of the selected animation and the corresponding playback volume threshold.
[0081] In this step, first, the playback volume thresholds corresponding to the multiple selected animations and the predicted total playback values corresponding to the multiple selected animations are determined, then the difference items corresponding to the multiple selected animations are determined, and finally, the product of the difference items corresponding to the multiple selected animations and the loss value of the corresponding selected animation is determined to determine the first function.
[0082] Through this step, the first function is constructed, which quantifies the total expected losses when the playback volume threshold is not reached when displaying the animation. When determining the first target animation, it can ensure that the playback volume of each animation order reaches or is close to the playback volume threshold, fully considering the risk cost of the animation display strategy.
[0083] As an optional embodiment, a second function is determined based on push parameters corresponding to multiple animations to be selected, including: determining the animation click values corresponding to multiple animations to be selected based on the push parameters corresponding to multiple animations to be selected, and multiplying the products of the click values of the selected animations corresponding to the multiple animations to be selected, to obtain product terms corresponding to the multiple animations to be selected; determining the product terms corresponding to multiple animations to be selected, and multiplying the products of the predicted total playback values corresponding to the multiple animations to be selected, to obtain a second function.
[0084] In this embodiment, specific steps of determining the second function according to the push parameters respectively corresponding to a plurality of animations to be selected are described.
[0085] Among them, the product term is involved, and the product term refers to the product of the animation click value and the click value of the selected animation.
[0086] In this step, first, the animation click values and click values corresponding to the multiple animations to be selected are determined, then the product terms corresponding to the multiple animations to be selected are determined, and finally, the product of the product terms corresponding to the multiple animations to be selected and the predicted total playback value of the corresponding animation to be selected is determined to determine the second function.
[0087] Through this step, a second function is constructed, which comprehensively considers the actual click value of the animation and the benefits under the expected number of playbacks, quantifies the value that the selected animation can bring, and ensures that the overall benefits are maximized when the first target animation is determined.
[0088] As an optional embodiment, after playing the target animation when starting the target application, the method further includes: triggering an animation storage request; and updating the animation storage result in response to the animation storage request to obtain an updated stored animation.
[0089] In this embodiment, the specific steps of obtaining the updated stored animation after playing the target animation when starting the target application are described.
[0090] Among them, the target animation is involved. The target animation refers to the animation played when the target application is started this time, including the first target animation and the second target animation.
[0091] Among them, animation storage request is involved, which is aimed at obtaining and storing the data of the opening screen animation displayed when the target application switches from the background state to the foreground state next time. This request is usually issued after the target application is started and the user sees the opening screen animation.
[0092] Among them, it involves updating the stored animation. Updating the stored animation refers to updating the locally stored animation according to the latest animation storage request and storage result.
[0093] In this step, after playing the target animation, first, send an animation storage request to determine the data of the opening screen animation displayed when the target application switches from the background state to the foreground state next time. Then, respond to the animation storage request, update the animation storage result, and obtain the updated stored animation.
[0094] Through this step, when the target application switches from the background state to the foreground state, the animation can be loaded quickly, avoiding the real-time request sending at startup, determining the delay caused by the animation, shortening the user's waiting time, and improving the user experience.
[0095] It should be noted that in order to further improve the efficiency of the animation storage process and user experience, the client's storage space and usage can be monitored, and old or no longer needed animation data can be automatically cleared to make room for the storage of new animations and avoid storage space bottlenecks.
[0096] Based on the above embodiments and optional embodiments, an optional implementation is provided, which is described in detail below.
[0097] An optional implementation mode of the present invention is a method for loading a mobile phone application software (APP) opening screen animation based on a dynamic decision-making mechanism, and the specific steps are as follows.
[0098] S1. Receive an APP startup request.
[0099] S2. In response to the APP startup request, determine the APP startup method and introduce a dynamic decision-making mechanism.
[0100] Figure 2 is a flowchart of determining the opening screen animation when the mobile phone application software is started according to an optional embodiment of the present invention, such as Figure 2 As shown, the opening screen animation is divided into hot start animation and cold start animation according to the type of APP startup.
[0101] The hot startup picture mainly refers to the opening screen animation when the APP switches from the background to the foreground. At this time, the startup process of the APP is very short, and the animation displayed at this startup is determined by directly reading the existing asynchronous decision results.
[0102] The cold start animation is the screen splash animation when the APP is started from a backgroundless state. Since it involves processes such as APP initialization, the startup time is relatively long. A real-time request solution can be adopted to execute the entire "animation request → online decision → result delivery" process.
[0103] Through "hot start + asynchronous decision-making" and "cold start + real-time decision-making", a dynamic decision-making mechanism for the opening screen animation is realized.
[0104] The following describes in detail the animation playback process under the two startup modes.
[0105] The specific steps of the cold start picture playback process are as follows.
[0106] A1. Determine push parameters of multiple animations to be selected.
[0107] Define the full-day set of screen traffic (PV) as:
[0108] {PV i |i=1,2,3,…,n}
[0109] The animation order set is:
[0110] {order j |j=1,2,3,…,n|}
[0111] The quantity guarantee target for each animation order is d, d j Represents the quantity guarantee target for the j-th animation order.
[0112] x i,j represents the traffic optimization result of the j-th order on the i-th traffic, where x i,j ∈[0,1],x i,j =1 means that the i-th flow is allocated to the j-th order.
[0113] pctr represents the page click rate of the animation, pctr i,j Represents the page click rate of the j-th order in the i-th flow.
[0114] Considering that in some specific business scenarios, some orders need to optimize the click-through rate (CTR), the click value weight v is introduced to indicate the importance of CTR optimization for different orders, where v j Represents the click value weight of the j-th animation order.
[0115] A2. Based on the push parameters, determine an objective function with the goal of maximizing the click rate and multiple constraints corresponding to the objective function.
[0116] Based on the above parameters, the traffic optimization problem can be modeled.
[0117] The objective function for maximizing click-through rate is determined as:
[0118]
[0119] The first constraint corresponding to the objective function is:
[0120]
[0121] The second constraint corresponding to the objective function is:
[0122]
[0123] The third constraint corresponding to the objective function is:
[0124]
[0125] Among them, the first constraint condition means that each order must meet the quantity guarantee constraint, and the second constraint condition means that each flow can only be allocated to one order at most.
[0126] Considering that in actual launch, it may be impossible to maintain the quantity due to oversale, the above problem has no solution.
[0127] Therefore, the order shortage penalty weight w is introduced, w j Represents the out-of-stock penalty weight for the j-th order.
[0128] At this time, the objective function is:
[0129]
[0130] The first constraint corresponding to the objective function is:
[0131]
[0132] The second constraint corresponding to the objective function is:
[0133]
[0134] The third constraint corresponding to the objective function is:
[0135]
[0136] A3. Solve the objective function based on the constraints and determine the screen opening animation.
[0137] The objective function is derived through dual transformation and complementary relaxation theorem, and the optimal ranking score (rank_score) calculation formula can be obtained as follows:
[0138] rank_score i,j =pctr i,j ·v j +w j -α j
[0139] where α j is the dual variable of the quantity guarantee constraint for the j-th order.
[0140] A traffic optimization strategy is formulated based on this formula. The specific contents are as follows.
[0141] All orders on the same flow calculate their own rank_score based on the above formula.
[0142] If the rank_score of an order is greater than 0, the order with the largest rank_score will win the traffic.
[0143] If the rank_score of all orders is less than 0, no order will compete for the traffic, and the user will not see the opening animation when starting the APP this time.
[0144] Assuming that the full-day traffic set is known, the optimal solution for each order can be obtained directly through linear programming (LP), and then the rank_score of each order on the entire traffic can be calculated to obtain the traffic optimization result.
[0145] In actual implementation, considering that the animation traffic on the screen will fluctuate every day, the online traffic is difficult to predict, so it cannot be solved directly. Instead, the LP problem is converted into a parameter control problem. Figure 3 is a parameter adjustment flow chart of hot start according to an optional embodiment of the present invention, such as Figure 3 As shown, the α of each order is dynamically updated by feedback adjustment. j , and finally realize the whole process of "animation request → online decision → result delivery".
[0146] The specific steps of the hot start picture playback process are as follows.
[0147] B1. Read the animation storage result.
[0148] B2. Determine the target animation corresponding to the animation storage result.
[0149] B3. Play the target animation when launching the APP.
[0150] S3. Update the animation storage result.
[0151] Introducing an asynchronous decision-making mechanism, the online real-time decision-making mechanism is adjusted from making decisions "this time" to making decisions on the content of the "next" opening screen exposure. Through asynchronous interaction, the result returned by each animation request is used for the next user's exposure on the opening screen, so that it is not limited by the APP startup time and the flow of opening screen animation is optimized.
[0152] After the user completes the exposure of the opening screen animation, the APP will initiate an animation request. The animation system will decide the display content of the user's next opening screen animation based on traffic optimization and return it. The client will cache the returned result locally.
[0153] The next time the user opens the app, the local cache of the app is read, the corresponding animation is displayed to the user, and the next animation content is requested after the exposure is completed.
[0154] Through the above optional implementation, at least the following beneficial effects can be achieved:
[0155] (1) Model the splash animation traffic, determine the objective function with the goal of maximizing the click-through rate, and multiple constraints corresponding to the objective function, obtain the optimal traffic allocation strategy, and optimize the CTR of the splash animation;
[0156] (2) The asynchronous decision-making mechanism adjusts the online real-time decision-making mechanism from deciding "this time" to deciding "next time" for the content to be exposed on the opening screen, which is not limited by the length of time the APP is started, and achieves traffic optimization for the opening screen animation;
[0157] (3) According to the type of APP startup, the animation traffic is divided into hot start and cold start. Through "hot start + asynchronous decision" and "cold start + real-time decision", a dynamic decision mechanism for the opening screen animation is realized. The dynamic decision scheme has basically no effect on the APP startup time, shortening the user's waiting time as much as possible and ensuring the user experience of the APP opening screen.
[0158] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0160] Example 2
[0161] According to an embodiment of the present invention, a device for implementing the above animation playing method is also provided. Figure 4 is a structural block diagram of an animation playback device according to an embodiment of the present invention. Figure 4 As shown, the device includes: a receiving module 402, a first determining module 404, a second determining module 406 and a playing module 408. The device is described in detail below.
[0162] The receiving module 402 is used to receive an application startup request, wherein the application startup request is used to request to start the target application; the first determining module 404 is connected to the above-mentioned receiving module 402, and is used to respond to the application startup request, and when the startup mode of the target application is to convert from a closed state to a startup state, determine the push parameters of multiple animations to be selected, wherein the push parameters include: a playback volume threshold, a predicted playback value, a predicted total playback value, a loss value, a click value and an animation click value, the predicted playback value is used to predict the number of playbacks of the corresponding animation to be selected when the target application is started this time, and the predicted total playback value is used to predict the corresponding The total number of times the animation to be selected is played, the loss value is used to represent the loss generated when the predicted total number of plays of the corresponding animation to be selected does not reach the playback volume threshold, the click value is used to represent the value generated after the corresponding animation to be selected is selected, and the animation click value is used to represent the ratio of the predicted number of clicks of the corresponding animation to be selected to the predicted total number of plays; the second determination module 406 is connected to the above-mentioned first determination module 404, and is used to determine the first target animation from multiple animations to be selected based on the push parameters of multiple animations to be selected; the playback module 408 is connected to the above-mentioned second determination module 406, and is used to play the first target animation when starting the target application.
[0163] It should be noted here that the above-mentioned receiving module 402, first determination module 404, second determination module 406 and playback module 408 correspond to steps S102 to S108 in implementing the animation playback method, and the instances and application scenarios implemented by multiple modules and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment 1.
[0164] Example 3
[0165] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions to implement any one of the above-mentioned animation playback methods.
[0166] Example 4
[0167] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute any of the above-mentioned animation playback methods.
[0168] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0169] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0170] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0171] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0172] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0173] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of 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, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0174] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An animation playing method, characterized in that: include: Receiving an application startup request, wherein the application startup request is used to request to start a target application; In response to the application startup request, when the startup mode of the target application is to convert from a closed state to a started state, push parameters of multiple animations to be selected are determined, wherein the push parameters include: a playback volume threshold, a predicted playback value, a predicted total playback value, a loss value, a click value and an animation click value, the predicted playback value is used to predict the number of playbacks of the corresponding animation to be selected when the target application is started this time, the predicted total playback value is used to predict the total number of playbacks of the corresponding animation to be selected, the loss value is used to represent the loss generated when the predicted total playback value of the corresponding animation to be selected does not reach the playback volume threshold, the click value is used to represent the value generated after the corresponding animation to be selected is selected, and the animation click value is used to represent the ratio of the predicted number of clicks of the corresponding animation to be selected to the predicted total playback value; Based on the push parameters of the multiple animations to be selected, determining a first target animation from the multiple animations to be selected; The first target animation is played when the target application is started.
2. The method according to claim 1, characterized in that: The method further comprises: When the target application is started in a mode of switching from a background state to a foreground state, reading an animation storage result, wherein the animation storage result is used to determine an animation played when the target application is started this time; Determine a second target animation corresponding to the animation storage result; The second target animation is played when the target application is started.
3. The method according to claim 1, characterized in that In response to the application start request, when the start mode of the target application is to convert from a closed state to a started state, push parameters of a plurality of animations to be selected are determined, including: Acquire behavior data of a target account corresponding to the target application, and animation data corresponding to each of the plurality of animations to be selected; According to the behavior data and the animation data respectively corresponding to the plurality of animations to be selected, push parameters respectively corresponding to the plurality of animations to be selected are determined.
4. The method according to claim 1, characterized in that: Determining a first target animation from the plurality of animations to be selected based on the push parameters of the plurality of animations to be selected includes: Determine a first function according to the push parameters respectively corresponding to the plurality of animations to be selected, wherein the first function is used to represent the total loss generated when the predicted total playback value of the corresponding animation to be selected does not reach the playback volume threshold; Determine a second function according to the push parameters corresponding to the plurality of animations to be selected, wherein the second function is used to predict the total value generated by the corresponding animations to be selected; According to the first function, the second function and the push parameters corresponding to the plurality of selected animations, an objective function with the goal of maximizing the click rate and a plurality of constraints corresponding to the objective function are determined, wherein the constraints include a quantity-preserving constraint, and the quantity-preserving constraint is used to constrain the predicted playback value of the corresponding selected animation; Under the constraint conditions respectively corresponding to the plurality of animations to be selected, the objective function is solved, and the first target animation is determined from the plurality of animations to be selected.
5. The method according to claim 4, characterized in that Determining a first function according to the push parameters respectively corresponding to the plurality of animations to be selected includes: Determine, according to the push parameters respectively corresponding to the plurality of animations to be selected, the playback volume thresholds respectively corresponding to the plurality of animations to be selected, and obtain the difference items respectively corresponding to the plurality of animations to be selected by dividing the difference between the predicted total playback values respectively corresponding to the plurality of animations to be selected and the difference between the predicted total playback values respectively corresponding to the plurality of animations to be selected; Determine the difference items respectively corresponding to the plurality of animations to be selected, and multiply them by the loss values respectively corresponding to the plurality of animations to be selected, to obtain a first function.
6. The method according to claim 4, characterized in that Determining a second function according to the push parameters respectively corresponding to the plurality of animations to be selected includes: Determine the animation click values corresponding to the multiple animations to be selected according to the push parameters corresponding to the multiple animations to be selected, and multiply them by the animation click values corresponding to the multiple animations to be selected, to obtain the product terms corresponding to the multiple animations to be selected; Determine the product terms corresponding to the multiple animations to be selected, and multiply them by the product of the predicted total playback values corresponding to the multiple animations to be selected, to obtain a second function.
7. The method according to any one of claims 1 to 6, characterized in that: After playing the target animation when starting the target application, the method further includes: Trigger animation storage request; In response to the animation storage request, the animation storage result is updated to obtain an updated stored animation.
8. An animation playback device, characterized in that: include: A receiving module, used to receive an application startup request, wherein the application startup request is used to request to start a target application; A first determination module is used to respond to the application startup request and determine the push parameters of multiple animations to be selected when the startup mode of the target application is converted from a closed state to a started state, wherein the push parameters include: a playback volume threshold, a predicted playback value, a predicted total playback value, a loss value, a click value and an animation click value, the predicted playback value is used to predict the number of playbacks of the corresponding animation to be selected when the target application is started this time, the predicted total playback value is used to predict the total number of playbacks of the corresponding animation to be selected, the loss value is used to represent the loss generated when the predicted total playback value of the corresponding animation to be selected does not reach the playback volume threshold, the click value is used to represent the value generated after the corresponding animation to be selected is selected, and the animation click value is used to represent the ratio of the predicted number of clicks of the corresponding animation to be selected to the predicted total playback value; A second determination module, configured to determine a first target animation from the plurality of animations to be selected based on the push parameters of the plurality of animations to be selected; A playing module is used to play the first target animation when starting the target application.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the animation playing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the animation playing method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Multimedia file pushing method and device, storage medium and electronic device
CN112150182A
Application loading optimization method and device and electronic equipment
CN113296849A
Information recommendation method and device, electronic equipment and storage medium
CN117972212A
Method for playing application starting animation, electronic equipment and related medium
CN118885234A
Recommendation method, model generation method and apparatus, medium and device
WO2021135588A1