Aggregate rendering method and device for calendar information
By constructing multi-dimensional feature vectors and weight matrices for intelligent sorting and rendering of holiday information, the problems of insufficient space for displaying holiday information in calendar applications, high interface complexity, and significant performance impact are solved, achieving efficient and concise information display and an optimized user interaction experience.
Patent Information
- Application Number
- CN202411787845.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2044-12-06
AI Technical Summary
When rendering global holidays, existing calendar applications suffer from insufficient information display space, high user interface complexity, significant performance impact, and rapid battery consumption.
By constructing multi-dimensional feature vectors and weight matrices, holiday information is intelligently sorted and rendered, information sets are divided into display and hidden sets, detailed information is displayed using floating windows and pop-up lists, and user interaction is optimized through click event listeners and response time functions.
It realizes intelligent screening and optimized display of holiday information, keeps the interface simple, improves user experience and efficiency, and reduces unnecessary data transmission and processing burden.
Smart Images

Figure CN119576180B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, device and electronic device for aggregate rendering of calendar information. Background Art
[0002] Rendering global holidays in a calendar app means integrating information about public holidays, cultural holidays, and religious holidays from different countries and regions into the calendar view, allowing users to view holidays that are relevant or of interest to them. This feature is typically used to help users better plan their time, avoid conflicts with important dates, and learn about the cultures and traditions of other countries.
[0003] The existing technology for rendering global holidays in calendar applications has the following flaws:
[0004] 1. Due to the large number of holidays and the different descriptions of holidays in different countries, the general calendar is based on months, and the space available for displaying each day is relatively small.
[0005] 2. Providing personalized options in the calendar (such as subscribing to specific countries or types of holidays) enhances functionality, but also increases the complexity of the user interface, which may make it difficult for new users to quickly get started. Users need to manually configure these preferences, which increases user operation costs.
[0006] 3. A large amount of global holiday information may have a negative impact on application performance, especially when it involves dynamic loading or real-time updates. For mobile devices, excessive data requests may also cause rapid battery consumption.
[0007] The above problems become technical problems that need to be solved. Summary of the Invention
[0008] In view of this, embodiments of the present invention provide a method, device, and electronic device for aggregate rendering of calendar information, which at least partially solve the problems existing in the prior art.
[0009] In a first aspect, an embodiment of the present invention provides a method for aggregate rendering of calendar information, comprising:
[0010] Obtain a predefined holiday list Ld, which contains all holiday information and its corresponding dates. For each day d in the calendar, perform a data filtering operation to obtain a first information set Hd = F(d, Ld) corresponding to the date d. Construct a multidimensional feature vector X and a weight matrix W corresponding to the first information set Hd. Based on the multidimensional feature vector X and the weight matrix W, construct an evaluation function r(hi) for the element hi in the first information set Hd. Perform a sorting operation on the first information set Hd based on the evaluation function r(hi). Get the second information set Hs, S(Hd) is the sorting function;
[0011] Divide the second information set Hs into a second display information set Hsx and a second hidden information set Hsy. Render the holiday names in the second display information set Hsx into the first display area of the interface using a customized rendering function R(Hs). Bind a click event listener E(h) that responds to user interaction actions to each element in the second display information set Hsx.
[0012] Below the first display area, the number of elements ny included in the second hidden information set Hsy is displayed, a "+n" interactive element is set to notify the user that there are more holidays, and a click event listener E(+n) is set on the "+n" interactive element;
[0013] When the user clicks on any holiday hi in the first display area, the display position Lci of the floating window Wi corresponding to the holiday hi is generated through the window positioning algorithm P(Wi│hi), and the detailed information of the holiday hi is displayed at the display position Lci. When the "+n" element is clicked, the floating window Wi is automatically closed;
[0014] After the user clicks the "+n" element, a pop-up list Ln containing all remaining holidays is displayed around the "+n" element through the response time function T(Ln). t is the number of clicks, τ t is the response time of the t-th click, ρ is the attenuation coefficient, υ is the amplitude, ω is the angular frequency, and φ is the phase offset. An independent click event listener E(hj) is set for each holiday item in the pop-up list Ln. When the user selects option Hli in the pop-up list Ln, a secondary window Wj pops up based on the primary window corresponding to Hli to display detailed information about the selected holiday Hli.
[0015] According to a specific implementation method of an embodiment of the present invention, the multidimensional feature vector X and the weight matrix W corresponding to the first information set Hd are constructed, and an evaluation function r(hi) for the element hi in the first information set Hd is constructed based on the multidimensional feature vector X and the weight matrix W, and the first information set Hd is sorted based on the evaluation function r(hi) The second information set Hs is obtained, including:
[0016] Construct a personalized weight calculation formula:
[0017]
[0018] W(hi) is the personalized weight of holiday hi, w0 is the bias term, wk is the weight of the kth feature, fk(hi) is the kth feature function, mapping the holiday hi to its corresponding kth feature value, ε k Represents a random noise term with a mean of 0 and a variance of σ k 2 Normal distribution.
[0019] According to a specific implementation method of an embodiment of the present invention, the multidimensional feature vector X and the weight matrix W corresponding to the first information set Hd are constructed, and an evaluation function r(hi) for the element hi in the first information set Hd is constructed based on the multidimensional feature vector X and the weight matrix W, and the first information set Hd is sorted based on the evaluation function r(hi) Obtaining the second information set Hs also includes:
[0020] Based on the multidimensional feature vector xi and the weight matrix W, the evaluation function r(hi) is constructed:
[0021] r(hi)=xi T * W*xi+b
[0022] is the set threshold, and b is the bias term.
[0023] According to a specific implementation of an embodiment of the present invention, rendering the holiday names in the second display information set Hsx into the first display area on the interface through a customized rendering function R(Hs) includes:
[0024] The rendering value of the holiday name is calculated using the visual evaluation function V(hi):
[0025] V(hi)=α·W(hi)+β·P(hi|U)+γ·g(xi;θ)
[0026] α, β, and γ are adjustment parameters. P(hi|U) is the probability of user U’s interest in a specific holiday hi, calculated based on the prediction model. g(xi;θ) is the output of the deep neural network, which is used to predict the attractiveness of a holiday based on the multidimensional feature vector xi and the model parameters θ.
[0027]
[0028] P(U|hi) represents the probability that user U will exhibit a specific behavior on holiday hi, P(hi) represents the prior probability of holiday hi appearing, and P(U) represents the prior probability of user U appearing;
[0029] g(xi;θ)=f(W (L) σ(W(L-1) σ(…σ(W (1)x i+b (1) )…))+b (L) )
[0030] W (l) and b (l) are the weight matrix and bias vector of the lth layer, σ(·) is the activation function, L is the number of layers in the network, and f(·) is the final output function.
[0031] According to a specific implementation of the embodiment of the present invention, the number of elements ny included in the second hidden information set Hsy is displayed below the first display area, including:
[0032] Use the layout fitness function A(D,+n) to adjust the position of "+n". The layout fitness function is expressed as:
[0033]
[0034] D represents the screen area of the current display device, |+n| represents the number of elements in the hidden holiday list represented by the "+n" element, and x i and x i-1 Indicates the horizontal coordinates of adjacent points in the width direction of the screen, y j and y j-1 Indicates the vertical coordinate of the adjacent position point in the height direction of the screen, z k and z k-1 represents the depth value of the screen display content, λ and η are adjustment factors, and the output value of the layout fitness function A(D,+n) is a scalar single value, which represents the layout fitness score of the "+n" element under the given screen size D.
[0035] According to a specific implementation of an embodiment of the present invention, when a user clicks on any holiday hi in the first display area, a display position Lci of the floating window Wi corresponding to the holiday hi is generated by a window positioning algorithm P(Wi│hi), including:
[0036] Set the window positioning algorithm to calculate the display position Lci of the floating window Wi corresponding to the holiday hi:
[0037]
[0038] Z0 is a normalization constant, and σ0 is the standard deviation of the floating window position (x, y) relative to the user click point (x', y').
[0039] According to a specific implementation of an embodiment of the present invention, when a user clicks on any holiday hi in the first display area, generating a display position Lci of the floating window Wi corresponding to the holiday hi by using a window positioning algorithm P(Wi|hi) further includes:
[0040] The degree of non-invasiveness of the window is quantified by the formula I(Wi):
[0041]
[0042] β0, μ, δ, and τ are adjustment parameters, d(Wi) is the distance between the window and the user’s focus, and β(Wi) is the visual conspicuity parameter of the floating window Wi.
[0043] According to a specific implementation of an embodiment of the present invention, when the user selects option Hli in the pop-up list Ln, a secondary window Wj is further popped up based on the primary window corresponding to Hli, displaying detailed information of the selected holiday Hli, including:
[0044] When the user clicks option Hli, the relevant information of the option is recorded, and the display position Lci of the first-level window Wi is determined according to the window positioning algorithm P(Wi|hi);
[0045] According to the holiday Hli selected by the user, the content of the secondary window Wj containing detailed information is dynamically generated, and based on the primary window Wi, the display position Lcj of the secondary window Wj is further calculated.
[0046] In a second aspect, an embodiment of the present invention provides an apparatus for aggregate rendering of calendar information, comprising:
[0047] An acquisition module obtains a predefined holiday list Ld, which contains all holiday information and its corresponding dates. For each day d in the calendar, a data filtering operation is performed to obtain a first information set Hd = F(d, Ld) corresponding to the date d. A multidimensional feature vector X and a weight matrix W corresponding to the first information set Hd are constructed. Based on the multidimensional feature vector X and the weight matrix W, an evaluation function r(hi) is constructed for the element hi in the first information set Hd. The first information set Hd is sorted based on the evaluation function r(hi). Get the second information set Hs, S(Hd) is the sorting function;
[0048] a division module that divides the second information set Hs into a second display information set Hsx and a second hidden information set Hsy, renders the holiday names in the second display information set Hsx into the first display area of the interface using a customized rendering function R(Hs), and binds a click event listener E(h) that responds to user interaction actions to each element in the second display information set Hsx;
[0049] A setting module displays the number of elements ny included in the second hidden information set Hsy below the first display area, notifies the user of the existence of more holidays by setting a "+n" interactive element, and sets a click event listener E(+n) on the "+n" interactive element;
[0050] a generation module that, when a user clicks on any holiday hi in the first display area, generates a display position Lci of a floating window Wi corresponding to the holiday hi using a window positioning algorithm P(Wi│hi), displays detailed information about the holiday hi at the display position Lci, and automatically closes the floating window Wi when the "+n" element is clicked;
[0051] In the display module, after the user clicks the "+n" element, a pop-up list Ln containing all remaining holidays is displayed around the "+n" element through the response time function T(Ln). t is the number of clicks, τ t is the response time of the t-th click, ρ is the attenuation coefficient, υ is the amplitude, ω is the angular frequency, and φ is the phase offset. An independent click event listener E(hj) is set for each holiday item in the pop-up list Ln. When the user selects option Hli in the pop-up list Ln, a secondary window Wj pops up based on the primary window corresponding to Hli to display detailed information about the selected holiday Hli.
[0052] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0053] at least one processor; and,
[0054] a memory communicatively connected to the at least one processor; wherein,
[0055] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the calendar information aggregation rendering method in any of the aforementioned first aspects or any implementation of the first aspect.
[0056] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the aggregation rendering method of calendar information in the aforementioned first aspect or any implementation of the first aspect.
[0057] In the fifth aspect, an embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the aggregation rendering method of calendar information in the aforementioned first aspect or any implementation of the first aspect.
[0058] The aggregation rendering scheme of calendar information in the embodiment of the present invention includes: obtaining a predefined holiday list Ld, the holiday list Ld contains all holiday information and its corresponding dates, performing a data filtering operation for each day d in the calendar to obtain a first information set Hd = F (d, Ld) corresponding to the date d, constructing a multidimensional feature vector X and a weight matrix W corresponding to the first information set Hd, constructing an evaluation function r (hi) for the element hi in the first information set Hd based on the multidimensional feature vector X and the weight matrix W, and performing a sorting operation on the first information set Hd based on the evaluation function r (hi) Get the second information set Hs, S(Hd) is the sorting function; divide the second information set Hs into the second display information set Hsx and the second hidden information set Hsy, render the holiday names in the second display information set Hsx into the first display area on the interface through the customized rendering function R(Hs), and bind a click event listener E(h) that responds to user interaction actions to each element in the second display information set Hsx; display the number of elements ny contained in the second hidden information set Hsy below the first display area, and set the "+n" interactive element to the user. In order to notify the user that there are more holidays, a click event listener E(+n) is set on the "+n" interactive element; when the user clicks on any holiday hi in the first display area, the display position Lci of the floating window Wi corresponding to the holiday hi is generated through the window positioning algorithm P(Wi│hi), and the detailed information of the holiday hi is displayed at the display position Lci. When the "+n" element is clicked, the floating window Wi is automatically closed; after the user clicks the "+n" element, a pop-up list Ln containing all remaining holidays is presented around the "+n" element through the response time function T(Ln). t is the number of clicks, τ tis the response time of the t-th click, ρ is the attenuation coefficient, υ is the amplitude, ω is the angular frequency, and φ is the phase offset. An independent click event listener E(hj) is set for each holiday item in the pop-up list Ln. When the user selects option Hli in the pop-up list Ln, a secondary window Wj pops up based on the primary window corresponding to Hli, displaying detailed information about the selected holiday Hli. This solution has the following beneficial effects:
[0059] 1. Intelligent information screening:
[0060] By obtaining the holiday information corresponding to each day through data filtering operations and constructing the evaluation function r(hi) based on the multidimensional feature vector X and the weight matrix W, the holidays can be intelligently sorted, giving priority to the holidays that users care about most or are most important.
[0061] 2. Optimized information presentation:
[0062] The second information set Hs is divided into a second display information set Hsx and a second hidden information set Hsy, ensuring that the first display area on the interface contains only the most critical information, keeping the interface simple, and providing a "+n" interactive element to notify users that there are more holidays that are not displayed, which saves space without affecting the user experience.
[0063] 3. Strong interactivity:
[0064] A click event listener E(h) is bound to each element in the display information set, and a floating window Wi is generated using the window positioning algorithm P(Wi│hi) to display detailed information, allowing users to obtain more information through simple click operations.
[0065] The click event listener E(+n) of the “+n” element can trigger the display of the pop-up list Ln, further enhancing the user's interactive experience.
[0066] 4. Response time optimization:
[0067] The response time function T(Ln) is used to calculate the presentation timing of the pop-up list Ln, taking into account parameters such as the number of clicks, attenuation coefficient, amplitude, angular frequency and phase offset, ensuring good response speed and smooth animation effects, and improving user satisfaction.
[0068] 5. Hierarchical information display:
[0069] After the user selects an option in the pop-up list Ln, a secondary window Wj pops up to display more detailed holiday information, achieving a seamless transition from overview to details and meeting information needs at different levels.
[0070] 6. Personalization and flexibility:
[0071] The multiple steps involved in the entire process (such as the evaluation function r(hi), the sorting function S(Hd), and the customized rendering function R(Hs)) can be adjusted according to the specific application scenario and personal preferences, providing a high degree of personalization and flexibility.
[0072] 7. Efficient resource utilization:
[0073] The solution design focuses on performance optimization, loading additional information only when needed (such as by clicking the "+n" element), reducing unnecessary data transmission and processing burden and improving overall efficiency.
[0074] In summary, this embodiment of the invention not only solves the problems existing in traditional calendar applications in displaying global holiday information, but also introduces innovative technologies and design concepts, significantly improving the user experience, especially when processing large amounts of holiday information. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0076] Figure 1 A schematic flow chart of a method for aggregate rendering of calendar information provided by an embodiment of the present invention;
[0077] Figure 2 A schematic flow chart of another method for aggregate rendering of calendar information provided by an embodiment of the present invention;
[0078] Figure 3 A schematic diagram of the structure of a calendar information aggregation rendering device provided by an embodiment of the present invention;
[0079] Figure 4 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0080] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0081] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that, in the absence of conflict, the following embodiments and features in the embodiments can be combined with each other. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.
[0082] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on this disclosure, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement an apparatus and / or practice a method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this apparatus and / or practice this method.
[0083] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The illustrations only show components related to the present disclosure and are not drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component can be changed at will, and the component layout type may also be more complicated.
[0084] Additionally, in the following description, specific details are provided to provide a thorough understanding of the examples. However, one skilled in the art will appreciate that the aspects described can be practiced without these specific details.
[0085] The present disclosure provides a method for aggregate rendering of calendar information. The method for aggregate rendering of calendar information provided in this embodiment can be performed by a computing device, which can be implemented as software or a combination of software and hardware, and can be integrated into a server, terminal device, or the like.
[0086] See also Figure 1 and Figure 2 , an embodiment of the present disclosure provides a method for aggregate rendering of calendar information, including:
[0087] S101, obtain a predefined holiday list Ld, the holiday list Ld contains all holiday information and its corresponding dates, for each day d in the calendar, perform a data filtering operation, obtain a first information set Hd = F(d, Ld) corresponding to the date d, construct a multidimensional feature vector X and a weight matrix W corresponding to the first information set Hd, construct an evaluation function r(hi) for the element hi in the first information set Hd based on the multidimensional feature vector X and the weight matrix W, and perform a sorting operation on the first information set Hd based on the evaluation function r(hi) The second information set Hs is obtained, where S(Hd) is the sorting function.
[0088] To extract the first information set Hd corresponding to each day d from the predefined holiday list Ld, and construct an evaluation function r(hi) based on the multidimensional feature vector X and the weight matrix W, so as to sort Hd and finally obtain the second information set Hs, the design and implementation can be carried out according to the following steps:
[0089] 1. Get the predefined holiday list Ld
[0090] Data source: Get a predefined list Ld containing all holiday information and their corresponding dates. Each holiday entry usually includes information such as name, date, and description.
[0091] Structured storage: Ensure that Ld is a structured dataset, such as JSON or a database table, to facilitate subsequent processing.
[0092] 2. Data filtering operation F(d,Ld)
[0093] For each day d in the calendar, perform data filtering to obtain the corresponding holiday information for that day:
[0094] Input: date d and holiday list Ld.
[0095] Output: The first information set Hd=F(d, Ld), that is, all holiday information corresponding to date d.
[0096] 3. Construct multidimensional feature vector X and weight matrix W
[0097] Feature selection: Construct a multidimensional feature vector X for each holiday hi∈Hd. Features may include but are not limited to:
[0098] The importance of holidays (e.g., national holidays vs. local holidays);
[0099] User historical preferences;
[0100] the cultural or religious context of the holiday;
[0101] The distance from the current time (future or past holidays);
[0102] Weight matrix W: obtained based on business logic or through machine learning training, used to adjust the importance of each feature in the evaluation function.
[0103] 4. Construct evaluation function r(hi)
[0104] Based on the multidimensional feature vector X and the weight matrix W, an evaluation function r(hi) for the element hi in the first information set Hd is constructed: r(hi)=Xhi*W, where Xhi represents the feature vector of holiday hi, and * represents the dot product operation.
[0105] 5. Sorting operation S(Hd)
[0106] Use the evaluation function r(hi) to sort the first information set Hd and filter out the information sets with scores higher than the threshold. Holidays, get the second information set Hs:
[0107]
[0108] S102, divide the second information set Hs into a second display information set Hsx and a second hidden information set Hsy, render the holiday names in the second display information set Hsx into the first display area on the interface through a customized rendering function R(Hs), and bind a click event listener E(h) that responds to user interaction actions to each element in the second display information set Hsx.
[0109] To divide the second information set Hs into a second display information set Hsx and a second hidden information set Hsy, render the holiday names in the second display information set Hsx into the first display area of the interface using a customized rendering function R(Hs), and bind click event listeners E(h) that respond to user interaction actions to these elements, the following steps can be followed:
[0110] 1. Divide the information set
[0111] The number of holidays to be displayed in the first display area is determined based on the interface design or user experience requirements. For example, the first two holidays are displayed by default.
[0112] The sets are divided so that the second display information set Hsx contains the first N (such as 2) holidays with the highest scores, and the second hidden information set Hsy contains the remaining holidays, which will not be displayed in the initial state but can be viewed through user interaction (such as clicking the "+n" button).
[0113] 2. Customized rendering function R(Hs)
[0114] Use the customized rendering function R(Hs) to render each holiday name in Hsx into the first display area of the interface. Ensure that the rendered holiday names are displayed in a user-friendly manner, such as using appropriate fonts, colors, and layouts.
[0115] 3. Bind click event listener E(h)
[0116] Add a click event listener E(h) to each holiday name in Hsx so that when a user clicks a holiday, the system can respond and perform appropriate actions (such as popping up a detailed information window). Define the specific behavior of the click event, such as displaying more details, navigating to a related page, or triggering other functions.
[0117] Through the above steps, the second information set Hs is effectively divided into a second display information set Hsx and a second hidden information set Hsy. The holiday names in Hsx are then rendered into the first display area of the interface using a customized rendering function R(Hs). At the same time, click event listeners E(h) are bound to these elements to respond to user interactions, ensuring that users can easily access the information they need and enjoy a smooth and consistent interactive experience. This approach not only optimizes information presentation but also improves overall user satisfaction.
[0118] S103, below the first display area, displays the number of elements ny included in the second hidden information set Hsy, notifies the user of the existence of more holidays by setting the "+n" interactive element, and sets a click event listener E(+n) on the "+n" interactive element.
[0119] In order to display the number of elements ny contained in the second hidden information set Hsy below the first display area, and notify the user that there are more holidays by setting the "+n" interactive element, and at the same time set the click event listener E(+n) on the "+n" interactive element, you can follow the steps below.
[0120] 1. Display the number of hidden information sets
[0121] Determine the number of elements in Hsy (ny). Below the primary display area, clearly display a message stating "There are ny more holidays." This can be a simple text label or a tooltip with an icon to ensure users can clearly see and understand the information.
[0122] 2. Set up “+n” interactive elements
[0123] Design a clear "+n" button or icon and place it next to or immediately after the prompt, making sure it's prominent but not obtrusive. Add a brief caption to the "+n" button, such as "See More," so users know what to expect after clicking it.
[0124] 3. Bind click event listener E(+n)
[0125] Set a click event listener, E(+n), for the "+n" interactive element to ensure that the corresponding action is triggered when the user clicks it. When the user clicks "+n", the system should dynamically expand the content in Hsy and display it to the user. You can use animation effects (such as fade-in and sliding) to enhance the user experience and make the expansion of content more natural and smooth.
[0126] Through these design steps, the number of elements ny contained in the second hidden information set Hsy is effectively displayed below the first display area, and the user is notified of the existence of additional holidays via the "+n" interactive element. Furthermore, a click event listener E(+n) is set on the "+n" interactive element to ensure that users can easily view the hidden holiday information, improving the overall user experience and information acquisition efficiency. This approach not only optimizes information display but also enhances user interactivity and satisfaction.
[0127] S104, when the user clicks on any holiday hi in the first display area, the display position Lci of the floating window Wi corresponding to the holiday hi is generated through the window positioning algorithm P(Wi│hi), and the detailed information of the holiday hi is displayed at the display position Lci. When the "+n" element is clicked, the floating window Wi is automatically closed.
[0128] In order to realize that when a user clicks on any holiday hi in the first display area, the display position Lci of the floating window Wi corresponding to the holiday is generated through the window positioning algorithm P(Wi|hi), and the detailed information of the holiday hi is displayed at the said display position; at the same time, when the "+n" element is clicked, the floating window Wi is automatically closed, the following steps can be followed.
[0129] 1. User clicks on holiday hi
[0130] Listen for user click events on any holiday hi in the first display area. Use the window positioning algorithm P(Wi|hi) to calculate the optimal display position Lci of the floating window Wi. This algorithm should take into account factors such as screen size, the location of the user's click point, and avoiding obstruction of important page elements. The algorithm can be based on a Gaussian distribution or other suitable mathematical model to ensure that the floating window appears in a location that is easily visible to the user and does not interfere with other content.
[0131] Display detailed information about the holiday hi at the calculated display position Lci. This can be achieved by dynamically creating a floating window and filling it with corresponding content.
[0132] 2. Automatically close the floating window Wi when the "+n" element is clicked
[0133] Set a click event listener E(+n) for the "+n" element. When the user clicks the "+n" element, trigger the logic to close the currently opened floating window Wi.
[0134] Through these design steps, when a user clicks on any holiday hi in the first display area, the window positioning algorithm P(Wi|hi) generates the display position Lci of the floating window Wi corresponding to that holiday, and displays detailed information about that holiday hi at that location. Furthermore, when the "+n" element is clicked, the floating window Wi automatically closes, ensuring that the user can easily view detailed information and continue browsing for more holidays, improving the overall user experience and information acquisition efficiency. This approach not only optimizes information display but also enhances user interactivity and satisfaction.
[0135] S105: After the user clicks the "+n" element, a pop-up list Ln containing all remaining holidays is displayed around the "+n" element through the response time function T(Ln). t is the number of clicks, τ t is the response time of the t-th click, ρ is the attenuation coefficient, υ is the amplitude, ω is the angular frequency, and φ is the phase offset. An independent click event listener E(hj) is set for each holiday item in the pop-up list Ln. When the user selects option Hli in the pop-up list Ln, a secondary window Wj pops up based on the primary window corresponding to Hli to display detailed information about the selected holiday Hli.
[0136] In order to realize that after the user clicks the "+n" element, a pop-up list Ln containing all remaining holidays is presented around the "+n" element through the response time function T(Ln), and an independent click event listener E(hj) is set for each holiday item, when the user selects option Hli in the pop-up list Ln, a secondary window Wj is further popped up based on the primary window corresponding to Hli to display the detailed information of the selected holiday Hli. You can follow the steps below.
[0137] 1. Design response time function T(Ln)
[0138] Definition formula:
[0139]
[0140] Parameter explanation:
[0141] τ t : Response time of the tth click.
[0142] ρ: Decay coefficient, which controls how quickly the response time decreases as the number of clicks increases.
[0143] υ: Amplitude, the degree of fluctuation that affects the response time.
[0144] ω: Angular frequency, controls the period of response time fluctuation.
[0145] φ: Phase offset, adjusts the starting point of response time fluctuation.
[0146] This function is used to calculate the response time each time the "+n" element is clicked, and ensure that as the number of clicks increases, the response time gradually decreases but still fluctuates to simulate a natural human-computer interaction experience.
[0147] 2. Present the pop-up list Ln
[0148] Use an intelligent positioning algorithm to determine the display position of the pop-up list Ln around the "+n" element. This should take into account factors such as screen size, the location of the user's click point, and avoiding blocking important page elements. Based on the second hidden information set Hsy, dynamically generate a pop-up list Ln containing all remaining holidays. Use smooth animation effects (such as fade-in and sliding) to enhance the user experience and make the pop-up list appear more natural and smooth.
[0149] 3. Set the click event listener E(hj)
[0150] Set an independent click event listener E(hj) for each holiday item hj in the pop-up list Ln to ensure that the corresponding action can be triggered when the user clicks it.
[0151] Define the specific behavior of the click event, for example: pop up a secondary window Wj containing detailed information, navigate to more information page related to the holiday, and trigger other specific functions or operations.
[0152] 4. Pop up the secondary window Wj
[0153] A secondary window Wj pops up based on the primary window corresponding to the user-selected holiday Hli. This secondary window Wj displays detailed information about the selected holiday Hli, ensuring a clear and understandable hierarchy. A close button or other method is provided for the secondary window Wj, allowing the user to easily return to the primary window or close it.
[0154] Through these design steps, when a user clicks the "+n" element, a pop-up list Ln containing all remaining holidays is displayed around the "+n" element using the response time function T(Ln). A separate click event listener E(hj) is set for each holiday item. When the user selects option Hli in the pop-up list Ln, a secondary window Wj pops up based on the primary window corresponding to Hli, displaying detailed information about the selected holiday Hli. This approach not only optimizes information presentation but also enhances user interactivity and satisfaction, providing a smooth and consistent user experience.
[0155] According to a specific implementation method of an embodiment of the present invention, the multidimensional feature vector X and the weight matrix W corresponding to the first information set Hd are constructed, and an evaluation function r(hi) for the element hi in the first information set Hd is constructed based on the multidimensional feature vector X and the weight matrix W, and the first information set Hd is sorted based on the evaluation function r(hi) The second information set Hs is obtained, including:
[0156] Construct a personalized weight calculation formula:
[0157]
[0158] W(hi) is the personalized weight of holiday hi, w0 is the bias term, wk is the weight of the kth feature, fk(hi) is the kth feature function, mapping the holiday hi to its corresponding kth feature value, ε k Represents a random noise term with a mean of 0 and a variance of σ k 2 Normal distribution.
[0159] According to a specific implementation method of an embodiment of the present invention, the multidimensional feature vector X and the weight matrix W corresponding to the first information set Hd are constructed, and an evaluation function r(hi) for the element hi in the first information set Hd is constructed based on the multidimensional feature vector X and the weight matrix W, and the first information set Hd is sorted based on the evaluation function r(hi) Obtaining the second information set Hs also includes:
[0160] Based on the multidimensional feature vector xi and the weight matrix W, the evaluation function r(hi) is constructed:
[0161] r(hi)=xi T * W*xi+b
[0162] is the set threshold, and b is the bias term.
[0163] According to a specific implementation of an embodiment of the present invention, rendering the holiday names in the second display information set Hsx into the first display area on the interface through a customized rendering function R(Hs) includes:
[0164] The rendering value of the holiday name is calculated using the visual evaluation function V(hi):
[0165] V(hi)=α·W(hi)+β·P(hi|U)+γ·g(xi;θ)
[0166] α, β, and γ are adjustment parameters. P(hi|U) is the probability of user U’s interest in a specific holiday hi, calculated based on the prediction model. g(xi;θ) is the output of the deep neural network, which is used to predict the attractiveness of a holiday based on the multidimensional feature vector xi and the model parameters θ.
[0167]
[0168] P(U|hi) represents the probability that user U will exhibit a specific behavior on holiday hi, P(hi) represents the prior probability of holiday hi appearing, and P(U) represents the prior probability of user U appearing;
[0169] g(xi;θ)=f(W (L) σ(W (L-1) σ(…σ(W (1)x i+b (1) )…))+b (L) )
[0170] W (l) and b (l) are the weight matrix and bias vector of the lth layer, σ(·) is the activation function, L is the number of layers in the network, and f(·) is the final output function.
[0171] According to a specific implementation of the embodiment of the present invention, the number of elements ny included in the second hidden information set Hsy is displayed below the first display area, including:
[0172] Use the layout fitness function A(D,+n) to adjust the position of "+n". The layout fitness function is expressed as:
[0173]
[0174] D represents the screen area of the current display device, |+n| represents the number of elements in the hidden holiday list represented by the "+n" element, and x i and x i-1 Indicates the horizontal coordinates of adjacent points in the width direction of the screen, y j and y j-1Indicates the vertical coordinate of the adjacent position point in the height direction of the screen, z k and z k-1 represents the depth value of the screen display content, λ and η are adjustment factors, and the output value of the layout fitness function A(D,+n) is a scalar single value, which represents the layout fitness score of the "+n" element under the given screen size D.
[0175] According to a specific implementation of an embodiment of the present invention, when a user clicks on any holiday hi in the first display area, a display position Lci of the floating window Wi corresponding to the holiday hi is generated by a window positioning algorithm P(Wi│hi), including:
[0176] Set the window positioning algorithm to calculate the display position Lci of the floating window Wi corresponding to the holiday hi:
[0177]
[0178] Z0 is a normalization constant, and σ0 is the standard deviation of the floating window position (x, y) relative to the user click point (x', y').
[0179] According to a specific implementation of an embodiment of the present invention, when a user clicks on any holiday hi in the first display area, generating a display position Lci of the floating window Wi corresponding to the holiday hi by using a window positioning algorithm P(Wi|hi) further includes:
[0180] The degree of non-invasiveness of the window is quantified by the formula I(Wi):
[0181]
[0182] β0, μ, δ, and τ are adjustment parameters, d(Wi) is the distance between the window and the user’s focus, and β(Wi) is the visual conspicuity parameter of the floating window Wi.
[0183] According to a specific implementation of an embodiment of the present invention, when the user selects option Hli in the pop-up list Ln, a secondary window Wj is further popped up based on the primary window corresponding to Hli, displaying detailed information of the selected holiday Hli, including:
[0184] When the user clicks option Hli, the relevant information of the option is recorded, and the display position Lci of the first-level window Wi is determined according to the window positioning algorithm P(Wi|hi);
[0185] According to the holiday Hli selected by the user, the content of the secondary window Wj containing detailed information is dynamically generated, and based on the primary window Wi, the display position Lcj of the secondary window Wj is further calculated.
[0186] Corresponding to the above method embodiment, see Figure 3 The embodiment of the present invention further discloses a calendar information aggregation rendering device 30, comprising:
[0187] Acquisition module 301 obtains a predefined holiday list Ld, which contains all holiday information and their corresponding dates. For each day d in the calendar, a data filtering operation is performed to obtain a first information set Hd = F(d, Ld) corresponding to date d. A multidimensional feature vector X and a weight matrix W corresponding to the first information set Hd are constructed. Based on the multidimensional feature vector X and the weight matrix W, an evaluation function r(hi) is constructed for the element hi in the first information set Hd. The first information set Hd is sorted based on the evaluation function r(hi). Get the second information set Hs, S(Hd) is the sorting function;
[0188] A division module 302 divides the second information set Hs into a second display information set Hsx and a second hidden information set Hsy, renders the holiday names in the second display information set Hsx into the first display area of the interface using a customized rendering function R(Hs), and binds a click event listener E(h) that responds to user interaction actions to each element in the second display information set Hsx;
[0189] The setting module 303 displays the number of elements ny included in the second hidden information set Hsy below the first display area, notifies the user of the existence of more holidays by setting a "+n" interactive element, and sets a click event listener E(+n) on the "+n" interactive element;
[0190] Generating module 304, when a user clicks on any holiday hi in the first display area, generates a display position Lci of a floating window Wi corresponding to the holiday hi using a window positioning algorithm P(Wi│hi), displays detailed information of the holiday hi at the display position Lci, and automatically closes the floating window Wi when the "+n" element is clicked;
[0191] Display module 305: After the user clicks the "+n" element, a pop-up list Ln containing all remaining holidays is displayed around the "+n" element through the response time function T(Ln). t is the number of clicks, τ tis the response time of the t-th click, ρ is the attenuation coefficient, υ is the amplitude, ω is the angular frequency, and φ is the phase offset. An independent click event listener E(hj) is set for each holiday item in the pop-up list Ln. When the user selects option Hli in the pop-up list Ln, a secondary window Wj pops up based on the primary window corresponding to Hli to display detailed information about the selected holiday Hli.
[0192] See also Figure 4 , an embodiment of the present invention further provides an electronic device 60, the electronic device comprising:
[0193] at least one processor; and,
[0194] a memory communicatively connected to the at least one processor; wherein,
[0195] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to execute the calendar information aggregation rendering method in the aforementioned method embodiment.
[0196] An embodiment of the present invention further provides a non-transitory computer-readable storage medium, which stores computer instructions. The computer instructions are used to enable the computer to execute the aforementioned method embodiment.
[0197] An embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, which, when executed by a computer, enable the computer to execute the aggregate rendering method of calendar information in the aforementioned method embodiment.
[0198] Reference below Figure 4 , which shows a schematic structural diagram of an electronic device 60 suitable for implementing the embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0199] like Figure 4As shown, the electronic device 60 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 60 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0200] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, a gage, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 60 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.
[0201] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0202] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A method for aggregate rendering of calendar information, characterized in that: include: Obtain a predefined holiday list Ld, which contains all holiday information and its corresponding dates. For each day d in the calendar, perform a data filtering operation to obtain a first information set Hd = F(d, Ld) corresponding to the date d, construct a multidimensional feature vector X and a weight matrix W corresponding to the first information set Hd, construct an evaluation function r(hi) for the element hi in the first information set Hd based on the multidimensional feature vector X and the weight matrix W, and perform a sorting operation S(Hd) = {hi|hi∈Hd, r(hi)≥ζ} on the first information set Hd based on the evaluation function r(hi) to obtain a second information set Hs, where S(Hd) is the sorting function. Divide the second information set Hs into a second display information set Hsx and a second hidden information set Hsy. Render the holiday names in the second display information set Hsx into the first display area of the interface using a customized rendering function R(Hs). Bind a click event listener E(h) that responds to user interaction actions to each element in the second display information set Hsx. Below the first display area, the number of elements ny included in the second hidden information set Hsy is displayed, a "+n" interactive element is set to notify the user that there are more holidays, and a click event listener E(+n) is set on the "+n" interactive element; When the user clicks on any holiday hi in the first display area, the display position Lci of the floating window Wi corresponding to the holiday hi is generated through the window positioning algorithm P(Wi│hi), and the detailed information of the holiday hi is displayed at the display position Lci. When the "+n" element is clicked, the floating window Wi is automatically closed; After the user clicks the "+n" element, a pop-up list Ln containing all remaining holidays is displayed around the "+n" element through the response time function T(Ln). t is the number of clicks, τ t is the response time of the t-th click, ρ is the attenuation coefficient, υ is the amplitude, ω is the angular frequency, and φ is the phase offset. An independent click event listener E(hj) is set for each holiday item in the pop-up list Ln. When the user selects option Hli in the pop-up list Ln, a secondary window Wj pops up based on the primary window corresponding to Hli to display detailed information about the selected holiday Hli.
2. The method according to claim 1, characterized in that The multidimensional feature vector X and weight matrix W corresponding to the first information set Hd are constructed, an evaluation function r(hi) for the element hi in the first information set Hd is constructed based on the multidimensional feature vector X and the weight matrix W, and a sorting operation is performed on the first information set Hd based on the evaluation function r(hi) The second information set Hs is obtained, including: Construct a personalized weight calculation formula: W(hi) is the personalized weight of holiday hi, w0 is the bias term, wk is the weight of the kth feature, fk(hi) is the kth feature function, mapping the holiday hi to its corresponding kth feature value, ε k Represents a random noise term with a mean of 0 and a variance of σ k 2 Normal distribution.
3. The method according to claim 2, characterized in that The method further includes constructing a multidimensional feature vector X and a weight matrix W corresponding to the first information set Hd, constructing an evaluation function r(hi) for an element hi in the first information set Hd based on the multidimensional feature vector X and the weight matrix W, performing a sorting operation S(Hd)={hi|hi∈Hd, r(hi)≥ζ} on the first information set Hd based on the evaluation function r(hi) to obtain a second information set Hs, and further includes: Based on the multidimensional feature vector xi and the weight matrix W, the evaluation function r(hi) is constructed: r(hi)=xi T * W*xi+b is the set threshold, and b is the bias term.
4. The method according to claim 3, characterized in that The process of rendering the holiday names in the second display information set Hsx into the first display area on the interface through the customized rendering function R(Hs) includes: The rendering value of the holiday name is calculated using the visual evaluation function V(hi): V(hi)=α·W(hi)+β·P(hi|U)+γ·g(xi;θ) α, β, and γ are adjustment parameters. P(hi|U) is the probability of user U’s interest in a specific holiday hi, calculated based on the prediction model. g(xi;θ) is the output of the deep neural network, which is used to predict the attractiveness of a holiday based on the multidimensional feature vector xi and the model parameters θ. P(U|hi) represents the probability that user U will exhibit a specific behavior on holiday hi, P(hi) represents the prior probability of holiday hi appearing, and P(U) represents the prior probability of user U appearing; W (l) and b (l) are the weight matrix and bias vector of the lth layer, σ(·) is the activation function, L is the number of layers in the network, and f(·) is the final output function.
5. The method according to claim 4, characterized in that Below the first display area, the number of elements ny included in the second hidden information set Hsy is displayed, including: Use the layout fitness function A(D,+n) to adjust the position of "+n". The layout fitness function is expressed as: D represents the screen area of the current display device, |+n| represents the number of elements in the hidden holiday list represented by the "+n" element, and x i and x i-1 Indicates the horizontal coordinates of adjacent points in the width direction of the screen, y j and y j-1 Indicates the vertical coordinate of the adjacent position point in the height direction of the screen, z k and z k-1 represents the depth value of the screen display content, λ and η are adjustment factors, and the output value of the layout fitness function A(D,+n) is a scalar single value, which represents the layout fitness score of the "+n" element under the given screen size D.
6. The method according to claim 5, characterized in that When the user clicks on any holiday hi in the first display area, the display position Lci of the floating window Wi corresponding to the holiday hi is generated by the window positioning algorithm P(Wi│hi), including: Set the window positioning algorithm to calculate the display position Lci of the floating window Wi corresponding to the holiday hi: Z0 is a normalization constant, and σ0 is the standard deviation of the floating window position (x, y) relative to the user click point (x', y').
7. The method according to claim 6, characterized in that When the user clicks on any holiday hi in the first display area, the display position Lci of the floating window Wi corresponding to the holiday hi is generated by the window positioning algorithm P(Wi|hi), further comprising: The degree of non-invasiveness of the window is quantified by the formula I(Wi): β0, μ, δ, and τ are adjustment parameters, d(Wi) is the distance between the window and the user’s focus, and β(Wi) is the visual conspicuity parameter of the floating window Wi.
8. The method according to claim 7, characterized in that When the user selects option Hli in the pop-up list Ln, a secondary window Wj is further popped up based on the primary window corresponding to Hli, displaying detailed information of the selected holiday Hli, including: When the user clicks option Hli, the relevant information of the option is recorded, and the display position Lci of the first-level window Wi is determined according to the window positioning algorithm P(Wi|hi); According to the holiday Hli selected by the user, the content of the secondary window Wj containing detailed information is dynamically generated, and based on the primary window Wi, the display position Lcj of the secondary window Wj is further calculated.
9. A calendar information aggregation rendering device, characterized in that: include: An acquisition module obtains a predefined holiday list Ld, which contains all holiday information and its corresponding dates. For each day d in the calendar, a data filtering operation is performed to obtain a first information set Hd = F(d, Ld) corresponding to the date d. A multidimensional feature vector X and a weight matrix W corresponding to the first information set Hd are constructed. Based on the multidimensional feature vector X and the weight matrix W, an evaluation function r(hi) is constructed for the element hi in the first information set Hd. The first information set Hd is sorted based on the evaluation function r(hi). Get the second information set Hs, S(Hd) is the sorting function; a division module that divides the second information set Hs into a second display information set Hsx and a second hidden information set Hsy, renders the holiday names in the second display information set Hsx into the first display area of the interface using a customized rendering function R(Hs), and binds a click event listener E(h) that responds to user interaction actions to each element in the second display information set Hsx; A setting module displays the number of elements ny included in the second hidden information set Hsy below the first display area, notifies the user of the existence of more holidays by setting a "+n" interactive element, and sets a click event listener E(+n) on the "+n" interactive element; a generation module that, when a user clicks on any holiday hi in the first display area, generates a display position Lci of a floating window Wi corresponding to the holiday hi using a window positioning algorithm P(Wi│hi), displays detailed information about the holiday hi at the display position Lci, and automatically closes the floating window Wi when the "+n" element is clicked; In the display module, after the user clicks the "+n" element, a pop-up list Ln containing all remaining holidays is displayed around the "+n" element through the response time function T(Ln). t is the number of clicks, τ t is the response time of the t-th click, ρ is the attenuation coefficient, υ is the amplitude, ω is the angular frequency, and φ is the phase offset. An independent click event listener E(hj) is set for each holiday item in the pop-up list Ln. When the user selects option Hli in the pop-up list Ln, a secondary window Wj pops up based on the primary window corresponding to Hli to display detailed information about the selected holiday Hli.
10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the calendar information aggregation rendering method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Calendar pop-up window moving method and device and medium
CN117348769A
Calendar selector generation method and device
CN118569827A