Message display method and device, electronic equipment and computer storage medium
By dynamically adjusting message display based on comprehensive weights and device type, the problem of inaccurate message importance assessment in information systems has been solved, achieving cross-platform adaptation and efficient presentation, and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
- Filing Date
- 2026-03-20
- Publication Date
- 2026-06-12
AI Technical Summary
The message sorting and display methods in existing information systems cannot dynamically and quantitatively consider multiple factors, resulting in inaccurate and subjective importance assessments, inconsistent cross-terminal experiences, easy obscuring of high-priority information, and low user acquisition efficiency.
By determining a comprehensive weight based on message content and related information, and combining device type and user behavior, the display type and area of messages are dynamically adjusted. A two-level message queue is used to optimize sorting, achieving cross-platform adaptation and efficient presentation.
It ensures the fairness and accuracy of message importance assessment, guarantees that key information is presented efficiently and clearly on different terminals, reduces the cost of repeated adaptation, and improves user experience and information acquisition efficiency.
Smart Images

Figure CN122195564A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of information processing technology, and in particular to a method, apparatus, electronic device, and computer storage medium for displaying messages. Background Technology
[0002] Currently, in various existing information systems, the sorting and display of messages generally rely on simple chronological arrangement (such as descending order by arrival time) or static manual marking (such as "pinned" or "starred").
[0003] For example, most systems use a fixed three-level classification of "high, medium, and low," or rely entirely on the sender's subjective labeling. This approach cannot dynamically and quantitatively integrate multiple dimensions such as message content, sender authority, and receiver context, leading to inaccurate and subjective importance assessments. Furthermore, static classifications are difficult to unify across multiple terminals and versions, causing issues of repeated adaptation and inconsistent user experiences.
[0004] Furthermore, in existing technologies, all messages are mixed in the same information stream, distinguished only by simple icons or colors. High-priority information is easily overwhelmed by a massive amount of low-priority messages, forcing users to actively filter and search, resulting in low information retrieval efficiency and a high risk of missing key messages. Summary of the Invention
[0005] In view of this, the present invention provides a message display method, apparatus, electronic device, and computer storage medium to achieve cross-platform adaptation while accurately assessing the importance of messages and presenting messages clearly and efficiently.
[0006] The first aspect of this invention provides a method for displaying messages, comprising:
[0007] When a message is received, the overall weight of the message is determined based on the content of the message and the associated information of the message;
[0008] The display type of the message is determined based on the overall weight of the message and the device type.
[0009] The display area of the message in the interface is determined based on the message's display type.
[0010] Optionally, the associated information of the message includes message type and user information, and determining the comprehensive weight of the message based on the content of the message and the associated information includes:
[0011] The overall weight of the message is determined based on the weight corresponding to the message type, the basic coefficient of the role corresponding to the user information, and the context factor; wherein the context factor is determined based on the content of the message.
[0012] Optionally, determining the display type of the message based on the message's comprehensive weight and device type includes:
[0013] The target ordered tuple set is determined based on the device type; wherein, the target ordered tuple set is the ordered tuple set corresponding to the device type, and the ordered tuple set includes the correspondence between weight ranges and message display types;
[0014] The display type of the message is determined based on the combined weight of the target ordered tuple set and the message.
[0015] Optionally, after determining the display type of the message based on the message's comprehensive weight and device type, the method further includes:
[0016] The messages are stored in a secondary message queue. The secondary message queue includes a receiving queue and a sorting queue. The receiving queue sorts the messages according to their arrival time to obtain a first sorting result. The sorting queue retrieves messages from the receiving queue and re-sorts them based on the first sorting result and the comprehensive weight of the messages to obtain a second sorting result.
[0017] Optionally, after storing the message in the secondary message queue, the method further includes:
[0018] The actual number of messages extracted is determined at fixed intervals based on a preset maximum number of messages to be extracted, the number of messages to be processed in the sorting queue, and a smoothing index; wherein the smoothing index is determined based on device status, user behavior, and application status.
[0019] The actual number of messages to be extracted is obtained from the head of the sorted queue.
[0020] Optionally, the associated information of the message also includes the user's personalization factors, and determining the comprehensive weight of the message based on the content of the message and the associated information includes:
[0021] The overall weight of the message is determined based on the weight corresponding to the message type, the basic coefficient of the role corresponding to the user information, the user's personalization factor, and the context factor.
[0022] Optionally, the method for displaying the message further includes:
[0023] Within each time window, determine the user's behavior vector for each message; wherein, the behavior vector includes a response factor, an ignore flag, a dwell time factor, and an additional operation weight;
[0024] Based on the response factor, the ignore flag, the dwell time factor, and the additional operation weight, the overall feedback value of the message to the user is determined;
[0025] Within the time window, an aggregated feedback value is generated based on the combined feedback values of all users for all the messages.
[0026] Based on the aggregated feedback value, the user's personalization factors are determined.
[0027] A second aspect of the present invention provides a message display device, comprising:
[0028] A comprehensive weight determination unit is used to determine the comprehensive weight of a message based on the content of the message and the association information of the message when the message is received.
[0029] The display type determination unit is used to determine the display type of the message based on the message's comprehensive weight and device type.
[0030] The display area determination unit is used to determine the display area of the message in the interface based on the display type of the message.
[0031] Optionally, the associated information of the message includes message type and user information, and the comprehensive weight determination unit includes:
[0032] The first comprehensive weight determination subunit is used to determine the comprehensive weight of the message based on the weight corresponding to the message type, the basic coefficient of the role corresponding to the user information, and the context factor; wherein the context factor is determined based on the content of the message.
[0033] Optionally, the display type determination unit includes:
[0034] An ordered tuple set determination unit is used to determine a target ordered tuple set based on the device type; wherein, the target ordered tuple set is the ordered tuple set corresponding to the device type, and the ordered tuple set includes the correspondence between weight intervals and message display types;
[0035] The display type determination subunit is used to determine the display type of the message based on the target ordered tuple set and the comprehensive weight of the message.
[0036] Optionally, the message display device further includes:
[0037] A storage unit is used to store the message in a secondary message queue; wherein the secondary message queue includes a receiving queue and a sorting queue, the receiving queue sorts the messages according to their arrival time to obtain a first sorting result, and the sorting queue retrieves messages from the receiving queue and re-sorts them based on the first sorting result and the comprehensive weight of the messages to obtain a second sorting result.
[0038] Optionally, the message display device further includes:
[0039] The message extraction quantity determination unit is used to determine the actual message extraction quantity at fixed intervals based on a preset maximum message extraction quantity, the number of messages to be processed in the sorting queue, and a smoothing index; wherein the smoothing index is determined based on device status, user behavior, and application status.
[0040] The message extraction unit is used to extract the actual number of messages to be extracted from the head of the sorted queue.
[0041] Optionally, the associated information of the message also includes the user's personalization factors, and the comprehensive weight determination unit includes:
[0042] The second comprehensive weight determination subunit is used to determine the comprehensive weight of the message based on the weight corresponding to the message type, the basic coefficient of the role corresponding to the user information, the user's personalization factor, and the context factor.
[0043] Optionally, the message display device further includes:
[0044] The behavior vector determination unit is used to determine the user's behavior vector for each message within each time window; wherein the behavior vector includes a response factor, an ignore flag, a dwell time factor, and an additional operation weight.
[0045] The comprehensive feedback value determination unit is used to determine the comprehensive feedback value of the message to the user based on the response factor, the ignore flag, the dwell time factor, and the additional operation weight.
[0046] An aggregated feedback value determination unit is used to generate an aggregated feedback value based on the comprehensive feedback values of all users' messages within the time window.
[0047] A personalization factor determination unit is used to determine the user's personalization factor based on the aggregated feedback value.
[0048] A third aspect of the present invention provides an electronic device, comprising:
[0049] One or more processors;
[0050] A storage device on which one or more programs are stored;
[0051] When the one or more programs are executed by the one or more processors, the one or more processors implement the message display method as described in any one of the first aspects.
[0052] A fourth aspect of the present invention provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a message display method as described in any one of the first aspects.
[0053] As can be seen from the above solutions, the present invention provides a message display method, device, electronic device, and computer storage medium. When a message is received, a comprehensive weight of the message is determined based on its content and associated information. This comprehensive weight combines static attributes and dynamic factors to ensure the fairness and accuracy of priority evaluation. Then, based on the comprehensive weight and device type, the display type of the message is determined. Finally, based on the display type, the display area of the message in the interface is determined, and the message is displayed. This achieves cross-platform adaptation while accurately evaluating the importance of messages and presenting them clearly and efficiently. Attached Figure Description
[0054] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0055] Figure 1 A flowchart illustrating a message display method provided in an embodiment of the present invention;
[0056] Figure 2 A flowchart illustrating a message display method according to another embodiment of the present invention;
[0057] Figure 3 A flowchart illustrating a message display method according to another embodiment of the present invention;
[0058] Figure 4 A schematic diagram of a message display device provided in another embodiment of the present invention;
[0059] Figure 5 This is a schematic diagram of an electronic device that implements a message display method according to another embodiment of the present invention. Detailed Implementation
[0060] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0061] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0062] It should be noted that the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this invention are all information and data authorized by the user or fully authorized by all parties.
[0063] It should be noted that the concepts of "first" and "second" mentioned in this invention are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0064] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0065] This invention provides a method for displaying messages, such as... Figure 1 As shown, the specific steps include:
[0066] S101. When a message is received, the overall weight of the message is determined based on the content of the message and the associated information of the message.
[0067] The associated information of the message may include, but is not limited to, message type, user information, etc., which are not limited here.
[0068] Message types include, but are not limited to, announcements, casual chat, etc., and are not restricted here. The message type can be determined through a message type field, for example, by attaching a message type field when sending a message, thus determining the message type through the message type field, and is not restricted here.
[0069] User information includes, but is not limited to, the user's job title, department, and date of employment. This information is not limited here, and can be determined by the login token information carried when sending messages. This information is not limited here either.
[0070] Optionally, in another embodiment of the present invention, one implementation of step S101 specifically includes:
[0071] The overall weight of a message is determined based on the weight corresponding to the message type, the basic coefficient of the user information's role, and the context factor.
[0072] The context factors are determined based on the message content. The weights corresponding to message types are preset, such as 90 for announcements and 10 for casual conversation, etc., without limitation. The base coefficient for user information roles is determined by the organizational structure, such as 10 for ordinary members and 20 for supervisors, etc., without limitation. The context factors and context types have a preset correspondence, including but not limited to keywords, message timeliness, and project relevance. Context types are determined based on message content. After determination, the context factors are determined based on the preset correspondence between context factors and context types. For example, a bonus of 20 for a message containing the keyword "urgent," 10 for message timeliness and urgency, and 5 for project relevance to the recipient, etc., without limitation.
[0073] In practical applications of this invention, the overall weight of a message can be calculated based on the following formula:
[0074] W = α*W_t + β*C_r + γ*ΣF_i;
[0075] Where W is the overall weight of the message. W_t is the weight corresponding to the message type. C_r is the basic coefficient of the role corresponding to the sender (user information). F_i is the i-th dynamic context factor. α, β, γ are configurable weight coefficients that satisfy α+β+γ=1. They can be manually configured according to actual needs (e.g., if the current dynamic context factor is more important, the γ ratio can be set larger), and there is no limitation here.
[0076] To achieve standardization and truncation, in another embodiment of the present invention, the comprehensive weights can also be normalized and limited to the interval [0, 100]:
[0077] W_final=min(100,max(0,((W-W_min) / (W_max-W_min))*100)).
[0078] W_final: The final value after normalizing the overall weight of the message.
[0079] W_min: The minimum value of the overall weight W of all messages. It is determined by α, β, γ, W_t, θ_u, C_r, and F_i.
[0080] W_max: The maximum value of the combined weight W of all messages. After α, β, γ, W_t, θ_u, C_r, and F_i are determined, the maximum value of the combined weight W of all messages is taken.
[0081] In practical applications of this invention, to ensure system impartiality, the system can also set the following rules:
[0082] 1) Set a single weight adjustment limit and an adjustment frequency threshold for different roles;
[0083] 2) All weight-related operations must be recorded in the audit log;
[0084] 3) Establish rules for detecting abnormal behavior (such as continuously increasing the weight of the same recipient within a short period of time, or unauthorized roles attempting to mark the recipient with extremely high priority), and issue alerts or automatically correct abnormal behavior (restore the previous settings).
[0085] Optionally, in another embodiment of the present invention, the associated information of the message further includes the user's personalization factors. One implementation of step S101 specifically includes:
[0086] The overall weight of a message is determined based on the weight corresponding to the message type, the basic coefficient of the user's role, the user's personalization factor, and the context factor.
[0087] The user's personalization factor has an initial value of 1, which can be dynamically adjusted based on the user's behavior vector in response to the message. The range can be set to [0.5, 2], without any limitation here.
[0088] In practical applications of this invention, the overall weight of a message can be calculated based on the following formula:
[0089] W = α*W_t + β*C_r*θ_u + γ*ΣF_i; where θ_u is the user's personalization factor.
[0090] Optionally, in another embodiment of the present invention, one implementation of the method for determining the user's personalization factors is as follows: Figure 2 As shown, it includes:
[0091] S201. Within each time window, determine the user's behavior vector for each message.
[0092] The behavior vector includes a response factor, an ignore flag, a dwell time factor, and additional operation weights. The time window T can be, but is not limited to, 24 hours, 7 days, 1 hour, etc., and is not restricted here.
[0093] Specifically, we continuously collect implicit feedback behavior data from users regarding messages, including but not limited to: message viewing response time, whether it was ignored / closed, reading time, and additional actions (such as forwarding or saving).
[0094] The message viewing response time Δt is the time difference between the arrival of message m and the time t when user u performs its first action (such as clicking). The response factor can be expressed as r(u, m, t) = exp(-λ*Δt), where r(u, m, t) ∈ [0, 1], and λ is the attenuation coefficient. It can be understood that the closer the response factor is to 1, the faster the response (considered as positive feedback).
[0095] In the actual application of this invention, the ignore flag i(u, m, t)∈{0, 1} can be used to indicate whether message m is ignored / closed by 0 or 1. For example, 1 indicates that the message is explicitly ignored or closed (strong negative feedback), and 0 indicates that it is not ignored.
[0096] The dwell time factor d(u, m, t) ∈ [0, 1] is determined based on the reading time. For example, the normalized ratio of reading time to total time. The larger the value, the more in-depth the reading (positive feedback). The reading time is the time the message is displayed on the screen after entering the chat page, and the total time is the time spent entering the chat page.
[0097] The additional operation weight a(u, m, t)∈{0, 1, 2, ...} can be a pre-set correspondence between operations and weights. For example: 0 = no operation, 1 = click to read, 2 = reply / forward, 3 = favorite / mark as important. It can be understood that the higher the value, the stronger the positive feedback.
[0098] S202. Determine the overall feedback value of the message to the user based on the response factor, the ignored identifier, the dwell time factor, and the additional operation weight.
[0099] Continuing with the example above, the comprehensive feedback value F(u, m) for each message m to user u can be calculated by a weighting function:
[0100] F(u,m)=ω_r*r(u,m,t)-ω_i*i(u,m,t)+ω_d*d(u,m,t)+ω_a*a(u,m,t);
[0101] Where ω_r, ω_i, ω_d, and ω_a are the weighting coefficients of each behavior, used to adjust the influence of different behaviors on the feedback intensity.
[0102] S203. Within the time window, generate an aggregated feedback value based on the comprehensive feedback value of all users' messages.
[0103] To obtain a more stable learning signal, this invention also aggregates the feedback from all messages of a user u within a time window T, targeting a specific message type or sender s, to generate an aggregated feedback value F_agg(u, s):
[0104] F_agg(u, s)=(1 / |M_s|)*Σ_{m∈M_s}F(u, m);
[0105] Here, M_s represents the set of messages from source s (or belonging to a certain type) within T.
[0106] S204. Based on the aggregated feedback value, determine the user's personalization factors.
[0107] Continuing with the example above, the parameter θ_u[s] related to source s in the user model is adjusted based on the aggregated feedback value F_agg(u, s).
[0108] The update process can employ gradient-based learning rules or heuristic adjustment rules. A simplified example of a heuristic update formula is as follows:
[0109] θ_u[s]_{new}=θ_u[s]_{old}+η*(F_agg(u,s)-F_target);
[0110] θ_u[s]=min(2.0, max(0.5, θ_u[s]_{new}));
[0111] Where η is the learning rate (a small positive number, such as 0.05), controlling the magnitude of each adjustment. F_target is the target feedback baseline (e.g., 0.5). When F_agg > F_target, it means the user is paying more attention to this type of message than the system expects, so the personalization factor θ_u[s] is increased; otherwise, it is decreased. The interval can be [0.5, 2].
[0112] After learning the personalized factor θ_u of user u, this invention uses the updated personalized factor to calculate the total weight of the message when calculating the overall weight of the message after obtaining a new message.
[0113] Through the technical solution described above, if a certain type of message marked as high-weight is consistently and rapidly ignored by users, the system can automatically lower the weight coefficient of that type of message or the sender's role. Conversely, if users consistently respond positively to messages from certain sources or of certain types, their relevant weight factors can be appropriately increased. This enables the message prioritization system to have self-evolutionary capabilities, evolving from "rule-based" to a combination of "rule-based and data-driven" approaches. This makes the message ranking results increasingly aligned with the actual attention patterns and perceived importance of business for individuals or groups. Furthermore, by introducing a user behavior feedback learning mechanism, the system can continuously optimize its weighting strategy, possessing the ability for personalized adaptation and long-term evolution, thereby enhancing the system's practical value and user satisfaction.
[0114] S102. Based on the overall weight of the message and the device type, determine the message display type.
[0115] Optionally, in another embodiment of the present invention, one implementation of step S102 is as follows: Figure 3 As shown, it specifically includes:
[0116] S301. Determine the target ordered tuple set based on the equipment type.
[0117] The target ordered tuple set is the ordered tuple set corresponding to the device type, and the ordered tuple set includes the correspondence between the weight range and the message display type.
[0118] It should be noted that different devices (such as regular mobile phone screens, foldable mobile phone screens, PCs, tablets, etc.) can have different page layouts designed according to their screen sizes, and each display category type can be independently defined (e.g., regular mobile phone screens can be defined as "urgent", "important", and "regular"; tablets can be defined as "urgent", "important", "regular", and "low frequency"). At the same time, based on interaction habits and device characteristics, the weight range corresponding to the display type can be independently defined to obtain the ordered tuple set corresponding to the device type. No restrictions are imposed here.
[0119] For example: the overall message weight is W, and for a specific device c, its classification mapping is configured as an ordered set of tuples M_c:
[0120] M_c = {(L1, U1, "urgent"), (L2, U2, "important"), ...}
[0121] Where (Li, Ui) is a closed interval, and the union of all intervals covers [0, 100], and the intervals are mutually exclusive. Li is the minimum comprehensive weight value of category i. Ui is the maximum comprehensive weight value of category i.
[0122] S302. Determine the message display type based on the combined weight of the target ordered tuple set and the message.
[0123] The present invention realizes "one weight data, multi-terminal adaptive classification" through ordered tuple sets corresponding to different devices.
[0124] For example: the desktop terminal is divided into 4 types {(80, 100, "urgent"), (60, 80, "important"), (60, 20, "routine"), (0, 20, "low frequency")}, while the mobile terminal has limited display space on the small screen and is divided into 3 types {(90, 100, "urgent"), (60, 90, "important"), (0, 60, "ordinary")}; the desktop terminal can define [80, 100] as "urgent" and pop up a full-screen window, while the mobile terminal can define [90, 100] as "urgent" and adopt a strong reminder at the top to reduce interference. Based on the same comprehensive weight value W = 85, the two will obtain different classification results, thus perfectly adapting to their respective scenarios and effectively reducing the complexity and maintenance cost of cross-platform development.
[0125] To solve the performance bottleneck and message disorder problem under high concurrency, in another embodiment of the present invention, an implementation manner of the message display method further includes:
[0126] Storing the messages into a secondary message queue.
[0127] Among them, the secondary message queue includes a receiving queue and a sorting queue. The receiving queue sorts the messages according to the message arrival time to obtain a first sorting result. The sorting queue retrieves the messages from the receiving queue and re-sorts them based on the first sorting result and the comprehensive weight of the messages to obtain a second sorting result.
[0128] It can be seen that the secondary message queue of the present invention is an asynchronous decoupled message queue.
[0129] It should be noted that the manner of sorting the receiving queue according to the message arrival time can be but is not limited to temporarily storing all incoming messages in a first-in-first-out manner, so as to play a role in traffic peak shaving.
[0130] Specifically, the specific implementation manner of the sorting queue re-sorting based on the first sorting result and the comprehensive weight of the messages to obtain a second sorting result can be but is not limited to, for messages m_i and m_j, m_i≺m_j, that is, m_j is arranged in front of m_i, and it needs to meet the following conditions: if and only if (W(m_i) < W(m_j)) or (W(m_i) = W(m_j) and τ_arr(m_i) < τ_arr(m_j)). It should be noted that if W(m_i) = W(m_j) and τ_arr(m_i) = τ_arr(m_j), the original sorting is processed. Thus, a mathematical expression based on the principle of weight first and time sequence second is realized.
[0131] Optionally, in another embodiment of the present invention, one implementation of the message display method further includes:
[0132] At fixed intervals, based on the preset maximum number of messages to be extracted, the number of messages to be processed in the sorting queue, and the smoothing index, the actual number of messages to be extracted is determined, and the messages to be extracted are obtained from the head of the sorting queue.
[0133] The smoothing index is determined based on device status, user behavior, and application status. The fixed period can be, but is not limited to, 100 milliseconds, 12 milliseconds, etc., and is not specified here.
[0134] In the practical application of this invention, the actual number of messages extracted, N_actual, can be calculated using the following formula:
[0135] N_actual=min(λ_smoothed×N_default, Q_size);
[0136] Where N_default is the preset maximum number of messages to be extracted, Q_size is the number of messages to be processed in the sorting queue, and λ_smoothed is the smoothing exponent.
[0137] In the practical application of this invention, the smoothing index can be calculated as follows:
[0138] λ_smoothed=η×λ_{t-1}+(1-η)×λ_t;
[0139] Where λ_{t-1} is the previous load factor, λ_t is the load factor calculated in this time, and η∈[0,1] is the smoothing coefficient (which can be, but is not limited to, 0.7-0.9).
[0140] In the practical application of this invention, the load factor λ_t can be calculated as follows:
[0141] λ_t=α×f(DeviceState)+β×f(User)+γ×f(App);
[0142] Where: α+β+γ=1 (weighted sum), λ_t∈[0,1], f(DeviceState) is the device state influence factor, f(User) is the user behavior influence factor, and f(App) is the application state influence factor.
[0143] In the practical application of this invention, f(DeviceState) can be calculated as follows:
[0144] f(DeviceState) = w1 × g(Battery) + w2 × h(Temp) + w3 × i(Memory)
[0145] Where: w1 + w2 + w3 = 1 (weight sum). Among them, the power influence function g(Battery) can be determined based on the current battery power (Battery) and the charging state (Charging, Charging = true represents charging, Charging = false represents not charging).
[0146] For example: when Battery ≥ 80% and Charging = true, g(Battery) = 1.0; when Battery ≥ 80% and Charging = false, g(Battery) = 0.8; when 20% ≤ Battery < 80%, g(Battery) = 0.6 - 0.4 × (Battery - 20) / 60; when Battery < 20%, g(Battery) = 0.2 × (Battery / 20).
[0147] The temperature influence function h(Temp) can be determined based on the current device temperature (Temp).
[0148] For example: when Temp ≤ 40°C, h(Temp) = 1.0; when 40°C < Temp ≤ 60°C, h(Temp) = 1.0 - 0.8 × (Temp - 40) / 20; when Temp > 60°C, h(Temp) = 0.2.
[0149] The memory influence function i(Memory) can be determined based on the current memory usage size (MemoryUsage) of the device and the maximum memory (MaxMemory) of the device.
[0150] For example: when MemoryUsage ≤ 0.9 × MaxMemory, i(Memory) = 1.0 - 0.8 × (MemoryUsage / MaxMemory); when MemoryUsage > 0.9 × MaxMemory, i(Memory) = 0.2.
[0151] In the actual application process of the present invention, the calculation method of f(User) can be as follows:
[0152] f(User) = q1 × m(Activity) + q2 × n(Pattern) + q3 × o(Screen)
[0153] Where q1+q2+q3=1 (weighted sum), and the user activity function m(Activity) can be determined based on the number of operations and the operation time.
[0154] For example: when ActiveEvents_per_min≥10, m(Activity)=1.2; when 5≤ActiveEvents_per_min<10, m(Activity)=1.0; when 1≤ActiveEvents_per_min<5, m(Activity)=0.8; when ActiveEvents_per_min=0, m(Activity)=0.5. Where ActiveEvents_per_min = number of operations / operation time (seconds) × 60.
[0155] The pattern function n(Pattern) can be used to determine the type of the current time period. The type of the current time period can be divided into, but is not limited to, user active time period, normal time period, early morning, etc., which are not limited here.
[0156] The type of time period can be set according to the specific application scenario. For example, in a company collaborative office scenario, it can be set according to the company's working hours. There is no limitation here.
[0157] For example: Peak Hours are 9:00–11:30 and 14:00–17:00 on weekdays (user activity period), Idle Hours are 0:00–6:00 daily (rest time), and Normal Hours are other time periods not mentioned above.
[0158] Therefore, different usage mode function values can be assigned based on the type of different time periods, for example:
[0159] When in Peak Hours (user activity periods), n(Pattern) = 0.8; when in Normal Hours, n(Pattern) = 1.0; when in Idle Hours (e.g., early morning), n(Pattern) = 1.2.
[0160] The screen state function o(Screen) can be determined based on whether the screen is on or off.
[0161] For example: when ScreenOn=true (screen on) and Unlocked=true (screen unlocked), o(Screen)=1.0; when ScreenOn=true and Unlocked=false (screen not unlocked), o(Screen)=0.8; when ScreenOn=false (screen off), o(Screen)=0.3.
[0162] In the practical application of this invention, f(App) can be calculated as follows:
[0163] f(App)=r1×p(Foreground)+r2×q(Priority)+r3×r(BatteryMode);
[0164] Where: r1+r2+r3=1 (weight sum), and the foreground / background function p(Foreground) can be determined based on whether the APP is running in the foreground.
[0165] For example: when the app is running in the foreground, p(Foreground) = 1.0; when the app is running in the background, p(Foreground) = 0.2.
[0166] The application priority function q(Priority) can be used to determine the application priority.
[0167] For example: if AppPriority=HIGH (e.g., real-time communication), then q(Priority)=1.2; if AppPriority=NORMAL (normal, default), then q(Priority)=1.0; if AppPriority=LOW (e.g., background synchronization), then q(Priority)=0.7.
[0168] The power saving mode function r(BatteryMode) can be determined based on whether the current power saving mode is enabled. If the current power saving mode is enabled, then r(BatteryMode) = 0.5; if the current power saving mode is disabled, then r(BatteryMode) = 1.0.
[0169] Finally, λ_t=max(λ_min, min(λ_max, Σw_i×f_i));
[0170] Where λ_min=0.1 (minimum load factor), λ_max=1.0 (maximum load factor), and w_i are the weights of the above factors.
[0171] It should be noted that if a certain parameter cannot be obtained in the above formula, the default value of 1 can be used directly, and the weights of each formula can be adjusted based on the actual situation, without any restrictions here.
[0172] This invention decouples computationally intensive weight calculation and sorting logic from time-sensitive UI rendering operations through the aforementioned mechanism. This ensures that messages are presented in priority order while completely preventing UI lag due to sudden large-scale calculations, guaranteeing a smooth user experience under high concurrency.
[0173] S103. Determine the display area of the message in the interface based on the message display type.
[0174] Taking PC and mobile as examples, since the PC has a larger display area, it can be divided into 4 display areas, which can be adjusted according to specific circumstances. No limit is set here.
[0175] Strong intervention layer (corresponding to "urgent" category): Uses interruptive notifications such as global modal pop-ups to require users to pay attention and handle the issue immediately.
[0176] Focus Display Layer (corresponding to the "Important" category): Create a fixed and prominent dedicated area (such as a fixed top bar) within the application interface for visual highlighting, physically separated from the ordinary information flow, to ensure it is always visible.
[0177] Regular information flow layer (corresponding to the "Regular" class): The main information flow area, where messages are displayed in the order of queue output.
[0178] Degraded storage layer (corresponding to "low frequency" category): a secondary entry point for income (such as the "Other Messages" folded panel), which does not cause active disturbance, and users can view it as needed.
[0179] Since the display area on mobile devices is smaller than that on PCs, it is divided into 3 display areas. This can be adjusted according to specific circumstances, and no limit is set here.
[0180] Strong intervention layer (corresponding to "emergency" category): Uses interruptive notifications such as global modal pop-ups and high-intensity vibration / ringing to require users to pay attention and handle the situation immediately.
[0181] Focus Display Layer (corresponding to the "Important" category): Create a fixed and prominent dedicated area (such as a fixed top bar) within the application interface for visual highlighting, physically separated from the ordinary information flow, to ensure it is always visible.
[0182] Regular information flow layer (corresponding to the "normal" class): The main information flow area, where messages are displayed in the order of queue output.
[0183] This invention, through the aforementioned framework, fundamentally ensures the prominence and accessibility of core information in terms of spatial layout and interaction intensity.
[0184] The following example, using a specific implementation of an enterprise collaborative office platform, further illustrates the workflow of the method and system of the present invention:
[0185] Step 1, Message Generation and Dynamic Weight Calculation:
[0186] Event A: The system administrator posted an alert message in the operations and maintenance group stating that the core database server had crashed.
[0187] The weight corresponding to the message type is W_t=90 ("System Alarm" type), the sender role coefficient is C_r=1.5 (administrator privileges), and the dynamic context factor ΣF_i=20 (including keyword bonuses such as "core" and "downtime").
[0188] The system begins calculating the overall weight of the message:
[0189] W = α·90 + β·1.5·1 + γ·20; where 1 is the user's personalization factor θ_u.
[0190] After normalization, the final comprehensive weight W_final=98 (located in the range of 0–100) is obtained.
[0191] Event B: Almost simultaneously, an ordinary employee sent "Have a great weekend, everyone" in a social media group.
[0192] W_t=10 (“Social Messages” class), C_r=1.0 (regular member), dynamic context factor is 0.
[0193] The system begins to calculate the overall weight of the message, and after normalization, the final overall weight W_final=10 is obtained.
[0194] Step 2, Intelligent Queue (Secondary Message Queue) Sorting and Scheduling:
[0195] Two messages enter the intelligent queue system: first, they enter the primary receive queue (Q_buffer) and are buffered in order of arrival time. Then, they are moved to the secondary sorting queue (Q_sorted) and sorted according to the rule of "weight first, time second".
[0196] Sorting results: Alarm messages (weight 98) are strictly ranked before social messages (weight 10), even though the arrival times of the two differ by only milliseconds.
[0197] Step 3, Dynamic Classification and Hierarchical Display:
[0198] The system maps weights to corresponding display categories and levels based on the terminal configuration:
[0199] PC configuration (displayed in a wide area, divided into 4 categories):
[0200] Assume the interval for "emergency" category is 85, 100, and the interval for "routine" category is 5, 60;
[0201] Therefore, alarm messages (weight 98) are categorized as "urgent" and trigger a strong intervention layer: a full-screen modal pop-up and an audio alarm. Social messages (weight 10) are categorized as "regular" and enter the regular information flow layer.
[0202] Mobile device configuration (smaller screen, divided into 3 categories, and the "emergency" threshold is increased to reduce disturbance):
[0203] Assume the interval for "urgent" is 99, 100, and the interval for "important" is [70, 99).
[0204] Therefore, the alarm message (weight 98) did not reach the "urgent" threshold and was classified as "important". This message is displayed in the focus display layer (top fixed notification bar) and does not trigger a full-screen pop-up. Social messages (weight 10) are still classified as "normal" and enter the regular information flow.
[0205] Step 4, Smooth handling in high-concurrency scenarios:
[0206] Suppose the system receives thousands of messages simultaneously: the intelligent queue (secondary message queue) initiates a timed batch update mechanism (period Tu = 100ms). Each time, only the highest priority Nactual messages (e.g., 20 messages) are extracted from the sorted queue and submitted for rendering. Combined with an adaptive load control formula, the batch size is dynamically adjusted to avoid UI lag. The user experience is a smooth interface, and critical alert messages are always pushed to relevant personnel in the first batch.
[0207] Step 5, Feedback Learning and Weight Optimization:
[0208] The system continuously collects user interaction behavior with messages. Maintenance personnel respond to "database downtime" alarms in less than 10 seconds and consistently click to view details. This positive feedback behavior is quantified into behavior vectors and aggregated into a feedback value Fagg(u, s). Finally, the weight learning system adjusts relevant parameters (such as increasing the weight factor of "system alarm" or related keywords) to make the weight calculation of similar messages in the future more closely reflect their actual importance.
[0209] As can be seen from the above solution, this invention provides a message display method. When a message is received, a comprehensive weight of the message is determined based on its content and associated information. This comprehensive weight combines static attributes and dynamic factors to ensure the fairness and accuracy of priority evaluation. Then, based on the message's comprehensive weight and device type, the message display type is determined. Finally, based on the message's display type, the display area of the message in the interface is determined, and the message is displayed. This achieves cross-platform adaptation while accurately evaluating message importance and presenting messages clearly and efficiently.
[0210] Another embodiment of the present invention provides a message display device, such as... Figure 4 As shown, it specifically includes:
[0211] The comprehensive weight determination unit 401 is used to determine the comprehensive weight of a message based on its content and associated information when a message is received.
[0212] Optionally, in another embodiment of the present invention, the associated information of the message includes message type and user information. One implementation of the comprehensive weight determination unit 401 includes:
[0213] The first comprehensive weight determination subunit is used to determine the comprehensive weight of a message based on the weight corresponding to the message type, the basic coefficient of the role corresponding to the user information, and the context factor.
[0214] Among them, the context factor is determined based on the content of the message.
[0215] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.
[0216] Optionally, in another embodiment of the present invention, the associated information of the message further includes the user's personalization factor, and one implementation of the comprehensive weight determination unit 401 further includes:
[0217] The second comprehensive weight determination subunit is used to determine the comprehensive weight of a message based on the weight corresponding to the message type, the basic coefficient of the role corresponding to the user information, the user's personalization factor, and the context factor.
[0218] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.
[0219] Optionally, in another embodiment of the present invention, one implementation of the message display device further includes:
[0220] The behavior vector determination unit is used to determine the user's behavior vector for each message within each time window.
[0221] The behavior vector includes response factors, ignore flags, dwell time factors, and additional operation weights.
[0222] The comprehensive feedback value determination unit is used to determine the comprehensive feedback value of the message to the user based on the response factor, the ignore flag, the dwell time factor, and the additional operation weight.
[0223] The aggregated feedback value determination unit is used to generate an aggregated feedback value based on the comprehensive feedback values of all users' messages within a time window.
[0224] The personalization factor determination unit is used to determine the user's personalization factors based on the aggregated feedback values.
[0225] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.
[0226] The display type determination unit 402 is used to determine the display type of a message based on the message's comprehensive weight and the device type.
[0227] Optionally, in another embodiment of the present invention, one implementation of the type determination unit 402 includes:
[0228] The ordered tuple set determination unit is used to determine the target ordered tuple set based on the device type.
[0229] The target ordered tuple set is the ordered tuple set corresponding to the device type, and the ordered tuple set includes the correspondence between the weight range and the message display type.
[0230] The display type determination subunit is used to determine the display type of a message based on the combined weight of the target ordered tuple set and the message.
[0231] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.
[0232] The display area determination unit 403 is used to determine the display area of a message in the interface based on the message's display type.
[0233] For details on the specific operation of the units disclosed in the above embodiments of the present invention, please refer to the corresponding method embodiments, such as... Figure 1 As shown, it will not be elaborated further here.
[0234] Optionally, in another embodiment of the present invention, one implementation of the message display device further includes:
[0235] Storage unit, used to store messages to secondary message queue.
[0236] The secondary message queue includes a receiving queue and a sorting queue. The receiving queue sorts messages according to their arrival time to obtain a first sorting result. The sorting queue retrieves messages from the receiving queue and re-sorts them based on the first sorting result and the overall weight of the messages to obtain a second sorting result.
[0237] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.
[0238] Optionally, in another embodiment of the present invention, one implementation of the message display device further includes:
[0239] The message extraction quantity determination unit is used to determine the actual message extraction quantity at fixed intervals based on the preset maximum message extraction quantity, the number of messages to be processed in the sorting queue, and the smoothing index.
[0240] The smoothness index is determined based on device status, user behavior, and application status.
[0241] The message extraction unit is used to extract the actual number of messages to be extracted from the head of the sorted queue.
[0242] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.
[0243] As can be seen from the above solution, the present invention provides a message display device. When a message is received, the comprehensive weight determination unit 401 determines the comprehensive weight of the message based on its content and associated information. This comprehensive weight combines static attributes and dynamic factors to ensure the fairness and accuracy of priority evaluation. Then, the display type determination unit 402 determines the display type of the message based on its comprehensive weight and device type. Finally, the display area determination unit 403 determines the display area of the message in the interface based on its display type and displays the message. This achieves cross-platform adaptation while accurately evaluating the importance of messages and presenting them clearly and efficiently.
[0244] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field-Programmable Gate Array (FPGA), Application-Specific Integrated Circuit (ASIC), Application-Specific Standard Product (ASSP), System on a Chip (SOC), Complex Programmable Logic Device (CPLD), and so on.
[0245] Another embodiment of the present invention provides an electronic device, such as... Figure 5 As shown, it includes:
[0246] One or more processors 501.
[0247] Storage device 502, on which one or more programs are stored.
[0248] When the one or more programs are executed by the one or more processors 501, the one or more processors 501 implement the message display method as described in the above embodiments.
[0249] Another embodiment of the present invention provides a computer storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the message display method as described in the above embodiments.
[0250] In the context of this invention, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0251] It should be noted that the computer-readable medium described above in this invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0252] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0253] Another embodiment of the present invention provides a computer program product, which, when executed, performs the above-described message display method.
[0254] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, it performs the functions defined in the methods of the embodiments of the present invention.
[0255] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in this invention is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely exemplary forms for implementing the invention.
[0256] While several specific implementation details are included in the foregoing discussion, these should not be construed as limiting the scope of the invention. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0257] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention is not limited to the specific combination of the above-described technical features, but also includes other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above-described features with technical features of the present invention (but not limited to) that have similar functions.
Claims
1. A method for displaying messages, characterized in that, include: When a message is received, the overall weight of the message is determined based on the content of the message and the associated information of the message; The display type of the message is determined based on the overall weight of the message and the device type. The display area of the message in the interface is determined based on the message's display type.
2. The message display method according to claim 1, characterized in that, The associated information of the message includes message type and user information. Determining the comprehensive weight of the message based on its content and associated information includes: The overall weight of the message is determined based on the weight corresponding to the message type, the basic coefficient of the role corresponding to the user information, and the context factor; wherein the context factor is determined based on the content of the message.
3. The message display method according to claim 1, characterized in that, The process of determining the display type of the message based on its comprehensive weight and device type includes: The target ordered tuple set is determined based on the device type; wherein, the target ordered tuple set is the ordered tuple set corresponding to the device type, and the ordered tuple set includes the correspondence between weight ranges and message display types; The display type of the message is determined based on the combined weight of the target ordered tuple set and the message.
4. The message display method according to claim 1, characterized in that, After determining the display type of the message based on the message's comprehensive weight and device type, the method further includes: The messages are stored in a secondary message queue. The secondary message queue includes a receiving queue and a sorting queue. The receiving queue sorts the messages according to their arrival time to obtain a first sorting result. The sorting queue retrieves messages from the receiving queue and re-sorts them based on the first sorting result and the comprehensive weight of the messages to obtain a second sorting result.
5. The message display method according to claim 4, characterized in that, After storing the message in the secondary message queue, the process further includes: The actual number of messages extracted is determined at fixed intervals based on a preset maximum number of messages to be extracted, the number of messages to be processed in the sorting queue, and a smoothing index; wherein the smoothing index is determined based on device status, user behavior, and application status. The actual number of messages to be extracted is obtained from the head of the sorted queue.
6. The message display method according to claim 2, characterized in that, The associated information of the message also includes the user's personalization factors. Determining the overall weight of the message based on its content and associated information includes: The overall weight of the message is determined based on the weight corresponding to the message type, the basic coefficient of the role corresponding to the user information, the user's personalization factor, and the context factor.
7. The message display method according to claim 6, characterized in that, Also includes: Within each time window, determine the user's behavior vector for each message; wherein, the behavior vector includes a response factor, an ignore flag, a dwell time factor, and an additional operation weight; Based on the response factor, the ignore flag, the dwell time factor, and the additional operation weight, the overall feedback value of the message to the user is determined; Within the time window, an aggregated feedback value is generated based on the combined feedback values of all users for all the messages. Based on the aggregated feedback value, the user's personalization factors are determined.
8. A message display device, characterized in that, include: A comprehensive weight determination unit is used to determine the comprehensive weight of a message based on the content of the message and the association information of the message when the message is received. The display type determination unit is used to determine the display type of the message based on the message's comprehensive weight and device type. The display area determination unit is used to determine the display area of the message in the interface based on the display type of the message.
9. An electronic device, characterized in that, include: One or more processors; A storage device on which one or more programs are stored; When the one or more programs are executed by the one or more processors, the one or more processors implement the message display method as described in any one of claims 1 to 7.
10. A computer storage medium, characterized in that, It stores a computer program, wherein the computer program, when executed by a processor, implements the message display method as described in any one of claims 1 to 7.