Service recommendation method and device, electronic equipment, storage medium and program product

The trigger conditions of the service scenario are determined through the memory information stored by the electronic device, and the problem of poor service recommendation based on real-time data in the prior art is solved, and service recommendations that are strongly related to user's historical behavior are realized, and the accuracy and effectiveness of recommendations are improved.

CN120492724APending Publication Date: 2025-08-15GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510573591.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

The existing service recommendation methods are mostly based on real-time location and time data, which is difficult to match the real needs of users, resulting in poor recommendation results.

Method used

The trigger conditions of the service scenario are determined through the memory information stored by the electronic device, and the service recommendation information strongly related to the user's historical behavior is output to improve the recommendation effect.

Benefits of technology

It enhances the correlation between service recommendations and user historical behaviors, and improves the accuracy and effectiveness of recommendations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120492724A_ABST
    Figure CN120492724A_ABST
Patent Text Reader

Abstract

The invention discloses a service recommendation method and device, electronic equipment, a storage medium and a program product, and relates to the technical field of electronic equipment. The method is applied to the electronic equipment and comprises the steps that a current scene is detected, under the condition that the current scene meets a triggering condition of a service scene, service recommendation information is output, the triggering condition is determined based on memory information which is stored in the electronic equipment and meets a service recommendation rule of the service scene, and the service recommendation information is associated with the memory information. The triggering condition of the service scene is determined through the memory information stored in the electronic equipment, and corresponding service recommendation is carried out when the current scene meets the triggering strip, so that service recommendation is strongly associated with user historical behaviors, and the service recommendation effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic devices, and more specifically, to a service recommendation method, device, electronic device, storage medium, and program product. Background Art

[0002] Intelligent recommendation involves mining user information and analyzing behavioral characteristics to understand user preferences and potential preferences, and then making personalized recommendations based on this information. Intelligent recommendation is widely used in e-commerce, content-based media, lifestyle services, search, and other fields. However, current recommendations are mostly based on real-time location, time, and other data. This approach struggles to align with users' actual needs, resulting in suboptimal recommendations. Summary of the Invention

[0003] In view of the above problems, the present application proposes a service recommendation method, device, electronic device, storage medium and program product to solve the above problems.

[0004] In a first aspect, an embodiment of the present application provides a service recommendation method, which is applied to an electronic device, and the method includes: detecting a current scene; and outputting service recommendation information when the current scene meets the triggering conditions of the service scene, wherein the triggering conditions are determined based on memory information stored in the electronic device that meets the service recommendation rules of the service scene, and the service recommendation information is associated with the memory information.

[0005] In the second aspect, an embodiment of the present application provides a service recommendation device, which is applied to an electronic device, and the device includes: a scene detection module, which is used to detect the current scene; a service recommendation information output module, which is used to output service recommendation information when the current scene meets the trigger condition of the service scene, wherein the trigger condition is determined based on the memory information of the service recommendation rules that meet the service scene stored in the electronic device, and the service recommendation information is associated with the memory information.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, and the program code can be called by a processor to execute the above method.

[0008] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and the computer program implements the above method when executed by a processor.

[0009] The service recommendation method, device, electronic device, storage medium and program product provided in the embodiments of the present application detect the current scene, and output service recommendation information when the current scene meets the triggering conditions of the service scene, wherein the triggering conditions are determined based on the memory information of the service recommendation rules that meet the service scene stored in the electronic device, and the service recommendation information is associated with the memory information, so that the triggering conditions of the service scene are determined through the memory information stored in the electronic device, so that the corresponding service recommendation is made when the current scene meets the triggering conditions, so that the service recommendation is strongly associated with the user's historical behavior, thereby improving the service recommendation effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0011] Figure 1 A flow chart showing a service recommendation method provided by an embodiment of the present application is shown;

[0012] Figure 2 A flow chart showing a service recommendation method provided by an embodiment of the present application is shown;

[0013] Figure 3 A first interface diagram of an electronic device provided in an embodiment of the present application is shown;

[0014] Figure 4 A second interface diagram of an electronic device provided in an embodiment of the present application is shown;

[0015] Figure 5 A flow chart showing a service recommendation method provided by an embodiment of the present application is shown;

[0016] Figure 6 A flow chart showing a service recommendation method provided by an embodiment of the present application is shown;

[0017] Figure 7 A third interface diagram of an electronic device provided in an embodiment of the present application is shown;

[0018] Figure 8 A flow chart showing a service recommendation method provided by an embodiment of the present application is shown;

[0019] Figure 9 A fourth interface diagram of an electronic device provided in an embodiment of the present application is shown;

[0020] Figure 10Shows the application Figure 8 FIG. 1 is a flow chart of an embodiment of step S520 of the service recommendation method shown;

[0021] Figure 11 A fifth interface diagram of an electronic device provided in an embodiment of the present application is shown;

[0022] Figure 12 Shows the application Figure 8 FIG. 1 is a flow chart of an embodiment of step S520 of the service recommendation method.

[0023] Figure 13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown;

[0024] Figure 14 A sixth interface diagram of an electronic device provided in an embodiment of the present application is shown;

[0025] Figure 15 Shows the application Figure 8 Schematic diagram of the process of step S530 of the service recommendation method shown;

[0026] Figure 16 A module block diagram of a service recommendation device provided by an embodiment of the present application is shown;

[0027] Figure 17 A block diagram of an electronic device for executing a service recommendation method according to an embodiment of the present application is shown;

[0028] Figure 18 A storage unit for storing or carrying program codes for implementing the service recommendation method according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0029] In order to enable people skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0030] Information recommendation, also known as "webcasting," is a technology that reduces information overload by recommending information to users on the internet using certain technical standards or protocols. By proactively recommending information to users, information recommendation technology can reduce the time users spend searching online. Currently, recommendations for relevant services and applications are generally based on dynamic contextual data such as real-time location and time, integrated with user application behavior data. However, this recommendation method has at least the following drawbacks:

[0031] First, weak contextual relevance: The data range is relatively broad, and it is combined with many third-party business models, resulting in mechanized service recommendation generation, which matches users' real scenarios and has low usage value.

[0032] Second, information is recommended based on preset rules (such as time / place) and lacks dynamic generation capabilities.

[0033] To address the above issues, the inventors, after extensive research, have discovered and proposed the service recommendation method, device, electronic device, storage medium, and program product provided in the embodiments of this application. These methods use the memory information stored in the electronic device to determine the trigger conditions for service scenarios, and then recommend corresponding services when the current scenario meets the trigger conditions. This effectively correlates service recommendations with the user's historical behavior, improving the effectiveness of service recommendations. The specific service recommendation method will be described in detail in the subsequent embodiments.

[0034] See also Figure 1 , Figure 1 The flowchart of the service recommendation method provided by an embodiment of the present application is shown. The method is used to determine the triggering conditions of the service scene through the memory information stored in the electronic device, so as to make corresponding service recommendations when the current scene meets the triggering conditions, so that the service recommendation is strongly associated with the user's historical behavior, thereby improving the service recommendation effect. In a specific embodiment, the service recommendation method is applied to the service recommendation device 200 shown in Figure 16 and the electronic device 100 ( Figure 17 ). The following will take electronic devices as an example to illustrate the specific process of this embodiment. Of course, it can be understood that the electronic devices used in this embodiment can include smart phones, tablet computers, wearable devices, car equipment, etc., which are not limited here. Figure 1 The process shown is described in detail. In this embodiment, the method is applied to an electronic device. The service recommendation method may specifically include the following steps:

[0035] Step S110: Detect the current scene.

[0036] In this embodiment, the current scene can be detected. Optionally, the current scene can include one or a combination of the current time, current location, current environment, current weather, current expression, and current mood, which are not limited here.

[0037] In some implementations, the electronic device may have multiple built-in sensors and may detect the current scene based on the multiple built-in sensors.

[0038] In some implementations, the current scene may be detected in real time, at preset time intervals, at preset time points, or according to other preset rules, etc., which are not limited here.

[0039] Step S120: When the current scenario meets the triggering condition of the service scenario, output service recommendation information, wherein the triggering condition is determined based on the memory information of the service recommendation rules that meet the service scenario stored in the electronic device, and the service recommendation information is associated with the memory information.

[0040] In some embodiments, the electronic device may pre-set and store service scenarios and trigger conditions for the service scenarios, wherein the trigger conditions for the service scenarios may be used as a basis for determining the current scenario detected. Therefore, in this embodiment, when the current scenario is detected, the current scenario may be compared with the trigger conditions for the service scenario to determine whether the current scenario meets the trigger conditions for the service scenario and obtain a determination result. The determination result may include whether the current scenario meets the trigger conditions for the service scenario or whether the current scenario does not meet the trigger conditions for the service scenario.

[0041] Among them, when the current scene meets the triggering conditions of the service scene, it can be considered that the current scene triggers the service recommendation, and the service recommendation information can be output.

[0042] Among them, when the current scene does not meet the triggering conditions of the service scene, it can be considered that the current scene does not trigger the service recommendation, and the service recommendation information may not be output.

