Service recommendation method and electronic device
By acquiring reference information from the electronic device interface for semantic analysis and intent recognition, it provides quick access and non-full-screen interface display recommendation services, solving the problem of low operation efficiency caused by users frequently switching applications, and improving user experience and the accuracy of service recommendations.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-08-28
- Publication Date
- 2026-05-07
AI Technical Summary
Users often need to switch between applications frequently when using electronic devices, resulting in low operating efficiency and an inability to complete tasks efficiently.
By obtaining reference information from the current interface, performing semantic analysis and intent recognition, providing quick access prompts for users to view recommended services, and displaying recommended services on non-full-screen interfaces to reduce the impact on the current interface.
It reduces user operation steps, improves operational efficiency, enhances user experience, and provides service recommendations that are more in line with user habits.
Smart Images

Figure CN2024115270_07052026_PF_FP_ABST
Abstract
Description
A service recommendation method and an electronic device
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese Patent Application No. 202410104702.8, filed on January 24, 2024, entitled "A Service Recommendation Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of terminal technology, and in particular to a service recommendation method and an electronic device. Background Technology
[0004] With the development and progress of technology, the functions of electronic devices have become more complete and richer, and the number of applications has gradually increased. As a result, users are using electronic devices more frequently in their daily lives, and the resulting operational efficiency issues are becoming increasingly prominent.
[0005] For example, when using a mobile phone, users often need to leave the currently used application, open another application to perform further operations such as searching or viewing, and then return to continue using the previous application. This entire process is lengthy, interrupts the operation of the currently used application, and is inefficient, thus causing inconvenience to users.
[0006] Summary of the Invention
[0007] This application provides a service recommendation method and an electronic device for recommending services based on reference information. The method provides a quick access point to prompt the user about recommended services, encouraging them to check them. Furthermore, it allows for a service recommendation entry point on the current interface, thereby shortening the interaction path and improving operational efficiency.
[0008] In a first aspect, embodiments of this application provide a service recommendation method. This method can be applied to electronic devices. In this method, in response to a first operation on first information included in a first interface, the first interface is updated, the updated first interface including a shortcut entry, the shortcut entry indicating the existence of a recommended service for the first information; in response to a second operation on the shortcut entry, a second interface is displayed, the second interface displaying the recommended service for the first information.
[0009] This method recommends services based on operations performed on a portion of the information displayed on the current screen, using that information as reference. When a recommended service is identified, a shortcut is provided to prompt the user to view it. This allows users to access recommended services based on the reference information via a quick access point, reducing user steps and avoiding interruptions to currently running applications or processes, thus providing convenience and improving the user experience.
[0010] In one possible design, the second interface includes a first display area for displaying multiple recommended services based on a first user intent obtained from the first information. The method further includes: in response to a third operation on the first display area, switching from displaying a first recommended service to displaying a second recommended service on the first display area; wherein the first recommended service and the second recommended service originate from different applications. In another possible design, the second interface may also display the N recommended services simultaneously, or display the N recommended services simultaneously through a scrollable display area.
[0011] In this design, the recommended services can include multiple recommended services that belong to the same user intent. For example, they can come from multiple applications, providing users with a variety of choices and making the recommended services more in line with user habits.
[0012] In one possible design, the shortcut entry has a preset display effect. For example, the preset display effect includes at least one of the following: preset color, preset animation.
[0013] In this design, setting preset display effects for shortcuts makes it easier for users to view them. This reduces the impact on the current display interface while increasing user attention to the shortcuts.
[0014] In one possible design, the second interface is a non-full-screen interface based on the first interface. Optionally, the non-full-screen interface can be a semi-modal interface based on the first interface; wherein, a semi-modal interface can also be called a semi-modal window, etc. Another option is that the non-full-screen interface can also be a floating window, a pop-up window, etc.
[0015] In this design, recommending services are displayed through non-full-screen interfaces such as semi-modal interfaces, which reduces the impact on the current display interface and allows for the display of recommended services to users, thus enabling the display of more content to users.
[0016] In one possible design, before updating the first interface in response to a first operation on first information included in the first interface, the method further includes: obtaining services available from applications installed on the electronic device; wherein the services available are used to determine recommended services based on the first information.
[0017] In this design, by collecting the services available from the applications installed on electronic devices, it is possible to provide more accurate recommendations to users based on the collected services.
[0018] In one possible design, before updating the first interface in response to a first operation on the first information included in the first interface, the method further includes: obtaining target user behavior information of a target user account, the target user behavior information being used for service recommendation. Optionally, the recommended service included in the second interface is determined based on the target user behavior information; wherein, the target user account is a user account logged in on the electronic device.
[0019] In this design, by collecting users' historical behavior information, services can be recommended based on users' usage habits, thereby making the recommended services more in line with users' habits and thus improving the user experience.
[0020] In one possible design, the recommendation service included in the second interface is obtained after filtering candidate recommendation services based on the target user behavior information; wherein, the candidate recommendation services are obtained based on the first user intent; and the recommendation service included in the second interface is based on the target user behavior information to determine services that the user has not used. Alternatively, it can be understood that, based on the target user behavior information, when it is determined that the user has used the service to be recommended within a preset historical time period, the service to be recommended can be filtered.
[0021] In this design, by collecting users' historical behavior information, the alternative recommended services can be filtered based on the users' historical behavior, thereby improving the accuracy of the recommended services displayed on the interface and improving the efficiency of users in viewing the recommended services.
[0022] In one possible design, the first information includes at least one of the following types: text, image.
[0023] In this design, using text and / or images as reference information can meet the service recommendation needs in more scenarios, and can also improve the accuracy of service recommendations.
[0024] In one possible design, when the first information includes protocol-related text information, the first user intent is obtained by performing protocol recognition on the first information; and / or, when the first information includes named entities, the first user intent is obtained by performing named entity recognition (NER) processing on the first information; and / or, when the first information includes text information, the first user intent is obtained by performing semantic understanding on the first information; and / or, when the first information includes image information, the first user intent is obtained by performing image recognition on the first information.
[0025] In this design, the electronic device can perform different analysis and processing based on the different types of the first information, thereby ensuring the accuracy of service recommendations.
[0026] In one possible design, when the first information is text information of the protocol type, the recommendation service includes: product viewing service, video viewing service, or merchant viewing service; or, when the first information includes named entities, the recommendation service includes at least one of the following types: navigation recommendation service, ride-hailing recommendation service, merchant viewing service, and schedule creation service; when the first information includes text information, the recommendation service includes at least one of the following types: schedule creation service, audio recommendation service, video recommendation service, translation service, navigation recommendation service, ride-hailing recommendation service, and merchant viewing service; when the first information includes image information, the recommendation service includes at least one of the following types: schedule creation service, audio recommendation service, video recommendation service, translation service, navigation recommendation service, ride-hailing recommendation service, and merchant viewing service.
[0027] In this design, the electronic device can recommend corresponding services based on the different types of the first information, thereby ensuring the accuracy of the service recommendations.
[0028] In one possible design, when the text information of the protocol class is a product protocol password, the recommendation service is a product viewing service; when the text information of the protocol class is a video protocol password, the recommendation service is a video viewing service; when the text information of the protocol class is a merchant protocol password, the recommendation service is a merchant viewing service; when the named entity includes a location, the recommendation service includes at least one of the following types: navigation recommendation service, ride-hailing recommendation service.
[0029] In this design, the electronic device can recommend corresponding services based on the different types of the first information, thereby ensuring the accuracy of the service recommendations.
[0030] Secondly, embodiments of this application provide a service recommendation method. This method can be applied to electronic devices. In this method, a first operation on first information included in a first interface is detected; in response to the first operation, a second interface is displayed, the second interface being used to display multiple recommended services based on a first user intent obtained from the first information.
[0031] In one possible design, the method further includes: switching from displaying a first recommended service to displaying a second recommended service in response to a second operation on the second interface; wherein the first recommended service and the second recommended service belong to multiple recommended services of the first user intent. In another possible design, the second interface may also display the multiple recommended services simultaneously, or display the multiple recommended services simultaneously through a scrollable display area.
[0032] In one possible design, the second interface includes a first display area for displaying the plurality of recommended services; the second interface also includes a second display area for displaying at least one recommended service based on a second user intent obtained from the first information. It should be understood that the number of display areas included in the second interface can be determined based on the number of user intents obtained from the first information.
[0033] In one possible design, displaying a second interface in response to the first operation further includes: updating the first interface in response to the first operation, wherein the updated first interface includes a shortcut entry indicating the existence of a recommended service for the first information; and displaying the second interface in response to a second operation on the shortcut entry. It should be understood that the second interface can be displayed directly in response to the first operation, or it can be displayed after first notifying the user of the existence of a recommended service via a shortcut entry, and then displaying the second interface after detecting the user's confirmation of viewing the recommended service.
[0034] In one possible design, the shortcut entry has a preset display effect.
[0035] In one possible design, the preset display effect includes at least one of the following: preset color, preset animation.
[0036] In one possible design, the second interface is a non-full-screen interface based on the first interface. Optionally, the non-full-screen interface can be a semi-modal interface based on the first interface. Another option is that the non-full-screen interface can also be a floating window, a pop-up window, etc.
[0037] In one possible design, before updating the first interface in response to a first operation on first information included in the first interface, the method further includes: obtaining services available from applications installed on the electronic device; wherein the services available are used to determine recommended services based on the first information.
[0038] In one possible design, before updating the first interface in response to a first operation on first information included in the first interface, the method further includes: collecting target user behavior information on the electronic device, the target user behavior information being used for service recommendation.
[0039] In one possible design, the recommendation service included in the second interface is determined based on the target user behavior information.
[0040] In one possible design, the recommendation service included in the second interface is obtained after filtering candidate recommendation services based on the target user behavior information; wherein, the candidate recommendation services are obtained based on the first user intent; and the recommendation service included in the second interface is a service that the user has not used, determined based on the target user behavior information.
[0041] In one possible design, the first information includes at least one of the following types: text, image.
[0042] In one possible design, when the first information includes protocol-related text information, the first user intent is obtained by protocol recognition of the first information; and / or, when the first information includes named entities, the first user intent is obtained by NER processing of the first information; and / or, when the first information includes text information, the first user intent is obtained by semantic understanding of the first information; and / or, when the first information includes image information, the first user intent is obtained by image recognition of the first information.
[0043] In one possible design, when the first information is text information of the protocol type, the recommendation service includes: product viewing service, video viewing service, or merchant viewing service; or, when the first information includes named entities, the recommendation service includes at least one of the following types: navigation recommendation service, ride-hailing recommendation service, merchant viewing service, and schedule creation service; when the first information includes text information, the recommendation service includes at least one of the following types: schedule creation service, audio recommendation service, video recommendation service, translation service, navigation recommendation service, ride-hailing recommendation service, and merchant viewing service; when the first information includes image information, the recommendation service includes at least one of the following types: schedule creation service, audio recommendation service, video recommendation service, translation service, navigation recommendation service, ride-hailing recommendation service, and merchant viewing service.
[0044] In one possible design, when the text information of the protocol class is a product protocol password, the recommendation service is a product viewing service; when the text information of the protocol class is a video protocol password, the recommendation service is a video viewing service; when the text information of the protocol class is a merchant protocol password, the recommendation service is a merchant viewing service; when the named entity includes a location, the recommendation service includes at least one of the following types: navigation recommendation service, ride-hailing recommendation service.
[0045] Thirdly, this application provides an electronic device comprising multiple functional modules; the multiple functional modules interact to implement the methods performed by the electronic device in any of the above aspects and their respective embodiments. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.
[0046] Fourthly, this application provides an electronic device including at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes any of the above aspects and the methods executed by the electronic device in its various embodiments.
[0047] Fifthly, this application also provides a computer-readable storage medium storing a computer program that, when executed by a computer, causes the computer to perform any of the above-described methods and the methods performed by various possible electronic devices.
[0048] Sixthly, this application provides a computer program product comprising: a computer program (also referred to as code or instructions) that, when run, causes a computer to perform any of the above aspects and methods for designing electronic devices.
[0049] In a seventh aspect, embodiments of this application also provide a graphical user interface on an electronic device, the electronic device having a display screen, one or more memories, and one or more processors, the one or more processors being configured to execute one or more computer programs stored in the one or more memories, the graphical user interface including a graphical user interface displayed when the electronic device performs any of the above aspects and their various possible designs.
[0050] Eighthly, this application also provides a chip for reading a computer program stored in a memory and executing the methods described above and their possible design electronic devices.
[0051] Ninthly, this application also provides a chip system including a processor for supporting a computer device in implementing the methods executed by any of the above aspects and their respective possible electronic designs. In one possible design, the chip system further includes a memory for storing programs and data necessary for the computer device. The chip system may be composed of chips or may include chips and other discrete devices.
[0052] For details on the beneficial effects of any of the second to ninth aspects and their possible designs, please refer to the beneficial effects of the various possible designs in the first aspect above; they will not be repeated here. Attached Figure Description
[0053] Figure 1 is a schematic diagram of the hardware structure of a possible electronic device provided in an embodiment of this application;
[0054] Figure 2 is a software architecture block diagram of an electronic device provided in an embodiment of this application;
[0055] Figure 3A is one of the interface diagrams of a service recommendation method provided in an embodiment of this application;
[0056] Figure 3B is a second schematic diagram of the interface of a service recommendation method provided in an embodiment of this application;
[0057] Figure 3C is a third schematic diagram of the interface of a service recommendation method provided in an embodiment of this application;
[0058] Figure 3D is a fourth schematic diagram of the interface of a service recommendation method provided in an embodiment of this application;
[0059] Figure 4 is the fifth schematic diagram of the interface of a service recommendation method provided in an embodiment of this application;
[0060] Figure 5A is a sixth schematic diagram of the interface of a service recommendation method provided in an embodiment of this application;
[0061] Figure 5B is the seventh schematic diagram of an interface of a service recommendation method provided in an embodiment of this application;
[0062] Figure 5C is the eighth schematic diagram of an interface of a service recommendation method provided in an embodiment of this application;
[0063] Figure 6 is a ninth schematic diagram of an interface of a service recommendation method provided in an embodiment of this application;
[0064] Figure 7A is a schematic diagram of the interface of a service recommendation method provided in an embodiment of this application;
[0065] Figure 7B is an eleventh schematic diagram of the interface of a service recommendation method provided in an embodiment of this application;
[0066] Figure 7C is a schematic diagram of the interface of a service recommendation method provided in an embodiment of this application, number 12;
[0067] Figure 8 is a schematic diagram of the interface of a service recommendation method provided in an embodiment of this application (Figure 13).
[0068] Figure 9 is a schematic flowchart of a service recommendation method provided in an embodiment of this application;
[0069] Figure 10 is a schematic diagram of another process of a service recommendation method provided in an embodiment of this application. Detailed Implementation
[0070] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0071] This application's embodiments can be applied to the field of terminal technology, specifically to scenarios requiring cross-application processing or transitions from one interface to another. In one possible scenario, in a chat between user A and user B, user B sends a message mentioning a movie, "XX." When the user wants to learn more about "XX," the typical workflow includes: exiting the chat application (APP), searching for a video app, review app, or movie ticket app on the desktop, opening the video app, entering keywords (e.g., the movie title), and viewing content displayed based on the keyword search. In this scenario, due to the need for cross-application processing, there are numerous user steps and low operational efficiency.
[0072] In view of this, embodiments of this application provide a service recommendation method. This method involves obtaining reference information from the current interface, performing semantic analysis, semantic understanding, image recognition, content recognition, and other processing based on the reference information to recommend services; and displaying shortcuts to prompt users to view the recommended services. Furthermore, the method provided in this application can perform intent recognition based on reference information, thereby enabling multi-service recommendations from multiple applications with the same intent. This multi-service recommendation based on multiple applications can improve the diversity and accuracy of service recommendations, increasing user choice.
[0073] The technical solutions in this application can be applied to electronic devices, which can be any device capable of displaying an interface. For example, electronic devices can be mobile phones, tablets, wearable devices (e.g., watches, bracelets, etc.), in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), smart home devices (e.g., smart TVs, etc.), and other electronic devices capable of displaying an interface. It is understood that this application does not impose any limitations on the specific type of electronic device.
[0074] The electronic devices to which this application's embodiments can be applied include, but are not limited to, those equipped with... Alternatively, it can be an electronic device running another operating system. For example, the electronic device described in the foregoing embodiments can be used.
[0075] Figure 1 illustrates a possible hardware structure diagram of an electronic device. The electronic device 100 includes components such as a radio frequency (RF) circuit 210, a power supply 220, a processor 230, a memory 240, an input unit 250, a display unit 260, an audio circuit 270, a communication interface 280, and a Wi-Fi module 290. Those skilled in the art will understand that the hardware structure of the electronic device 100 shown in Figure 1 does not constitute a limitation on the electronic device 100. The electronic device 100 provided in this application embodiment may include more or fewer components than shown, may combine two or more components, or may have different component configurations. The various components shown in Figure 1 can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0076] The following is a detailed description of each component of the electronic device 100 with reference to Figure 1:
[0077] The RF circuit 210 can be used for receiving and transmitting data during communication or a call. Specifically, after receiving downlink data from the base station, the RF circuit 210 sends it to the processor 230 for processing; additionally, it sends uplink data to be transmitted to the base station. Typically, the RF circuit 210 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, etc.
[0078] Furthermore, the RF circuit 210 can also communicate with other devices via a wireless communication network. The wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, and Short Message Service (SMS).
[0079] Wi-Fi technology is a short-range wireless transmission technology. The electronic device 100 can connect to an access point (AP) via the Wi-Fi module 290, thereby enabling access to the data network. The Wi-Fi module 290 can be used for receiving and sending data during communication.
[0080] The electronic device 100 can physically connect to other devices through the communication interface 280. Optionally, the communication interface 280 can be connected to the communication interfaces of other devices via a cable to enable data transmission between the electronic device 100 and other devices.
[0081] The electronic device 100 can also perform communication services and interact with other electronic devices. Therefore, the electronic device 100 needs to have data transmission capabilities, meaning that it needs to include a communication module. Although Figure 1 shows the RF circuit 210, the Wi-Fi module 290, and the communication interface 280, it is understood that the electronic device 100 contains at least one of the aforementioned components or other communication modules (such as a Bluetooth module) for data transmission.
[0082] For example, when the electronic device 100 is a mobile phone, the electronic device 100 may include the RF circuit 210, the Wi-Fi module 290, or a Bluetooth module (not shown in Figure 1); when the electronic device 100 is a tablet computer, the electronic device 100 may include the Wi-Fi module or a Bluetooth module (not shown in Figure 1); when the electronic device 100 is a smart home device, the electronic device 100 may include the Wi-Fi module 290 or a Bluetooth module (not shown in Figure 1).
[0083] The memory 240 can be used to store software programs and modules. The processor 230 executes various functional applications and data processing of the electronic device 100 by running the software programs and modules stored in the memory 240. Optionally, the memory 240 may mainly include a program storage area and a data storage area. The program storage area may store the operating system (mainly including the software programs or modules corresponding to the kernel layer, system layer, application framework layer, and application layer).
[0084] In addition, the memory 240 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0085] The input unit 250 can be used to receive editing operations on various types of data objects, such as numbers or characters, input by the user, and to generate key signal inputs related to user settings and function control of the electronic device 100. Optionally, the input unit 250 may include a touch panel 251 and other input devices 252.
[0086] The touch panel 251, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 251), and drive corresponding connection devices according to a pre-set program. In this embodiment, the touch panel 251 can collect user operations on or near it. For example, when the electronic device 100 is a mobile phone, the user operations can be operations such as selecting, copying, and cutting text information, long-pressing images, or switching between multiple recommended services provided in this embodiment.
[0087] Optionally, the other input device 252 may include, but is not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.
[0088] The display unit 260 can be used to display information input by the user or information provided to the user, as well as various menus of the electronic device 100. The display unit 260 is the display system of the electronic device 100, used to present the interface and realize human-computer interaction. The display unit 260 may include a display panel 261. Optionally, the display panel 261 may be configured as a liquid crystal display (LCD), organic light-emitting diode (OLED), or the like. In this embodiment, the display unit 260 can be used to display a user interface, for example, it can display a service recommendation interface provided based on the method provided in this embodiment, which may include one or more recommended services.
[0089] The processor 230 is the control center of the electronic device 100. It connects various components via various interfaces and lines, and executes software programs and / or modules stored in the memory 240, as well as calling data stored in the memory 240, to perform various functions and process data of the electronic device 100, thereby enabling various services based on the electronic device 100. In this embodiment, the processor 230 can be used to implement a service recommendation method provided in this embodiment.
[0090] The electronic device 100 also includes a power supply 220 (such as a battery) for supplying power to various components. Optionally, the power supply 220 can be logically connected to the processor 230 through a power management system, thereby enabling the power management system to manage functions such as charging, discharging, and power consumption.
[0091] As shown in Figure 1, the electronic device 100 also includes an audio circuit 270, a microphone 271, and a speaker 272, providing an audio interface between the user and the electronic device 100. The audio circuit 270 converts audio data into signals recognizable by the speaker 272 and transmits the signals to the speaker 272, where they are converted into sound signals for output. The microphone 271 collects external sound signals (such as human speech or other sounds) and converts these signals into signals recognizable by the audio circuit 270, sending them to the audio circuit 270. The audio circuit 270 can also convert the signals transmitted by the microphone 271 into audio data, outputting the audio data to the RF circuit 210 for transmission to, for example, another electronic device, or outputting the audio data to the memory 240 for further processing.
[0092] Although not shown, the electronic device 100 may also include a camera, at least one sensor, etc., which will not be described in detail here. The at least one sensor may include, but is not limited to, a pressure sensor, a barometric pressure sensor, an accelerometer, a distance sensor, a fingerprint sensor, a touch sensor, a temperature sensor, etc.
[0093] The operating system (OS) involved in this application embodiment is the most basic system software running on the electronic device 100. The software system of the electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment takes an operating system adopting a layered architecture as an example to illustrate the software architecture of the electronic device 100.
[0094] Figure 2 is a software architecture block diagram of an electronic device provided in an embodiment of this application. As shown in Figure 2, the software architecture of the electronic device can be a layered architecture. For example, the software can be divided into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into five layers, from top to bottom: the application layer, the application framework layer (framework, FWK), the runtime and system library, the kernel layer, and the hardware layer.
[0095] The application layer can include a series of application packages. As shown in Figure 2, the application layer can include a user interface (UI), camera, settings, skin modules, third-party applications, etc. Third-party applications may include, for example, wireless local area network (WLAN), music, call, Bluetooth, and video applications. Within the application layer, the UI, including elements and their shadow attributes, can also be defined according to the system interface.
[0096] In one possible implementation, the application can be developed using Java, by calling the application programming interface (API) provided by the application framework layer. Developers can then interact with the underlying operating system layers (such as the hardware layer and kernel layer) to develop their own applications. This application framework layer primarily consists of a series of services and management systems within the operating system.
[0097] The application framework layer provides application programming interfaces and a programming framework for applications within the application layer. The application framework layer includes some predefined functions. As shown in Figure 2, the application framework layer may include a view system, activity manager, window manager, content provider, phone manager, resource manager, notification manager, etc.
[0098] The Activity Manager manages the lifecycle of each application and provides commonly used navigation and back functions, offering an interactive interface for all program windows.
[0099] The window manager is used to manage windowed applications. It can obtain the screen size, determine if a status bar is present, lock the screen, and capture screenshots. The content provider stores and retrieves data, making this data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0100] A view system includes visual controls (also known as "visual elements") and non-visual controls (also known as "non-visual elements"), such as controls that display text and controls that display images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon could include views that display text and views that display images.
[0101] A phone manager is used to provide communication functions for electronic devices. For example, it manages call status (including connection and disconnection).
[0102] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0103] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0104] The runtime includes the core libraries and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.
[0105] The core library consists of two parts: one part contains the functionalities that the Java language needs to call, and the other part contains the core libraries of the operating system. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0106] A system library can include multiple functional modules. For example: a surface manager, a media framework, a 3D graphics processing library (e.g., OpenGL ES), a 2D graphics engine (e.g., SGL), etc.
[0107] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0108] The media framework supports playback and recording of various commonly used audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0109] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0110] A 2D graphics engine is a drawing engine for 2D drawing. A 2D graphics engine can perform drawing operations, drawing UI elements and their shadows on the screen.
[0111] In some embodiments, a 3D graphics processing library can be used to draw 3D motion trajectory images, and a 2D graphics engine can be used to draw 2D motion trajectory images.
[0112] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0113] The hardware layer can include various types of sensors, such as accelerometers, gravity sensors, and touch sensors.
[0114] Typically, an electronic device 100 can run multiple applications simultaneously. In a simpler scenario, one application corresponds to one process; in a more complex scenario, one application can correspond to multiple processes. Each process has a unique process ID.
[0115] It should be understood that in the embodiments of this application, "at least one of the following" or similar expressions refer to any combination of these items, including any combination of a single item or a plurality of items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple. "Multiple" refers to two or more. "And / or" is used to describe the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.
[0116] In addition, it should be understood that in the description of this application, the words "first" and "second" are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance or order.
[0117] It should be understood that the hardware structure of the electronic device can be as shown in Figure 1, and the software system architecture can be as shown in Figure 2. The software programs and / or modules corresponding to the software system architecture in the electronic device can be stored in the memory 240, and the processor 230 can run the software programs and applications stored in the memory 240 to execute the process of a service recommendation method provided in the embodiments of this application.
[0118] To facilitate understanding of the service recommendation method provided in this application, the implementation process of the method is described below with reference to Figures 3A to 8. For ease of understanding, several possible application scenarios may be involved in using the method provided in this application. It should be noted that the following embodiments use a mobile phone as an example; the implementation of other types of electronic devices can be found in the mobile phone implementation section, and will not be repeated here.
[0119] Scenario A: Service recommendation based on a single intent
[0120] Figure 3A is a schematic diagram of the interface of a service recommendation method provided in an embodiment of this application. Figure 3A shows that interface 300A includes a chat interface. When the mobile phone detects a selection operation on a chat text message sent by user A, a pop-up window 301 can be displayed in response to the selection operation. The chat text message sent by user A is, for example, "I watched a very good war movie a few years ago, but I forgot the name. It was about a father who tricked his son into thinking it was a game to protect him. It was both funny and touching." Pop-up window 301 may include, but is not limited to, the following controls: select all, cut, copy, forward, search, etc. For example, the electronic device can display interface 300B in response to a click operation on the copy control included in pop-up window 301. It should be noted that the electronic device can also respond to operations on the select all control, cut control, forward control, search control, etc. included in pop-up window 301. It should be understood that any operation that can obtain reference information can trigger the display of interface 300B. The reference information can be understood as sample information used for service recommendation. The reference information in interface 300A is, for example, the chat text message sent by user A. In addition, to improve the accuracy of service recommendations, multiple chat text messages can be combined for service recommendations. For example, not only can the chat text messages sent by user A be used as reference information, but also the chat text messages of user B's reply "Okay, I'll take a look" can be combined to perform semantic context analysis, thereby determining whether user B wants to view the content mentioned in user A's chat text messages.
[0121] In the interface 300B included in Figure 3A, a shortcut entry 302 may be included at the bottom, which can be used to jump to the service recommendation interface. For example, in response to a click or pull-up operation on the shortcut entry 302, the electronic device can display interface 300C. It should be noted that this application does not limit the display style of the shortcut entry 302; the shortcut entry 302 can also use other possible styles, such as a floating icon, a floating window, or a pop-up. In addition, the shortcut entry 302 can also be displayed in combination with various colors and effects to prompt the user; for example, it can be combined with color and flashing (or flickering) effects to prompt the user that recommended services exist based on the user's actions. It should be understood that the display position of the shortcut entry 302 is not limited in this embodiment; for example, it can be displayed at the bottom, side, top, center of the interface, or any other possible position. It should also be understood that shortcut entry 302 can be displayed in an overlay manner, or it can be understood as displaying shortcut entry 302 on top of interface 300A in Figure 3A. In this case, shortcut entry 302 can be provided by the system or by the application; alternatively, shortcut entry 302 can also be a part included in interface 300B, such as a control or display area, in which case shortcut entry 302 can be provided by the application. Furthermore, it is understood that when the electronic device determines that there is no recommendation service for reference information, shortcut entry 302 may not be displayed.
[0122] In the interface 300C included in Figure 3A, recommended services can be displayed via a semi-modal pop-up window 303. As shown in pop-up window 303, the recommended service can be a brief introduction to the movie "XXXX". For example, the introduction can include, but is not limited to, release year, movie type, director, runtime, and other related service information. It can also include the APP icon, APP name, and controls for jumping to the APP that provides the related service information. It should be noted that the form and content of the service recommendation interface are not limited in this embodiment; for example, in addition to the form of pop-up window 303, it can also be displayed in full screen, or it can jump to a new interface display, etc. For example, the content can also be related service information that other APPs can provide. Among them, the related service information displayed in pop-up window 303 can be triggered when it is determined that APP 1 can provide the service function of movie introduction based on the service types that APP 1 can provide in advance.
[0123] It should be noted that, in the embodiments of this application, the recommended services are not limited to being displayed using a semi-modal, non-full-screen interface. They can be displayed through any non-full-screen interface, such as a floating window or pop-up window, thereby minimizing the impact on the current display interface while still showing the recommended services to the user. The following embodiments use a semi-modal interface (also referred to as a "semi-modal window") as an example; descriptions of other forms of non-full-screen interfaces will not be repeated.
[0124] Additionally, it is understandable that the reference information selected by the user in interface 300A does not include a specific movie name. Therefore, the recommendation service displayed in interface 300C can be a vague intent obtained by semantic understanding and other processing based on the reference information obtained in interface 300A.
[0125] In another possible scenario, Figure 3B is a schematic diagram of another interface of a service recommendation method provided by an embodiment of this application. Compared with Figure 3A, in the interfaces 300A', 300B' and 300C' included in Figure 3B, the reference information could be "I watched a war movie called 'XXXX' a few years ago. It was very good. It tells the story of a father who, in order to protect his son, tricks his son into thinking it's a game. It was both funny and touching throughout." As can be seen, this reference information includes the movie title, so a clear intent can be obtained based on this reference information.
[0126] Figure 3C is another schematic diagram of a service recommendation method provided in an embodiment of this application. Interfaces 300D, 300E, and 300F shown in Figure 3C are different service recommendation interfaces. Referring to the methods described in Figures 3A and 3B, interfaces 300D to 300F are obtained; the process of displaying the service recommendation interfaces will not be repeated here. Unlike Figures 3A and 3B, based on the user intent obtained from the reference information, recommendation services from multiple different apps can be provided. For example, the recommendation service could be a description of the movie "XXXX" provided by video app 1 shown in interface 300D, a description of the movie "XXXX" provided by video app 2 shown in interface 300E, or a description of the movie "XXXX" provided by video app 3 shown in interface 300D. As shown in Figure 3C, different service recommendation interfaces can be switched by swiping left and right or by clicking on the navigation points included in the navigation bar 304. Additionally, the number of service recommendations included in the pop-up window 303 and the currently displayed service recommendation interface can be viewed through the navigation bar 304.
[0127] It should be noted that the embodiments of this application do not limit the switching display method of multiple service recommendation interfaces. For example, switching can be achieved by left and right swiping as shown in Figure 3C, or by up and down swiping, or by using multiple service cards, or by combining cards, etc. As another example, Figure 3D is a schematic diagram of another interface of a service recommendation method provided by an embodiment of this application. As shown in the interface 300G in Figure 3D, multiple recommended services can also be switched using multiple service cards, and different service cards can be switched by up and down swiping. Alternatively, different service recommendation interfaces can be displayed simultaneously in the service recommendation interface; for example, multiple recommended services from different apps can be displayed through a swiping window, and users can view the multiple service recommendation interfaces by swiping; or, for example, the display size of multiple recommended services can be adaptively adjusted according to the size of the semi-modal service recommendation interface so that they can be displayed simultaneously in the semi-modal service recommendation interface.
[0128] It is understood that when the reference information includes descriptions of other types such as music and TV series, the implementation process described in Figures 3A to 3D can also be referred to, and will not be repeated in this application.
[0129] In other possible scenarios, the reference information may also include, but is limited to, the following information types: text and / or image content including merchant names; text and / or image content including item names; text and / or image content including time events; text content including protocols such as app passwords; and text and / or image content including English and other languages. Protocol-type text content can be understood as text content with a specified format.
[0130] For example, Figure 4 is a schematic diagram of an interface for a service recommendation method provided in an embodiment of this application. Interface 400A in Figure 4 contains text information including the merchant's name; the recommended service can be navigation preview information provided by Map APP 1. Interface 400B in Figure 4 contains text information including time events; the recommended service can be a service for quickly creating schedules. Interface 400C in Figure 4 contains image information including English text; the recommended service can be a translation service.
[0131] Scenario B: Service recommendation based on multiple intents
[0132] Figure 5A is a schematic diagram of the interface of a service recommendation method provided in an embodiment of this application. Figure 5A shows that interfaces 500A, 500B, and 500C are different service recommendation interfaces. Interfaces 500A to 500C can be obtained by referring to the method described in Figure 3A. The process of how to display the service recommendation interface will not be described again in this scenario.
[0133] Based on the chat text message sent by user C, "I heard that Li Ji Steakhouse (XX branch) has a good environment and tastes great, let's go eat there sometime," various related services can be recommended. For example, in interface 500A, the recommended service could be navigation preview information provided by map app 1. Similarly, in interface 500B, the recommended service could be ride-hailing preview information provided by ride-hailing app 1. Or, for example, in interface 500C, the recommended service could be review preview information provided by review app 1. As can be seen from interfaces 500A to 500C shown in Figure 5A, multiple user intents can be identified based on reference information, and various recommended services can be obtained based on these multiple user intents.
[0134] Interface 500A may include a navigation bar 501. The number of navigation points included in the navigation bar 501 can be determined based on the number of recommended services. Furthermore, the navigation point displayed in the navigation bar 501 corresponding to the current interface may have a different style than the navigation points corresponding to other interfaces; for example, the navigation point corresponding to the current interface may be a black navigation point, while the navigation points corresponding to other interfaces may be white navigation points. For example, the electronic device can detect and respond to click operations on other navigation points, or left and right swipe operations on the interface, and can switch between interfaces including different recommended services, such as switching from interface 500A to interface 500B, or from interface 500B to interface 500C.
[0135] It should be noted that the embodiments of this application do not limit the display method of multiple recommended service interfaces. For example, Figure 5B is a schematic diagram of another interface of a service recommendation method provided in an embodiment of this application. In the interface 500D included in Figure 5B, multiple recommended services can be displayed sequentially in a vertical manner. In addition, when multiple recommended services cannot be displayed, more recommended services can be viewed by swiping up and down. For example, the right side of the pop-up window can also include a slider to prompt the user that there are more recommended services available. Alternatively, when multiple recommended services cannot be displayed, the pop-up window can be dragged upwards to expand its display range, thereby displaying more recommended services.
[0136] In interfaces 500F1, 500F2, and 500F3 included in Figure 5B, multiple recommended services can also be displayed in the form of stacked cards. For example, the right side of the pop-up window included in interface 500F1 may include a navigation bar 502. By clicking different navigation points or sliding the stacked cards up and down, the interface displaying different recommended services can be switched, such as switching from interface 500F1 to interface 500F2, or from interface 500F2 to interface 500F3. It should be understood that in the pop-up window used for service recommendation, various recommended services can be displayed in the form of interfaces or cards, and this application does not limit the display method of recommended services.
[0137] For example, Figure 5C is another schematic diagram of a service recommendation method provided in an embodiment of this application. In the interface 500G included in Figure 5C, multiple recommended services can also be displayed in one or a combination of multiple columns, multi-size cards, etc. For example, in interface 500G, the navigation preview information provided by map APP 1 and the ride-hailing preview information provided by ride-hailing APP 1 can be displayed together on one line. At this time, the card or interface displaying the recommended services is scaled down, while the review preview information provided by review APP 1 can be displayed on a separate line.
[0138] It should be noted that the embodiments of this application do not limit the type of reference information. Reference information may include, but is not limited to, at least one of the following: text information, image information, etc. For example, Figure 6 is another schematic diagram of an interface for a service recommendation method provided in this application embodiment. The interface 600 shown in Figure 6 can be a browsing interface of a review app or a sharing app, and the browsing interface may include image information and text information. The electronic device can respond to a long press operation on image 601, etc., and can use image 601 as reference information, thereby enabling service recommendations based on image 601, such as recommending information on multiple restaurants, including steakhouses. Another example is that, to improve the accuracy of service recommendations, other information included in the interface containing the image information can be combined, such as extracting location information 602 included in interface 600, thereby determining more accurate restaurant information. In this way, based on image information and text information, navigation preview information provided by map app 1 about the restaurant can be provided, as well as ride-hailing preview information provided by ride-hailing app 1 as shown in Figure 5A, and review preview information provided by review app 1, etc.
[0139] The text information can be extracted from the image, such as from a screenshot; the image information can be an image frame captured from a video, or a local image segmented from a global image, etc.
[0140] Based on the content described in Figure 3C, each user intent can also provide services from multiple different apps, and thus, each intent can also receive multiple recommended services. Figure 7A is a schematic diagram of the interface of a service recommendation method provided in an embodiment of this application. As shown in interfaces 700A1 and 700A2 in Figure 7A, the identified user intent 1 can, for example, be used to provide navigation preview information from a map app based on the merchant name. Considering that users usually have multiple map apps installed on their mobile phones, the service corresponding to intent 1 can include navigation preview information from map app 1 as shown in interface 700A1, navigation preview information from map app 2 as shown in interface 700A2, or navigation preview information from other map apps not shown in Figure 7A. Optionally, map app 1 can be one that the user usually uses, one that the user last used, or one that comes pre-installed on the phone. It should be understood that different services included in the same intent can also be displayed in order of priority, so that users can view the recommended services with higher priority first, thereby reducing user operations.
[0141] Similarly, as shown in interfaces 700B1 and 700B2 of Figure 7A, the identified user intent 2 can, for example, be used to provide ride-hailing preview information from ride-hailing apps based on the merchant name. Considering that users usually have multiple ride-hailing apps installed on their phones, the service corresponding to intent 2 can include ride-hailing preview information from ride-hailing app 1 as shown in interface 700B1, ride-hailing preview information from ride-hailing app 2 as shown in interface 700B2, or ride-hailing preview information from other ride-hailing apps not shown in Figure 7A. Optionally, ride-hailing app 1 can be the user's usual app, the app the user last used, or the built-in ride-hailing app on the phone. It can be understood that through multiple services, users can easily and quickly compare information such as prices and ride duration. For example, combining interfaces 700B1 and 700B2, it can be seen that the estimated ride price through ride-hailing app 1 is lower.
[0142] Similarly, as shown in interfaces 700C1 and 700C2 in Figure 7A, the identified user intent 3 can, for example, be used to provide preview information of reviews from review apps based on the merchant's name. Considering that users usually have multiple review apps installed on their phones, the service corresponding to intent 3 can include preview information of reviews from review app 1 as shown in interface 700C1, preview information of reviews from review app 2 as shown in interface 700C2, or preview information of reviews from other review apps not shown in Figure 7A. Optionally, review app 1 can be the user's usual app, the app the user last used, or the review app that comes pre-installed on the phone. It can be understood that through multiple services, users can easily and quickly view preview information of reviews of the merchant from different review apps. As shown in interface 700C1, the merchant's review score on review app 1 is 4.0; as shown in interface 700C2, the merchant's review score on review app 2 is 5.0.
[0143] It should be noted that the embodiments of this application can display recommendation services from multiple applications, each encompassing multiple intents, through various display methods. For example, these methods may include, but are not limited to:
[0144] Method 1, as shown in Figure 7A, includes interfaces 700A1, 700B1, and 700C1. Users can switch between displaying different user intents by swiping left or right. Additionally, in interface 700A1, users can switch between displaying different services corresponding to intent 1 by swiping up or down. Similarly, in interface 700B1, users can switch between displaying different services corresponding to intent 2 by swiping up or down. Likewise, in interface 700C1, users can switch between displaying different services corresponding to intent 3 by swiping up or down. This method allows users to switch between different recommended services belonging to the same intent or different intents through different operations, thus displaying a variety of possible recommended services.
[0145] Method 2: Figure 7B is a schematic diagram of the interface of a service recommendation method provided in an embodiment of this application. As shown in Figure 7B, the interface 700D1 can include multiple display areas arranged sequentially in the vertical direction, such as display area 701 and display area 702. Display area 701 is used to display the service corresponding to intention 1, and display area 702 is used to display the service corresponding to intention 2. Furthermore, on each display area, different services corresponding to the same intention can be switched by left and right swiping. As shown in Figure 7A, the interface 700D2 allows switching between service 1 and service 2 corresponding to intention 1 in display area 701 by left and right swiping; and switching between service 1 and service 2 corresponding to intention 2 in display area 702 by left and right swiping.
[0146] It should be noted that, similar to interface 500D included in Figure 5B, interface 700D1 can also display a portion of the display area corresponding to the intent. For example, the display area corresponding to intent 3 can be displayed by sliding up and down in the pop-up window. Furthermore, this embodiment does not limit the switching display method of the display area content; in addition to left and right swiping, it can also be achieved by sliding up and down within the display area.
[0147] Method 3, Figure 7C is a schematic diagram of the interface of a service recommendation method provided in an embodiment of this application. As shown in Figure 7C, the interface 700E1 can include multiple display areas arranged in combination, such as display area 703, display area 704, and display area 705. Display area 703 is used to display the service corresponding to intent 1, display area 704 is used to display the service corresponding to intent 2, and display area 705 is used to display the service corresponding to intent 3. Furthermore, on each display area, different services corresponding to the same intent can be switched by vertical or horizontal swiping operations. As shown in Figure 7A, the interface 700E2 allows switching between service 1 and service 2 corresponding to intent 1 in display area 703 by vertical swiping; switching between service 1 and service 2 corresponding to intent 2 in display area 704 by vertical swiping; and switching between service 1 and service 2 corresponding to intent 3 in display area 705 by horizontal swiping.
[0148] Furthermore, the embodiments of this application do not limit the switching display method of the display content in the display area. In each display area, the display can be switched by swiping left and right, or by swiping up and down, or by other operation methods. This application does not impose any limitations.
[0149] It should be noted that the above scenarios are merely possible examples provided by the embodiments of this application and are not intended to limit the specific scenarios of this application. It should be understood that various scenarios can also be combined. For example, the scenario shown in FIG6, where the reference information is image information, can be combined with the multi-intent and multi-application scenarios described in FIG7A to FIG7C. For example, FIG8 is another interface schematic diagram of a service recommendation method provided by an embodiment of this application. Interface 800A in FIG8 is, for example, a chat interface. When the mobile phone detects a long press operation on the chat image information 801 sent by user F, it can display the shortcut entry 802 in response to the long press operation. In interface 800B shown in FIG8, the mobile phone detects and responds to the click operation, upward drag operation, or long press operation of the shortcut entry 802, and displays interface 800C. Interface 800C may include a semi-modal interface, comprising display areas 803, 804, and 805. Display area 803 includes navigation preview information provided by map app 1, display area 804 includes ride-hailing preview information provided by ride-hailing app 1, and display area 805 includes recommendation services for quickly creating schedules. Interface 800A shows that the reference information is text extracted from chat image information. The reference information may also include more dialogue between user F and user G, such as user F's message "Want to go see it? Want to go see it?" and user G's message "Sure, I'll take a look." Thus, based on the reference information, multiple services corresponding to multiple intents can be provided, with each intent corresponding to at least one service.
[0150] Based on the foregoing description of the interface processing effects achievable by the method provided in this application embodiment in combination with multiple scenarios, the following describes the implementation process of the service recommendation method provided in this application, in order to illustrate how the method provided in this application can achieve the interface processing effects shown in Figures 3A to 8, thereby enabling service recommendation functions in some scenarios, reducing user operation processes, and improving operation efficiency.
[0151] Figure 9 is a flowchart illustrating a service recommendation method provided in an embodiment of this application. The process may include the following steps:
[0152] Step 901: Collect service information provided by each app. For example, by pre-collecting service information provided by each app, the data source for the recommendation service function can be obtained. This allows for more accurate service recommendations based on reference information and the data source for the recommendation service function. For instance, an example of some information included in the data source for the recommendation service function is shown in Table 1 below:
[0153] Table 1
[0154] It should be understood that, based on the data sources of the collected recommendation service functions, the correspondence between each service and the apps that provide them can also be obtained. For example, based on the example in Table 1, the correspondence can be shown in Table 2 below:
[0155] Table 2
[0156] It is understandable that, based on the correspondence shown in Table 2, when an electronic device detects a user's intent, it can determine the APP that can provide the service based on the user's intent, and then recommend services from different APPs for the same user intent.
[0157] It should be noted that the information collected by electronic devices can be obtained from currently installed apps or previously installed apps. For example, when a user installs a new app, the data source for the services that app can provide can be updated to reflect this information in the recommendation service function.
[0158] Alternatively, the information collected by electronic devices can also be a database obtained from the network.
[0159] Step 902: Obtain target user behavior information from the target user account.
[0160] The target user account can be understood as a user account logged in on an electronic device. For example, obtaining target user account behavior information may include, but is not limited to: collecting target user behavior information on the current electronic device; and collecting target user behavior information from other electronic devices logged into the same target user account. For example, the current electronic device could be a mobile phone, and other electronic devices could be tablets. Optionally, the current electronic device and other electronic devices can communicate through a distributed network or cloud server. For example, target user behavior information from other electronic devices can be sent to the current electronic device through a distributed network, or the target user behavior information from other electronic devices can first be sent to a cloud server, and then the cloud server sends it to the current electronic device.
[0161] In one possible scenario, the target user account could be a user account logged in on the operating system of an electronic device, such as a Huawei account. In this scenario, service recommendations can be implemented by the operating system itself.
[0162] In another possible scenario, the target user account could be a user account logged in within an app included on the electronic device. In this scenario, service recommendations can be implemented through the app.
[0163] The target user behavior information is used to indicate user behavior information related to the recommendation service provided in this application embodiment. For example, target user behavior information may include, but is not limited to: user usage information of the APP, user search behavior information on the APP, user browsing behavior information on the APP, user order information on the APP, user video playback information on the APP, user tagging information on the APP, etc. It is understood that different user behavior information can be collected for different APPs depending on their functions and services. For example, video playback information on video APPs, order information on shopping APPs, and search behavior information on navigation APPs can be collected; this application does not limit this. It should be understood that the types of information collected in different APPs can be pre-configured.
[0164] For example, user behavior information can be collected within a specified time frame, such as a month or a week. This allows recommended services to more accurately reflect the user's recent habits.
[0165] It should be noted that steps 901 and 902 are preparation information for implementing the service recommendation method provided in this application embodiment, and can be skipped each time a service recommendation is performed. Furthermore, this application embodiment does not limit the execution order of steps 901 and 902; for example, they can be executed in parallel.
[0166] Step 903: Obtain reference information. The reference information may include, but is not limited to, at least one of the following: text information, image information, etc.
[0167] For example, an electronic device can obtain reference information in response to a first operation on a first interface. The first interface may include, for example, a chat interface, an app browsing interface, a video browsing interface, a photo album browsing interface, etc.; optionally, the first interface may be the current display interface of the electronic device, or it may be an application interface displayed by the electronic device. The first operation may include, but is not limited to, operations for selecting text information such as copying, cutting, searching, selecting, and dragging operations, and operations for selecting image information such as copying, cutting, searching, long-pressing, selecting, and dragging operations. Furthermore, the image information may be obtained by extracting image frames from a video, and the text information may be obtained by text recognition from an image.
[0168] Optionally, the reference information can be obtained through the system's clipboard or file transfer station. For example, when a user obtains text information and / or image information to the clipboard or file transfer station through the first operation, the electronic device can read the reference information from the clipboard or file transfer station.
[0169] Alternatively, the reference information can be provided by a preset interface provided by the app. For example, when the app provides a preset interface for obtaining reference information, the electronic device can directly obtain the text information and / or image information selected in the first operation from that preset interface.
[0170] Step 904: Based on the reference information, display the service recommendation interface.
[0171] For example, different processing can be performed depending on the different types of reference information. For instance, this may include, but is not limited to, one or more of the following processing methods:
[0172] (1) When the information type includes protocol-type text information, such as APP passwords, the corresponding APP can be directly identified based on the characteristics of protocol-type text information, thus allowing direct linking to the corresponding content of the APP indicated by the reference information. For example, when the information type is detected as text information, it can be determined whether it is protocol-type text information based on the format of the text information. It should be understood that protocol-type text information generally has a specified format.
[0173] (2) When the reference information includes named entities with specific meanings such as telephone numbers, emails, times, locations, names, and proper nouns, named entity recognition (NER) processing can be performed.
[0174] (3) When the reference information includes text information, semantic understanding and intent recognition can be performed using natural language processing (NLP). For example, the reference information can be dereferenced to identify multiple referential entities in the reference information, thereby determining the user's intent.
[0175] For example, text information can generally include text of named entities and text of unnamed entities. By performing NER processing on named entities and semantic understanding and NLP processing on text information, more accurate recognition of text information can be achieved.
[0176] (4) When the reference information includes image information, image recognition, image segmentation, and other processing can be performed to determine the user's intent. Optionally, after identifying text information from the image information, the processing methods for text information described above can be applied. For example, if the identified text information is protocol-related text, the processing methods for protocol-related text information can be applied. Alternatively, the electronic device can extract the region of interest (ROI) from the image information to determine the user's intent.
[0177] In one optional example, based on the data sources of reference information and recommendation service functions, Q recommended services are determined corresponding to P intents. Here, P and Q are positive integers, and Q is greater than or equal to P, which can also be understood as one intent corresponding to at least one recommended service. For example, when the electronic device recognizes that the user's intent is to view navigation information, it can recommend navigation preview information based on the correspondence in Table 2 and on apps that can provide navigation information. Similarly, when the electronic device recognizes that the user's intent is to view ride-hailing information, it can recommend ride-hailing preview information based on the correspondence in Table 2 and on apps that can provide ride-hailing navigation information.
[0178] In another alternative example, Q recommendation services corresponding to P intents are determined based on reference information, the data source of the recommendation service function, and target user behavior information.
[0179] Optionally, the electronic device can determine the priority of recommended services based on target user behavior information. For example, the priority of recommended services can be determined based on the user's usage frequency, previous usage history, etc. For instance, if the user uses Map App 1 most frequently, services from Map App 1 can be determined to have a higher priority. Similarly, if the user last used Map App 2, services from Map App 2 can be determined to have a higher priority.
[0180] Alternatively, the electronic device can filter alternative recommended services based on target user behavior information; wherein, the alternative recommended services can be obtained based on user intent. For example, if a user has used an alternative recommended service within a preset time range, that alternative recommended service can be filtered, or its priority can be set to a lower level. For instance, alternative recommended services may include providing review information from review app 1. If the user has viewed review information provided by review app 1 today, the review information provided by review app 1 can be stopped from being recommended, or the review information can be displayed at the end of the list of recommended services. This can further improve the accuracy of service recommendations and better match user preferences. Optionally, the preset time range can be a preset duration, such as one hour, half an hour, or one day. Alternatively, the preset time range can also be a time range starting from a first event, such as the opening of a chat app, or within a preset range starting from the user opening the chat app. This application does not limit the method of setting the preset time range.
[0181] In one optional example, the electronic device displays Q recommended services corresponding to P intents. For instance, the Q recommended services can be divided into P groups according to the intents, and P display areas can be defined to display the P groups in the P display areas. Additionally, the P intents can also have priorities, so the P display areas can be set according to priorities. The P display areas can be arranged and displayed in one or a combination of horizontal, vertical, single-column, or multi-column arrangements.
[0182] Another example is that the Q recommended services can be displayed sequentially. These Q recommended services can be arranged and displayed in one or a combination of horizontal, vertical, single-column, or multi-column arrangements.
[0183] The various display methods of the service recommendation interface can be found in the content introduced in Part 3A to Figure 8 above, and will not be repeated here.
[0184] Figure 10 is another flowchart illustrating a service recommendation method provided in an embodiment of this application. The process may include the following steps:
[0185] Step 1001: In response to a first operation on the first information included in the first interface, update the first interface, wherein the updated first interface includes a shortcut entry, the shortcut entry being used to indicate the existence of a recommendation service for the first information.
[0186] Step 1002: In response to the second operation on the shortcut entry, a second interface is displayed, which is used to display recommended services.
[0187] The specific implementation process of steps 1001 and 1002 can be found in the foregoing embodiments, and will not be repeated in this application.
[0188] Based on the above embodiments, this application also provides an electronic device, which includes multiple functional modules; the multiple functional modules interact to realize the functions performed by the electronic device in the methods described in the embodiments of this application. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations. For example, steps 901 to 904 performed by the electronic device in the embodiment shown in FIG9 can be executed. Alternatively, steps 1001 to 1002 performed by the electronic device in the embodiment shown in FIG10 can be executed.
[0189] Based on the above embodiments, this application also provides an electronic device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions. When the electronic device is running, the at least one processor performs the functions performed by the electronic device in the various methods described in the embodiments of this application. For example, steps 901 to 904 performed by the electronic device in the embodiment shown in FIG9 are executed. Alternatively, steps 1001 to 1002 performed by the electronic device in the embodiment shown in FIG10 are executed.
[0190] Based on the above embodiments, this application also provides a computer program product, which includes a computer program (also referred to as code or instructions) that, when run, causes a computer to perform the methods described in the embodiments of this application.
[0191] Based on the above embodiments, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a computer, causes the computer to perform the methods described in the embodiments of this application.
[0192] Based on the above embodiments, this application also provides a chip for reading computer programs stored in a memory to implement the methods described in the embodiments of this application.
[0193] Based on the above embodiments, this application provides a chip system including a processor for supporting a computer device in implementing the methods described in the embodiments of this application. In one possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. This chip system may be composed of chips or may include chips and other discrete devices. Those skilled in the art will understand that the embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0194] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.
[0195] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0196] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
[0197] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of protection of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A service recommendation method, characterized in that, Applied to electronic devices, including: In response to a first operation on first information included in a first interface, the first interface is updated, and the updated first interface includes a shortcut entry, which is used to indicate the existence of a recommendation service for the first information. In response to a second operation on the shortcut entry, a second interface is displayed, which is used to display the recommendation service for the first information.
2. The method according to claim 1, characterized in that, The second interface includes a first display area, which is used to display multiple recommended services based on the first user intent obtained from the first information. The method further includes: In response to a third operation on the first display area, the display of the first recommended service is switched to the display of the second recommended service on the first display area; wherein the first recommended service and the second recommended service originate from different applications.
3. The method according to claim 1 or 2, characterized in that, The shortcut entry has a preset display effect.
4. The method according to claim 3, characterized in that, The preset display effects include at least one of the following: preset colors and preset animations.
5. The method according to any one of claims 1 to 4, characterized in that, Before updating the first interface in response to a first operation on the first information included in the first interface, the method further includes: Obtain the services available from the applications installed on the electronic device; wherein the available services are used to determine recommended services based on the first information.
6. The method according to any one of claims 1 to 5, characterized in that, Before updating the first interface in response to a first operation on the first information included in the first interface, the method further includes: Obtain target user behavior information from the target user account, the target user behavior information being used for service recommendations; wherein, the target user account is the user account logged in on the electronic device.
7. The method according to claim 6, characterized in that, The recommendation service included in the second interface is determined based on the target user behavior information.
8. The method according to claim 6 or 7, characterized in that, The recommendation service included in the second interface is obtained by filtering candidate recommendation services based on the target user behavior information; The alternative recommendation service is obtained based on the first user intent; the recommendation service included in the second interface is a service that the user has not used within a preset time range, determined based on the target user behavior information.
9. The method according to any one of claims 1 to 8, characterized in that, The first information includes at least one of the following types: text, image.
10. The method according to any one of claims 1 to 9, characterized in that, When the first information includes protocol-related text information, the first user intent is obtained by protocol identification of the first information; and / or, When the first information includes named entities, the first user intent is obtained by performing Named Entity Recognition (NER) processing on the first information; and / or When the first information includes text information, the first user intent is obtained by semantic understanding of the first information; and / or When the first information includes image information, the first user intent is obtained by image recognition of the first information.
11. [Corrected according to Rule 91, 21.10.2024] The method according to claim 10, characterized in that, When the first information is text information of the protocol type, the recommendation service includes: product viewing service, or video viewing service, or merchant viewing service; and / or, When the first information includes named entities, the recommendation service includes at least one of the following types: navigation recommendation service, ride-hailing recommendation service, merchant viewing service, and schedule creation service; and / or, When the first information includes text information, the recommendation service includes at least one of the following types: schedule creation service, audio recommendation service, video recommendation service, translation service, navigation recommendation service, ride-hailing recommendation service, and merchant viewing service; and / or, When the first information includes image information, the recommendation service includes at least one of the following types: schedule creation service, audio recommendation service, video recommendation service, translation service, navigation recommendation service, ride-hailing recommendation service, and merchant viewing service.
12. The method according to claim 11, characterized in that, When the text information of the protocol type is a product protocol password, the recommendation service is a product viewing service; when the text information of the protocol type is a video protocol password, the recommendation service is a video viewing service. When the text information of the protocol type is a merchant protocol password, the recommendation service is a merchant viewing service; And / or, When the named entity includes a location, the recommendation service includes at least one of the following types: navigation recommendation service, ride-hailing recommendation service.
13. An electronic device, characterized in that, It includes at least one processor coupled to at least one memory, the at least one processor being configured to read a computer program stored in the at least one memory to perform the method as described in any one of claims 1 to 12.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 12.
15. A computer program product containing instructions, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 12.