Desktop card sorting method, electronic device and medium
By adjusting the sorting of desktop cards according to user operation behavior, the problem in the prior art that the default arrangement of desktop cards cannot adapt to user habits is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202310207511.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-02-24
AI Technical Summary
The default arrangement of desktop cards in existing terminal devices cannot adapt to the behavioral habits of different users, causing users to need to slide cards to find their favorite cards, which wastes time and reduces user experience.
By obtaining the user's operating behavior on desktop cards, the reward parameters of each card are determined, and the sorting order of the cards is adjusted based on these parameters so that the user's favorite cards are placed at the top. Specific methods include classifying cards of different categories, clustering them based on attributes such as click-through rate, removal rate, business frequency and exposure duration, and optimizing the sorting through the UCB algorithm.
It improves the user experience by dynamically adjusting the card sorting, making it easier for users to access commonly used cards, and reducing the time spent by users looking for cards.
Smart Images

Figure CN117112087B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a method for sorting desktop cards, an electronic device, and a medium. Background Art
[0002] In recent years, intelligence has become the focus of terminal manufacturers. Desktop cards, as an important entry point for providing users with intelligent services, play an important role in improving user experience.
[0003] At present, a general terminal device will be equipped with multiple desktop cards, such as weather cards, subway cards, and express cards. Multiple cards will be stacked together. Terminal manufacturers will configure a default arrangement for the desktop cards of each terminal device in advance. However, since each user has different behavioral habits, this default arrangement cannot be applied to each different user. Users may need to slide the desktop cards to find their favorite or frequently used cards, which wastes time and causes a poor user experience. Summary of the invention
[0004] The desktop card sorting method and electronic device provided in the present application aim to adjust the arrangement of desktop cards according to user behavior feedback to enhance the user experience.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the present application provides a method for sorting desktop cards, which can be applied to an electronic device including a camera, including:
[0007] The user's operation behavior on the desktop cards in the card pile is obtained, and the reward parameters corresponding to each desktop card are determined according to the operation behavior, and then the desktop cards in the card pile are sorted from large to small according to the reward parameters to obtain a first sequence, and the original arrangement order of the desktop cards in the preset card pile is adjusted according to the arrangement order of the desktop cards in the first sequence to complete the sorting of the desktop cards. In this way, the present application can reflect the user's preference for different desktop cards according to the user's different operations on different desktop cards, and then the original arrangement order of the desktop cards can be adjusted according to the user's preference for the desktop cards, so that the desktop cards that the user likes or uses frequently are sorted at the top of the card pile, which can also improve the user's experience.
[0008] In some possible implementations, different categories of desktop cards have different user behavior patterns. For example, some desktop cards require users to click, while some desktop cards do not require users to click to obtain information. Therefore, desktop cards need to be classified.
[0009] Specifically, before obtaining the user's operation behavior on the desktop cards in the card pile, the desktop cards in the card pile can be classified based on preset rules, and then the reward parameters of each desktop card in the corresponding category can be determined according to the operation behavior.
[0010] In some possible implementations, the desktop cards in the card pile can also be classified based on the attributes of the cards, wherein the attributes of the desktop cards can be click-through rate, removal rate, business frequency, and expected exposure time. The desktop cards can be clustered and classified based on some or all of the four card attributes such as click-through rate, removal rate, business frequency, and expected exposure time through a clustering algorithm. Then, the reward parameters of each desktop card in the corresponding category are determined according to the operation behavior.
[0011] In some possible implementations, the operation behaviors may include: a click operation, a remove operation, and a sliding operation of placing a desktop card on top.
[0012] Specifically, the click reward parameters of the corresponding desktop card under the corresponding category can be determined according to the user's click operation on a single desktop card, the removal reward parameters of the corresponding desktop card under the corresponding category can be determined according to the user's removal operation on a single desktop card, the reward parameters of the corresponding desktop card under the corresponding category can be determined according to the user's sliding operation on a single desktop card to the top, and then the reward parameters of the corresponding desktop card can be determined according to the sum of the click reward parameters, removal reward parameters and top reward parameters in each desktop card.
[0013] In some possible implementations, the user may click on the top desktop card due to an error, so the user may slide the card to put it on the top and then click it. Compared with directly specifying a click, it can better reflect the user's preference. The same is true for removal. Therefore, the above three actions can also be specifically divided. For example, clicks are divided into top clicks and non-top clicks, removals are divided into top removals and non-top removals, and sliding the desktop card to the top is divided into sliding the desktop card to the top. The exposure time is less than the first threshold, the exposure time of sliding the desktop card to the top is greater than the first threshold and less than the second threshold, and the exposure time of sliding the desktop card to the top is greater than the second threshold, which is specifically refined into 7 actions. Among them, the first threshold and the second threshold can be set according to needs.
[0014] In some possible implementations, the exposure time of sliding a desktop card to the top is not the effective exposure time for users to read. Therefore, it is necessary to determine the range of effective exposure time to determine whether the exposure time after the card is slid to the top is within the range of effective exposure time for users to read.
[0015] Specifically, the single exposure duration of multiple desktop cards and the number of desktop cards corresponding to each exposure duration can be obtained, and the distribution of the exposure duration is estimated by kernel density estimation to obtain the estimated probability density curve f, such as Figure 7 As shown, the first picture at the top is the estimated probability density distribution, the horizontal axis is the single exposure time of the desktop card, and the vertical axis is the number of desktop cards corresponding to each exposure time.
[0016] It can be considered that the effective exposure time distribution of user reading is gamma distribution, that is, Figure 7 The probability density distribution of the third picture at the bottom is that the distribution of meaningless exposure time is exponential distribution, that is, Figure 7 For the second probability density distribution in the middle, the density curve f can be equal to the sum of a times the exponential distribution and b times the gamma distribution. The construction function is as follows:
[0017]
[0018] In general, f(x)′ can be considered to be f, but in some cases, there may be a deviation between the values of f(x)′ and f. In order to reduce the deviation and make f(x)′ infinitely close to f, an optimization algorithm (for example, Newton's method, quasi-Newton's method, etc.) can be used to optimize the value of f(x)′ and solve the parameters in the above formula to obtain:
[0019]
[0020] According to the above formula, the effective exposure time can be taken as: the value interval of the gamma distribution cumulative distribution function>90%, which can be the exposure time [0.55, 2] seconds. Of course, the effective exposure time interval here is only one possible implementation method, and technical personnel in this field can also set it according to needs.
[0021] In some possible implementations, the reward parameter includes a reward score. According to the reward score of the desktop card, the card click willingness p' is determined. However, in some cases, there is a deviation Δ between the actual card click willingness p and the estimated click willingness p'. The UCB algorithm always optimistically assumes that the card click willingness is p'+Δ.
[0022] Specifically, assuming that in T rounds of sorting, a card appears k times in total, p′ can be calculated using the following formula:
[0023]
[0024] Among them, b i For operational behavior, r iFor example, in 5 rounds of sorting, a desktop card appears 3 times, that is, it is pinned, and the user's operation behavior is to pin it twice and click it once, then the sum of the pinned click operation multiplied by the bonus score under the corresponding card category, the pinned click operation multiplied by the bonus score under the corresponding card category, and the non-pinned click operation multiplied by the bonus score under the corresponding card category can be divided by the 3 times it appears. Of course, this is just an example and is not limited here.
[0025] The uncertainty Δ is calculated as follows:
[0026]
[0027] Then calculate the value of P with p′+Δ, and sort the corresponding desktop cards according to the P value from large to small. It should be noted that the desktop card with the largest P value is placed on the top, followed by the desktop card with the second largest P value, and sorted in this order.
[0028] In some possible implementations, user data such as the top-up duration, card attributes, and exposure duration of each desktop card can also be obtained, and the user's preference for the desktop card can be roughly inferred based on the user data of the desktop card. Then, a model applicable to each user can be trained based on the user data of each desktop card, and the desktop cards can be sorted based on the model to obtain the original arrangement order of the desktop cards in the preset card pile.
[0029] In a second aspect, the present application provides an electronic device, including: a processor and a memory;
[0030] One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the electronic device performs the method described in any one of the first aspects.
[0031] In a third aspect, the present application provides a computer storage medium, comprising computer instructions, which, when executed on a mobile terminal, enables the electronic device to execute the method described in any one of the first aspects.
[0032] It can be seen from the above technical solution that the present application has the following beneficial effects:
[0033] The present application provides a method and electronic device for sorting desktop cards, which relates to the field of electronic technology, including: obtaining a user's operation behavior on desktop cards in a card pile, determining a reward parameter corresponding to each desktop card according to the operation behavior, sorting the desktop cards in the card pile from large to small according to the reward parameter, obtaining a first sequence, and adjusting the original arrangement order of the desktop cards in the preset card pile according to the arrangement order of the desktop cards in the first sequence to complete the sorting of the desktop cards. In this way, the present application can reflect the user's preference for different desktop cards according to the user's different operations on different desktop cards, and then adjust the original arrangement order of the desktop cards according to the user's preference for the desktop cards, so that the desktop cards that the user likes or uses frequently are sorted at the top of the card pile, which can also improve the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 An exemplary diagram of the composition of an electronic device provided in an embodiment of the present application;
[0035] Figure 2 An example diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0036] Figure 3 A schematic diagram of displaying a table card provided in an embodiment of the present application;
[0037] Figure 4 A weather desktop card display information interface diagram provided in an embodiment of the present application;
[0038] Figure 5 A schematic diagram of stacking multiple desktop cards provided in an embodiment of the present application;
[0039] Figure 6 A flowchart of a method for sorting desktop cards is provided for an embodiment of the present application;
[0040] Figure 7 A schematic diagram of a probability density curve provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The terms "first", "second", "third", etc. in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.
[0042] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0043] In order to make the description of the following embodiments clear and concise, a brief introduction to the related technology is first given:
[0044] Desktop cards, also called service cards, are a new form of mobile application page content display. The content of the application page can be placed on the card to achieve direct service access and reduce the level of experience. Service cards can be placed anywhere, and users can customize their own desktop style.
[0045] Some system apps, such as music, calendar, weather, clock, sports and health, email, memo, smart life, camera, gallery, call and Changlian, can be displayed in the form of service cards. The addition of service card functions has greatly improved the convenience of using apps. Many functions that originally required opening apps can now be realized by directly operating service cards, which increases the user's intelligent experience.
[0046] At present, a general terminal device will be equipped with multiple desktop cards, such as weather cards, subway cards, and express cards. Multiple cards will be stacked together. Terminal manufacturers will configure a default arrangement for the desktop cards of each terminal device in advance. However, since each user has different behavioral habits, this default arrangement cannot be applied to each different user. Users may need to slide the desktop cards to find their favorite or frequently used cards, which wastes time and causes a poor user experience.
[0047] In view of this, the present application provides a method and electronic device for sorting desktop cards, which relates to the field of electronic technology, including: obtaining the user's operation behavior on the desktop cards in the card pile, determining the reward parameter corresponding to each desktop card according to the operation behavior, sorting the desktop cards in the card pile from large to small according to the reward parameter, obtaining a first sequence, and adjusting the original arrangement order of the desktop cards in the preset card pile according to the arrangement order of the desktop cards in the first sequence to complete the sorting of the desktop cards. In this way, the present application can reflect the user's preference for different desktop cards according to the user's different operations on different desktop cards, and then adjust the original arrangement order of the desktop cards according to the user's preference for the desktop cards, so that the desktop cards that the user likes or uses frequently are sorted at the top of the card pile, which can also improve the user's experience.
[0048] In some embodiments, the electronic device may be a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, a smart watch, etc. The present application does not impose any special restrictions on the specific form of the above electronic devices. In this embodiment, the structure of the electronic device may be as follows: Figure 1 As shown, Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0049] like Figure 1 As shown, the electronic device may include a processor 110, an internal memory 121, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a camera 193, a display screen 194, etc. The sensor module 180 may include a gyroscope sensor 180B, a touch sensor 180K, etc.
[0050] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0051] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors. For example, in the present application, the processor 110 may be an image signal processor.
[0052] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0053] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0054] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0055] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface to realize the touch function of the electronic device.
[0056] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to realize the shooting function of the electronic device. The processor 110 and the display screen 194 communicate via the DSI interface to realize the display function of the electronic device.
[0057] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0058] It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0059] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0060] A series of graphical user interfaces (GUIs) can be displayed on the display screen 194 of the electronic device, and these GUIs are the main screens of the electronic device. Generally speaking, the size of the display screen 194 of the electronic device is fixed, and only limited controls can be displayed on the display screen 194 of the electronic device. A control is a GUI element, which is a software component included in an application program, and controls all data processed by the application program and interactive operations on the data. Users can interact with the control through direct manipulation to read or edit relevant information of the application program. Generally speaking, a control can include visual interface elements such as icons, controls, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.
[0061] The electronic device can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0062] Generally, the image signal processor includes modules such as image front end (IFE), Bayer processing segment (BPS), image processing engine (IPE), and encoder. Optionally, the encoder can encode based on JPEG (joint photographic experts group) algorithm.
[0063] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0064] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0065] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy.
[0066] Video codecs are used to compress or decompress digital videos. Electronic devices can support one or more video codecs. In this way, electronic devices can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0067] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously self-learn. NPU can realize applications such as intelligent cognition of electronic devices, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0068] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0069] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device can be provided with at least one microphone 170C. In other embodiments, the electronic device can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, and directional recording function, etc.
[0070] The gyro sensor 180B can be used to determine the motion posture of the electronic device. In some embodiments, the angular velocity of the electronic device around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0071] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device, which is different from the position of the display screen 194.
[0072] In addition, an operating system is running on the above components, such as the iOS operating system developed by Apple, the Android open source operating system developed by Google, and the Windows operating system developed by Microsoft. Application programs can be installed and run on the operating system.
[0073] The operating system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device.
[0074] Figure 2 It is an example diagram of the software structure of the electronic device according to the embodiment of the present application.
[0075] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, framework layer, Android runtime and system library, and kernel layer.
[0076] The application layer can include a series of application packages. Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0077] The framework layer provides application programming interface (API) and programming framework for the application layer. The framework layer includes some predefined functions. Figure 2 As shown, the framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0078] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0079] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0080] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0081] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
[0082] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0083] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0084] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0085] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0086] The application layer and framework layer run in the virtual machine. The virtual machine executes the java files of the application layer and framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0087] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0088] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0089] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0090] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0091] A 2D graphics engine is a drawing engine for 2D drawings.
[0092] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0093] It should be noted that although the embodiments of the present application are described using the Android system as an example, its basic principles are also applicable to electronic devices based on operating systems such as iOS and Windows.
[0094] Figure 3 After the electronic device is turned on, the display screen 194 displays a table card. On the display screen 194 display interface, when the user performs a touch operation on the touch sensor 180K, the touch sensor 180K can obtain the user's touch operation and report the touch operation to the processor 110. After receiving the touch operation sent by the touch sensor 180K, the processor 110 can respond to the touch operation and start the table card corresponding to the touch operation. It should be noted that Figure 3 The desktop card 301 is located at the top of the screen. Of course, the desktop card 301 can be moved, and the user can move the desktop card 301 by dragging the desktop card 301.
[0095] After the desktop card corresponding to the touch operation is started, the display screen 194 of the electronic device can display the specific content of the corresponding desktop card. For example, the desktop card clicked by the touch operation is a weather card. Figure 4 As shown, after the user touches and clicks the weather desktop card, the display screen 194 shows the weather desktop card display information interface diagram. Figure 4 As can be seen from the figure, the interface diagram may include: displaying the location of the electronic device, the current weather conditions and temperature at the location, and also displaying the weather conditions and temperature at other times of the location. Of course, the weather card is only used as an example here, and no specific limitation is made.
[0096] As smart scenes increase, the number of desktop cards displayed by electronic devices also increases, for example, ticket purchase cards, information reminder cards, etc. Figure 5 As shown, with the increase of desktop cards, in order to save desktop space of the electronic device, many desktop cards can be stacked together to form a card pile. The terminal manufacturer will configure a default arrangement for the desktop cards in the card pile of each terminal device in advance.
[0097] Furthermore, the cloud side or the terminal side can obtain user data such as the top-pinning duration, card attributes, and exposure duration of each desktop card, and roughly infer the user's liking for the desktop card based on the user data of the desktop card. Then, a model applicable to each user can be trained based on the user data of each desktop card, and the desktop cards are sorted based on the model to obtain the original arrangement order of the desktop cards in the preset card pile. The model can also be trained based on a certain user data, for example, the exposure duration of each desktop card is obtained, and the user's liking for the desktop card can be roughly inferred based on the exposure duration of the desktop card. Then, a model applicable to each user can be trained through the exposure time of each desktop card, and the desktop cards can be sorted based on the model. For example, there are 3 desktop cards, desktop card 1, desktop card 2, and desktop card 3, and the exposure time corresponding to each desktop card is 60 minutes, 45 minutes, and 30 minutes, respectively. Then, the 3 desktop cards are stacked from long to short according to the exposure length. The exposure time of desktop card 1 is 60 minutes, which has the longest exposure time among the 3 desktop cards and is placed at the top of the card stack, followed by desktop card 2. Desktop card 2 has an exposure time of 45 minutes and is placed below desktop card 1. The exposure time of desktop card 3 is 30 minutes, which has the shortest exposure time among the 3 desktop cards. Based on this principle, the default arrangement of desktop cards in the card stack is formed.
[0098] However, since users' operating behaviors have certain regularities and different users have different behavioral preferences, each user is accustomed to clicking on different desktop cards or likes different desktop cards. Therefore, this default arrangement method cannot be applied to every different user. Users may need to slide desktop cards to find their favorite or frequently used desktop cards, which wastes time and causes a poor user experience.
[0099] In order to solve the above problems, the present application proposes a desktop card sorting method and an electronic device. In order to make the technical solution of the present application clearer and easier to understand, the desktop card sorting method provided by the embodiment of the present application is introduced from the perspective of the electronic device and in combination with the accompanying drawings. Figure 6 As shown in FIG. 1 , the figure is a flow chart of a method for sorting desktop cards provided in an embodiment of the present application, the method comprising:
[0100] S601: Classify desktop cards.
[0101] Different service cards in the desktop card pile provide different services to users, so the cards need to be classified.
[0102] Furthermore, user behavior patterns are different for different categories of desktop cards. For example, some desktop cards require users to click, while some desktop cards do not require users to click to obtain information. Therefore, desktop cards need to be classified.
[0103] For example, desktop cards are divided into two categories, one is Class A desktop cards, and the other is Class B desktop cards. Class A cards may include flight information cards, weather cards, or express information cards, etc. This type of desktop card usually does not require users to click on it to obtain the corresponding content information in the desktop card. For example, taking the flight information card as an example, if a user purchases a flight, the flight information card can display the start time, terminal information, etc. of the flight. At this time, as long as the card is displayed, the user does not need to click on the card to obtain the flight information they want.
[0104] Another type of Class B desktop cards may include subway information cards, concert information cards or shopping cards, etc. This type of desktop card usually requires users to click on it to obtain the corresponding content information in the desktop card. For example, taking the subway information card as an example, if the user wants to go to a certain subway station, he needs to click on the card to query the subway line. At this time, the card needs to be displayed, and the user needs to click on the card to obtain the subway information he wants.
[0105] In some possible implementations, desktop cards can be divided into three categories based on preset rules, namely task reminders, information presentation, and convenient services.
[0106] Each major category can be divided into several subcategories as shown in Table 1:
[0107]
[0108] Among them, the travel reminder category can include, for example, travel information cards, etc. For example, if a user has booked a high-speed rail ticket for a trip, the travel information card will display the high-speed rail start time and start location, etc. The event start reminder category can include, for example, a ticket purchase time reminder card, for example, if the high-speed rail ticket to City A goes on sale at 4 pm tomorrow, the ticket purchase time reminder card will display the information that needs to be reminded to the user. The pickup reminder category can include, for example, a courier card, for example, if a user has a courier arriving at a post station, the courier card can display the courier information to remind the user to pick up the courier. Information display cards, for example, can be weather cards, and the user does not need to click to obtain the corresponding weather information in the desktop card. Information progress display cards, for example, can be new energy vehicle charging information cards, which can display the charging progress of new energy vehicles. Place service category, for example, can be a subway card. When the user arrives at the subway station, the subway card can display the QR code for taking the subway. Habit service recommendation, for example, can be a habit recommendation card. For example, if the user is used to reading at 9 o'clock every night, the habit recommendation card can recommend books to the user at 9 o'clock every night. Related service recommendation category, for example, can include hospital cards. When the user arrives at the hospital, the hospital card can display information such as the electronic medical insurance card.
[0109] In this way, desktop cards can be divided into three major categories and eleven subcategories.
[0110] In some possible implementations, the desktop cards may be clustered using a clustering algorithm.
[0111] Furthermore, desktop cards can be classified based on some or all of the four card attributes, such as click-through rate, removal rate, business frequency, and expected exposure time. Among them, click-through rate refers to the proportion of corresponding desktop cards that are clicked among all desktop cards within a period of time, removal rate refers to the proportion of corresponding desktop cards that are clicked out among all desktop cards within a period of time, business frequency refers to the number of times the corresponding desktop card is pinned within a period of time, and expected exposure time refers to the expected exposure time of the corresponding desktop card when it goes online, that is, the pinning time. Of course, card attributes are not limited to these four types, and can also be set according to actual needs.
[0112] Specifically, the desktop cards are classified and introduced based on all the attributes of the four card attributes such as click-through rate, removal rate, business frequency and expected exposure time. In space, each card attribute of click-through rate, removal rate, business frequency and expected exposure time can be regarded as a dimension of the desktop card, so as to score the dimension and represent the desktop card in the form of a vector. The first deviation angle threshold and the first spatial offset threshold can be set in advance, and then the number of categories to be clustered k is selected, and the sphere centers of k cluster sets are selected. It should be noted that k can be selected according to needs, and the sphere center of the cluster set can also be called the cluster sphere center. For example, there are 3, of course, this is just an example and is not specifically limited. For each vector, find the nearest center of the sphere, and group the vectors whose distance from the center of the sphere is less than the first spatial offset threshold and whose offset angle from the center of the sphere is within the first deviation angle threshold into one category. For example, the first spatial offset threshold can be set to 5m, and the first deviation angle threshold is 10 degrees. For a certain center of the sphere, find the representative vectors whose distance from the center of the sphere is less than 5m and whose offset deviation angle from the center of the sphere is less than 10 degrees into one category. Based on the same principle, multiple representative vectors can be clustered to obtain multiple cluster sets. Among them, the representative vectors in each cluster set roughly intersect at the same point. Of course, this is just an example and no limitation is made here.
[0113] This allows desktop cards to be categorized based on card attributes.
[0114] S602: Determine user operation behavior.
[0115] User operation behaviors can be divided into click operations, removal operations, and sliding desktop card operations to the top, etc. In actual operations, user operation behaviors can be one or more of click, removal, and sliding desktop cards to the top. There are differences in user behavior preferences represented by different operation behaviors. For example, under the same circumstances, users prefer clicked desktop cards to removed desktop cards. Of course, technical personnel in this field can also set other user operation behaviors according to actual needs.
[0116] Furthermore, in some cases, the user may click on the top desktop card due to an error operation, so the user may slide the card to put it on the top and then click it. Compared with directly specifying a click, it can better reflect the user's preference. The same is true for removal. Therefore, the above three actions can also be specifically divided, for example, clicks can be divided into top clicks and non-top clicks, removals can be divided into top removals and non-top removals, and sliding the desktop card to the top can be divided into sliding the desktop card to the top with an exposure time less than the first threshold, sliding the desktop card to the top with an exposure time greater than the first threshold and less than the second threshold, and sliding the desktop card to the top with an exposure time greater than the second threshold, which can be specifically refined into 7 actions. Among them, the first threshold and the second threshold can be set according to needs.
[0117] In some cases, the exposure time of sliding a desktop card to the top is not the effective exposure time for the user to read. For example, the desktop card currently on the top of the electronic display screen is a weather card. The user slides the date card to the top and then puts the electronic device aside. At this time, the exposure time of the date card may be until the electronic device turns off the screen, but the effective exposure time for the user to read may only be a period of time when the date card is just placed on the top. In this case, the exposure time after the date card is slid to the top is greater than the effective exposure time for the user to read. Therefore, it is necessary to determine the range of effective exposure time to determine whether the exposure time after the card is slid to the top is within the range of effective exposure time for the user to read.
[0118] Specifically, the single exposure duration of multiple desktop cards and the number of desktop cards corresponding to each exposure duration can be obtained, and the distribution of the exposure duration is estimated by kernel density estimation to obtain the estimated probability density curve f, such as Figure 7 As shown, the first picture at the top is the estimated probability density distribution, the horizontal axis is the single exposure time of the desktop card, and the vertical axis is the number of desktop cards corresponding to each exposure time.
[0119] It can be considered that the effective exposure time distribution of user reading is gamma distribution, that is, Figure 7 The probability density distribution of the third picture at the bottom is that the distribution of meaningless exposure time is exponential distribution, that is, Figure 7 For the second probability density distribution in the middle, the density curve f can be equal to the sum of a times the exponential distribution and b times the gamma distribution. The construction function is as follows:
[0120]
[0121] In general, f(x)′ can be considered to be f, but in some cases, there may be a deviation between the values of f(x)′ and f. In order to reduce the deviation and make f(x)′ infinitely close to f, an optimization algorithm (for example, Newton's method, quasi-Newton's method, etc.) can be used to optimize the value of f(x)′ and solve the parameters in the above formula to obtain:
[0122]
[0123] According to the above formula, the effective exposure time can be taken as: the value interval of the gamma distribution cumulative distribution function>90%, which can be the exposure time [0.55, 2] seconds. Of course, the effective exposure time interval here is only one possible implementation method, and technical personnel in this field can also set it according to needs.
[0124] Because the user's operation behavior is classified to obtain an operation behavior set B = {b1, b2, b3...bi}, for example, B = {top click, non-top click, top removal, non-top removal, the exposure time of sliding the desktop card to the top is less than 0.55, the exposure time of sliding the desktop card to the top is greater than 0.55 and less than 2, and the exposure time of sliding the desktop card to the top is greater than 2}
[0125] S603: Set rewards for each operation behavior.
[0126] Get n service cards C = {c1, c2, ..., c n}, and obtain k categories G = {g1, g2, ..., g k}. For any category g i , i = 1, 2, ... k, for the set of operation behaviors B = {b1, b2, ..., b i For example, a positive reward value is assigned to a positive operation behavior, and a negative reward value is assigned to a negative operation, and the reward value vector R = {r1, r2, ..., r i}.
[0127] In some possible implementations, reward scores can be set for operation behaviors according to the category of desktop cards. For example, the same reward score can be set for the same operation behavior of desktop cards in one of the eleven categories. For example, for travel reminder desktop cards, the top click operation is set to add 0.8 points, and the non-top click operation is added 1 point. The top removal is deducted by 0.8 points, and the non-top removal is deducted by 1 point. If the exposure time of sliding the desktop card to the top is less than 0.55, 1 point will be deducted. If the exposure time of sliding the desktop card to the top is greater than 0.55 and less than 2, 1 point will be added. If the exposure time of sliding the desktop card to the top is greater than 2, 0.8 points will be deducted. For example, for event start reminder desktop cards, 2 points are added for top click operation setting, 2.5 points are added for non-top click operation, 2 points are deducted for top removal, 2.5 points are deducted for non-top removal, 2 points are deducted for sliding desktop cards to the top when the exposure time is less than 0.55, 2 points are deducted, 2 points are added for sliding desktop cards to the top when the exposure time is greater than 0.55 and less than 2, 2.5 points are added, and 2 points are deducted for sliding desktop cards to the top when the exposure time is greater than 2. Of course, the above is just an example, and those skilled in the art can set it according to actual needs, and it is not limited here. For example, it is also OK to set the reward score to reward points, and the reward score and reward points can be collectively referred to as reward parameters.
[0128] In some possible implementations, the top click rate can be used as an optimization target on the acquired data set, and the set initial reward value can be adjusted to obtain the most effective reward value vector.
[0129] S604: Determine the bonus score of each table card in the card pile, and sort the table cards based on the bonus score.
[0130] Electronic devices can sort cards using the UCB algorithm based on business scenarios.
[0131] Furthermore, in the UCB algorithm, the core problem is: estimation of the real click intention p for the card, the click intention p′ for the card, and the uncertainty Δ. The real click intention for the card can also be called the real click intention of the user for the desktop card, and the click intention for the card can also be called the click intention of the user for the desktop card.
[0132] An electronic device can obtain the reward score of a desktop card. In some possible implementation methods, the click reward score of the corresponding desktop card in the corresponding category can be determined according to the user's click operation on a single desktop card, the removal reward score of the corresponding desktop card in the corresponding category can be determined according to the user's removal operation on a single desktop card, the reward score of the corresponding desktop card in the corresponding category can be determined according to the user's sliding operation on a single desktop card to the top, and then the reward score of the corresponding desktop card can be determined according to the sum of the click reward score, removal reward score and top reward score in each desktop card.
[0133] In some possible implementations, the click reward score of the corresponding desktop card in the corresponding category can be determined based on the user's click operation on the top and click operation on the non-top of a single desktop card; the removal reward score of the corresponding desktop card in the corresponding category can be determined based on the user's operation on the top and removal operation on the non-top of a single desktop card; the reward score of the corresponding desktop card in the corresponding category can be determined based on the user's operation on sliding the desktop card to the top, including the operation of sliding the desktop card to the top with an exposure time less than a first threshold, the operation of sliding the desktop card to the top with an exposure time greater than the first threshold and less than the second threshold, and the operation of sliding the desktop card to the top with an exposure time greater than the second threshold; and then the reward score of the corresponding desktop card can be determined based on the sum of the click reward score, removal reward score and top reward score of each desktop card. That is, when calculating k is the number of times the card is pinned.
[0134] Then, according to the reward score of the desktop card, the card click intention p' is determined. However, in some cases, there is a deviation Δ between the actual card click intention p and the estimated click intention p'. The UCB algorithm always optimistically assumes that the card click intention is p'+Δ.
[0135] Specifically, assuming that in T rounds of sorting, a card appears K times in total, p′ can be calculated using the following formula:
[0136]
[0137] Among them, b i For operational behavior, r i For example, in 5 rounds of sorting, a desktop card appears 3 times, that is, it is pinned, and the user's operation behavior is to pin it twice and click it once, then the sum of the pinned click operation multiplied by the bonus score under the corresponding card category, the pinned click operation multiplied by the bonus score under the corresponding card category, and the non-pinned click operation multiplied by the bonus score under the corresponding card category can be divided by the 3 times it appears. Of course, this is just an example and is not limited here.
[0138] The uncertainty Δ is calculated as follows:
[0139]
[0140] Then calculate the value of P with p′+Δ, and sort the corresponding desktop cards according to the P value from large to small. It should be noted that the desktop card with the largest P value is placed on the top, followed by the desktop card with the second largest P value, and sorted in this order.
[0141] The present application provides a method for classifying desktop cards in a card pile, and then obtaining the user's operation behavior on the desktop cards in the card pile, determining the reward parameters of each desktop card in the corresponding category according to the operation behavior, such as the reward score, and then determining the corresponding desktop card click intention according to the reward score of each desktop card, and determining the real click intention of each desktop card according to the sum of the click intention of each desktop card and the corresponding real deviation. The desktop cards in the card pile are sorted from large to small according to the real click intention to obtain a first sequence, and the original arrangement order of the desktop cards in the preset card pile is adjusted according to the arrangement order of the desktop cards in the first sequence to complete the sorting of the desktop cards. In this way, the present application can reflect the user's preference for different desktop cards according to the user's different operations on desktop cards in the same category or different categories, and then the original arrangement order of the desktop cards can be adjusted according to the user's preference for the desktop cards, so that the desktop cards that the user likes or often uses are sorted at the top of the card pile, which can also improve the user's experience.
[0142] An embodiment of the present application further provides a computer storage medium, comprising computer instructions, which, when executed on a mobile terminal, enables the electronic device to execute a method as described in any one of the above embodiments.
[0143] An embodiment of the present application further provides a computer program product, including instructions; when the instructions are executed by an electronic device, the electronic device executes any of the methods described in the above embodiments.
[0144] The technical solution of this embodiment, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk, etc., various media that can store program codes.
[0145] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for sorting desktop cards, applied to electronic devices, characterized in that: include: Get the user's operation behavior on the desktop cards in the card stack; Determining a reward parameter corresponding to each desktop card according to the operation behavior; the reward parameter represents the user's preference for the desktop card, and the reward parameter includes a reward score; Get the number of trial sorts and the number of times each desktop card is pinned to the top; Determine the true deviation of each table card based on the number of times the test sorting is performed and the number of times each card is placed on top; Sorting the desktop cards in the card pile from large to small according to the reward parameter to obtain a first sequence; the step of sorting the desktop cards in the card pile from large to small according to the reward parameter includes: Determining the click intention of the corresponding desktop card according to the reward score of each desktop card; Determine the real click intention of each desktop card according to the sum of the click intention of each desktop card and the corresponding real deviation; sort the desktop cards in the card pile from large to small according to the real click intention; The original arrangement order of the desktop cards in the preset card pile is adjusted according to the arrangement order of the desktop cards in the first sequence to complete the sorting of the desktop cards.
2. According to the method of claim 1, before obtaining the user's operation behavior on the desktop card in the card stack, the method further includes: Classifying the desktop cards in the card pile based on preset rules; Determining the reward parameter corresponding to each desktop card according to the operation behavior includes: The reward parameters of each desktop card under the corresponding category are determined according to the operation behavior.
3. The method according to claim 1, characterized in that Before obtaining the user's operation behavior on the desktop card in the card stack, the method further includes: Classifying the desktop cards in the card pile based on the attributes of the cards; Determining the reward parameter corresponding to each desktop card according to the operation behavior includes: The reward parameters of each desktop card under the corresponding category are determined according to the operation behavior.
4. The method according to any one of claims 2 or 3, characterized in that: The operation behaviors include: a click operation, a remove operation, and a sliding operation of placing a desktop card on top. The reward parameters corresponding to each desktop card are determined according to the operation behaviors, including: Determine the click reward parameter of the corresponding desktop card under the corresponding category according to the user's click operation on a single desktop card, determine the removal reward parameter of the corresponding desktop card under the corresponding category according to the user's removal operation on the single desktop card, and determine the reward parameter of the corresponding desktop card under the corresponding category according to the user's sliding and pinning operation on the single desktop card; The reward parameters of the corresponding desktop card are determined according to the sum of the click reward parameters, removal reward parameters and top reward parameters in each desktop card.
5. The method according to claim 4, characterized in that The click operation includes a top click operation and a non-top click operation, the removal operation includes a top removal operation and a non-top removal operation, and the operation of sliding the desktop card to the top includes an operation of sliding the desktop card to the top with an exposure time less than a first threshold, an operation of sliding the desktop card to the top with an exposure time greater than the first threshold and less than a second threshold, and an operation of sliding the desktop card to the top with an exposure time greater than the second threshold.
6. The method according to claim 5, characterized in that The method further comprises: Obtaining exposure times of multiple desktop cards in a card pile and performing kernel density estimation on the exposure times to construct a probability density curve; Constructing a function of gamma distribution and exponential distribution based on the probability density curve; Solving the function to determine an effective exposure time interval; The operation of sliding the desktop card to the top includes the operation of sliding the desktop card to the top when the exposure time is less than the lower limit of the effective exposure time interval, the operation of sliding the desktop card to the top when the exposure time is within the effective exposure time interval, and the operation of sliding the desktop card to the top when the exposure time is greater than the upper limit of the effective exposure time interval.
7. The method according to claim 1, characterized in that The method further comprises: Get the exposure duration of multiple desktop cards; Train the card sorting model based on the exposure time of desktop cards; The desktop cards are sorted based on the model to obtain the original arrangement order of the desktop cards in the preset card pile.
8. An electronic device, characterized in that: include: Processor and memory; Wherein, one or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the electronic device performs the method as described in any one of claims 1-7.
9. A computer storage medium, characterized in that The method comprises computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 7.