[0043] In some embodiments, outputting the service recommendation information may include: outputting the service recommendation information by display, outputting the service recommendation information by sound, and outputting the service recommendation information by vibration, or a combination thereof.

[0044] In some embodiments, there may be multiple service scenarios, and each of the multiple service scenarios has a corresponding trigger condition. Then, when the current scenario is detected, the current scenario can be compared with the trigger conditions corresponding to each of the multiple service scenarios to determine whether the current scenario meets any of the trigger conditions corresponding to each of the multiple service scenarios. If it is determined that the current scenario meets the trigger conditions corresponding to the target service scenario (one or more) among the multiple service scenarios, the service recommendation information corresponding to the target service scenario can be output. If it is determined that the current scenario does not meet the trigger conditions corresponding to all the service scenarios, the service recommendation information may not be output.

[0045] In some embodiments, when the current scene is detected, the current scene can be matched with the trigger conditions corresponding to the service scene. If the current scene matches the trigger conditions corresponding to the service scene, it can be determined that the current scene meets the trigger conditions of the service scene; if the current scene does not match the trigger conditions corresponding to the service scene, it can be determined that the current scene does not meet the trigger conditions of the service scene.

[0046] Optionally, the triggering condition of the service scenario can be determined based on the memory information stored by the electronic device that meets the service recommendation rules of the service scenario. Accordingly, the service recommendation information is associated with the memory information. The memory information can include various types of information, such as text information, image information, audio information, and video information, which are not limited here.

[0047] Among them, the above memory information can be structured information extracted from the information that needs to be remembered, processed and stored locally on the electronic device. Structured information is a form of data organization in which data is organized into a predefined format. Structured information can include clear fields or columns, as well as corresponding data types, etc. Such data organization method can make data storage, retrieval and analysis more efficient and accurate.

[0048] Among them, the above memory information can be stored locally in the electronic device after analyzing the information that needs to be memorized through the memory function of the electronic device. That is, when the electronic device triggers the memory function (turns on the memory function), it can conduct an in-depth analysis of the information that needs to be memorized, and after the analysis is completed, the information that needs to be memorized is stored for subsequent retrieval. In other words, the memory function is not only responsible for storing information, but more importantly, it stores the information after analyzing and understanding it. This process ensures the validity and retrievability of the information, so that relevant information can be quickly and accurately called when needed later.

[0049] Optionally, the information to be memorized may include: voice information input by the user, text information input by the user, interface information corresponding to the interface, etc., which is not limited here.

[0050] As an example, assuming that the service scenario is "scenic spot ticket reminder", the service recommendation rule of the service scenario is "including information related to scenic spots", and the memory information is generated based on the scenic spot ticket page, from which key information such as the scenic spot address, ticket issuance time and ticket content can be identified. Then, at this time, it can be determined that the memory information meets the service recommendation rule of the service scenario, and the triggering condition of the service scenario can be determined as "arrival at the scenic spot address and / or close to the ticket issuance time" based on the memory information. Then, when it is detected that the current location contained in the current scene matches the scenic spot address and / or the current time contained is close to the ticket issuance time, it can be determined that the current scene meets the triggering condition of the service scenario, and service recommendation information associated with the memory information can be output, such as "Remember to buy tickets", "The gate of the scenic spot is in front of you on the left", etc., which are not limited here.

[0051] A service recommendation method provided by an embodiment of the present application detects the current scene, and outputs service recommendation information when the current scene meets the triggering condition of the service scene, wherein the triggering condition is determined based on the memory information of the service recommendation rules that meet the service scene stored in the electronic device, and the service recommendation information is associated with the memory information, so that the triggering condition of the service scene is determined through the memory information stored in the electronic device, so as to make corresponding service recommendations when the current scene meets the triggering condition, so that the service recommendation is strongly associated with the user's historical behavior, thereby improving the service recommendation effect.

[0052] See also Figure 2 , Figure 2 The flow chart of the service recommendation method provided by an embodiment of the present application is shown. The method is applied to the above electronic device. Figure 2 The process shown is described in detail. The service recommendation method may specifically include the following steps:

[0053] Step S210: Detect the current scene.

[0054] The detailed description of step S210 can be found in step S110 and will not be repeated here.

[0055] Step S220: When the current scenario meets the trigger condition, a first service card is displayed, wherein the first service card includes a recommended processing task and a target control associated with the memory information, and the target control is used to trigger the processing of the recommended processing task, wherein the trigger condition is determined based on the memory information stored in the electronic device that meets the service recommendation rules of the service scenario.

[0056] In this embodiment, when the current scene is detected, the current scene can be compared with the trigger conditions of the service scene to determine whether the current scene meets the trigger conditions of the service scene. If it is determined that the current scene meets the trigger conditions of the service scene, a first service card can be displayed, wherein the first service card can include a recommended processing task associated with the memory information and a target control, and the target control is used to trigger the processing of the recommended processing task.

[0057] As an implementable approach, when the current scenario meets the triggering conditions of the service scenario, the first service card can be displayed in a pop-up window. In this case, regardless of whether the electronic device is in the screen-off state or the screen-on state, the pop-up window allows the user to view the first service card in a timely manner; and when the electronic device is in the light state, regardless of whether the electronic device is displaying the negative one screen interface, the desktop, or an application page, the pop-up window allows the user to view the first service card in a timely manner.

[0058] As another possible implementation, if the current scene meets the triggering conditions of the service scene, a first service card can be displayed on the negative one screen. In this case, the user can view the first service card by entering the negative one screen, and the first service card will not be visible before the user enters the negative one screen, thus avoiding interference with the user's use. For example, if the electronic device is in the screen-off state, the screen-off state can be maintained without interrupting the user; if the electronic device is displaying the desktop or application page, the desktop or application page can be maintained without interrupting the user.

[0059] As another feasible approach, when the current scene meets the triggering conditions of the service scene, a first service card can be displayed on the desktop. In this case, the user can view the first service card by entering the desktop, and the first service card will not be visible before the user enters the desktop. This can reduce interference with the user's use while improving the visibility and convenience of the first service card. For example, if the electronic device is in the screen-off state, the screen-off state can be maintained without causing interference to the user; if the electronic device is displaying the negative one screen interface or application page, the negative one screen interface or application page can be displayed without causing interference to the user.

[0060] As a feasible implementation method, when memory information is obtained, deep semantic understanding technology can be used to analyze and identify the memory information to obtain the key information contained in the memory information, and determine the recommended processing tasks associated with the memory information based on the key information.

[0061] As an example, see Figure 3 , Figure 31 shows a first interface diagram of an electronic device provided in an embodiment of the present application. Figure 3 As shown in the figure, assuming that the memory information is generated based on the scenic spot ticket page, key information such as the scenic spot address, ticket issuance time and ticket content can be identified from it, then the recommendation processing task can be "ticket purchase reminder (such as Figure 3 The target control can be a control used to trigger ticket purchase (such as Figure 3 Go to buy).

[0062] In some embodiments, when the current scene meets the trigger conditions of the service scene, displaying the first service card may include: when the current scene meets the trigger conditions of the service scene, displaying the first service card and the second service card, wherein the second service card includes an application associated with the recommended processing task to improve the user's processing efficiency and usage experience.

[0063] Of course, if the first service card is displayed in a pop-up window, the second service card can be displayed in a pop-up window at the same time as the first service card; if the first service card is displayed on the negative one screen, the second service card can be displayed on the negative one screen together with the first service card; if the first service card is displayed on the desktop, the second service card can be displayed on the negative one screen together with the first service card, etc., and there is no limitation here.

[0064] As an example, see Figure 4 , Figure 4 1 shows a second interface diagram of an electronic device provided in an embodiment of the present application. Figure 4 As shown in the figure, assuming that the memory information is generated based on the scenic spot ticket page, key information such as the scenic spot address, ticket issuance time and ticket content can be identified from it, then the recommendation processing task can be "ticket purchase reminder (such as Figure 4 The target control can be a control used to trigger ticket purchase (such as Figure 4 Then, the applications in the second service card may include navigation applications, payment applications, etc., so that the user can quickly call related services when needed.

[0065] Furthermore, if the application in the second service card is a navigation application and a touch operation acting on the navigation application is detected, the navigation route from the current location to the ticket sales location can be directly displayed without the user having to manually enter the destination location, thereby improving navigation efficiency and user experience.

[0066] The service recommendation method provided by an embodiment of the present application detects the current scene, and displays a first service card when the current scene meets the trigger condition, wherein the first service card includes a recommendation processing task and a target control associated with the memory information, and the target control is used to trigger the processing of the recommendation processing task, wherein the trigger condition is determined based on the memory information of the electronic device that meets the service recommendation rules of the service scene. Compared with Figure 1 The service recommendation method shown in this embodiment also directly displays the recommended processing tasks associated with the memory information and the target control for triggering the processing of the recommended processing tasks, which can improve the efficiency and intuitiveness of processing the corresponding tasks.

