Notification display method and device
By automatically identifying and managing notification content using pre-trained network models in terminal devices, the problem of users needing complex operations to manage notification messages is solved, and the user experience and intelligence level of terminal devices is improved.
Patent Information
- Application Number
- CN202410241957.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2025-02-14
AI Technical Summary
In the prior art, users need to manage notification messages on terminal devices through complex operations, especially when the number of APP installations is large, resulting in poor user experience.
By using a pre-trained network model based on group user blocked data in the terminal device, the type and level of notification content are automatically identified and compared with the locally configured levels, it is decided whether to display notification content.
It realizes that notification content can be automatically displayed or hidden without complex user operations, improving the intelligence level and user experience of terminal devices.
Smart Images

Figure CN119441488A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202310934723.8, and the original application date is July 28, 2023. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a notification display method and device. Background Art
[0003] With the rapid development of network and computer technology, terminal devices have become indispensable in people's daily life, and various applications (APPs) installed on terminal devices have also become tools for people to work, entertain or make friends. However, as various APPs are gradually enriched, each APP always pushes notification messages frequently for the purpose of promoting content or increasing users, which brings a lot of trouble to users.
[0004] At present, the method that terminal manufacturers use to solve the above problem is to add a notification management option in the system settings interface. If users want to manage the notification messages of the apps they have installed, they need to turn on or off the corresponding app message notification buttons one by one, or manage different message categories for each app.
[0005] This method relies on user operation. For users who have a large number of terminal APP installations, the process is very cumbersome and the user experience is poor. Summary of the invention
[0006] The present application provides a notification display method and device, which can automatically display or not display notification content without the user performing complicated operations, thereby improving the intelligence level of the terminal and optimizing the user experience.
[0007] In a first aspect, the present application provides a notification display method, which is applied to a terminal device, and the method comprises: at a first moment, receiving a first notification content, displaying the first notification content, the notification type and notification level of the first notification content are a first notification type and a first notification level, the first notification type and the first notification level are obtained by the terminal device using a pre-trained network model based on group user shielding data to identify the first notification content, the first notification level is higher than or equal to the second notification level, and the second notification level is a notification level configured in the terminal device and corresponding to the first notification type; at a second moment, receiving a second notification content, not displaying the second notification content, the notification type and notification level of the second notification content are a second notification type and a third notification level, the second notification type and the third notification level are obtained by the terminal device using the pre-trained network model to identify the second notification content, the third notification level is lower than a fourth notification level, and the fourth notification level is a notification level configured in the terminal device and corresponding to the second notification type.
[0008] In an embodiment of the present application, after receiving the first notification content, the terminal device identifies the notification type and notification level of the first notification content as the first notification type and the first notification level based on the first notification content and the pre-trained network model, and compares the first notification level corresponding to the first notification type with the second notification level configured in the terminal device and corresponding to the first notification type, and obtains a comparison result that the first notification level is higher than or equal to the second notification level, then displays the first notification content; after receiving the second notification content, the terminal device identifies the notification type and notification level of the second notification content as the second notification type and the third notification level based on the second notification content and the pre-trained network model, and compares the third notification level corresponding to the second notification type with the fourth notification level configured in the terminal device and corresponding to the second notification type, and obtains a comparison result that the third notification level is lower than the fourth notification level, then does not display the second notification content. The method provided in the present application uses a pre-trained network model to identify the received notification content through the terminal device, and by comparing the identification result with the local configuration of the terminal device, the terminal device can automatically execute the processing of displaying or not displaying the notification content. The user does not need to operate the terminal device to filter whether the notification content is displayed, which simplifies the user's use process of the terminal device and improves the user experience.
[0009] It should be understood that the first moment and the second moment described in the embodiment of the present application have no temporal order, and only represent the moment when the terminal device receives the first notification content and the moment when the terminal device receives the second notification content, respectively. The first moment and the second moment can be the same moment or different moments.
[0010] In combination with the first aspect, in certain implementations of the first aspect, after displaying the first notification content, the method further includes: displaying the first notification content in a first window of a first interface; after displaying the first notification content in a first window of the first interface, the method further includes: in response to a user sliding operation on the first window, displaying a shielding button in the first window; in response to a user clicking operation on the shielding button, hiding the first notification content.
[0011] In the embodiment of the present application, after the terminal device displays the first notification content in the first window, the first notification content can also be hidden in response to the user's sliding operation on the first window and clicking the shielding button revealed after sliding. That is, if the displayed first notification content is not what the user wants to see, then through the method provided in this embodiment, the terminal device can hide the first notification content in response to the user's operation on the shielding button, providing the user with more diverse choices.
[0012] In combination with the first aspect, in certain implementations of the first aspect, hiding the first notification content in response to a user clicking the shield button includes: displaying a first list in response to a user clicking the shield button, the first list including an OK button, a Cancel button, and multiple notification type buttons, among which the first notification type button is displayed as a marked state; displaying the at least one first button as a marked state in response to a user selecting the at least one first button among the multiple notification type buttons; and hiding the first notification content in response to a user clicking the OK button.
[0013] In an embodiment of the present application, when the user chooses to block the displayed first notification content, a first list is displayed to allow the user to mark the notification type that he or she believes corresponds to the first notification content. The marking result can be used to enrich the blocking data of group users and improve the terminal device's recognition accuracy of the notification content, which is conducive to improving the user's satisfaction with the subsequent processing results of the terminal device.
[0014] In combination with the first aspect, in some implementations of the first aspect, the method further includes: adjusting a notification level corresponding to the first notification type configured for the terminal device to a notification level higher than the first notification level.
[0015] It should be understood that the first notification content may identify multiple notification types based on the group user identification data, and if the multiple notification levels corresponding to the identified multiple notification types are all higher than or equal to the notification levels configured by the terminal device for the multiple notification types, then after the user actively blocks the displayed first notification content, the terminal device responds to the operation and adjusts the multiple notification levels corresponding to the configured multiple notification types to be higher than the notification levels identified by the pre-trained network model.
[0016] In an embodiment of the present application, after the user actively hides the displayed first notification content, the terminal device adjusts the level of the locally configured first notification type in response to the operation, so that when there is notification content corresponding to the first notification type in the future, the terminal device can directly block the content without the user having to operate again, thereby optimizing the user experience.
[0017] In combination with the first aspect, in certain implementations of the first aspect, the method also includes: uploading to a cloud server the notification type corresponding to the at least one first button, the first notification content, and shielding indication information, wherein the shielding indication information is used to indicate that the user has performed a shielding operation on the first notification content.
[0018] In an embodiment of the present application, after the user actively blocks the displayed first notification content, the terminal device uploads to the cloud server the notification type, the first notification content and the blocking indication information corresponding to at least one first button marked by the first list during the user's blocking of the first notification content, which is conducive to enriching the group user blocking data of the cloud server.
[0019] In combination with the first aspect, in certain implementations of the first aspect, the first interface includes a button for a blocked list entry, and the method further includes: in response to a user clicking the button for the blocked list entry, displaying a blocked list on the second interface, the blocked list including the second notification content and the second notification type; in response to a user sliding operation on a second window where the second notification content is located, displaying an unblocking button in the second window; and in response to a user clicking the unblocking button, displaying the second notification content.
[0020] It should be understood that each notification content in the blocked list may automatically disappear after a preset time has passed since it was hidden. The preset time may be set by the user or by the default setting of the terminal device system. This application does not limit this. The "automatically disappearing after a preset time" described here means being cleared from the blocked list, not permanently deleting the content. Users can also open the corresponding application to find the notification content.
[0021] In an embodiment of the present application, the terminal device can display the undisplayed second notification content in response to the user clicking the unblocking button, thereby providing the user with more choices.
[0022] In combination with the first aspect, in certain implementations of the first aspect, the displaying the second notification content in response to a user clicking the unblocking button includes: displaying a second list in response to a user clicking the unblocking button, the second list including an OK button, a Cancel button and the multiple notification type buttons, among which the second notification type button is displayed as a marked state; in response to a user selecting at least one second button among the multiple notification type buttons, displaying the at least one second button as a marked state; and displaying the second notification content in response to a user clicking the OK button.
[0023] It should be understood that the second list can be displayed in the second interface or in another interface floating on the second interface, and this application does not limit this. When the second list is displayed in another interface floating on the second interface, the part of the interface not blocked by the second list can be transparent, and the user can still see other content displayed in the second interface that is not blocked by the second list in this interface.
[0024] In combination with the first aspect, in some implementations of the first aspect, the method further includes: adjusting the notification level corresponding to the second notification type configured for the terminal device to a notification level lower than or equal to the third notification level.
[0025] It should also be understood that the second notification content may correspond to multiple notification types. If one or more notification levels of the multiple notification types corresponding to the second notification content are lower than the notification level configured for the terminal device, the multiple notification levels corresponding to the one or more notification types configured for the terminal device are all adjusted to be lower than or equal to the notification level obtained by identifying the pre-trained network model.
[0026] The method provided in the embodiment of the present application can enable the terminal device to automatically display the notification content of the second notification type when it is received in the future, so as to meet the user's personalized needs for the terminal device.
[0027] In combination with the first aspect, in certain implementations of the first aspect, the method also includes: uploading to a cloud server the notification type corresponding to the at least one second button, the second notification content, and unblocking indication information, wherein the unblocking indication information is used to indicate that the user has performed an unblocking operation on the second notification content.
[0028] In combination with the first aspect, in certain implementations of the first aspect, before displaying the first notification content, the method also includes: in response to a user sliding operation on a first sliding button corresponding to the first notification type in a notification shielding parameter setting interface, configuring the notification level of the first notification type to the second notification level.
[0029] It should be understood that the terminal device is configured with a notification shielding parameter setting interface for the user to select the notification level corresponding to each notification type, and the user can adjust the notification level corresponding to a certain notification type in this interface.
[0030] The first window further displays a setting button and / or a delete button, wherein the setting button is used to manage notifications of the first application corresponding to the first notification content, and the delete button is used to delete the first notification content from the first interface.
[0031] In combination with the first aspect, in certain implementations of the first aspect, before displaying the first notification content, the method also includes: inputting the first notification content into a pre-trained network model to obtain the first notification type and the first notification level, the pre-trained network model is trained based on group user blocking data, the group user blocking data includes multiple notification contents of multiple users, multiple notification types corresponding to the multiple notification contents, and a blocking ratio of each of the multiple notification types among the multiple users.
[0032] In the embodiment of the present application, the pre-trained network model is obtained by shielding data of group users, and can identify the notification type and notification level of the notification content based on the notification content, and is used to compare with the notification level corresponding to the notification type configured by the terminal device, and finally decide whether to display or not display the notification content. The pre-trained network model represents the group users, which is conducive to identifying the results that meet the user's expectations.
[0033] In combination with the first aspect, in certain implementations of the first aspect, the pre-trained network model is trained by the terminal device or obtained from a cloud server.
[0034] In combination with the first aspect, in certain implementations of the first aspect, the notification switch of the first application corresponding to the first notification content is in an on state and the notification category switch corresponding to the first notification content in the first application is in an on state, the notification switch of the second application corresponding to the second notification content is in an on state and the notification category switch corresponding to the second notification content in the second application is in an on state.
[0035] It should be understood that if the terminal device sets the notification switch of the application and the notification category switch in the application, when the notification switch of the application is in the on state and the notification content of the application received by the terminal device is in the on state, the terminal device can process the notification content through the method provided in this application.
[0036] In a second aspect, the present application provides a notification display method, which is applied to a cloud server, and the method includes: training a network model based on group user blocking data to obtain a pre-trained network model, wherein the group user blocking data includes multiple notification contents of multiple users, multiple notification types corresponding to the multiple notification contents, and a blocking ratio of each notification type in the multiple users; sending the pre-trained network model to a terminal device.
[0037] In an embodiment of the present application, a pre-trained network model is obtained through a cloud server and sent to a terminal device, which is beneficial to saving computing power of the terminal device and providing a smoother user experience for the terminal device user.
[0038] In combination with the first aspect, in some implementations of the first aspect, the method also includes: obtaining a notification type, a first notification content, and a blocking indication information corresponding to at least one first button from a terminal device, wherein the blocking indication information is used to indicate that the user has performed a blocking operation on the first notification content; updating a blocking ratio of the notification type corresponding to the at least one first button among the multiple users based on the blocking indication information; adding the updated blocking ratio, the first notification content, and the notification type corresponding to the at least one first button to the group user blocking data to obtain updated group user blocking data; re-training the network model or the pre-trained network model based on the updated group user blocking data to obtain a re-trained network model; and sending the re-trained network model to the terminal device.
[0039] In the embodiment of the present application, the cloud server updates the group user shielding data by acquiring the data uploaded by the user of the terminal device due to the active shielding / cancelling operation during use, and obtains a retrained network model based on the updated group user shielding data. The method of the present application can timely update the network model according to the data generated by the user behavior, so that the network model is timely iterated, more in line with user needs, and more conducive to improving the user experience.
[0040] In a third aspect, the present application provides a notification display device, which includes a processing module and a display module. The processing module is used to, at a first moment, receive a first notification content; and at a second moment, receive a second notification content; the display module is used to: display the first notification content, the notification type and notification level of the first notification content are the first notification type and the first notification level, the first notification type and the first notification level are obtained by the terminal device using a pre-trained network model based on group user shielding data to identify the first notification content, the first notification level is higher than or equal to the second notification level, and the second notification level is the notification level configured in the terminal device and corresponding to the first notification type; and not display the second notification content, the notification type and notification level of the second notification content are the second notification type and the third notification level, the second notification type and the third notification level are obtained by the terminal device using the pre-trained network model to identify the second notification content, the third notification level is lower than the fourth notification level, and the fourth notification level is the notification level configured in the terminal device and corresponding to the second notification type.
[0041] Optionally, the display module is also used to: display the first notification content in the first window of the first interface; and, in response to a user sliding operation on the first window, display a shielding button in the first window; and in response to a user clicking operation on the shielding button, hide the first notification content.
[0042] Optionally, the display module is also used to: in response to a user clicking the shield button, display a first list, the first list including an OK button, a Cancel button and multiple notification type buttons, among which the first notification type button is displayed as a marked state; in response to a user selecting at least one first button among the multiple notification type buttons, display the at least one first button as a marked state; in response to a user clicking the OK button, hide the first notification content.
[0043] Optionally, the processing module is further used to: adjust the notification level corresponding to the first notification type configured for the terminal device to a notification level higher than the first notification level.
[0044] Optionally, the processing module is further used to upload to a cloud server the notification type corresponding to the at least one first button, the first notification content and shielding indication information, wherein the shielding indication information is used to indicate that the user has performed a shielding operation on the first notification content.
[0045] Optionally, the display module is also used to: in response to a user clicking a button of the blocking list entry, display a blocking list on the second interface, the blocking list including the second notification content and the second notification type; in response to a user sliding operation on a second window where the second notification content is located, display an unblocking button in the second window; in response to a user clicking the unblocking button, display the second notification content.
[0046] Optionally, the display module is also used to: in response to a user clicking the unblock button, display a second list, the second list including an OK button, a Cancel button and the multiple notification type buttons, among which the second notification type button is displayed as a marked state; in response to a user selecting at least one second button among the multiple notification type buttons, displaying the at least one second button as a marked state; and in response to a user clicking the OK button, displaying the second notification content.
[0047] Optionally, the processing module is further used to: adjust the notification level corresponding to the second notification type configured for the terminal device to a notification level lower than or equal to the third notification level.
[0048] Optionally, the processing module is also used to upload the notification type corresponding to the at least one second button, the second notification content and unblocking indication information to the cloud server, wherein the unblocking indication information is used to indicate that the user has performed an unblocking operation on the second notification content.
[0049] Optionally, the processing module is further configured to: in response to a user sliding operation on a first sliding button corresponding to the first notification type in the notification shielding parameter setting interface, configure the notification level of the first notification type to the second notification level.
[0050] Optionally, the first window further displays a setting button and / or a delete button, the setting button is used to manage notifications for the first application corresponding to the first notification content, and the delete button is used to delete the first notification content from the first interface.
[0051] Optionally, the processing module is also used to: input the first notification content into a pre-trained network model to obtain the first notification type and the first notification level, the pre-trained network model is trained based on group user blocking data, the group user blocking data includes multiple notification contents of multiple users, multiple notification types corresponding to the multiple notification contents, and a blocking ratio of each of the multiple notification types among the multiple users.
[0052] Optionally, the pre-trained network model is trained by the terminal device or obtained from a cloud server.
[0053] Optionally, the notification switch of the first application corresponding to the first notification content is in an on state and the notification category switch corresponding to the first notification content in the first application is in an on state, the notification switch of the second application corresponding to the second notification content is in an on state and the notification category switch corresponding to the second notification content in the second application is in an on state.
[0054] In a fourth aspect, the present application provides a notification display device, comprising a transceiver module and a processing module, wherein the processing module is used to: train a network model based on group user shielding data to obtain a pre-trained network model, the group user shielding data comprising multiple notification contents of multiple users, multiple notification types corresponding to the multiple notification contents, and a shielding ratio of each notification type in the multiple users; the transceiver module is used to: send the pre-trained network model to a terminal device.
[0055] Optionally, the transceiver module is also used to: obtain a notification type, a first notification content and a shielding indication information corresponding to at least one first button from a terminal device, wherein the shielding indication information is used to indicate that a user has performed a shielding operation on the first notification content; the processing module is also used to: update a shielding ratio of the notification type corresponding to the at least one first button among the multiple users based on the shielding indication information; add the updated shielding ratio, the first notification content and the notification type corresponding to the at least one first button to the group user shielding data to obtain updated group user shielding data; re-train the network model or the pre-trained network model based on the updated group user shielding data to obtain a re-trained network model; the transceiver module is also used to: send the re-trained network model to the terminal device.
[0056] In a fifth aspect, the present application provides a terminal device, comprising: a processor and a memory, wherein the processor is used to read instructions stored in the memory to execute a method in any possible implementation of the first aspect above.
[0057] Optionally, there are one or more processors and one or more memories.
[0058] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0059] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.
[0060] The terminal device in the fifth aspect mentioned above can be a chip, and the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
[0061] In a sixth aspect, the present application provides a cloud server, a processor and a memory, wherein the processor is used to read instructions stored in the memory to execute a method in any possible implementation of the second aspect above.
[0062] In a seventh aspect, the present application provides a notification display system, comprising a terminal device in any possible implementation of the third aspect or the fifth aspect and a cloud server in any possible implementation of the fourth aspect or the sixth aspect.
[0063] In an eighth aspect, the present application provides a computer-readable storage medium, which stores a computer program (also referred to as code, or instructions). When the computer-readable storage medium is run on a computer, the computer executes a method in any possible implementation of the first aspect or the second aspect.
[0064] In a ninth aspect, the present application provides a computer program product, which includes: a computer program (also referred to as code, or instructions), which, when executed, enables a computer to execute a method in any possible implementation of the first or second aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0066] Figure 2 A software structure diagram of a terminal device provided in an embodiment of the present application;
[0067] Figure 3 A schematic diagram of a notification display setting interface of a terminal device in the prior art;
[0068] Figure 4A schematic flowchart of a notification display method provided in an embodiment of the present application;
[0069] Figure 5 A schematic diagram of an interface of a notification display method provided in an embodiment of the present application;
[0070] Figure 6 A schematic diagram of an interface of another notification display method provided in an embodiment of the present application;
[0071] Figure 7 A schematic diagram of an interface of another notification display method provided in an embodiment of the present application;
[0072] Figure 8 A schematic flowchart of another notification display method provided in an embodiment of the present application;
[0073] Fig. 9 A schematic diagram of an interface of another notification display method provided in an embodiment of the present application;
[0074] Fig.10 A schematic flowchart of another notification display method provided in an embodiment of the present application;
[0075] Fig.11 A schematic diagram of an interface of a notification display method provided in an embodiment of the present application;
[0076] Fig.12 A schematic block diagram of a notification display device provided in the present application. DETAILED DESCRIPTION
[0077] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0078] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0079] It should be noted that in the embodiments of the present application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplarily" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0080] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, c can be single or multiple.
[0081] In order to better understand the embodiments of the present application, the terminal device involved in the embodiments of the present application is introduced below.
[0082] Figure 1 This is a schematic diagram of the structure of the terminal device 100 provided in an embodiment of the present application. The terminal device of the present application can be any terminal device that can receive notifications, such as a mobile phone, a tablet computer, etc., and the present application does not limit this.
[0083] The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a pressure sensor 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0084] Understandably, Figure 1 The structure shown is also only exemplary, and the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0085] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0086] In the embodiment of the present application, the terminal device 100 implements the display of the first notification content and different interfaces involved in the embodiment of the present application through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0087] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0088] The pressure sensor 180 is used to sense pressure signals and convert the pressure signals into electrical signals. The terminal device 100 can also calculate the touch position and correspond to different operation instructions based on the detection signal of the pressure sensor 180.
[0089] In an embodiment of the present application, the terminal device can respond to the user's operation at the corresponding position of the target button in each interface, determine to trigger the corresponding operation instruction, implement the function corresponding to the button displayed at that position, or switch to other display interfaces.
[0090] Figure 2 A software structure block diagram of the terminal device 100 provided in an embodiment of the present application.
[0091] The embodiment of the present application takes the Android system of layered architecture as an example to illustrate the software structure of the terminal device 100. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, namely, the application layer, the application framework layer, the system layer and the kernel layer from top to bottom.
[0092] 1. Application layer
[0093] The application layer may include a series of application packages. In the embodiment of the present application, the application layer includes at least system applications and third-party application packages. Among them, the system application package may include a notification management software development kit (SDK).
[0094] 2. Application framework layer
[0095] The application framework layer provides application programming interface (API) and programming framework for the application layer applications. The application framework layer includes some predefined functions. Figure 2 As shown, in an embodiment of the present application, the application framework layer may include a window manager, a resource manager, a notification manager, etc.
[0096] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0097] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0098] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.
[0099] In an embodiment of the present application, the notification message displayed after being identified by the terminal device can display the notification content in the status bar or its drop-down interface based on the notification manager.
[0100] 3. System layer
[0101] The C / C++ library can be used by different components in the Android system and provide services to developers through the application framework. In the embodiment of the present application, the C / C++ library at least includes program code corresponding to the pre-trained network model, which is called by the notification manager to realize the identification of the type and level of the notified content.
[0102] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0103] 4. Kernel layer
[0104] The kernel layer is a layer between hardware and software. The kernel layer contains at least display driver, memory driver and other driver codes. In the embodiment of the present application, the display driver can display the notification content on the screen of the terminal device based on the notification content to be displayed identified by the pre-trained classification model.
[0105] In some possible implementations of the present application, notification messages from system applications and third-party applications at the application layer can implement calls to the notification manager through the notification management SDK, and then call the pre-trained classification model in the system layer to recognize the notification content corresponding to the notification message, and call the display driver of the kernel layer to display the notification content on the terminal device screen.
[0106] With the rapid development of network and computer technology, terminal devices have become indispensable in people's daily life, and various applications (APPs) installed on terminal devices have also become tools for people to work, entertain or make friends. However, as various APPs are gradually enriched, each APP always pushes notification messages frequently for the purpose of promoting content or increasing users, which brings a lot of trouble to users.
[0107] Currently, when users want to manage notification messages, they need to click the settings application of the terminal device to enter the following Figure 3 Click the "Notification" area to enter the settings menu shown in a. Figure 3 Click the interface shown in b, and then click the corresponding area of "Batch Management" to enter the following Figure 3 In the batch management interface shown in c, the user can batch select whether to allow the notification messages corresponding to each application to be displayed on the terminal device by clicking the notification switch corresponding to each application. Taking application A as an example, if the user only selects Figure 3 The interface shown in c turns on the notification switch 301 of application A ( Figure 3 The state of the notification switch 301 shown in c may indicate that the notification is turned on, and the state of the notification switch 302 may indicate that the notification is turned off), which means that all messages of application A are allowed to be notified. However, if the user only wants to display some categories of messages in application A when notifying and not others, then it is necessary to Figure 3 In the interface shown in b, click the corresponding area of "A Application" to enter the following Figure 3 The notification management interface shown in Figure d allows users to select the message categories that they want to display or do not want to display one by one. Most of these categories are set by application providers. Even if users Figure 3 The category displayed in d is selected, and the notification content finally displayed on the terminal device may not be what the user really wants to see. Moreover, for users who have a large number of APPs installed in their terminal devices, it is quite cumbersome to set the message notifications of each APP to meet their own needs, which brings a bad user experience.
[0108] In view of this, the present application provides a notification display method, which identifies the type and level of the notification content based on the notification content and the pre-trained network model, and compares the identified type and level of the notification content with the level corresponding to the type of the notification content configured in the terminal device to determine whether the notification content is displayed. Through the method provided by the present application, the user does not need to perform complex settings, and the terminal device can automatically display or not display the notification, which simplifies the user operation process, improves the intelligence level of the terminal device, and optimizes the user experience.
[0109] Combine the following Figures 4 to 11 The notification display method provided by this application is described in detail. This application can be applied to terminal devices such as mobile phones and tablet computers, and its hardware structure can be as follows Figure 1 As shown, the software structure can be as follows Figure 2 As shown, the structure and form of the terminal equipment shown in the drawings of the embodiments of the present application are exemplary and do not constitute a specific limitation on the terminal equipment involved in the present application.
[0110] Figure 4 A schematic flow chart of a notification display method 400 provided in an embodiment of the present application. The method 400 comprises the following steps:
[0111] S401. At a first moment, a first notification content is received and displayed. The notification type and notification level of the first notification content are a first notification type and a first notification level. The first notification type and the first notification level are obtained by the terminal device by using a pre-trained network model based on group user shielding data to identify the first notification content. The first notification level is higher than or equal to the second notification level. The second notification level is a notification level configured in the terminal device and corresponding to the first notification type.
[0112] S402. At the second moment, the second notification content is received, but the second notification content is not displayed. The notification type and notification level of the second notification content are the second notification type and the third notification level. The second notification type and the third notification level are obtained by the terminal device by using a pre-trained network model to identify the second notification content. The third notification level is lower than the fourth notification level. The fourth notification level is the notification level configured in the terminal device and corresponds to the second notification type.
[0113] It should be understood that the first moment and the second moment described in the embodiment of the present application have no temporal order, and only represent the moment when the terminal device receives the first notification content and the moment when the terminal device receives the second notification content, respectively. The first moment and the second moment can be the same moment or different moments. The present application does not limit the execution order of the above S401 and S402.
[0114] It should also be understood that the pre-trained network model can be obtained by the terminal device through training based on group user shielded data, or it can be obtained by the terminal device from the cloud server after the cloud server is trained based on group user shielded data. This application does not limit this.
[0115] In an embodiment of the present application, after receiving the first notification content, the terminal device identifies the notification type and notification level of the first notification content as the first notification type and the first notification level based on the first notification content and the pre-trained network model, and compares the first notification level corresponding to the first notification type with the second notification level configured in the terminal device and corresponding to the first notification type, and obtains a comparison result that the first notification level is higher than or equal to the second notification level, then displays the first notification content; after receiving the second notification content, the terminal device identifies the notification type and notification level of the second notification content as the second notification type and the third notification level based on the second notification content and the pre-trained network model, and compares the third notification level corresponding to the second notification type with the fourth notification level configured in the terminal device and corresponding to the second notification type, and obtains a comparison result that the third notification level is lower than the fourth notification level, then does not display the second notification content. The method provided in the present application uses a pre-trained network model to identify the received notification content through the terminal device, and by comparing the identification result with the local configuration of the terminal device, the terminal device can automatically execute the processing of displaying or not displaying the notification content. The user does not need to operate the terminal device to filter whether the notification content is displayed, which simplifies the user's use process of the terminal device and improves the user experience.
[0116] In one possible implementation, the first notification content can be identified as corresponding to multiple notification types, each of the multiple notification types corresponds to a different notification level, and if the notification level corresponding to each of the multiple notification types is higher than or equal to the notification level corresponding to the notification type configured in the terminal device, the terminal device displays the first notification content.
[0117] In another possible implementation, the second notification content can be identified as corresponding to multiple notification types, each of the multiple notification types corresponding to a different notification level. At this time, if any one of the multiple notification types corresponds to a notification level lower than the notification level corresponding to the notification type configured in the terminal device, the terminal device does not display the second notification content.
[0118] As a possible scenario of this application, if the terminal device is provided with a batch management interface (such as Figure 3 c) and notification management interface for a single application (such as Figure 3 d), then an optional embodiment of the present application includes: the notification switch of the first application corresponding to the first notification content is in the on state and the notification category switch corresponding to the first notification content in the first application is in the on state, the notification switch of the second application corresponding to the second notification content is in the on state and the notification category switch corresponding to the second notification content in the second application is in the on state.
[0119] It should be understood that if the terminal device is set up as follows Figure 3 b and Figure 3 In the interface shown in c, when the notification switch of the application is on and the notification content of the application received by the terminal device has the corresponding notification category switch in the application on, the terminal device can process the notification content through the method provided in this application.
[0120] It should also be understood that the “notification category” described in the embodiments of the present application refers to Figure 3 The notification content of application A shown in c in , corresponds to category I, category II, category III, etc., taking application A as a map application as an example, its notification category can be walking navigation, taxi orders, map offline package downloads, personal messages, etc. The "notification type" refers to the notification type identified based on the notification content and the pre-trained network model, for example, it can be advertising marketing, transportation, entertainment, life, etc. The purpose of distinguishing between "notification category" and "notification type" in this application is only to distinguish the difference in their definitions, so as to facilitate the understanding of this application. Specifically for the same application, the two can be in a relationship of inclusion, inclusion, or the same, such as "walking navigation" and "taxi orders" can be included in "transportation", and "personal messages" can include "entertainment", "life", etc. This application does not specifically limit their relationship.
[0121] In another possible scenario, the terminal device only has a batch management interface that can be selected by the user (such as Figure 3 As shown in c), a possible implementation of the present application includes: the notification switch of the first application corresponding to the first notification content is in the turned-on state, and the notification switch of the second application corresponding to the second notification content is in the turned-on state.
[0122] As an optional embodiment, the terminal device displays the first notification content, including: the terminal device displays the first notification content in the first window of the first interface; after displaying the first notification content in the first window of the first interface, the method also includes: in response to the user sliding operation on the first window, displaying a shielding button in the first window; in response to the user clicking the shielding button, hiding the first notification content.
[0123] Figure 5 The a in the figure shows the interface displayed by the terminal device after receiving the first notification content at the first moment, and the interface displays the received first notification content. The first interface 501 is a notification bar interface pulled down from the current operation interface in response to the user's sliding down or other any specified operation when the terminal device is in any operation interface. However, it should be understood that when the terminal device displays the notification content, it can also be displayed on the lock screen interface, the top status bar of the system, or displayed on the screen in the form of a window. This application does not specifically limit the notification display form.
[0124] like Figure 5 As shown in a in the figure, the terminal device displays the first notification content in the first window 502 of the first interface 501. While displaying the first notification content, the terminal device may also display the icon 503 and name 504 of the first application corresponding to the first notification content, the time 505 from when the first notification content is received to the current moment, and other information that is set to be displayed with the interface, which is not limited in this application.
[0125] Optionally, a clear button 510 may also be displayed in the first interface 501, and the user may click the button to clear all notification contents displayed on the interface with one click.
[0126] After the terminal device displays the first notification content in the first window 501, the terminal device may display a shielding button 506 (eg, Figure 5 In response to the user's response to Figure 5 By clicking the shield button 506 shown in FIG. 1 b, the terminal device hides the first notification content. The display interface after hiding the first notification content can be as follows: Figure 5 As shown in c.
[0127] In a possible implementation, after the user performs a sliding operation on the first window 502, the sliding-out area of the first window 501 may further display the following Figure 5 The setting button 507 and the delete button 508 shown in b, the setting button 507 can be used to implement quick settings related to notification management for the first application corresponding to the first notification content, and the delete button 508 can be used to delete the content displayed in the current first window 502 from the first interface 501. However, it should be understood that in response to the deletion operation performed by the delete button 508, only the content displayed in the first window 502 is deleted from the first interface 501, and the content is not completely deleted. The user can still enter the relevant interface of the first application to find the first notification content.
[0128] In the embodiment of the present application, after the terminal device displays the first notification content in the first window, the first notification content can also be hidden in response to the user's sliding operation on the first window and clicking the shielding button revealed after sliding. That is, if the displayed first notification content is not what the user wants to see, then through the method provided in this embodiment, the terminal device can hide the first notification content in response to the user's operation on the shielding button, providing the user with more diverse choices.
[0129] As an optional embodiment, the above-mentioned hiding of the first notification content in response to the user clicking the shield button includes: in response to the user clicking the shield button, displaying a first list, the first list including an OK button, a Cancel button and multiple notification type buttons, among which the first notification type button is displayed as a marked state; in response to the user selecting at least one first button among the multiple notification type buttons, displaying at least one first button as a marked state; in response to the user clicking the OK button, hiding the first notification content.
[0130] User Figure 5 After the shield button 506 shown in FIG. 1 is clicked, a possible implementation is to directly display the following Figure 5 Another possible implementation is to display the first list, and then display the following information in response to the user clicking the confirmation button in the first list. Figure 5 The interface shown in c.
[0131] Figure 5 The d in the figure gives an example of the user's Figure 5 Another possible display interface after the shielding button 506 shown in FIG. Figure 5 As shown in d in FIG. 5 , the first list 509 includes multiple notification type buttons, such as advertising and marketing, life, transportation, entertainment, economy and others. If the first notification type is advertising and marketing and entertainment, before the user selects the first list 509, the "advertising and marketing" button and the "entertainment" button may be displayed as follows: Figure 5 The marking state shown in d in the figure is used to remind the user of the recognition result of the notification type of the first notification content by the terminal device. If the user thinks that a change is needed, the user can mark other unmarked notification type buttons in the first list 509 by clicking on them, or can unmark the marked notification type buttons by clicking on them. When the user clicks the OK button, the marked button in the first list 509 is the first button, and the notification type corresponding to the first button can be considered to be the notification type corresponding to the first notification content understood by the user. When the user clicks on the OK button, the marked button in the first list 509 is the first button, and the notification type corresponding to the first button can be considered to be the notification type corresponding to the first notification content understood by the user. Figure 5 After pressing the confirmation button shown in d in FIG. , the terminal device responds to the operation and displays the following Figure 5 The interface shown in c.
[0132] It is worth noting that if the user actively chooses to hide the first notification content after it is displayed, the reason may be that the automatic processing result of the terminal device does not meet its own personalized needs. Therefore, when the user chooses to block the displayed first notification content, the embodiment of the present application displays the first list to allow the user to select the notification type that the user believes corresponds to the first notification content. The marking result can be used to enrich the group user shielding data of the terminal device or the cloud server, improve the recognition ability of the pre-trained network model, and improve the recognition accuracy of the terminal device for the notification content, which is conducive to improving the user's satisfaction with the subsequent processing results of the terminal device.
[0133] As an optional embodiment, after the second moment, when the user finds that the terminal device does not display the second notification content, the user can also operate the blocking list entry button included in the first interface and subsequent operations to make the terminal device respond to the operation and display the second notification content. The method includes: the terminal device responds to the user's click operation on the button of the blocking list entry, and displays the blocking list on the second interface, where the blocking list includes the second notification content and the second notification type; responds to the user's sliding operation on the second window where the second notification content is located, and displays a cancel blocking button in the second window; responds to the user's click operation on the cancel blocking button, and displays the second notification content.
[0134] For example, Figure 6 FIG. 1 shows a first interface 501 displayed by the terminal device when the second moment is after the first moment, and the interface includes a button 601 for blocking the entry of the list. In response to a user clicking the button 601 for blocking the entry of the list, the terminal device displays the following Figure 6 The second interface 602 shown in b in FIG. 1 displays a blocking list in the second interface 602 , and a second window 603 of the blocking list displays the second notification content and a second notification type obtained by identifying the second notification content and a pre-trained network model.
[0135] Optionally, the shielding list may also include: Figure 6 As shown in b in FIG, the fourth notification content and the fifth notification content hidden in the shielding list one day ago, as well as the notification level corresponding to each notification content, etc., this application does not limit the number of notification contents in the shielding list.
[0136] Optionally, each notification content in the blocked list may automatically disappear after a preset time has passed since it was hidden. The preset time may be set by the user or by the default setting of the terminal device system. This application does not limit this. The "automatically disappearing after a preset time" described here means being cleared from the blocked list, not permanently deleting the content. Users can also open the corresponding application to find the notification content.
[0137] In such Figure 6 In the second interface 602 described in b, the user can slide the second window 603 (either left or right), and the terminal device responds to the user's sliding operation on the second window 603 by displaying a cancel shielding button 604 (such as Figure 6 In response to the user clicking the unblock button 604, the terminal device displays the second notification content (as shown in FIG. Figure 6 (shown in d).
[0138] In a possible implementation, the user Figure 7 After clicking the cancel mask button 604 shown in a in FIG. Figure 7 In the interface shown in b, users can Figure 7 After continuing the operation of the interface shown in b in , the second notification content is displayed on the first interface. The method specifically includes: in response to the user's click operation on the unblocking button, displaying a second list, the second list including an OK button, a Cancel button and multiple notification type buttons, among the multiple notification type buttons, the second notification type button is displayed as a marked state; in response to the user's selection operation on at least one second button among the multiple notification type buttons, displaying the at least one second button as a marked state; in response to the user's click operation on the OK button, displaying the second notification content.
[0139] It should be understood that the second list can be displayed in the second interface or in another interface floating on the second interface, and this application does not limit this. When the second list is displayed in another interface floating on the second interface, the part of the interface not blocked by the second list can be transparent, and the user can still see other content displayed in the second interface that is not blocked by the second list in this interface, just like Figure 7 As shown in b.
[0140] exist Figure 7 In the interface shown in b in FIG. 1 , the user can mark the confirmation button, the cancel button and the multiple notification type buttons included in the second list 701. When the user has not performed any operation on the second list 701, the second notification type button in the second list 701 is displayed in a marked state, for example, it can be Figure 7 The state of the "Economy" button in the second list 701 shown in b in FIG. The user can click on the marked button to cancel the mark, and can also click on the unmarked button to put it in the marked state. After the user completes the selection of multiple notification type buttons, the terminal device can respond to the user's click operation on the confirmation button in the second list 701 and display the second notification content. The display interface can be as shown in FIG. Figure 7 As shown in c.
[0141] As an optional embodiment, after the user actively hides the displayed first notification content, the method provided in the present application also includes the terminal device adjusting the notification level corresponding to the first notification type configured for the terminal device to a notification level higher than the first notification level in response to the user's operation.
[0142] For example, if the first notification type of the first notification content obtained by the terminal device based on the first notification content and the pre-trained network model is advertising marketing, and the first notification level corresponding to the first notification type is level 7, but the notification level corresponding to advertising marketing configured in the terminal device is level 5, and level 7 is higher than level 5, the terminal device displays the first notification content. However, the user actively chooses to hide the first notification content, which can be understood as the user wants to block similar content corresponding to advertising marketing. Therefore, the terminal device adjusts the locally configured advertising marketing notification level from level 5 to higher than level 7. Then, when the terminal device recognizes the notification content received next time as advertising marketing and the notification level is level 7, since the locally configured advertising marketing notification level has been adjusted to higher than level 7, the terminal device will directly block the notification content.
[0143] In an embodiment of the present application, after the user actively hides the displayed first notification content, the terminal device adjusts the level of the locally configured first notification type in response to the operation, so that when there is notification content corresponding to the first notification type in the future, the terminal device can directly block the content without the user having to operate again, thereby optimizing the user experience.
[0144] As an optional embodiment, after displaying the second notification content hidden in the blocking list in response to the user's active operation, it also includes: adjusting the notification level corresponding to the second notification type configured on the terminal device to a notification level lower than or equal to the third notification level.
[0145] It should be understood that, similar to the above-mentioned operation in which the user actively blocks the displayed first notification content, after the second notification content hidden in the blocking list is displayed in response to the user's operation, the terminal device adjusts the notification level corresponding to the second notification type to a notification level lower than or equal to the third notification level based on the operation. The purpose is to enable the terminal device to automatically display the content when receiving notification content of the second notification type thereafter, so as to meet the user's personalized needs for the terminal device.
[0146] It should also be understood that the second notification content may correspond to multiple notification types. If the notification levels of the multiple notification types corresponding to the second notification content are all lower than the notification level configured for the terminal device, the multiple notification levels corresponding to the multiple notification types configured for the terminal device are all adjusted to be lower than or equal to the notification level obtained by identification based on the pre-trained network model.
[0147] The following uses the example of a terminal device receiving the third notification content to illustrate the notification display method 800 implemented by the terminal device. It should be understood that the third notification content is no different from the first notification content and the second notification content, and their essence refers to the terminal device receiving any one notification content.
[0148] Figure 8 The implementation process of the method 800 is shown, including the following steps:
[0149] S801. The terminal device receives the third notification content.
[0150] S802: The terminal device recognizes that the notification type and notification level of the third notification content are the third notification type and the fifth notification level respectively.
[0151] S803. Determine the relationship between the fifth notification level and the sixth notification level configured in the terminal device and corresponding to the third notification type. If the fifth notification level is higher than or equal to the sixth notification level, execute S804; if the fifth notification level is lower than the sixth notification level, execute S807.
[0152] S804: Display the third notification content.
[0153] Optionally, if the user performs the above steps after displaying the third notification content, Figure 5 The shielding operation described in the embodiment, the terminal device continues to execute S805 to S806.
[0154] S805: In response to the user clicking the shielding button, hide the third notification content.
[0155] S806. Adjust the notification level corresponding to the third notification type to a notification level higher than the fifth notification level.
[0156] S807: Do not display the third notification content.
[0157] Optionally, if the user performs the above steps after displaying the third notification content, Figure 6 If the shielding operation described in the embodiment is canceled, the terminal device continues to execute S808 to S809.
[0158] S808: In response to the user clicking the unblocking button, display the third notification content.
[0159] S809: Adjust the notification level corresponding to the third notification type to a notification level lower than or equal to the fifth notification level.
[0160] As an optional embodiment, the notification level corresponding to the notification type configured by the terminal device can be adaptively adjusted by the terminal device based on the user's blocking / unblocking operation on the displayed / non-displayed notification content, and can also be manually adjusted by the user through the notification blocking parameter setting interface.
[0161] For example, the user can enter the following settings through the settings application: Fig. 9 After entering the settings interface shown in a, you can also enter the following by clicking the corresponding area of "Notification" Fig. 9 The interface shown in b includes the option of "Notification shielding parameter setting". The user can click the area corresponding to this option to enter the following Fig. 9 The notification shielding parameter setting interface shown in c may include a first notification type, a second notification type, a third notification type, a fourth notification type, ..., an Mth notification type and corresponding sliding buttons. Users can operate the sliding buttons in this interface, where M is a positive integer greater than or equal to 1, indicating that the terminal device is configured with a notification level corresponding to each of the M notification types.
[0162] In one possible implementation, before displaying the first notification content, the terminal device configures the notification level of the first notification type to the second notification level in response to the user sliding the first sliding button 901 corresponding to the first notification type in the notification shielding parameter setting interface.
[0163] In another possible implementation, before displaying the first notification content, the terminal device may set the notification levels of all notification types to medium by default. Fig. 9 The adaptive adjustment button 902 shown in c is set to the on state, that is, after the user actively blocks or cancels the blocking of the notification content, the notification blocking parameters configured in the terminal device are automatically adjusted in the manner described above.
[0164] As an optional embodiment, the above-mentioned pre-trained network model is trained by the terminal device or obtained from a cloud server.
[0165] In one possible implementation, the pre-trained network model is trained by a terminal device based on group user shielding data. The group user shielding data can be shared by multiple terminal devices in real time or obtained from an open source database, which is not limited in this application.
[0166] When the terminal device obtains the pre-trained network model based on group user shielded data training, the data of this terminal device can occupy a larger proportion, while the data shared from other terminal devices can occupy a smaller proportion, so that the pre-trained network model is more suitable for the user of this terminal device and gives the user a better user experience.
[0167] In another possible implementation, the pre-trained network model may be configured when the terminal device leaves the factory.
[0168] In another possible implementation, the pre-trained network model is trained by the cloud server and then obtained by the terminal device from the cloud server.
[0169] In the above embodiment, the notification type, first notification content, and blocking indication information corresponding to at least one first button selected and marked by the user in the process of blocking the displayed first notification content, and the notification type, second notification content, and unblocking indication information corresponding to at least one second button selected and marked in the process of unblocking the hidden second notification content can all be uploaded to the cloud server, so as to train and optimize the group user blocking data through the cloud server. Among them, the blocking indication information is used to indicate that the user has performed a blocking operation on the first notification content, and the unblocking indication information is used to indicate that the user has performed an unblocking operation on the second notification content.
[0170] Below, a notification display method provided in an embodiment of the present application is described from the perspective of interaction between a terminal device and a cloud server. Fig.10 A schematic flow chart of a notification display method 1000 provided by the present application is shown. The method 1000 comprises the following steps:
[0171] S1001. The cloud server trains a network model based on group user shielding data to obtain a pre-trained network model; wherein the group user shielding data includes multiple notification contents of multiple users, multiple notification types corresponding to the multiple notification contents, and a shielding ratio of each notification type in the multiple notification types among the multiple users.
[0172] It should be understood that in the early stage of training the network model, the group user shielding data may come from internal test users or any other possible data source, and this application does not limit this.
[0173] In a possible implementation, before training the network model, semantic features of multiple notification contents of multiple users may be extracted using a semantic recognition algorithm to obtain notification text vectors of the multiple notification contents.
[0174] Optionally, the semantic recognition algorithm can be a term frequency-inverse document frequency (TF-IDF) algorithm, where TF represents the number of times each word segment appears in the current document, and IDF represents the inverse document frequency, which is equal to log(total number of documents / (number of documents containing the word + 1)). The TF-IDF value of a word segment is equal to the product of the TF value and the IDF value, where log refers to logarithmic operation. The algorithm can be used to evaluate the importance of a word segment in a document collection or corpus, and the word segments in multiple notification contents can be processed by any existing open source tool (such as Jieba Chinese word segmentation, etc.). The TF-IDF algorithm can be used to obtain semantic feature vectors corresponding to multiple notification contents. For example, a semantic feature vector of a notification content can be represented as a set of TF-IDF values of multiple word segments in the content document, such as: {TF-IDF1, TF-IDF2, TF-IDF3, ...TF-IDF n}, where n is the number of tokens in the document.
[0175] Optionally, the network model can be a classification model, specifically a naive Bayes classifier, various naive Bayes classifiers contained in other open source machine learning libraries (such as Scikit-learn), Bayes, logistic regression, decision tree, support vector machine (SVM) or any other implementable neural network model, etc., which is not limited in this application.
[0176] Exemplarily, when the network model is a naive Bayes classifier, the trained network model can predict whether a notification content is a certain notification type based on the naive Bayes algorithm. It should be understood that the cloud server can define keywords for notification categories. For example, keywords for advertising and marketing can be promotion, discount, collection, subsidy, etc. If you need to make a probability prediction of whether a notification content is advertising marketing, you first need to calculate the probability of advertising marketing keywords appearing in the notification content, recorded as P(words|spam), and then count the proportion P(spam) of advertising marketing notification type that is blocked in group users (referring to users corresponding to group user blocking data currently stored in the cloud server), and the probability P(words) of keywords of the advertising marketing notification type appearing in all notification contents of group users (referring to multiple notification contents in group user blocking data currently stored in the cloud server). Finally, the probability that the notification type of the notification content is advertising marketing is P(words|spam) = P(words|spam)P(spam) / P(words). If the probability is greater than the preset value, the notification type of the notification content is output as advertising marketing.
[0177] In one possible implementation, semantic feature vectors corresponding to multiple notification contents, notification types corresponding to the multiple notification contents, and the blocking ratio of each of the multiple notification types among multiple users are input into the network model for training, and the obtained pre-trained network model can be used to identify the notification type and notification level corresponding to a single notification content.
[0178] In another possible implementation, the network model trained by the cloud server may be a network model including a semantic recognition model and a classification model. A plurality of notification contents, a plurality of notification types corresponding to the plurality of notification contents, and notification levels corresponding to the plurality of notification types are used as a training set of the network model to train the network model. The pre-trained network model obtained by training the network model can identify the notification type and notification level corresponding to the notification content through the notification content, and the notification type and notification level can be output in a vector form, for example: {first notification type: first notification level; second notification type: second notification level; ...}, and one notification content can correspond to multiple notification types and notification levels.
[0179] Among them, the notification levels corresponding to the multiple notification types are obtained by converting the shielding ratio of each notification type in the multiple notification types among the multiple users according to its size. For example, when the shielding ratio is defined as 30% to 40%, the notification level is level 7.
[0180] It should be understood that part of the training set can be used as a validation set to verify the recognition success rate of the network model after a certain period of training or a preset period, and the network model with a recognition success rate greater than or equal to a preset threshold can be used as a pre-trained network model.
[0181] S1002. The cloud server sends a pre-trained network model to the first terminal device and the second terminal device. Correspondingly, the first terminal device and the second terminal device receive the pre-trained network model.
[0182] In a possible implementation, the cloud server includes the pre-trained network model in system update data and sends it to the terminal device based on the system update request of the terminal device.
[0183] In another possible implementation, the cloud server actively sends the pre-trained network model to the terminal device in the form of parameter update (which can be a silent update or an update based on user consent).
[0184] It should be understood that no matter how the cloud server sends the pre-trained network model to the terminal device, when the terminal device first receives the pre-trained network model and completes the system upgrade or parameter update, it means that the terminal has the ability to implement the notification display method described in this application.
[0185] Optionally, after the above system upgrade or parameter update is completed, the terminal device can display the following Fig.11 The interface 1101 shown includes the agreement text of the notification experience improvement plan corresponding to the notification display method of the present application, a give up button and a participate button, so that the user can choose whether to participate in the notification experience improvement plan. If the user clicks "Participate", it means that the user agrees to implement the corresponding functions through the notification display method of the present application (including the terminal device adaptively adjusting the notification shielding parameters as described in the above embodiments, and uploading the relevant information after the user actively shields / unshields to the cloud server). If the user clicks "Give up", the terminal device will not be able to use the functions corresponding to the notification display method provided by the present application.
[0186] S1003. The first terminal device receives the first notification content, and the pre-trained network model from the cloud server identifies that the notification type and notification level of the first notification content are the first notification type and the first notification level.
[0187] S1004. The first terminal device determines the relationship between the first notification level and the second notification level of the first notification type configured locally; if it is determined that the first notification level is higher than or equal to the second notification level of the first notification type configured locally, execute S1005; otherwise, the first terminal device does not display the first notification content.
[0188] S1005. The first terminal device displays the first notification content.
[0189] S1006. The first terminal device hides the first notification content in response to the user's shielding operation, and obtains the notification type, the first notification content, and shielding instruction information corresponding to at least one first button marked and selected by the user when performing the shielding operation.
[0190] S1007. The first terminal device adjusts the notification level corresponding to the first notification type to a notification level higher than the first notification level.
[0191] The first terminal device processes the first notification content based on the first notification content, the pre-trained network model, and the notification shielding parameters configured by the terminal device. The specific process has been described above in conjunction with Figure 5 It has been described in detail and will not be repeated here.
[0192] S1008. The first terminal device sends a notification type, a first notification content, and a shielding instruction information corresponding to at least one first button to the cloud server, and correspondingly, the cloud server receives the information.
[0193] It should be understood that the notification type, the first notification content, and the blocking instruction information corresponding to at least one first button marked by the user after actively blocking the first notification content can be uploaded to the cloud server to re-train the network model.
[0194] Exemplarily, the data uploaded by the first terminal device to the cloud server may include the content shown in Table 1.
[0195] Table 1
[0196]
[0197] S1009. The second terminal device receives the second notification content, and the pre-trained network model from the cloud server identifies that the notification type and notification level of the second notification content are the second notification type and the third notification level.
[0198] S1010. The second terminal device determines the relationship between the first notification level and the third notification level of the second notification type configured locally; if it is determined that the third notification level is lower than the second notification level of the first notification type configured locally, execute S1011; otherwise, the second terminal device displays the second notification content.
[0199] S1011. The second terminal device does not display the second notification content.
[0200] S1012. The second terminal device displays the second notification content in response to the user's shielding operation, and obtains the notification type, the second notification content, and the shielding cancellation instruction information corresponding to at least one second button marked and selected by the user when performing the shielding operation.
[0201] S1013. The second terminal device adjusts the notification level corresponding to the second notification type to a notification level lower than or equal to the third notification level.
[0202] The second terminal device processes the second notification content based on the second notification content, the pre-trained network model, and the notification shielding parameters configured by the terminal device. The specific process has been described above in conjunction with Figure 6 It has been described in detail and will not be repeated here.
[0203] S1014. The second terminal device sends a notification type, a second notification content, and a cancel blocking instruction information corresponding to at least one second button to the cloud server, and correspondingly, the cloud server receives the information.
[0204] It should be understood that S1003 to S1008 executed by the first terminal device and S1009 to S1014 executed by the second terminal device may be performed by the same terminal device, and the present application does not limit the order of execution of the steps.
[0205] It should also be understood that the cloud server can interact with multiple terminal devices. Fig.10 The terminal devices shown in are only examples and do not constitute a limitation on the number of terminal devices that can interact with the cloud server.
[0206] S1015. The cloud server updates the group user shielding data based on the data received from the multiple terminal devices.
[0207] S1016. The cloud server retrains the network model or the pre-trained network model based on the updated group user shielding data to obtain a re-trained network model.
[0208] The cloud server can update the group user shielding data based on the information uploaded by multiple terminal devices as shown in Table 1.
[0209] It should be understood that the cloud server may update the group user shielding data stored in the cloud server every time it receives data uploaded by the terminal device, and the above S1015 may also be executed after S1013.
[0210] It should be understood that the blocking indication information refers to whether the notification type corresponding to the notification content is blocked. If "yes", the blocking ratio of the notification type among multiple users may increase, and if "no", the blocking ratio of the notification type among multiple users may decrease. The cloud server can count the blocking ratio of each notification type among multiple users based on the indication information.
[0211] In one possible implementation, each time the group user masking data is updated, the cloud server will train the network model again.
[0212] In another possible implementation, the network model is not retrained every time the group user blocking data is updated. Instead, the network model or the pre-trained network model is retrained using the updated group user blocking data only when the blocking proportion of one or several notification types among the multiple notification types among the multiple users exceeds a preset threshold compared with the data before the update.
[0213] S1017. The cloud server sends the retrained network model to the first terminal device and the second terminal device. Correspondingly, the first terminal device and the second terminal device receive the retrained network model.
[0214] Optionally, the cloud server may periodically send a retrained network model to the terminal device, or send a retrained network model to the terminal device based on a request from the terminal device, which is not limited in the present application.
[0215] It should be understood that the above Fig.10 The interaction between the cloud server and the first terminal device and the second terminal device is shown, but in fact there may be more terminal devices in addition to these two terminal devices, and this application does not limit the number of terminal devices.
[0216] The specific implementation process of this application is explained below with specific examples.
[0217] After the terminal device receives the pre-trained network model, the terminal device receives a notification content. The pre-trained network model recognizes the notification content as "Advertising-6" and "Automobile-3", and the terminal device is configured with "Advertising-5" and "Automobile-5". Since the notification level of any item in the recognition result is lower than the configuration level of the terminal device (i.e., the recognized automobile is level 3, which is lower than the level 5 corresponding to the automobile configured by the terminal device), the terminal does not display the notification content. However, the user wants to buy a car recently or is a car information enthusiast. When the user finds that such information is not displayed, he enters the shielding list through the shielding list entry button set by the terminal, finds the notification content, and unshields the content. In response to the user's operation, the terminal device adjusts the level configured for the notification type "Automobile" to level 3. In this way, the terminal device will directly display the notification content similar to the notification content received thereafter. When the user performs the unshielding operation, the notification content is only marked as "Automobile", and the notification content, the unshielding of the content, and the information that the notification type marked as "Automobile" are uploaded to the cloud server. When the proportion of notification content marked as "car" in the group user's blocked data in the cloud server decreases to a preset threshold, a retrained network model is obtained based on the updated group user's blocked data, and the retrained network model is sent to the terminal device. When the user identifies similar notification content based on the retrained network model, the level of notifications identified as "car" will be increased, and the user will be able to see an increase in the proportion of similar notification content, thereby optimizing the user experience.
[0218] Combined with the above Figures 1 to 11 A notification display method provided by the present application is described in detail below. Fig.12 A notification display device provided in the present application is described.
[0219] Fig.12A notification display device 1200 is provided in an embodiment of the present application. The notification display device 1200 includes a processor 1201, a transceiver 1202, and a memory 1203. The processor 1201, the transceiver 1202, and the memory 1203 communicate with each other through an internal connection path, the memory 1203 is used to store instructions, and the processor 1201 is used to execute the instructions stored in the memory 1203 to control the transceiver 1202 to send signals and / or receive signals.
[0220] It should be understood that the notification display device 1200 can be specifically a terminal device or a cloud server in the above embodiment, and can be used to execute the various steps and / or processes corresponding to the terminal device or the cloud server in the above method embodiment. Optionally, the memory 1203 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type. The processor 1201 may be used to execute instructions stored in the memory, and when the processor 1201 executes instructions stored in the memory, the processor 1201 is used to execute the various steps and / or processes of the above method embodiment corresponding to the terminal device or the cloud server. The transceiver 1202 may include a transmitter and a receiver, the transmitter may be used to implement the various steps and / or processes corresponding to the above transceiver for performing the sending action, and the receiver may be used to implement the various steps and / or processes corresponding to the above transceiver for performing the receiving action.
[0221] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0222] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0223] The present application also provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to implement the method corresponding to the terminal device or the cloud server in the above embodiment.
[0224] The present application also provides a computer program product, which includes a computer program (also referred to as code or instruction). When the computer program runs on a computer, the computer can execute the method corresponding to the terminal device or cloud server shown in the above embodiment.
[0225] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0226] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0227] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0228] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0229] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0230] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0231] The above is only a specific implementation of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the embodiments of the present application, which should be included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be based on the protection scope of the claims.
Claims
1. A notification display method, characterized in that: Applied to a terminal device, the method comprises: Displaying the first notification content in the first window of the first interface; In response to a user sliding operation on the first window, displaying a shielding button in the first window; In response to a user clicking operation on the shielding button, hiding the first notification content.
2. The method according to claim 1, characterized in that In response to the user clicking the shielding button, hiding the first notification content includes: In response to a user clicking operation on the shield button, displaying a first list, the first list including a confirmation button, a cancel button, and a plurality of notification type buttons; In response to a user selecting at least one first button among the plurality of notification type buttons, displaying the at least one first button as a marked state; In response to a user clicking operation on the confirmation button, hiding the first notification content.
3. The method according to claim 2, characterized in that Among the plurality of notification type buttons, a first notification type button is displayed in a marked state.
4. The method according to claim 3, characterized in that After hiding the first notification content, the notification level corresponding to the first notification type in the notification shielding parameter setting interface is displayed as a notification level higher than the first notification level.
5. The method according to claim 4, characterized in that Before displaying the first notification content, the method further includes: In response to a user sliding operation on a first sliding button corresponding to the first notification type in the notification shielding parameter setting interface, the notification level of the first notification type is displayed as a second notification level.
6. The method according to any one of claims 1 to 5, characterized in that The first window further displays a setting button and / or a delete button, wherein the setting button is used to manage notifications of the first application corresponding to the first notification content, and the delete button is used to delete the first notification content from the first interface.
7. The method according to any one of claims 1 to 6, characterized in that The terminal device includes a notification management interface, in which a notification switch of a first application corresponding to the first notification content is displayed as being in an on state and a notification category switch corresponding to the first notification content in the first application is displayed as being in an on state.
8. The method according to any one of claims 1 to 7, characterized in that The first interface includes a button for blocking a list entry; In response to a user clicking operation on a button of the shielding list entry, displaying the shielding list on the second interface, the shielding list including the second notification content; In response to a user sliding operation on a second window where the second notification content is located, displaying a cancel blocking button in the second window; In response to a user clicking operation on the unblocking button, the second notification content is displayed.
9. The method according to claim 8, characterized in that The step of displaying the second notification content in response to the user clicking the unblocking button comprises: In response to a user clicking operation on the unblocking button, displaying a second list, the second list including a confirmation button, a cancel button, and a plurality of notification type buttons; In response to a user selecting at least one second button among the plurality of notification type buttons, displaying the at least one second button as a marked state; In response to the user clicking the confirmation button, the second notification content is displayed.
10. The method according to claim 9, characterized in that Among the plurality of notification type buttons, a second notification type button is displayed in a marked state.
11. The method according to claim 10, characterized in that After the second notification content is displayed, the notification level corresponding to the second notification type in the notification shielding parameter setting interface is displayed as a notification level lower than or equal to the third notification level.
12. The method according to any one of claims 8 to 11, characterized in that The second window further displays a setting button and / or a delete button, wherein the setting button is used to manage notifications of the second application corresponding to the second notification content, and the delete button is used to delete the second notification content from the second interface.
13. The method according to any one of claims 8 to 12, characterized in that The terminal device includes a notification management interface, in which the notification switch of the second application corresponding to the second notification content is displayed as being in an on state and the notification category switch corresponding to the second notification content in the second application is displayed as being in an on state.
14. The method according to claim 11, characterized in that The second notification type and the third notification level are the notification type and notification level of the second notification content obtained by the terminal device using a pre-trained network model based on group user shielding data to identify the second notification content, and the third notification level is lower than the fourth notification level. The fourth notification level is the notification level configured in the terminal device and corresponds to the second notification type.
15. The method according to claim 4, characterized in that The first notification type and the first notification level are the notification type and notification level of the first notification content obtained by the terminal device using a pre-trained network model based on group user masking data to identify the first notification content, the first notification level is higher than or equal to the second notification level, and the second notification level is the notification level configured in the terminal device and corresponding to the first notification type.
16. The method according to claim 2, characterized in that The method further comprises: The notification type corresponding to the at least one first button, the first notification content and shielding indication information are uploaded to the cloud server, where the shielding indication information is used to indicate that the user has performed a shielding operation on the first notification content.
17. The method according to claim 9, characterized in that The method further comprises: The notification type corresponding to the at least one second button, the second notification content and unblocking indication information are uploaded to the cloud server, where the unblocking indication information is used to indicate that the user has performed an unblocking operation on the second notification content.
18. The method according to any one of claims 1 to 17, characterized in that Before displaying the first notification content, the method further includes: The first notification content is input into a pre-trained network model to obtain a first notification type and a first notification level, wherein the pre-trained network model is trained based on group user shielding data, wherein the group user shielding data includes multiple notification contents of multiple users, multiple notification types corresponding to the multiple notification contents, and a shielding ratio of each of the multiple notification types among the multiple users.
19. The method according to claim 18, characterized in that The pre-trained network model is trained by the terminal device or obtained from a cloud server.
20. A notification display device, characterized in that: include: A processor, wherein the processor is coupled to a memory, wherein the memory is used to store a computer program, and when the processor calls the computer program, the notification display device executes the method as claimed in any one of claims 1 to 19.
21. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1 to 19.