[0067] See also Figure 5 , Figure 5 The flow chart of the service recommendation method provided by an embodiment of the present application is shown. The method is applied to the above electronic device. Figure 5 The process shown is described in detail. The service recommendation method may specifically include the following steps:

[0068] Step S310: Detect the current scene.

[0069] The detailed description of step S310 can be found in step S110 and will not be repeated here.

[0070] Step S320: When the current scenario meets the trigger condition, the service recommendation information is displayed on the desktop, wherein the trigger condition is determined based on the memory information of the service recommendation rules that meet the service scenario stored in the electronic device, and the service recommendation information is associated with the memory information.

[0071] In this embodiment, when the current scene is detected, the current scene can be compared with the trigger conditions of the service scene to determine whether the current scene meets the trigger conditions of the service scene. If it is determined that the current scene meets the trigger conditions of the service scene, service recommendation information can be displayed on the desktop, thereby improving the visibility and convenience of the service recommendation information. For example, a first service card can be displayed on the desktop, or a first service card and a second service card can be displayed on the desktop.

[0072] In some embodiments, the desktop of the electronic device may be pre-installed with a suggestion card. Based on this, when it is determined that the current scene meets the triggering condition of the service scene, service recommendation information may be displayed in the suggestion card.

[0073] The service recommendation method provided by an embodiment of the present application detects the current scene, and displays service recommendation information on the desktop when the current scene meets the triggering condition, wherein the triggering condition is determined based on the memory information of the service recommendation rules that meet the service scene stored in the electronic device, and the service recommendation information is associated with the memory information. Figure 1 The service recommendation method shown in this embodiment also displays the service recommendation information externally on the desktop, which can make the service recommendation more intuitive and improve the visibility and convenience of the service recommendation.

[0074] See also Figure 6 , Figure 6 The flow chart of the service recommendation method provided by an embodiment of the present application is shown. The method is applied to the above electronic device. Figure 6 The process shown is described in detail. The service recommendation method may specifically include the following steps:

[0075] Step S410: Display a first interface, wherein the first interface includes the memory information and a service recommendation switch, the service recommendation switch is in an on state, and the service recommendation switch is used to control the opening or closing of the service recommendation function.

[0076] Optionally, the number of locally stored memory information of the electronic device may be one or more, and the one or more memory information may include memory information that satisfies the service recommendation rules of the service scenario, and may also include memory information that does not satisfy the service recommendation rules of the service scenario. Among them, for the locally stored memory information of the electronic device that satisfies the service recommendation rules of the service scenario, a service recommendation switch that is turned on by default can be automatically generated for it on the memory details page (first interface) to indicate that a service recommendation will be made for the memory information.

[0077] Among them, if the electronic device has multiple locally stored memory information that meets the service recommendation rules of the service scenario, a service recommendation switch can be set for the multiple memory information to control the opening or closing of the service recommendation functions of the multiple memory information through one service recommendation switch; or, if the electronic device has multiple locally stored memory information that meets the service recommendation rules of the service scenario, a service recommendation switch can be set for each of the multiple memory information to control the opening or closing of the service recommendation functions of different memory information in the multiple memory information through different service recommendation switches.

[0078] In this embodiment, the electronic device may display a first interface, wherein the first interface may include memory information and a service recommendation switch, wherein the service recommendation switch is in an on state. It is understood that the memory information refers to the memory information that meets the service recommendation rules of the service scenario.

[0079] Of course, although the service recommendation switch is on by default, the electronic device also supports users turning off the service recommendation function by switching the service recommendation from on to off. In some embodiments, during the display of the first interface, a touch operation on the service recommendation switch can be detected. When a touch operation on the service recommendation switch is detected, the service recommendation switch can be controlled to switch from on to off, and the service recommendation function for the stored information is turned off.

[0080] Optionally, the touch operation on the service recommendation switch may include: a click operation on the service recommendation switch, a press operation on the service recommendation switch, a slide operation on the service recommendation switch, etc., which is not limited here.

[0081] As an implementable method, if the electronic device has multiple memory information stored locally and none of the multiple memory information meets the service recommendation rules of the service scenario, the first interface can be displayed and the multiple memory information can be displayed on the first interface. At this time, the service recommendation switch is not displayed for the multiple memory information.

[0082] As another practicable approach, if the electronic device locally stores multiple memory information and all of the memory information satisfies the service recommendation rules of the service scenario, a first interface may be displayed, and the multiple memory information and a service recommendation switch may be displayed on the first interface. Optionally, the service recommendation switch may be set one for each of the multiple memory information or may be set separately.

[0083] As another feasible method, if the electronic device has multiple memory information stored locally, and part of the multiple memory information meets the service recommendation rules of the service scenario, a first interface can be displayed, and multiple memory information and a service recommendation switch for part of the memory information can be displayed on the first interface.

[0084] Optionally, in the case where there are multiple pieces of memory information, if the number of the multiple pieces of memory information does not exceed the upper limit of the memory information that can be displayed on the first interface, the multiple pieces of memory information can be displayed on the first interface at the same time.

[0085] Optionally, in the case where there are multiple memory information, if the number of the multiple memory information exceeds the upper limit of the memory information that can be displayed on the first interface, part of the multiple memory information can be displayed on the first interface, and the other part of the memory information can be hidden, and the switching of multiple memory information to display or hide can be controlled through switching operations.

[0086] In some embodiments, the electronic device may display the first interface in response to the memory interface display instruction when receiving the memory interface display instruction. As an implementable manner, when the target voice information input by the user is detected, it can be determined that the memory interface display instruction is received. Optionally, the target voice information may include "display memory interface", "enter memory interface", "view memory information", etc., which are not limited here; when the target touch operation input by the user through the display interface is detected, it can be determined that the memory interface display instruction is received. Optionally, the target touch operation may include "a click operation on the memory icon, wherein the memory icon is used to trigger entry into the memory interface", "a click operation on the memory control, wherein the memory control is used to trigger entry into the memory interface", etc., which are again not limited; when the target shake operation input by the user is detected, the memory interface display instruction can be received. Optionally, the target shake operation may include "a shake operation on the electronic device to reach a target shake angle", "a shake operation on the electronic device to reach a target shake speed", "a shake operation on the electronic device to reach a target shake amplitude", etc., which are not limited here.

[0087] See also Figure 7 , Figure 7 FIG. 3 shows a third interface diagram of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device can display a first interface, which can include memory information (such as Figure 7 Ticket reminder for the scenic area "Shanghai Longhua Temple") and service recommendation switch.

[0088] Step S420: Detect the current scene.

[0089] Step S430: When the current scenario meets the triggering condition of the service scenario, output service recommendation information, wherein the triggering condition is determined based on the memory information of the service recommendation rules that meet the service scenario stored in the electronic device, and the service recommendation information is associated with the memory information.

[0090] For the detailed description of steps S420 to S430 , please refer to steps S110 to S120 , which will not be repeated here.

[0091] An embodiment of the present application provides a service recommendation method, which displays a first interface, wherein the first interface includes memory information and a service recommendation switch, the service recommendation switch is in the on state, detects the current scene, and outputs service recommendation information when the current scene meets the triggering conditions of the service scene, wherein the triggering conditions are determined based on the memory information of the electronic device that meets the service recommendation rules of the service scene, and the service recommendation information is associated with the memory information. Compared to Figure 1The service recommendation method shown in this embodiment also displays a service recommendation switch in an on state at the associated position of the memory information when the memory information meets the service recommendation rules of the service scenario, so as to distinguish the memory information that meets the service recommendation rules and improve the display effect of the memory information.

[0092] See also Figure 8 , Figure 8 The flow chart of the service recommendation method provided by an embodiment of the present application is shown. The method is applied to the above electronic device. Figure 8 The process shown is described in detail. The service recommendation method may specifically include the following steps:

[0093] Step S510: Display the second interface.

[0094] In this embodiment, the electronic device can display a second interface. Optionally, the second interface can include a lock screen interface, a screen off interface, a desktop, an application interface, etc., which is not limited here.

[0095] Among them, the lock screen interface can be understood as the interface displayed by the electronic device before it is unlocked, which is intended to protect the security and privacy of the electronic device. When the electronic device displays the lock screen interface, the user needs to enter a password, pattern, fingerprint or other authentication method to enter the desktop or application page. Of course, under the lock screen interface, the electronic device can also display basic information such as time, date, notifications, weather, etc., which is convenient for users to view without unlocking the electronic device. In addition, under the lock screen interface, the electronic device can also allow users to personalize the lock screen interface, such as changing the background picture, adding widgets, etc., to meet the aesthetic and usage needs of different users.

[0096] Among them, the screen-off interface can be understood as the interface displayed by an electronic device when the touch screen is turned off but some functions remain active. In the screen-off interface, electronic devices allow users to view information such as time, date, and notifications without lighting up the entire screen, so that users can quickly view important information such as time, date, and notifications without fully waking up the electronic device, and significantly reduce the power consumption of the electronic device by lighting up only a small area of the touch screen. In addition, in the screen-off interface, electronic devices allow users to personalize the style and content of the screen display, such as selecting different clock styles, adding pictures or animations, etc.

[0097] The desktop can be understood as the main interface displayed after an electronic device is unlocked. It is the core area where users perform various operations and manage applications. Users can install, uninstall, move, and arrange application icons on the desktop for quick launch and management. Furthermore, users can personalize the desktop according to their preferences and needs, such as changing the background image, adjusting icon size, and adding widgets. Furthermore, the desktop typically provides shortcuts for file management and access, making it easy for users to view and manage files and data on the device.

[0098] The application interface (API) is the screen displayed by an electronic device after unlocking. It generally refers to the specific interface within a software or application where users interact. These screens are an important part of software functionality, used to display information, collect user input, provide navigation, and perform various user-requested operations. The design of the application interface directly affects the user experience and the usability of the software.

[0099] In some embodiments, the electronic device may display the second interface on a full screen or on a partial screen. When the electronic device displays the second interface on a partial screen, it may display the second interface on half the screen or on a quarter of the screen, etc., without limitation herein.

[0100] See also Figure 9 , Figure 9 FIG. 4 shows a fourth interface diagram of an electronic device provided in an embodiment of the present application. Figure 9 As shown, the electronic device can display a second interface, where the second interface can include any interface.

[0101] Step S520: When a memory triggering operation for the second interface is detected, the memory information is obtained from the second interface.

[0102] In this embodiment, during the display of the second interface, a memory triggering operation for the second interface may be detected. When a memory triggering operation for the second interface is detected, the memory information may be obtained from the second interface. The memory triggering operation may be an operation for triggering memorization of information in the interface.

[0103] In some embodiments, the above memory triggering operation may be a touch operation that satisfies a target touch condition.

[0104] In one possible implementation, the memory triggering operation may be a single-finger sliding operation. In the case where the memory triggering operation is a single-finger sliding operation, the target touch conditions may include at least one of the following: the operating area of the sliding operation is located in the target area of the second interface, the sliding direction of the sliding operation is the target sliding direction, and the sliding distance of the sliding operation is greater than the target distance. For example, the target touch conditions may be used to identify a user's horizontal sliding operation at the top area of the screen, allowing the user to trigger the recording of information in the second interface through a single-finger sliding operation.

[0105] In one possible implementation, the memory triggering operation may be a multi-finger sliding operation. In the case where the memory triggering operation is a multi-finger sliding operation, the target touch conditions may include at least one of the following: the number of fingers performing the sliding operation is a target number, the sliding direction of the sliding operation is a target sliding direction, the sliding distance of the sliding operation is greater than a target distance, etc. For example, the target touch conditions may be used to identify a vertical sliding operation performed by a user using three fingers, allowing the user to trigger recording of information in the second interface by sliding down or sliding up with three fingers.

[0106] In one possible implementation, the memory triggering operation may be a click operation on the screen. In the case where the memory triggering operation is a click operation on the screen, the target touch conditions may include at least one of: the touch area meeting a target area condition, the click force meeting a target force condition, and the click frequency meeting a target frequency condition. For example, the target touch conditions may be used to identify a double-click on the screen by a user using a knuckle, allowing the user to trigger recording of information on the second interface by double-clicking the screen with a knuckle.

[0107] In some embodiments, the memory triggering operation may also be an operation recognized based on a voice input by a user. The electronic device may obtain the voice input by the user, convert the input voice into text using automatic speech recognition (ASR) technology, and determine the memory triggering operation based on the input information obtained after the conversion.

[0108] In one possible implementation, the electronic device can enable an intelligent assistant based on user operations, and collect and recognize user input voice through the intelligent assistant to detect the memory trigger operation input by the user. Among them, the intelligent assistant is a software program that uses artificial intelligence technology to help users complete various tasks and provide required information and services. After the electronic device detects the operation of calling the intelligent assistant in the interface, it can display the interface area corresponding to the intelligent assistant in the interface, and the interface area includes the information input interface of the intelligent assistant; in this information input interface, the user can enter text information or voice information.

[0109] In one possible embodiment, after acquiring the converted input information, the electronic device can identify keywords in the input information to determine whether the memory information needs to be stored, and further determine whether the user has entered a memory trigger operation based on the identified keywords. After acquiring the keywords in the input information, the electronic device can match the acquired keywords with target keywords. If any of the keywords matches the target keyword, that is, the keywords in the input information include the target keyword, it indicates that the information in the second interface needs to be recorded, and thus it can be determined that the above memory trigger operation has been received. If none of the keywords matches the target keyword, that is, the keywords in the input information do not include the target keyword, it indicates that the information in the second interface does not need to be recorded, and thus it can be determined that the above memory trigger operation has not been received. The target keyword is a pre-set keyword used to trigger the recording of information in the recording interface. Specifically, the target keyword is not limited. For example, the target keyword can include "note", "help me remember", "record", "remember", "remember", "save", "save", "store", and other keywords that can directly indicate the user's intention to store the memory information.

[0110] Optionally, a pre-trained text keyword extraction model (such as a neural network model, etc.) may be stored in the electronic device. When the electronic device obtains the above input information, it can obtain the keywords in the input information by inputting the input information into the text keyword extraction model.

[0111] Of course, in the embodiment of the present application, the specific operation type of the above memory triggering operation may not be limited.

[0112] In some embodiments, when the electronic device obtains the memory information in the second interface, it can identify the information in the second interface; after identifying the information in the second interface, it can process the identified information in the second interface to obtain structured information, and use the obtained structured information as memory information.

[0113] In one possible implementation, the structured information may be in the form of a triple or a key-value pair. The specific form of the structured information is not limited. Extracting the identified information from the second interface as structured information facilitates subsequent service recommendations based on the structured information.

[0114] Optionally, when the structured information is in the form of a triple, the structured information may include an entity, an entity attribute, and an entity attribute value, wherein an entity may represent a subject, an entity attribute may represent a relationship between an entity and an entity attribute value, and an entity attribute value is a specific value of an entity attribute. It can be understood that the above acquisition of structured information can be regarded as relational triple extraction (RTE), that is, extracting two entities and their corresponding relationships from the text at the same time. The triple can be expressed as (Subject, Relation, Object) or (Subject, Prodicate, Object), where Subject and Object are two entities, which can also be called head entity (Head Entity) and tail entity (Tail Entity) respectively, Relation and Prodicate represent the relationship category, the head entity is the above entity, the tail entity is the above entity attribute value, and the relationship category is the above entity attribute. For example, for the information "Product Release on February 28" identified in the interface, the extracted entity is "Product Release", the entity attribute is "Time", and the entity attribute value is "February 28".

[0115] In one possible implementation, a pre-trained interface recognition model can be used to identify the interface displayed by the electronic device. The interface recognition model can be pre-trained to recognize content within the interface, extract valuable information of interest to the user from the recognized content, and remove irrelevant information. For example, the interface recognition model can be a neural network model trained for the second interface recognition task described above. Of course, the specific type of interface recognition model is not limited.

[0116] In one possible implementation, when the electronic device obtains the memory information in the second interface, it may identify the information of the entire page displayed on the second interface. For example, when the electronic device displays a web page, due to the limited screen size of the electronic device, it is impossible to fully display the content of the entire web page. In this case, when determining the memory information in the second interface, it may identify the information in the entire web page. For another example, when the electronic device displays a document, it may obtain the entire document and identify the information in the entire document.

[0117] See also Figure 10 , Figure 10 Shows the application Figure 8 The flow chart of step S520 of the service recommendation method is shown in FIG. Figure 10 The process shown is described in detail, and the method may specifically include the following steps:

[0118] Step S521A: When it is detected that the sliding operation on the second interface meets the multi-finger sliding condition, trigger the memory function, wherein the memory function is used to analyze and store the information.

[0119] In some embodiments, the electronic device may pre-set and store a multi-finger sliding condition, which is used as a basis for determining whether to trigger the memory function. Therefore, in this embodiment, while displaying the second interface, a sliding operation on the second interface may be detected. If a sliding operation on the second interface is detected, the sliding operation on the second interface may be compared with the multi-finger sliding condition to determine whether the sliding operation on the second interface meets the multi-finger sliding condition.

[0120] Among them, if the judgment result indicates that the sliding operation on the second interface meets the multi-finger sliding condition, it can be determined that the sliding operation on the second interface meets the condition for triggering the memory function, and the memory function can be triggered.

[0121] Among them, if the judgment result indicates that the sliding operation on the second interface does not meet the multi-finger sliding condition, it can be determined that the sliding operation on the second interface does not meet the condition for triggering the memory function, and the memory function may not be triggered.

[0122] Optionally, the multi-finger sliding condition may include: the number of sliding points corresponding to the sliding operation is equal to or greater than three, the sliding direction corresponding to the sliding operation satisfies a specified direction, and the sliding distance corresponding to the sliding operation is greater than a specified distance, or a combination of the above.

[0123] In some embodiments, during the process of displaying the second interface, the sliding operation on the second interface can be detected in real time, the sliding operation on the second interface can be detected at a preset time interval, the sliding operation on the second interface can be detected at a preset time point, the sliding operation on the second interface can be detected according to other preset conditions, etc., which are not limited here.

[0124] As an implementable approach, while the second interface is being displayed, a listener can be set on the second interface to capture the user's sliding operations. For example, in Android development, the onTouchEvent method can be used to capture touch events acting on the second interface. Accordingly, when the user slides on the second interface, the listener can capture these events, such as the position, direction, distance, and other information corresponding to the sliding operation, thus capturing the sliding operation on the second interface.

[0125] Among them, the memory function is used to analyze and store information. That is, when the electronic device triggers the memory function (turns on the memory function), it can conduct an in-depth analysis of the information that needs to be remembered, and after the analysis is completed, the information that needs to be remembered is stored for subsequent retrieval. In other words, the memory function is not only responsible for storing information, but more importantly, it stores the information after analyzing and understanding it. This process ensures the validity and retrievability of the information, so that relevant information can be quickly and accurately called when needed later. Optionally, the information that needs to be remembered may include: voice information input by the user, text information input by the user, interface information corresponding to the interface, etc., which are not limited here.

[0126] Optionally, the electronic device may pre-set and store a multi-finger sliding condition, and the multi-finger sliding condition is limited to include: the number of sliding points corresponding to the sliding operation is equal to or greater than three.

[0127] In this embodiment, while the second interface is being displayed, a sliding operation on the second interface may be detected. If a sliding operation on the second interface is detected, the number of sliding points corresponding to the sliding operation may be determined, and it may be determined whether the number of sliding points corresponding to the sliding operation is equal to or greater than three. If it is determined that the number of sliding points corresponding to the sliding operation is equal to or greater than three, then the sliding operation is determined to meet the multi-finger sliding condition; if it is determined that the number of sliding points corresponding to the sliding operation is less than three, then the sliding operation is determined not to meet the multi-finger sliding condition.

[0128] As an example, if it is detected that the number of sliding points corresponding to the sliding operation acting on the second interface is three, then the sliding operation is determined to be a three-finger sliding operation, and it is determined that the sliding operation meets the specified sliding conditions; if it is detected that the number of sliding points corresponding to the sliding operation acting on the second interface is four, then the sliding operation is determined to be a four-finger sliding operation, and it is determined that the sliding operation meets the specified sliding conditions; if it is detected that the number of sliding points corresponding to the sliding operation acting on the second interface is five, then the sliding operation is determined to be a five-finger sliding operation, and it is determined that the sliding operation meets the specified sliding conditions.

[0129] As an implementable approach, the number of different sliding points that meet the specified sliding conditions can be determined based on different device types to adapt to the characteristics of different device types and enhance the user experience. Taking the device type of the electronic device as a tablet or a smartphone as an example, if the device type of the electronic device is a tablet, the multi-finger sliding condition can be set to the number of sliding points corresponding to the sliding operation to be four. If the device type of the electronic device is a smartphone, the multi-finger sliding condition can be set to the number of sliding points corresponding to the sliding operation to be three.

[0130] As another feasible approach, the number of different sliding points that meet the specified sliding condition can be determined based on different screen sizes to adapt to the characteristics of different screen sizes and enhance the user experience. For example, if the screen size of the electronic device is a first screen size and a second screen size, and the first screen size is smaller than the second screen size, if the screen size of the electronic device is the first screen size, the multi-finger sliding condition can be set to three sliding points corresponding to the sliding operation. If the screen size of the electronic device is the second screen size, the multi-finger sliding condition can be set to four sliding points corresponding to the sliding operation.

[0131] Optionally, the electronic device may pre-set and store multi-finger sliding conditions, where the multi-finger sliding conditions include: the number of sliding points corresponding to the sliding operation is equal to or greater than three, and the sliding direction corresponding to the sliding operation satisfies a specified direction. Optionally, the specified direction may include a direction from the bottom toward the top of the electronic device, or a direction from a first side toward a second side of the electronic device, without limitation herein.

[0132] In this embodiment, during the display of the second interface, a sliding operation on the second interface may be detected. If a sliding operation on the second interface is detected, the number of sliding points corresponding to the sliding operation and the sliding direction corresponding to the sliding operation may be determined, and a determination may be made as to whether the number of sliding points corresponding to the sliding operation is equal to or greater than three, and whether the sliding direction corresponding to the sliding operation satisfies a specified direction. If it is determined that the number of sliding points corresponding to the sliding operation is equal to or greater than three and the sliding direction corresponding to the sliding operation satisfies the specified direction, then the sliding operation is determined to satisfy the multi-finger sliding condition; if it is determined that the number of sliding points corresponding to the sliding operation is less than three or the sliding direction corresponding to the sliding operation does not satisfy the specified direction, then the sliding operation is determined to not satisfy the multi-finger sliding condition.

[0133] As an implementable method, when a sliding operation on the second interface is detected, the sliding start point and the sliding end point corresponding to the sliding operation can be determined, and based on the sliding start point and the sliding end point, the sliding direction corresponding to the sliding operation can be determined.

[0134] Optionally, the electronic device may pre-set and store multi-finger sliding conditions, and the multi-finger sliding conditions are limited to include: the number of sliding points corresponding to the sliding operation is equal to or greater than three, and the sliding distance corresponding to the sliding operation reaches a specified distance.

[0135] In this embodiment, during the display of the second interface, a sliding operation on the second interface may be detected. If a sliding operation on the second interface is detected, the number of sliding points corresponding to the sliding operation and the sliding distance corresponding to the sliding operation may be determined, and it may be determined whether the number of sliding points corresponding to the sliding operation is equal to or greater than three, and whether the sliding distance corresponding to the sliding operation reaches a specified distance. If it is determined that the number of sliding points corresponding to the sliding operation is equal to or greater than three and the sliding distance corresponding to the sliding operation reaches the specified distance, then the sliding operation is determined to meet the multi-finger sliding condition; if it is determined that the number of sliding points corresponding to the sliding operation is less than three or the sliding distance corresponding to the sliding operation does not reach the specified distance, then the sliding operation is determined to not meet the multi-finger sliding condition.

[0136] As an implementable method, when a sliding operation on the second interface is detected, the sliding start point and the sliding end point corresponding to the sliding operation can be determined, and based on the sliding start point and the sliding end point, the sliding distance corresponding to the sliding operation can be determined.

[0137] Optionally, the electronic device can pre-set and store multi-finger sliding conditions, and the multi-finger sliding conditions are limited to: the number of sliding points corresponding to the sliding operation is equal to or greater than three, the sliding direction corresponding to the sliding operation satisfies the specified direction, and the sliding distance corresponding to the sliding operation reaches a specified distance.

[0138] In this embodiment, during the display of the second interface, a sliding operation applied to the second interface may be detected. If a sliding operation applied to the second interface is detected, the number of sliding points corresponding to the sliding operation, whether the sliding direction corresponding to the sliding operation satisfies a specified direction, and the sliding distance corresponding to the sliding operation may be determined. Furthermore, it is determined whether the number of sliding points corresponding to the sliding operation is equal to or greater than three, whether the sliding direction corresponding to the sliding operation satisfies the specified direction, and whether the sliding distance corresponding to the sliding operation reaches a specified distance. If it is determined that the number of sliding points corresponding to the sliding operation is equal to or greater than three, the sliding direction corresponding to the sliding operation satisfies the specified direction, and the sliding distance corresponding to the sliding operation reaches a specified distance, then the sliding operation is determined to satisfy a multi-finger sliding condition. If it is determined that the number of sliding points corresponding to the sliding operation is less than three, the sliding direction corresponding to the sliding operation does not satisfy the specified direction, or the sliding distance corresponding to the sliding operation does not reach the specified distance, then the sliding operation is determined to not satisfy the multi-finger sliding condition.

[0139] See also Figure 11 , Figure 11 FIG. 5 shows a fifth interface diagram of an electronic device provided in an embodiment of the present application. Figure 11 As shown, when the electronic device is displaying the second interface, the user can trigger the memory function by sliding three fingers on the second interface.

[0140] Step S522A: memorize all or part of the interface information in the second interface to obtain the memorized information.

[0141] In this embodiment, if it is detected that the sliding operation on the second interface meets the multi-finger sliding condition, the memory function can be triggered and the interface information of the second interface can be memorized, that is, the second interface information can be analyzed and stored so that the interface information can be called later.

[0142] In some embodiments, when the memory function is triggered, it can be determined whether the memory function is triggered for the first time on the electronic device. If it is determined that the memory function is triggered for the first time on the electronic device, the target page can be called out and displayed on the second interface (such as floating the target page on the second interface), and the target page displays an introduction animation of the memory function and a target control. After the introduction animation is played and / or a touch operation acting on the target control is detected, the interface information of the second interface can be memorized. If it is determined that the memory function is not triggered for the first time on the electronic device, the interface information of the second interface can be directly memorized.

[0143] In some implementations, memorizing the interface information of the second interface may include memorizing all the interface information of the second interface or memorizing part of the interface information of the second interface.

[0144] When memorizing all the interface information of the second interface, the information type of the interface information can be determined, and the memorization method for all the interface information can be determined based on the information type, and all the interface information of the second interface can be memorized based on the memorization method.

[0145] As an example, if the second interface displays a photo, it can be determined that the information type of the interface information is a picture type, and the photo can be directly memorized based on the picture type. Of course, if the second interface displays multiple photos, multiple photos can also be directly memorized based on the picture type, without limitation here.

[0146] As another example, if the second interface displays a paragraph of text from an article, it can be determined that the information type of the interface information is text. Then, the text can be directly memorized based on the text type, or a link to the article can be obtained based on the text type, and the article can be memorized based on the link to the article. For example, the Jsoup.connect method can be used to connect to the URL of the web page containing the text, and then the get method can be called to obtain the Document object. The select method can be used through the Document object to select a specific HTML element. During the HTML parsing process, the eachAttr method of the Elements object can be used to extract the link attribute, thereby obtaining the link to the article to which the text belongs.

[0147] When memorizing part of the interface information of the second interface, part of the interface information may be determined from the entire interface information and memorized.

[0148] As an implementable approach, a sliding position corresponding to a sliding operation may be determined, and based on the sliding position, partial interface information may be determined from the entire interface information, and the partial interface information may be memorized. Optionally, determining the partial interface information from the entire interface information based on the sliding position may include: determining the interface information corresponding to the sliding starting position from the entire interface information as the partial interface information; determining the interface information corresponding to the sliding trajectory from the entire interface information as the partial interface information, etc., without limitation herein.

[0149] As an example, if the second interface displays multiple photos, some photos can be determined from the multiple photos and memorized.

[0150] As another example, if the second interface displays multiple paragraphs of text, a portion of the text may be determined from the multiple paragraphs of text and memorized.

[0151] As another example, if the second interface displays multiple photos and multiple paragraphs of text, some photos can be determined from the multiple photos and / or some text can be determined from the multiple paragraphs of text, and some photos and / or some text can be memorized.

[0152] In some embodiments, a sliding parameter corresponding to the sliding operation can be determined, and all or part of the interface information of the interface can be memorized based on the sliding parameter. Optionally, the sliding parameter can include sliding speed, sliding trajectory, sliding pressure, sliding contact area, etc., which are not limited here.

[0153] As an implementable method, the electronic device can pre-set a first sliding parameter and a second sliding parameter, and set the first sliding parameter to trigger the memorization of all interface information of the interface, and the second sliding parameter to trigger the memorization of all interface information of the interface. Based on this, the sliding parameter corresponding to the sliding operation can be determined, and the sliding parameter corresponding to the sliding operation can be compared with the first sliding parameter and the second sliding parameter respectively to determine whether the sliding parameter corresponding to the sliding operation matches the first sliding parameter or whether it matches the second sliding parameter. Among them, if it is determined that the sliding parameter corresponding to the sliding operation matches the first sliding parameter, it can trigger the memorization of all interface information of the second interface; if it is determined that the sliding parameter corresponding to the sliding operation matches the second sliding parameter, it can trigger the memorization of part of the interface information of the second interface.

[0154] As an example, assume that the sliding parameter is a sliding speed. The electronic device can pre-set and store a speed threshold, which is used as a basis for judging whether to memorize all or part of the interface information. Therefore, the sliding speed corresponding to the sliding operation can be determined, and the sliding speed corresponding to the sliding operation can be compared with the speed threshold to determine whether the sliding speed corresponding to the sliding operation reaches the sliding threshold. Optionally, if the sliding speed reaches the speed threshold, all the interface information of the second interface can be memorized; if the sliding speed does not reach the speed threshold, part of the interface information of the second interface can be memorized.

[0155] As another example, assume that the sliding parameter is a sliding trajectory. The electronic device can be pre-set and store a specified sliding trajectory, which is used as a basis for judging whether to memorize all or part of the interface information. Therefore, the sliding trajectory corresponding to the sliding operation can be determined, and the sliding trajectory corresponding to the sliding operation can be compared with the specified sliding trajectory to determine whether the sliding trajectory corresponding to the sliding operation matches the specified sliding trajectory. Optionally, if the sliding trajectory corresponding to the sliding operation does not match the specified sliding trajectory, all the interface information of the second interface can be memorized; if the sliding trajectory corresponding to the sliding operation matches the specified sliding trajectory, part of the interface information of the second interface can be memorized.

[0156] As another example, assume that the sliding parameter is the sliding pressure. The electronic device can pre-set and store a pressure threshold, which is used as a basis for judging whether to memorize all or part of the interface information. Therefore, the sliding pressure corresponding to the sliding operation can be determined, and the sliding pressure corresponding to the sliding operation can be compared with the pressure threshold to determine whether the sliding pressure corresponding to the sliding operation reaches the pressure threshold. Optionally, if the sliding pressure reaches the pressure threshold, all the interface information of the second interface can be memorized; if the sliding pressure does not reach the pressure threshold, part of the interface information of the second interface can be memorized.

[0157] As another example, assume that the sliding parameter is a sliding contact area. The electronic device can pre-set and store a contact area threshold, which is used as a basis for judging whether to memorize all or part of the interface information. Therefore, the sliding contact area corresponding to the sliding operation can be determined, and the sliding contact area corresponding to the sliding operation can be compared with the contact area threshold to determine whether the sliding contact area corresponding to the sliding operation reaches the contact area threshold. Optionally, if the sliding contact area reaches the contact area threshold, all the interface information of the second interface can be memorized; if the sliding contact area does not reach the contact area threshold, part of the interface information of the second interface can be memorized.

[0158] See also Figure 12 , Figure 12 Shows the application Figure 8 The flow chart of step S520 of the service recommendation method is shown in FIG. Figure 12 The process shown is described in detail. In this embodiment, a target button is provided on the housing of the electronic device. The method may specifically include the following steps:

[0159] Step S521B: When a trigger operation acting on the target key is detected, a memory function is triggered, wherein the memory function is used to analyze and store information.

[0160] like Figure 13 As shown, the electronic device 100 includes an electronic body portion, which includes a shell 102 and a screen 103 arranged on the shell 102. The shell 102 includes a front panel, a back cover and a frame. The frame is used to connect the front panel and the back cover. The screen 103 is arranged on the front panel.

[0161] The electronic device is also provided with a target button 101, which is provided on the housing 102 of the electronic device. Exemplarily, the target button 101 can be provided on the back cover of the electronic device, or on the frame of the electronic device, without limitation. As an embodiment, the target button 101 can be provided on the side frame of the housing of the electronic device. Specifically, the frame of the housing can include a bottom frame, a top frame, a first side frame and a second side frame. Usually, the camera of the electronic device is provided close to the top frame, and the device interface of the electronic device is provided on the bottom frame, wherein the device interface can be used to charge the electronic device, transmit data, etc. In an embodiment of the present application, the target button 101 can be provided on the first side frame or the second side frame.

[0162] As an embodiment, the target button can detect a touch gesture input by a user, and the touch gesture may include at least one of a press gesture and a slide gesture, wherein the press gesture includes a single-click gesture and a long-press gesture.

[0163] For example, the target button can be provided with a pressure sensor (such as a force-sensitive resistor) that can sense the force of the button being pressed. Based on the change in pressure, the operating system of the electronic device can determine whether the user lightly presses (single press) or long presses (continuous high pressure) the target button.

[0164] In addition, if it is necessary to detect a sliding gesture input by the user for the target key, the target key also needs to have touch sensing. For example, the target key can be a physical button or sensor with integrated touch sensing, such as a capacitive touch sensor. Of course, the capacitive touch sensor can also detect the user's single click and long press operations. Specifically, the capacitive touch sensor can detect touch events such as touch start, continuous touch, and touch end, so single click and long press operations can be distinguished by combining the duration of the touch event. When the touch sensor detects a touch event (such as sensing an electric field change), the system will start a timer. If the touch duration is very short (usually less than 0.5 seconds), this operation can be judged as a single click. When the sensor detects a touch and the touch duration exceeds a certain threshold (such as 2 seconds), it can be considered a long press operation. The system can determine whether the long press condition is met by detecting the time when the touch starts and comparing the time when the touch ends.

[0165] It should be noted that the target button may be a volume button or a power button of the electronic device. Of course, it may also be a physical button provided other than the volume button and the power button, and there is no limitation on this.

[0166] As an embodiment, the electronic device can detect the trigger operation acting on the target button of the electronic device in real time. Of course, a target condition can also be set. When the electronic device meets the target condition, the trigger operation acting on the target button is detected. That is to say, when the electronic device does not meet the target condition, the electronic device cannot detect the trigger operation acting on the target button. That is to say, in this case, the user cannot trigger the memory function by triggering the target button.

[0167] As an implementation manner, the electronic device meeting the target condition may include:

[0168] As a method, the device status of the electronic device is obtained. If the device status is a specified status, it is determined that the electronic device meets the target conditions, wherein the specified status may include at least one of an unlocked state, a non-screen-off state, an authorized state and a working state. The purpose of allowing the user to operate the target button in the unlocked state is that the user needs to unlock the device to start the recording function to avoid misoperation when the device is in a locked screen state; the non-screen-off state refers to the non-black screen state of the electronic device. The device screen needs to be in a non-black screen state before screen recording can be performed; if the device is in a sleep or screen-off state, the screen needs to be woken up first; the authorized state refers to the electronic device currently having a service corresponding to the use of content memory, for example, for screen memory, the corresponding service is a screenshot or screen recording function, and for voice memory, the corresponding service is a microphone service; the working state refers to the electronic device being in a normal working state, the electronic device is not in low power mode, or the system has no faults, ensuring that the recording function can be started smoothly.

[0169] As another approach, the system resources of the electronic device are obtained, and if the system resources meet the usage conditions, it is determined that the electronic device meets the target conditions. The system resources may include at least one of the electronic device's storage space and data processing capacity. Regarding storage space, the electronic device needs to have sufficient storage space to store screen and voice recording data. If the storage space is insufficient, a prompt should be given and the user should be asked to free up space. The sufficient storage space may be determined to be greater than a specified threshold value, wherein the specified threshold value can be set based on actual usage needs and is not limited thereto. The data processing capacity may include processor and memory resources. Specifically, the processor resources may include at least one of CPU usage, processor frequency, and information about available cores. The information about available cores may include the type of cores that are not currently executing tasks, wherein the processing capacity of large cores is greater than that of small cores. Therefore, the processor resources of the electronic device, and thus the data processing capacity of the electronic device, can be determined by using the information about CPU usage, processor frequency, and available cores. The implementation method for determining that the system resources meet the usage conditions is that the system resources are greater than a preset lower limit.

[0170] As another approach, the current usage scenario of the electronic device is obtained. If the usage scenario is not a preset scenario, the electronic device is determined to meet the target condition. The preset scenario may be a pre-set scenario that is not suitable for content memorization. If the content memorization is screen memorization, i.e., recording the content displayed on the screen, the preset scenario may include a scenario where private data is displayed on the screen. Specifically, the application running on the electronic device screen is determined. If the application is a preset application, the usage scenario is determined to be a preset scenario. The preset application may be a pre-set application that requires privacy protection, such as a security, banking, or payment application. Furthermore, the preset scenario may also include a preset time period. That is, if the electronic device is currently in a preset time period, the usage scenario is determined to be a preset scenario. The preset time period may be a time period when the user is resting. Content memorization is not performed during this time period to prevent incorrect operations. The rest time period can be determined based on user usage statistics, for example, by monitoring the type, duration, and frequency of application usage by the user. If the user does not open any applications or perform other operations within a certain period of time, the time period can generally be considered rest time. For example, if a user doesn't interact with their phone for a long time, such as browsing social media, playing games, or watching videos, this may indicate they are taking a break. Another example is by recording the user's unlocking behavior. If a user doesn't unlock their phone for a period of time, it can generally be inferred that this period was a break.

[0171] It is understandable that the trigger operation may include short press, long press, continuous click, sliding and other operations. Based on the trigger operation, the implementation method of triggering the memory function may be to determine whether the trigger operation is a specified operation. If it is a specified operation, the memory function is triggered. In this implementation, the content memory may be a pre-set memory method, for example, it may be screen memory or voice memory. When it is determined that the trigger operation input by the user for the target button is a specified operation, the memory function is executed. In the case of multiple memory functions, it may refer to different specified operations, and each specified operation corresponds to a memory function. The specified operation to which the trigger operation belongs is determined, and the memory function corresponding to the specified operation is used as the memory function triggered this time.

[0172] As another implementation manner, the implementation manner of triggering the memory function may also be based on the duration of the trigger operation, and triggering the memory function based on the duration.

[0173] Therefore, in the embodiment of the present application, the user can quickly start the content memory function by triggering the target button to perform the corresponding content memory operation, thereby improving the convenience of the content memory triggering process and reducing the user's operation complexity.

[0174] See also Figure 14 , Figure 14 FIG. 6 shows a sixth interface diagram of an electronic device provided in an embodiment of the present application. Figure 14 As shown, when the electronic device is displaying the second interface, the user can trigger the memory function by performing a trigger operation on the target button.

[0175] Step S522B: memorize all or part of the interface information in the second interface to obtain the memorized information.

[0176] For the detailed description of step S522B, please refer to step S522A, which will not be repeated here.

[0177] Step S530: When the memory information satisfies the service recommendation rule, determining the trigger condition based on the memory information.

[0178] In this embodiment, when the memory information is obtained from the second interface, it can be detected whether the memory information meets the service recommendation rule of the service scenario. If it is detected that the memory information meets the service recommendation rule of the service scenario, the trigger condition of the service scenario can be determined based on the memory information.

[0179] In some embodiments, when memory information is obtained from the second interface, it can be detected whether the content contained in the memory information hits the service recommendation rules of the service scenario. If it is detected that the content contained in the memory information hits the service recommendation rules of the service scenario, it can be determined that the memory information meets the service recommendation rules of the service scenario; if it is detected that the content contained in the memory information does not hit the service recommendation rules of the service scenario, it can be determined that the memory information does not meet the service recommendation rules of the service scenario. As an example, assuming that the content contained in the memory information includes the address, time, and ticket content of the scenic spot, it can be determined that the memory information meets the service recommendation rules of the service scenario.

[0180] As an implementable approach, when the memory information is obtained on the second interface, key information can be extracted from the memory information and tested to see if the key information matches the service recommendation rules of the service scenario. If it is detected that the key information matches the service recommendation rules of the service scenario, it can be determined that the memory information satisfies the service recommendation rules of the service scenario; if it is detected that the key information does not match the service recommendation rules of the service scenario, it can be determined that the memory information does not meet the service recommendation rules of the service scenario.

[0181] See also Figure 15 , Figure 15 Shows the application Figure 8The following is a flow chart of step S530 of the service recommendation method. Figure 15 The process shown is described in detail, and the method may specifically include the following steps:

[0182] Step S531: Identify key information in the memory information.

[0183] In some implementations, when the memory information satisfies the service recommendation rules of the service scenario, key information in the memory information may be identified.

[0184] As an implementable method, when the memory information meets the service recommendation rules of the service scenario, deep semantic understanding technology can be used to analyze and identify the memory information to obtain the key information in the memory information.

[0185] Step S532: Determine the trigger condition based on the key information.

[0186] In some implementations, when key information is obtained from the memory information, the triggering condition of the service scenario can be determined based on the key information.

[0187] As an example, assuming that the key information obtained from the memory information is "on sale at 9:00 am on April 27, 2025", "9:00 am on April 27, 2025" can be determined as the trigger condition of the service scenario.

[0188] As another example, assuming that the key information obtained from the memory information is "the address of the scenic spot is XX", "XX" can be determined as the trigger condition of the service scenario.

[0189] Step S540: Detect the current scene.

[0190] Step S550: When the current scenario meets the triggering condition of the service scenario, output service recommendation information, wherein the triggering condition is determined based on the memory information of the service recommendation rules that meet the service scenario stored in the electronic device, and the service recommendation information is associated with the memory information.

[0191] For the detailed description of steps S540 to S550 , please refer to steps S110 to S120 , which will not be repeated here.

[0192] An embodiment of the present application provides a method for obtaining service recommendations, which displays a second interface, obtains memory information from the second interface when a memory trigger operation for the second interface is detected, determines trigger conditions based on the memory information when the memory information meets the service recommendation rules, detects the current scene, and outputs service recommendation information when the current scene meets the trigger conditions. The service recommendation information is associated with the memory information. Figure 1 The service recommendation method shown in this embodiment also supports users to obtain memory information from the interface through memory trigger operations, and determine trigger conditions based on the memory information to enhance the user's interactive experience.

[0193] See also Figure 16 , Figure 16 The module block diagram of the service recommendation device provided by an embodiment of the present application is shown. The service recommendation device 200 is applied to the above electronic device. Figure 16 As illustrated in the block diagram, the service recommendation device 200 includes:

[0194] The scene detection module 210 is used to detect the current scene.

[0195] The service recommendation information output module 220 is used to output service recommendation information when the current scenario meets the trigger condition of the service scenario, wherein the trigger condition is determined based on the memory information of the service recommendation rules that meet the service scenario stored in the electronic device, and the service recommendation information is associated with the memory information.

[0196] Furthermore, the service recommendation information output module 220 includes a service card display submodule, wherein:

[0197] The service card display submodule is used to display a first service card when the current scene meets the trigger condition, wherein the first service card includes a recommended processing task and a target control associated with the memory information, and the target control is used to trigger the processing of the recommended processing task.

[0198] Furthermore, the service card display submodule includes: a service card display unit, wherein:

[0199] A service card display unit is configured to display the first service card and the second service card when the current scenario satisfies the trigger condition, wherein the second service card includes an application associated with the recommended processing task.

[0200] Furthermore, the service recommendation information output module 220 includes a service recommendation information display submodule, wherein:

[0201] The service recommendation information display submodule is used to display the service recommendation information on the desktop when the current scene meets the trigger condition.

[0202] Furthermore, the service recommendation device 200 further includes: a first interface display module, wherein:

[0203] The first interface display module is used to display the first interface, wherein the first interface includes the memory information and the service recommendation switch, the service recommendation switch is in the on state, and the service recommendation switch is used to control the opening or closing of the service recommendation function.

[0204] Furthermore, the service recommendation device 200 further includes: a switch state switching module, wherein:

[0205] The switch state switching module is used to control the service recommendation switch to switch from the on state to the off state when a touch operation acting on the service recommendation switch is detected.

[0206] Furthermore, the service recommendation device 200 further includes: a second interface display module, a memory information acquisition module, and a trigger condition determination module, wherein:

[0207] The second interface display module is used to display the second interface.

[0208] A memory information acquisition module is used to acquire the memory information from the second interface when a memory triggering operation on the second interface is detected.

[0209] Furthermore, the memory information acquisition module includes: a first memory function triggering submodule and a first memory information acquisition submodule, wherein:

[0210] The first memory function triggering submodule is used to trigger the memory function when it is detected that the sliding operation acting on the second interface meets the multi-finger sliding condition, wherein the memory function is used to analyze and store information.

[0211] The first memory information acquisition submodule is used to memorize all or part of the interface information in the second interface to obtain the memory information.

[0212] Furthermore, the memory information acquisition module further includes a multi-finger sliding condition determination submodule, wherein:

[0213] The multi-finger sliding condition determination submodule is configured to determine that the sliding operation satisfies the multi-finger sliding condition when it is detected that the number of sliding points corresponding to the sliding operation is equal to or greater than three.

[0214] Furthermore, a target button is provided on the housing of the electronic device, and the memory information acquisition module includes: a second memory function triggering submodule and a second memory information acquisition submodule, wherein:

[0215] The second memory function triggering submodule is used to trigger the memory function when a triggering operation acting on the target key is detected, wherein the memory function is used to analyze and store information.

[0216] The second memory information acquisition submodule is used to memorize all or part of the interface information in the second interface to obtain the memory information.

[0217] A trigger condition determination module is used to determine the trigger condition based on the memory information when the memory information meets the service recommendation rule.

[0218] Furthermore, the trigger condition determination module includes: a key information identification submodule and a trigger condition determination submodule, wherein:

[0219] The key information identification submodule is used to identify the key information in the memory information.

[0220] The trigger condition determination submodule is used by the user to determine the trigger condition based on the key information.

[0221] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0222] In several embodiments provided in this application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0223] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0224] See also Figure 17 , which shows a structural block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 can be an electronic device capable of running applications, such as a smartphone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0225] The processor 110 may include one or more processing cores. The processor 110 utilizes various interfaces and circuits to connect various components within the electronic device 100. It executes instructions, programs, code sets, or instruction sets stored in the memory 120, and accesses data stored in the memory 120 to perform various functions and process data within the electronic device 100. Optionally, the processor 110 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 110 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing displayed content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 110 and may be implemented separately via a communication chip.

[0226] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing functions (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat history data), etc., created by the electronic device 100 during use.

[0227] In some embodiments, the electronic device 100 may further include a touch screen, wherein the touch screen is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic device 100. These graphical user interfaces may be composed of graphics, text, icons, numbers, videos, and any combination thereof. In one example, the touch screen may be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), which is not limited here.

[0228] In some embodiments, the electronic device 100 may further include a camera for collecting user motion data. Optionally, the camera may include a front camera, a rear camera, a telescopic camera, a rotating camera, etc., which are not limited here.

[0229] In some embodiments, the electronic device 100 may further include a sensor, wherein the sensor may include a light sensor, which may be used to turn off the display of the touch screen when an object approaches the touch screen, for example, when the main body of the electronic device is moved to the ear. The sensor may include a pressure sensor, which may be used to detect the pressure generated by pressing on the electronic device, that is, the pressure sensor may detect the pressure generated by the contact or pressing between the user and the electronic device, such as the pressure generated by the contact or pressing between the user's ear or finger and the electronic device. The sensor may include a gravity sensor, which is used to detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. In addition, the electronic device may also be equipped with other sensors such as gyroscopes, barometers, hygrometers, etc., which are not limited here.

[0230] In some embodiments, the electronic device 100 may further include an artificial intelligence module, wherein the artificial intelligence module may be integrated into the processor 110 of the electronic device 100 to enhance the intelligence level and performance of the electronic device.

[0231] Of course, the electronic device may also include many other components, which will not be described in detail here.

[0232] See also Figure 18 , which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 300 stores program code, which can be called by a processor to execute the method described in the above method embodiment.

[0233] The computer-readable storage medium 300 can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has storage space for program code 310 for executing any of the method steps described above. These program codes can be read from or written to one or more computer program products. The program code 310 can be compressed, for example, in a suitable form.

[0234] In some implementations, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the function recommendation method in the embodiment of the present application.

[0235] To summarize, the service recommendation method, device, electronic device, storage medium, and program product provided in the embodiments of the present application detect the current scene, and output service recommendation information when the current scene meets the triggering conditions of the service scene, wherein the triggering conditions are determined based on the memory information of the service recommendation rules that meet the service scene stored in the electronic device, and the service recommendation information is associated with the memory information, so that the triggering conditions of the service scene are determined through the memory information stored in the electronic device, so that corresponding service recommendations are made when the current scene meets the triggering conditions, so that the service recommendation is strongly associated with the user's historical behavior, thereby improving the service recommendation effect.

[0236] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A service recommendation method, characterized in that: Applied to electronic equipment, the method includes: Detect the current scene; When the current scenario meets the triggering condition of the service scenario, service recommendation information is output, wherein the triggering condition is determined based on the memory information of the service recommendation rules that meet the service scenario stored in the electronic device, and the service recommendation information is associated with the memory information.

2. The method according to claim 1, characterized in that When the current scenario meets the triggering condition of the service scenario, outputting service recommendation information includes: When the current scene meets the trigger condition, a first service card is displayed, wherein the first service card includes a recommended processing task and a target control associated with the memory information, and the target control is used to trigger the processing of the recommended processing task.

3. The method according to claim 2, characterized in that The displaying of the first service card when the current scene meets the trigger condition includes: When the current scenario satisfies the trigger condition, the first service card and the second service card are displayed, wherein the second service card includes an application associated with the recommended processing task.

4. The method according to any one of claims 1 to 3, characterized in that When the current scenario meets the triggering condition of the service scenario, outputting service recommendation information includes: When the current scenario meets the trigger condition, the service recommendation information is displayed on the desktop.

5. The method according to any one of claims 1 to 3, characterized in that The method further comprises: The first interface is displayed, wherein the first interface includes the memory information and the service recommendation switch, the service recommendation switch is in the on state, and the service recommendation switch is used to control the opening or closing of the service recommendation function.

6. The method according to claim 5, characterized in that After displaying the first interface, the method further includes: When a touch operation acting on the service recommendation switch is detected, the service recommendation switch is controlled to switch from the on state to the off state.

7. The method according to any one of claims 1 to 3, characterized in that Before detecting the current scene, the method further includes: Display the second interface; When a memory triggering operation on the second interface is detected, acquiring the memory information from the second interface; In a case where the memory information satisfies the service recommendation rule, the trigger condition is determined based on the memory information.

8. The method according to claim 7, characterized in that The determining the trigger condition based on the memory information includes: identifying key information in the memory information; The trigger condition is determined based on the key information.

9. The method according to claim 7, characterized in that The acquiring the memory information from the second interface when a memory triggering operation on the second interface is detected includes: When it is detected that the sliding operation on the second interface meets the multi-finger sliding condition, triggering a memory function, wherein the memory function is used to analyze and store the information; All or part of the interface information in the second interface is memorized to obtain the memorized information.

10. The method according to claim 9, characterized in that Before triggering the memory function when detecting that the sliding operation on the second interface meets the multi-finger sliding condition, the method further includes: When it is detected that the number of sliding points corresponding to the sliding operation is equal to or greater than three, it is determined that the sliding operation satisfies the multi-finger sliding condition.

11. The method according to claim 7, characterized in that A target button is provided on the housing of the electronic device, and when a memory triggering operation on the second interface is detected, acquiring the memory information from the second interface includes: When a trigger operation acting on the target key is detected, a memory function is triggered, wherein the memory function is used to analyze and store the information; All or part of the interface information in the second interface is memorized to obtain the memorized information.

12. A service recommendation device, characterized in that: Applied to electronic equipment, the device comprises: A scene detection module, used to detect the current scene; A service recommendation information output module is used to output service recommendation information when the current scenario meets the triggering conditions of the service scenario, wherein the triggering conditions are determined based on the memory information of the service recommendation rules that meet the service scenario stored in the electronic device, and the service recommendation information is associated with the memory information.

13. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory is coupled to the processor, and the memory stores instructions. When the instructions are executed by the processor, the processor performs the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.