A method for displaying motion calories, an electronic device, and a computer-readable storage medium

By sharing data and using a unified calculation method within the sports and health application, the inconsistency in displaying exercise calories between the exercise module and the health module has been resolved, thus improving the user experience.

CN120301964BActive Publication Date: 2026-05-26HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-01-02
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In existing technologies, the exercise module and the health module calculate exercise calories differently, resulting in inconsistent total exercise calories displayed during the same exercise session, which affects the user experience.

Method used

By sharing data between the exercise module and the health module during the same exercise session in the sports and health application, the total exercise calories of the exercise module and the total exercise calories of the health module are consistent. A unified calculation method is used to achieve data consistency on the interface.

Benefits of technology

This ensures that the total calories burned during the exercise and health modules are consistent, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120301964B_ABST
    Figure CN120301964B_ABST
Patent Text Reader

Abstract

This application discloses a method and electronic device for displaying exercise calories, relating to the field of terminals. It is used to ensure that, after the exercise module of a sports and health application is activated, the exercise calories displayed on the interface corresponding to the exercise module are consistent with the exercise calories displayed on the interface corresponding to the health module during the same exercise session. The method includes: in response to a start-of-exercise operation in the sports and health application, the exercise module acquires exercise calories and provides them to the health module, so that the exercise calories recorded by the exercise module on the first type of parameter interface provided by the exercise module can be displayed on the second type of parameter interface provided by the health module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminals, and more particularly to a method and electronic device for displaying exercise heat. Background Technology

[0002] Sports and health apps can be installed on electronic devices (such as mobile phones). These apps can include an exercise module and a health module. Once enabled, the exercise module records the calories burned during exercise. Simultaneously, the health module also records calories burned during exercise. However, in current solutions, due to different calorie calculation methods, the calorie count displayed on the exercise module's interface differs from that displayed on the health module's interface. This negatively impacts the user experience. Summary of the Invention

[0003] This application provides a method and electronic device for displaying exercise calories, which ensures that, after the exercise module of a sports and health application is activated, the exercise calories displayed on the interface corresponding to the exercise module are consistent with the exercise calories displayed on the interface corresponding to the health module during the same exercise session.

[0004] To achieve the above objectives, this application adopts the following technical solution:

[0005] Firstly, a method for displaying exercise calories is provided, applied to electronic devices including sports and health applications. The sports and health application can provide a first type of parameter interface and a second type of parameter interface. The first type of parameter interface is used to display exercise parameters during user exercise, and the second type of parameter interface is used to display the user's health parameters, both of which include the user's exercise calories. The method includes:

[0006] First, in response to the start of exercise operation in the sports and health application, a first interface is displayed. The first interface is used to record real-time exercise parameters during the exercise process from the start of the first moment, including real-time exercise calories.

[0007] Then, in response to the end-of-motion operation on the first interface at the second moment, the second interface is displayed. The second interface includes the total motion parameters within the first time period. The total motion parameters include the total calories burned. The first time period begins at the first moment and ends at the second moment. Both the second and first interfaces are type-one parameter interfaces.

[0008] Next, in response to the first action in the fitness app, a third interface is displayed. This third interface includes the first set of exercise calories. The first set of exercise calories is the sum of the total exercise calories and the total exercise calories recorded by the electronic device at the first moment.

[0009] Finally, in response to the second operation on the third interface, the fourth interface is displayed. The fourth interface includes N third exercise calories. The N third exercise calories are obtained based on the real-time exercise calories within the first time period, and each third exercise calorie corresponds to the total exercise calories within one of the N second time periods within the first time period. Both the third and fourth interfaces are second-type parameter interfaces, and the duration of the N second time periods is equal.

[0010] In summary, the motion parameters displayed on the second type of parameter interface in this application can be derived from the data displayed on the first type of parameter interface. That is, during the same exercise, the amount of heat generated by the second type of parameter interface can be recorded by the first type of parameter interface. Thus, when the total amount of heat generated by the electronic device on the third interface at the first moment is 0, the first amount of heat generated on the third interface is the same as the total amount of heat generated on the second interface. Therefore, for the same exercise, the total amount of heat generated on the first type of parameter interface can be consistent with the total amount of heat generated on the second type of parameter interface.

[0011] In one possible implementation of the first aspect, before displaying the fourth interface, the method further includes: First, the electronic device, based on the real-time motion heat within the first time period, acquires the real-time motion heat corresponding to the end time of the nth second time period and the real-time motion heat corresponding to the end time of the (n-1)th second time period; then, the electronic device uses the difference between the real-time motion heat corresponding to the end time of the nth second time period and the real-time motion heat corresponding to the end time of the (n-1)th second time period as the third motion heat corresponding to the nth second time period. Here, n takes values ​​sequentially from {N, N-1, ..., 2, 1}.

[0012] In another possible implementation of the first aspect, the first interface is used to record real-time motion parameters during the motion process of the first motion type starting from a first moment. The real-time motion parameters also include real-time motion distance and real-time motion time. The method further includes: first, the electronic device, in response to the aforementioned start-of-motion operation, acquires the user's weight; then, the electronic device substitutes the real-time motion distance, real-time motion time, and the user's weight into the first calorie calculation formula corresponding to the first motion type to obtain real-time calorie expenditure.

[0013] In another possible implementation of the first aspect, the above formula for calculating the first heat is:

[0014]

[0015] in, Real-time exercise calories; Metabolic equivalent is the first type of exercise. Different types of exercise have different metabolic equivalents, and the metabolic equivalent is related to the real-time exercise distance and real-time exercise time. For the user's weight; This represents the real-time motion time.

[0016] In another possible implementation of the first aspect, the first type of exercise mentioned above is running. The metabolic equivalent is:

[0017]

[0018] in, Real-time movement distance; , , It is a constant.

[0019] In another possible implementation of the first aspect, the first type of exercise described above is walking. The metabolic equivalent is:

[0020]

[0021] in, Real-time movement distance; , , It is a constant.

[0022] In another possible implementation of the first aspect, the aforementioned first type of exercise is cycling. The metabolic equivalent is:

[0023]

[0024] in, Real-time movement distance; , , It is a constant.

[0025] In another possible implementation of the first aspect, the sports and health application includes a sports module and a health module. The sports module provides a first type of parameter interface, and the health module provides a second type of parameter interface. The above method also includes:

[0026] In response to the start of exercise in the sports and health application, the exercise module obtains real-time exercise calories, and based on the real-time exercise calories, obtains the third activity calories corresponding to each second time period, and provides the third activity calories corresponding to the second time period to the health module.

[0027] In another possible implementation of the first aspect, the sports and health application includes a sports module and a health module. The sports module provides a first type of parameter interface, and the health module provides a second type of parameter interface. The above method also includes:

[0028] In response to the start of exercise in the sports and health application, the exercise module obtains real-time exercise calories and provides them to the health module; the health module then obtains the third activity calories corresponding to each second time period based on the real-time exercise calories.

[0029] Secondly, this application provides an electronic device including: a memory, a display screen, a motion sensor, and one or more processors. The memory, display screen, motion sensor, and processors are coupled together. The memory stores computer program code, which includes instructions. When the processor executes the instructions, the electronic device performs the method described in the first aspect and any embodiment thereof.

[0030] Thirdly, a computer-readable storage medium is provided, including instructions that, when executed on an electronic device, enable the electronic device to perform the methods described in the first aspect and any embodiment thereof.

[0031] Fourthly, a computer program product containing instructions is provided, which, when executed on the aforementioned electronic device, cause the electronic device to perform the method as described in the first aspect and any embodiment thereof.

[0032] Fifthly, a chip system is provided, including a processor for supporting an electronic device in implementing the functions described in the first aspect above. In one possible design, the electronic device further includes interface circuitry for receiving signals from other devices (e.g., memory) or sending signals to other devices (e.g., a communication interface). The chip system may include a chip and may also include other discrete devices.

[0033] The technical effects of the second to fifth aspects can be found in the technical effects of the first aspect and any of its embodiments, and will not be repeated here. Attached Figure Description

[0034] Figure 1 This is one of the interface diagrams of an electronic device in conventional technology;

[0035] Figure 2 This is the second schematic diagram of the interface of an electronic device in conventional technology;

[0036] Figure 3 One of the schematic diagrams of an interface of an electronic device provided in this application embodiment;

[0037] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0038] Figure 5 A schematic diagram of the software architecture of an application provided in an embodiment of this application;

[0039] Figure 6 This is one of the flowcharts illustrating a method for displaying exercise calories provided in an embodiment of this application;

[0040] Figure 7 This is a second schematic flowchart illustrating a method for displaying exercise calories provided in an embodiment of this application.

[0041] Figure 8 The third schematic flowchart of a method for displaying exercise calories provided in this application embodiment;

[0042] Figure 9 A second schematic diagram of the interface of an electronic device provided in an embodiment of this application;

[0043] Figure 10 The fourth schematic flowchart of a method for displaying exercise calories provided in this application embodiment;

[0044] Figure 11 This is a schematic diagram illustrating the relationship between real-time exercise heat and first time-sharing heat in an embodiment of this application;

[0045] Figure 12 Fifth of a flowchart illustrating a method for displaying exercise calories provided in this application embodiment;

[0046] Figure 13 A schematic flowchart of a method for displaying exercise calories provided in this application is shown in Figure 6.

[0047] Figure 14 A third schematic diagram of the interface of an electronic device provided in this application embodiment;

[0048] Figure 15 This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation

[0049] The terms "first" and "second" used in the embodiments of this application are only used to distinguish features of the same type and should not be construed as indicating relative importance, quantity, order, etc.

[0050] The terms "exemplary" or "for example" used in the embodiments of this application are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0051] The terms "coupling" and "connection" used in the embodiments of this application should be interpreted broadly. For example, they can refer to a physical direct connection or an indirect connection achieved through electronic devices, such as a connection achieved through resistors, inductors, capacitors or other electronic devices.

[0052] Electronic devices can provide sports and health functions; for example, they may have sports and health applications installed. These applications can include a sports module and a health module. The sports module provides a first type of parameter interface, while the health module provides a second type of parameter interface. The first type of parameter interface can display the user's exercise parameters, such as speed, distance traveled, and calories burned. The second type of parameter interface can display the user's health parameters, such as heart rate, blood pressure, and calories burned. In other words, both the first and second type of parameter interfaces can display calories burned.

[0053] Typically, during exercise while the user is using the electronic device, the health module can directly record and display the total calories burned during the entire exercise process (e.g., the first time period) on the second type of parameter interface. It also displays the second type of calories burned in each third time period within a certain timeframe (e.g., a day, a week, or a month), and the third type of calories burned in each second time period within the aforementioned first time period. The first time period is the user's total exercise duration for the day, and therefore has a maximum length of 24 hours. The second and third time periods are obtained by dividing the aforementioned timeframes with different granularities.

[0054] When a user is exercising while carrying an electronic device, the motion module is activated. The motion module can record and display the total amount of heat generated during the entire exercise process on the first type of parameter interface.

[0055] However, because the calculation method for calorie expenditure in the exercise module differs from that in the health module, the total calorie expenditure displayed on the first type of parameter interface may differ from that displayed during the same exercise session. This results in a poor user experience.

[0056] The following example uses a mobile phone as the electronic device, with the first time period being a continuous 1 hour, the second time period being 1 minute, and the third time period being half an hour. The second type of parameter interface includes the health catalog interface, the first detail interface, and the second detail interface, while the first type of parameter interface includes the exercise catalog interface, the exercise process interface, and the exercise end interface. This example will introduce the display interface of the sports and health application installed on the user's mobile phone during a 1-hour exercise session.

[0057] Figure 1 This shows one of the schematic diagrams of the interface of an electronic device in conventional technology. Figure 2This is the second schematic diagram of the interface of an electronic device in conventional technology.

[0058] like Figure 1 As shown in Figure A, in response to a user's trigger action (such as clicking) on ​​the icon of the sports and health application on mobile phone 100, mobile phone 100 displays a health catalog interface 110. The health catalog interface 110 can be the homepage interface of the health application. The health catalog interface 110 can display controls corresponding to the four functional modules in the sports and health application and a calorie consumption card 111. The four functional modules and their corresponding controls are: a health control 112 for the health module, an exercise control 113 for the exercise module, a device control 114 for the device module, and a "My" control 115 for the "My" module. The calorie consumption card 111 shows that the total activity calories recorded by the health module are 0 kcal.

[0059] like Figure 1 As shown in B, in response to the user's trigger operation on the exercise control 113, the mobile phone 100 switches from the health directory interface 110 to the exercise directory interface 120. The exercise directory interface 120 can display the start exercise control 121 and multiple exercise type controls. Each exercise type control corresponds to one type of exercise. Multiple exercise type controls can include: outdoor running control 122, indoor running control, walking control, etc.

[0060] like Figure 1 As shown in C, in response to the user's sequential triggering of the outdoor running control 122 and the start exercise control 121, the exercise module of the sports and health application is activated. At this time, the phone 100 switches from the exercise directory interface 120 to the exercise process interface 130. The exercise process interface 130 can display the map 131 corresponding to the user's outdoor running process, the first exercise record card 132, and the end control 133. Among them, the first exercise record card 132 displays the real-time exercise parameters during this exercise process. For example, real-time exercise distance, real-time exercise calories, real-time exercise time, real-time pace, real-time heart rate, etc.

[0061] like Figure 1As shown in D, in response to the user's triggering operation of the end control 133, the exercise ends, and the phone 100 switches from the exercise process interface 130 to the exercise end interface 140. The exercise end interface 140 can display a second exercise record card 141. The second exercise record card 141 displays the total exercise parameters and average exercise parameters for this exercise. For example, the total exercise parameters may include total exercise time, total exercise calories, total exercise distance, etc. The average exercise parameters may include average pace, average speed, average cadence, etc. Among them, the second exercise record card 141 shows that the calories burned in this exercise was 300 kcal. That is to say, the exercise module of the sports and health application recorded that the total exercise calories generated in this exercise were 300 kcal.

[0062] Next, as Figure 2 As shown in A, after returning to the health directory interface 110 from the exercise end interface 140, the calorie consumption card 111 in the health directory interface 110 displays a consumption of 260 kcal. That is to say, the health module of the sports and health application records the total exercise calories generated in this exercise as 260 kcal.

[0063] contrast Figure 1 D and Figure 2 As can be seen from A, for the same exercise, the total exercise calories recorded by the health module of the sports and health application in conventional technology are inconsistent with the total exercise calories recorded by the exercise module.

[0064] like Figure 2 As shown in B, in response to the user's triggering operation on the consumption control 210 in the health catalog interface 110, the mobile phone 100 switches from the health catalog interface 110 to the first details interface 220. The first details interface 220 can display the exercise calories recorded by the health module in a day, a week, a month, and a year, respectively, using statistical methods on a daily, weekly, monthly, and yearly basis. Among them, in the daily statistical method, the first details interface 220 can display the second exercise calories generated by the user in every half hour recorded by the health module during a day. For example, the exercise calories in the half hour from 08:00 to 08:30 are 120 kcal, and the exercise calories in the half hour from 08:30 to 9:00 are 140 kcal. The first details interface 220 can also display details control 221.

[0065] like Figure 2 As shown in C, in response to the user's triggering operation on the details control 221, the mobile phone 100 switches from the first details interface 220 to the second details interface 230. The second details interface 230 can display the third exercise calories generated per minute by the user recorded by the health module on the same day.

[0066] In summary, in conventional sports and health applications installed on electronic devices, the calculation methods for obtaining exercise calories by the exercise module and the health module differ. This results in a discrepancy between the total exercise calories displayed on the first type of parameter interface provided by the exercise module and the total exercise calories displayed on the second type of parameter interface provided by the health module, which affects the user experience.

[0067] Therefore, embodiments of this application provide a method for displaying exercise calories and an electronic device. The electronic device is equipped with an improved sports and health application. When recording and displaying the total exercise calories generated by the user over a period of time, the improved sports and health application uses the exercise calorie display method provided in this application.

[0068] Specifically, for a period of time after the exercise module of the sports and health application is activated, the total exercise calories displayed on the second type of parameter interface are obtained from the total exercise calories obtained from the first type of parameter interface. The third type of exercise calories displayed for each second time period on the second type of parameter interface are obtained based on the real-time exercise calories obtained from the first type of parameter interface within the first time period. In other words, during the same exercise session, the exercise calories displayed on the second type of parameter interface can all be recorded by the first type of parameter interface. Thus, for the same exercise session, the total exercise calories recorded on the first type of parameter interface are consistent with the total exercise calories recorded on the second type of parameter interface.

[0069] Figure 3 This illustration shows one of the interface diagrams of an electronic device provided in an embodiment of this application. The following description uses the example of a health app not recording exercise calories before its exercise module is activated. For example, the situation where the health app does not record exercise calories before its exercise module is activated could be that the exercise module is activated immediately after the health app is launched.

[0070] like Figure 3 As shown in Figure A, after the exercise ends, the phone displays the exercise completion screen 140. Exercise completion screen 140 shows that the calories burned during this exercise were 300 kcal. Figure 3 As shown in B, the health catalog interface 110 displays that 300 kcal were consumed during this exercise.

[0071] contrast Figure 3 A and Figure 3 As can be seen from B in the text: For the same exercise, in the sports and health application provided in this application embodiment, the total exercise calories displayed on the first type of parameter interface are consistent with the total exercise calories displayed on the second type of parameter interface.

[0072] like Figure 3As shown in C, the first detail interface 220 displays that the exercise calories were 140 kcal during the half-hour period from 08:00 to 08:30. Additionally, the exercise calories were 160 kcal during the half-hour period from 08:30 to 9:00. Figure 3 (C is not shown in the figure). It can be seen that during the hour from 08:00 to 09:00, the total amount of exercise heat in the first detailed interface is consistent with the total amount of exercise heat recorded in the end-of-exercise interface 140.

[0073] like Figure 3 As shown in D, the second details interface 230 displays the calorie consumption data generated per minute within one hour from 08:00 to 09:00, which is also recorded by the motion module.

[0074] The electronic device involved in this application can be a device with communication functions, motion data acquisition and recording functions, and can be a mobile terminal device. The electronic device can be deployed on land (e.g., indoors or outdoors, handheld or vehicle-mounted), on water (e.g., ships), or in the air (e.g., airplanes, balloons). This electronic device can be referred to as user equipment (UE), access terminal, terminal unit, subscriber unit, terminal station, mobile station (MS), mobile station, terminal agent, or terminal device, etc. For example, the electronic device can be a mobile phone, tablet computer, etc. This application does not limit the specific type and structure of the electronic device. The following describes one possible structure of the electronic device.

[0075] Taking mobile phones as an example, Figure 4 This diagram illustrates the hardware structure of an electronic device 400 according to an embodiment of this application. The electronic device 400 may include: a processor 410, a memory 420, a universal serial bus (USB) interface 430, a power management module 440, an antenna, a communication module 450, a display screen 460, an audio module 470, a camera 480, a sensor module 490, etc.

[0076] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 400. In other embodiments, the electronic device 400 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0077] Processor 410 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, memory, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of the electronic device 400. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.

[0078] The processor 410 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 410 is a cache memory. This memory can store instructions or data that the processor 410 has just used or that are used repeatedly. If the processor 410 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 410, and thus improves the efficiency of the system.

[0079] In some embodiments, processor 410 may include one or more interfaces. Interfaces 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 430, etc.

[0080] It is understood that the interface connection relationships between the modules illustrated in this embodiment are merely illustrative and do not constitute a structural limitation on the electronic device. In other embodiments, the electronic device may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0081] The memory 420 can be used to store computer executable program code, which includes instructions. The processor 410 executes various functional applications and data processing of the electronic device by running the instructions stored in the memory 420. The memory 420 may include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function (such as sound playback, interface display, etc.). The data storage area may store data created during the use of the electronic device (such as notification messages). Furthermore, the memory 420 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0082] The power management module 440 is used to connect the battery to the processor 410. The power management module 440 receives battery and / or power input to power the processor 410, memory 420, communication module 450, display screen 460, and camera 480, etc. The power management module 440 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 440 may also be located within the processor 410.

[0083] The communication module 450 can provide solutions for wireless communication applications on the electronic device 400, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR). The communication module 450 can be one or more devices integrating at least one communication processing module. The communication module 450 receives electromagnetic waves via an antenna, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to the processor 410. The communication module 450 can also receive signals to be transmitted from the processor 410, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via the antenna.

[0084] In some embodiments, the antenna of the electronic device 400 is coupled to the communication module 450, enabling the electronic device 400 to communicate with networks and other devices via wireless communication technologies. The wireless communication technologies may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, Global Navigation Satellite System (GNSS), WLAN, NFC, FM, and / or IR technologies. The GNSS may include Global Positioning System (GPS), BeiDou Navigation Satellite System (BDS), GLONASS, and / or Galileo.

[0085] Electronic device 400 implements display functions through a GPU, a display screen 460, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 460 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 410 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0086] The display screen 460 is used to display images, videos, etc. The display screen 460 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini-LED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In this embodiment, the display screen 460 can be used to display metadata of shared files in a shared application.

[0087] Electronic device 400 can achieve shooting function through ISP, camera 480, video codec, GPU, display 460 and application processor.

[0088] The audio module 470 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. The audio module 470 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 470 may be located in the processor 410, or some functional modules of the audio module 470 may be located in the processor 410.

[0089] The camera 480 is used to capture still images or videos. An object passes through the lens, generating an optical image that is projected onto a photosensitive element. This photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP (Image Signal Processor) for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP (Digital Signal Processor) for further processing. The DSP converts the digital image signal into standard image signals in formats such as RGB and YUV.

[0090] Sensor module 490 can be a motion sensor. For example, the motion sensor may include a step management module, a step sensor, a positioning module, etc., but is not limited to these. During movement while the user is carrying the electronic device, the step sensor records the user's number of steps. The positioning module acquires the user's location information. Then, the electronic device can calculate the user's distance traveled based on the number of steps and the location information.

[0091] Generally, applications installed on electronic devices can adopt layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application uses a layered architecture as an example to illustrate the software architecture of a sports and health application.

[0092] Figure 5 A schematic diagram of the software architecture of an application provided in an embodiment of this application is shown.

[0093] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the application is divided into four layers, from top to bottom: shell layer, business module layer, base layer, and general library.

[0094] The shell layer can include the application's attribute information. This attribute information indicates the application's function, type, identity, and other information. Based on an application's attribute information, its category, function, and other characteristics can be identified.

[0095] The business module layer can include the application's functional modules. For example... Figure 3 As shown, the business module layer of a sports and health application can include: device module, sports module, health module, and my module.

[0096] Specifically, the exercise module may include an exercise recording submodule. This submodule records the user's exercise data and stores it in the database of the general library. Exercise data may include: exercise time, exercise distance, calorie consumption data for a first time period, calorie consumption data for a third time period, etc.

[0097] The health module can include a consumption submodule. This submodule records the user's exercise data, such as calorie consumption data for a first time period, a second time period, and a third time period. The consumption submodule can also retrieve the calorie consumption data for the third time period recorded by the exercise module from the database in the general library.

[0098] My module can include a personal information submodule. The personal information submodule is used to record users' personal data, such as weight, age, gender, etc.

[0099] The basic layer can include sub-modules such as account, map, interface, and device management.

[0100] Specifically, the account sub-module can be used to record account information for sports and health applications, with one account information corresponding to a personal data point in the "My" module.

[0101] The map submodule includes a map. After the motion module is started, it can call the map in the map submodule to display the user's location in real time during the motion and display the user's motion trajectory after the motion ends.

[0102] The interface submodule can provide an interface for data transfer between different modules of an application.

[0103] The device management submodule can be used to connect to wearable devices and obtain data from them.

[0104] The general-purpose library may include a database. This database can store motion parameters recorded by the motion module and health module, as well as motion data recorded by wearable devices.

[0105] The following describes the exercise calorie display method provided in the embodiments of this application in different scenarios.

[0106] In one scenario, after a fitness app is launched, the exercise module is not enabled. In this case, the electronic device records exercise calories through the fitness app's health module. Figure 6 This illustration shows one of the flowcharts of a method for displaying exercise calories according to an embodiment of this application. Figure 6 As shown, the exercise calorie display method provided in this application embodiment may include:

[0107] S601, In response to the user's initial launch operation of the sports and health application, the electronic device displays the third interface, which includes the second type of parameter interface of the sports and health application.

[0108] For example, the third interface included in the second type of parameter interface can be... Figure 1 , Figure 3 The health catalog interface 110 is shown below. Figure 1 As shown in Figure A, the first interface corresponding to the health module may include a calorie consumption card 111. The calorie consumption card 111 can display historical exercise calories. The historical exercise calories may include the total exercise calories recorded by the sports and health application at the first moment.

[0109] In this embodiment, after the electronic device receives the user's command to launch a fitness and health application, it can record exercise calories through the application. Therefore, if the fitness and health application has never been launched before this step, the historical exercise calories in this step will be 0 kcal. If the fitness and health application has been launched before this step, the historical exercise calories in this step will be greater than 0 kcal.

[0110] In some embodiments, historical exercise calories may be recorded by the exercise module of a fitness app. Alternatively, historical exercise calories may be recorded by the health module of a fitness app. Or, a portion of the historical exercise calories may be recorded by the exercise module of a fitness app, and another portion may be recorded by the health module of a fitness app.

[0111] In some embodiments, the third interface included in the first type of parameter interface may be the homepage interface of a sports and health application.

[0112] S602, The electronic device displays the first exercise heat on the third interface at the second moment.

[0113] When a user exercises using the electronic device provided in this embodiment, and the exercise module is not activated, the electronic device can determine the total amount of exercise generated during the current exercise through the health module corresponding to the second type of parameter interface. Simultaneously, the electronic device determines the sum of the total exercise calories generated during the current exercise and the historical exercise calories as the first exercise calorie, and displays it on the third interface. The current exercise process refers to the first time period from the first moment to the second moment.

[0114] Among them, such as Figure 1 As shown in Figure B, "motion module not enabled" means that the start motion control 121 is not triggered, and the electronic device does not receive a user's trigger operation on the start motion control 121. The aforementioned start motion control 121 is used to trigger the electronic device to start the motion module to record the user's motion parameters.

[0115] For ease of distinction, the total exercise calories recorded by the health module will be referred to as the first total calories in the following text. The principle by which the health module determines the first total calories generated during this exercise session is explained below:

[0116] In one embodiment, the first total heat can be calculated using the following formula (1):

[0117] (1)

[0118] in, The first total calorie; The first time-period heat refers to the third exercise heat generated in each second time period (e.g., 1 minute) during this exercise. In this embodiment, the first exercise heat on the third interface can be updated once every second time period starting from the first moment, but it is not limited to this. In this embodiment, a second time period of 1 minute is used as an example for description.

[0119] For example, the third type of exercise heat can be calculated using the following formula (2):

[0120] (2)

[0121] in, The energy expenditure factor is used to represent the relative level of energy metabolism. This represents the cumulative number of steps taken within each second time period. The cumulative number of steps taken within each second time period is obtained from the step management module in the electronic device. The step management module is used to obtain the cumulative number of steps taken by the user within each second time period starting from the first moment.

[0122] In this embodiment, the calorie consumption factor is a constant. That is, the calorie consumption factor is the same for any user and any type of exercise.

[0123] Continue as Figure 1 As shown in A, the calorie consumption card 111 may include a consumption control 210.

[0124] S603, In response to a trigger operation on the consumption control in the third interface, the electronic device displays a sixth interface, which is part of the second type of parameter interface of the sports and health application. The sixth interface includes M second exercise calories. The M second exercise calories are obtained based on the first exercise calories.

[0125] The total amount of exercise heat in the first time period is the second exercise heat (or second time-division heat) in the third time period.

[0126] For example, the sixth interface included in the second type of parameter interface can be... Figure 2 , Figure 3 The first detail interface 220 is shown below. Figure 2 As shown in C, the sixth interface displays the total heat generated in each third time period (e.g., half an hour). In this paper, the total heat generated in a third time period can be referred to as the second time-sharing heat. Each of the M third time periods has the same duration.

[0127] Continue as Figure 2 As shown in C, the sixth interface may include details control 221.

[0128] S604. In response to the triggering operation of the details control in the sixth interface, the electronic device displays the fourth interface, which is included in the second type of parameter interface of the sports and health application. The fourth interface includes N third exercise calories included in the first time period.

[0129] For example, the fourth interface included in the second type of parameter interface can be... Figure 2 , Figure 3 The second detail interface 230 is shown below. (As shown in the image...) Figure 2As shown in D, the fourth interface included in the second type of parameter interface can display the third exercise heat generated in each second time period (e.g., 1 minute), i.e., the first time-sharing heat. Referring to S602 above, it can be seen that each first time-sharing heat in this embodiment is determined by the health module.

[0130] In summary, when the exercise module is not enabled, the electronic device determines the exercise calories at different times during exercise through the health module.

[0131] The above embodiments, when the motion module is not enabled, describe a method for displaying exercise calories provided by this application from the perspective of the electronic device as the executing entity. The specific implementation of this method requires the support of various hardware and software modules in the electronic device. The following section, in conjunction with... Figure 7 This paper introduces a method for displaying exercise calories provided by embodiments of this application, through the interaction of various software and hardware modules in an electronic device.

[0132] In one embodiment, the electronic device may include a sports and health application. The sports and health application may include a health module. The electronic device may also include a pedometer sensor, a pedometer management module, and a display module. The pedometer management module is used to count the cumulative number of steps taken by the pedometer sensor within each second time period. The display module includes a display screen for displaying the interface of the sports and health application.

[0133] Figure 7 This is a second schematic flowchart illustrating a method for displaying exercise calories according to an embodiment of this application. Figure 7 As shown, the exercise calorie display method provided in this application embodiment may include:

[0134] S701, In response to the operation of launching the sports and health application at the first moment, the health module sends a step counting request message to the step counting management module.

[0135] Once the fitness and health application is launched, it sends a step counting request message to the step counting management module. In this embodiment, since the fitness module is not enabled, the health module sends the step counting request message to the step counting management module. The step counting request information is used to instruct the step counting management module to obtain the cumulative number of steps in each second time period starting from the first moment.

[0136] S702, the step counting management module sends step counting commands to the step counting sensor.

[0137] S703, the step counting management module receives the new step count sent by the step counting sensor.

[0138] S704, the step counting management module counts real-time steps and obtains the cumulative steps for each second time period from the real-time steps.

[0139] S705, the step counting management module sends the cumulative number of steps taken in each second time period to the health module.

[0140] S706 The health module substitutes the cumulative number of steps in each second time period into the time-sharing calorie calculation formula to obtain the first time-sharing calorie for each second time period.

[0141] The formula for calculating time-of-use heat is the above formula (2).

[0142] S707, the health module sends the heat for each first minute to the display module.

[0143] In some embodiments, the health module also sends the first minute's calorie count to the database for storage. The database stores each first minute's calorie count for later retrieval. The database can also store historical exercise calorie counts.

[0144] S708, the display module displays the heat for each first minute on the fourth interface.

[0145] It should be understood that the health module sends the first hourly heat value to the display module for display. However, after receiving the first hourly heat value, the display module does not immediately display it. Instead, it displays the first hourly heat value only when the electronic device responds to a trigger operation on a second type of parameter interface (such as the fourth interface mentioned above).

[0146] For example, such as Figure 2 As shown in C, the fourth interface is the second detail interface 230. The second detail interface 230 displays the heat of each first time period corresponding to each second time period.

[0147] S709, the health module determines the sum of the heat of each first minute within the first time period as the first total heat at the second moment.

[0148] The health module can retrieve the heat values ​​for each hour within the first time period from the database, and determine the sum of the heat values ​​for each hour within the first time period as the first total heat value. In this step, the above formula (1) can be used for calculation.

[0149] S710, the health module determines the first exercise calorie as the sum of the first total calorie and the historical exercise calorie.

[0150] S711, the health module sends the first exercise calories to the display module.

[0151] S712, the display module displays the first exercise calories on the third interface.

[0152] This step is the same as S708, and will not be repeated here.

[0153] For example, such as Figure 2 As shown in A, the third interface is the health catalog interface 110. The health catalog interface 110 includes the first exercise calories.

[0154] S713, The health module determines the total exercise heat within a third time period as the second time-division heat within that third time period.

[0155] Assume the historical calorie expenditure was 40 kcal, recorded between 8:00 and 8:15. The first total calorie expenditure was 220 kcal, recorded between 8:16 and 9:00, with 60 kcal recorded between 8:16 and 8:30. Assume a third time period is half an hour. Based on this, the first calorie expenditure was 260 kcal. The second minute of the third time period starting at 8:00 had 100 kcal, and the second minute of the third time period had 160 kcal.

[0156] S714, the health module sends the heat values ​​for each second time period to the display module.

[0157] In some embodiments, the health module also sends a second time-of-use heat value to the database for storage.

[0158] S715, the display module displays the heat for each second minute on the sixth interface.

[0159] This step is the same as S708, and will not be repeated here.

[0160] For example, such as Figure 2 As shown in B, the display module displays the second details interface 230. The second details interface 230 includes the heat values ​​for each second time period.

[0161] In another scenario, the exercise module is enabled after the sports and health app is launched. Figure 8 This is shown as a third schematic flowchart of a method for displaying exercise calories according to an embodiment of this application. Figure 8 As shown, the exercise calorie display method provided in this application embodiment may include:

[0162] S801, In response to the launch operation of the sports and health application, the electronic device displays the third interface of the sports and health application.

[0163] The third interface is one of the second type of parameter interfaces in the sports and health application. This second type of parameter interface is provided by the health module of the sports and health application and is used to display the user's health parameters, including the user's exercise calories.

[0164] For example, the third interface can be Figure 1 , Figure 3 The health catalog interface 110 is shown below. Figure 1 As shown in A, the health catalog interface 110 may include exercise controls 113.

[0165] S802, in response to a first switching operation on the third interface of the sports and health application, the electronic device displays the fifth interface of the sports and health application.

[0166] The fifth interface is one of the first type of parameter interfaces in the sports and health application. The first type of parameter interface is provided by the sports module of the sports and health application and is used to display the user's exercise parameters during exercise. These parameters can include: exercise time, exercise distance, and calories burned.

[0167] For example, the fifth interface can be Figure 1 The motion catalog interface 120 is shown in the image. (As shown in the image...) Figure 1 As shown in C, the fifth interface can display the "Start Exercise" control 121. The fifth interface can also display multiple exercise type controls, including the "First Exercise" control (such as the "Outdoor Running" control 122). Each exercise type control corresponds to one exercise type. The "First Exercise Type" control can be the "Outdoor Running" control. That is, the first exercise type is outdoor running. The fifth interface can also display the cumulative exercise distance.

[0168] For example, such as Figure 1 As shown in A, the first switching operation on the third interface may include: triggering the operation of the exercise control 113 in the health directory interface 110.

[0169] S803, in response to the start of exercise operation on the fifth interface of the sports and health application, the electronic device displays the first interface. The first interface can display real-time motion parameters during the exercise process from the first moment.

[0170] The first interface is one of the first type of parameter interfaces in a sports and health application. The first interface may also include an end control 133. Real-time exercise parameters may include: real-time exercise distance, real-time exercise time, and real-time exercise calories.

[0171] For example, the first interface can be Figure 1 The motion process interface 130 shown is shown.

[0172] In one embodiment, in response to a start exercise operation in a fitness app, the electronic device displays a first interface, which may include: in response to sequential triggering of a first exercise type control and a start exercise control in a fifth interface, the electronic device switches from displaying the fifth interface to displaying the first interface. The aforementioned first moment may be the moment when the start exercise control is triggered.

[0173] In this scenario, in response to a trigger operation on the first exercise type control in the fifth interface, the electronic device can invoke the first calorie calculation formula corresponding to the first exercise type. Then, in response to a trigger operation on the start exercise control in the fifth interface, the electronic device can obtain the user's weight, real-time exercise distance, and real-time exercise time since the start of the exercise. Next, the electronic device substitutes the user's weight, real-time exercise distance, and real-time exercise time into the first calorie calculation formula corresponding to the first exercise type to obtain the real-time exercise calories. In this scenario, if the exercise module is enabled, the exercise calories are obtained by the exercise module.

[0174] For example, the first calorific value can be expressed by the following formula (3):

[0175] (3)

[0176] in, Real-time exercise calories; Metabolic equivalent (MET). For the user's weight; This represents the real-time motion time.

[0177] Metabolic equivalent is used to represent the relative energy metabolism level. The metabolic equivalent corresponds to the first type of exercise; different types of exercise have different metabolic equivalents, and the metabolic equivalent is related to the real-time exercise distance and real-time exercise time.

[0178] The following section introduces the formula for calculating metabolic equivalents, based on the type of exercise.

[0179] For example, for exercise types such as running (e.g., outdoor running, indoor running), the metabolic equivalent calculation formula can be expressed by the following formula (4):

[0180] (4)

[0181] in, Real-time movement distance; , , For example, a constant. , , .

[0182] For example, if the type of exercise is walking (such as outdoor running), the metabolic equivalent can be calculated using the following formula (5):

[0183] (5)

[0184] in, Real-time movement distance; , , For example, a constant. , , .

[0185] For example, when the type of exercise is cycling (such as outdoor cycling), the metabolic equivalent calculation formula can be expressed by the following formula (6):

[0186] (6)

[0187] in, Real-time movement distance; , , For example, a constant. , , .

[0188] In summary, in this scenario, the exercise module determines exercise calories by combining the type of exercise, the user's weight, exercise time, and exercise distance. Compared to the health module, which only determines exercise calories based on steps and a fixed calorie expenditure factor, the exercise module provides more accurate calorie data. Therefore, in this scenario, the exercise data recorded by the exercise module will be displayed in both the first type of parameter interface provided by the exercise module and the second type of parameter interface provided by the health module. In other words, after the exercise module is enabled, a portion of the calories displayed in the first type of exercise calorie data on the second type of parameter interface provided by the health module can be from data recorded by the exercise module.

[0189] In this step, the electronic device obtains the user's weight, which can include the following different methods:

[0190] In one embodiment, the fitness and health app stores the user's personal information, such as weight and age. In this case, in response to a triggering operation of the "Start Exercise" control, the electronic device can directly obtain the user's weight within the fitness and health app.

[0191] It should be noted that the personal information involved in this application embodiment was obtained with the user's authorization.

[0192] In another embodiment, the fitness and health application does not store the user's personal information. In this case, in response to a triggering operation of the "Start Exercise" control, the electronic device can display a first pop-up window. The first pop-up window is used to record the user's weight. Subsequently, in response to an editing operation in the first pop-up window, the electronic device can obtain the user's weight.

[0193] Figure 9This is a second schematic diagram of the interface of an electronic device provided in an embodiment of this application.

[0194] For example, such as Figure 9 As shown, mobile phone 100 displays an exercise process interface 130. The exercise process interface includes a first pop-up window 910. The first pop-up window 910 includes a first prompt message 911. For example, the first prompt message is: Please enter your weight. The first pop-up window 910 also includes multiple weight options 912, a weight entry area 913, a cancel control 914, and a confirm control 915. In response to a sliding operation on the multiple weight options 912, one of the weight options 912 will be displayed in the weight entry area 913. Of course, in another example, the weight entry area 913 may include a weight edit box (…). Figure 9 (Not shown). In response to an editing operation in the weight edit box, the weight will be displayed in the weight entry area 913. It should be understood that the method of obtaining weight in this embodiment is not limited to this.

[0195] Continue as Figure 9 As shown, when a weight option (e.g., 59) is displayed in the weight input area 913, in response to the user's trigger operation on the confirmation control 915, the mobile phone 100 will determine the weight (e.g., 59 kg) corresponding to the weight option displayed in the weight input area 913 as the user's weight.

[0196] In response to the user's triggering of the cancel control 914, the mobile phone 100 determines the preset weight corresponding to the gender in the user information as the user's weight.

[0197] S804, in response to the end-of-motion operation on the first interface at the second moment, the electronic device displays the second interface. The second interface can display the total motion parameters within the first time period.

[0198] The second interface is one of the first type of parameter interfaces in the sports and health application. Total exercise parameters can include total calories burned, total distance traveled, and total time spent exercising. The first time period is the period from the first moment to the second moment.

[0199] For example, the second interface can be Figure 3 The motion end interface 140 shown is shown.

[0200] It should be understood that the total calorie expenditure displayed on the second interface can be the last real-time calorie expenditure displayed on the first interface. The total distance exercised on the second interface can be the last real-time distance exercised on the first interface. The total exercise time displayed on the second interface can be the last real-time exercise time displayed on the first interface.

[0201] The action to end motion on the first interface at the second moment can be: triggering the end control on the first interface at the second moment.

[0202] S805, In response to a first operation in the sports and health application, the electronic device displays a third interface. The third interface may include a first exercise calorie count. The first exercise calorie count is the sum of the total exercise calorie count displayed on the second interface and the total exercise calorie count recorded by the electronic device at the first moment.

[0203] The third interface is one of the second type of parameter interfaces in the sports and health application. This second type of parameter interface is provided by the health module of the sports and health application and is used to display the user's health parameters. Health parameters include the user's exercise calories. The total exercise calories recorded by the electronic device at the first moment are the historical exercise calories.

[0204] For example, the third interface can be Figure 1 The health catalog interface 110 shown is shown.

[0205] The total calorie expenditure recorded by the electronic device at the first moment can be recorded by a third interface. Alternatively, it can be recorded by a second interface. Or, it can be recorded jointly by both the third and second interfaces. In other words, the historical calorie expenditure can be recorded by the exercise module of a sports and health application. Alternatively, it can be recorded by the health module of a sports and health application. Or, a portion of the historical calorie expenditure may be recorded by the exercise module of a sports and health application, and another portion by the health module of a sports and health application.

[0206] In one embodiment, displaying a third interface in response to a first operation in a fitness and health application may include: first, displaying the first interface in response to a return operation on a second interface; then, displaying the third interface in response to a switching operation on the first interface.

[0207] For example, such as Figure 3 As shown in A, the motion end interface 140 may include a return control 142. In response to a triggering operation on the return control 142, such as... Figure 1 As shown in B, mobile phone 100 displays a sports catalog interface 120. The sports catalog interface 120 may include a health control 112. In response to a trigger operation on the health control 112, such as... Figure 3 As shown in B, mobile phone 100 displays the health catalog interface 110.

[0208] S806, In response to the second operation on the third interface, the electronic device displays a fourth interface. The fourth interface may include N third exercise calories. The N third exercise calories are obtained based on the real-time exercise calories within the first time period, and each third exercise calorie corresponds to the total exercise calories within one of the N second time periods within the first time period.

[0209] The fourth interface is one of the second type of parameter interfaces in the sports and health application. The duration of the N second time periods is equal. For example, the second time period is 1 minute.

[0210] For example, the fourth interface can be Figure 2 , Figure 3 The second detail interface 230.

[0211] In one embodiment, displaying a fourth interface in response to a second operation on the third interface may include: first, displaying a sixth interface in response to a third operation on the third interface; then, displaying the fourth interface in response to a fourth operation on the sixth interface.

[0212] For example, such as Figure 2 As shown in A, the health catalog interface 110 may include a consumption control 210. The third operation on the third interface may be a trigger operation on the consumption control 210. The sixth interface may be... Figure 2 The first detail interface 220 is shown as B in the diagram. The first detail interface 220 includes a consumption control 221. The fourth operation in the sixth interface can be a trigger operation on the consumption control 221.

[0213] In summary, in the embodiments of this application, the first motion parameters displayed on the second type of parameter interface may include the total motion parameters displayed on the first type of parameter interface. In some scenarios, such as when the total heat generated by the electronic device at the first moment is 0, the first motion parameters displayed on the second type of parameter interface are equal to the total motion parameters displayed on the first type of parameter interface. That is, during the same motion process, the total motion parameters displayed on the second type of parameter interface are equal to the total motion parameters displayed on the first type of parameter interface.

[0214] Furthermore, prior to S806 mentioned above, the electronic device needs to acquire the third exercise heat corresponding to each second time period so that it can be displayed on the second type of parameter interface provided by the health module.

[0215] In one embodiment, such as Figure 10 As shown, prior to S806, the method for determining the third kinetic energy could include:

[0216] S1001. The electronic device obtains the real-time motion heat corresponding to the end time of the nth second time period and the real-time motion heat corresponding to the end time of the (n-1)th second time period based on the real-time motion heat during the first time period.

[0217] Where N is a positive integer, n is a positive integer, and n takes values ​​in the sequence {N, N-1, ..., 2, 1}.

[0218] Specifically, the electronic device substitutes the real-time movement distance, real-time movement time, and user weight corresponding to the end time of the nth second time period into the calculation formula corresponding to the first exercise type to obtain the real-time exercise calories corresponding to the end time of the nth second time period.

[0219] Specifically, the electronic device substitutes the real-time movement distance, real-time movement time, and user weight corresponding to the end time of the (n-1)th second time period into the calculation formula corresponding to the first exercise type to obtain the real-time exercise calories corresponding to the end time of the (n-1)th second time period.

[0220] S1002, The electronic device uses the difference between the real-time exercise heat corresponding to the end time of the nth second time period and the real-time exercise heat corresponding to the end time of the (n-1)th second time period as the third exercise heat corresponding to the nth second time period.

[0221] For example, each third calorie expenditure can be calculated using the following formula (7):

[0222] (7)

[0223] in, The third type of exercise calories; This represents the real-time exercise heat corresponding to the end time of the nth second time period; This represents the real-time exercise heat corresponding to the end time of the (n-1)th second time period.

[0224] For example, Figure 11 A and Figure 11 B in the diagram illustrates the relationship between the real-time calorie expenditure at the cutoff time within the first time period and the third calorie expenditure at each of the second time periods in this embodiment. The real-time calorie expenditure at the cutoff time within the first time period represents the total calorie expenditure within that first time period.

[0225] Specifically, Figure 11 A in the figure shows the relationship between total exercise heat and total exercise heat / total exercise time during the first time period. Figure 11B in the diagram illustrates the relationship between the real-time exercise calories corresponding to the end time of the nth second time period, the real-time exercise calories corresponding to the end time of the (n-1)th second time period, and the third exercise calories of the nth second time period. Figure 11 The B in the example is to obtain the third exercise calorie in the second second time period by taking the real-time exercise calorie corresponding to the end time of the second second time period and the real-time exercise calorie corresponding to the end time of the first second time period.

[0226] In another embodiment, such as Figure 12 As shown, prior to S806, the method for determining the third kinetic energy could include:

[0227] S1201. The electronic device obtains the real-time movement distance corresponding to the end time of the nth second time period and the real-time movement distance corresponding to the end time of the (n-1)th second time period based on the real-time movement distance within the first time period.

[0228] Where N is a positive integer, n is a positive integer, and n takes values ​​in the sequence {N, N-1, ..., 2, 1}.

[0229] S1202, The electronic device takes the difference between the real-time movement distance corresponding to the end time of the nth second time period and the real-time movement distance corresponding to the end time of the (n-1)th second time period as the movement distance corresponding to the nth second time period.

[0230] In this embodiment, the movement distance corresponding to each second time period is obtained through differential calculation. In other embodiments, the electronic device can obtain the movement distance within each second time period separately. For example, after obtaining the movement distance within the first second time period, the electronic device will reset the movement distance within the first second time period to zero, and then the electronic device will obtain the movement distance within the second second time period.

[0231] S1203. The electronic device substitutes the movement time and movement distance of each second time period into the second calorie calculation formula corresponding to the first movement type to obtain the calorie of each third movement.

[0232] For example, combining the above formulas (3)-(6), it can be seen that the calories from exercise are positively correlated with (exercise distance / exercise time). Therefore, the formula for calculating the first calorie corresponding to the first type of exercise can be simplified to the following formula (8):

[0233] (8)

[0234] In this paper, the simplified formula for calculating the first calorie amount corresponding to the first type of exercise is referred to as the second calorie calculation formula for the first type of exercise.

[0235] For example, Figure 11 A and Figure 11 C in the figure illustrates the relationship between real-time exercise heat and each third exercise heat during the first time period in this embodiment.

[0236] Specifically, Figure 11 C in the figure shows the relationship between the third exercise heat in each second time period and the exercise distance / exercise time in each second time period.

[0237] The above embodiments describe a method for displaying exercise calories provided by this application from the perspective of an electronic device as the executing entity. The specific implementation of this method requires the support of various hardware and software modules within the electronic device. The following section, in conjunction with... Figure 13 This paper introduces a method for displaying exercise calories provided by embodiments of this application, through the interaction of various software and hardware modules in an electronic device.

[0238] In one embodiment, the electronic device may include a fitness and health application. The fitness and health application may include a health module, a fitness module, and a "My Profile" module. The electronic device may also include a pedometer sensor, a pedometer management module, and a display module. The pedometer management module is used to count the number of steps taken by the pedometer sensor. The display module includes a screen for displaying the interface of the fitness and health application. The "My Profile" module is used to record the user's weight.

[0239] Figure 13 This is illustrated as a sixth schematic flowchart of a method for displaying exercise calories according to an embodiment of this application. Figure 13 As shown, the exercise calorie display method provided in this application embodiment may include:

[0240] S1301. In response to clicking the outdoor running control, the sports module determines the sports type as outdoor running.

[0241] S1302. In response to clicking the Start Exercise control at the first moment, the exercise module sends a weight query message to the My module, a step counting request message to the step counting management module, and a location request message to the location module.

[0242] S1303, My module sends the user's weight to the motion module.

[0243] S1304, The step counting management module sends a step counting command to the step counting sensor.

[0244] S1305, The step counting sensor sends the new step count to the step counting management module.

[0245] S1306, The step counting management module counts real-time steps.

[0246] S1307, The step counting management module sends the real-time step count to the exercise module.

[0247] S1308, The positioning module sends real-time location information to the motion management module.

[0248] It should be understood that S1303, S1304 and S1305, S1308 are all located after S1302, and there is no order among them.

[0249] S1309 The motion module determines the real-time motion distance based on the real-time location information and the real-time number of steps.

[0250] S1310 The exercise module determines the real-time exercise calories based on the real-time exercise distance, real-time exercise time, exercise type, and user's weight.

[0251] In this step, you can refer to S803 above, which will not be repeated here.

[0252] S1311, The motion module sends real-time exercise calories, real-time exercise distance, and real-time exercise time to the display module.

[0253] S1312 The display module displays real-time exercise calories, real-time exercise distance, and real-time exercise time on the first interface.

[0254] It should be understood that the motion module sends real-time exercise calories, real-time exercise distance, and real-time exercise time to the display module for display. However, after receiving the real-time exercise calories, real-time exercise distance, and real-time exercise time, the display module does not immediately display these data. Instead, the display module only displays these data when the electronic device responds to a trigger operation on a first-type parameter interface (such as the first interface mentioned above).

[0255] S1313, the motion module determines the first minute of heat within each second time period based on the real-time heat, real-time distance, real-time time, and duration of the second time period at each moment.

[0256] In this step, starting from the first moment, the motion module will calculate the real-time exercise heat, real-time exercise distance, and real-time exercise time at the end of each second time period based on the duration of the second time period and the real-time exercise heat, real-time exercise distance, and real-time exercise time at each moment. The process of determining the heat for each first minute can be referred to S1001-S1002 or S1201-S1203.

[0257] S1314, The exercise module sends the first minute's worth of calories to the health module.

[0258] In this embodiment, the first time-based calorie expenditure is acquired by the exercise module and provided to the health module. In other embodiments, the first time-based calorie expenditure is directly acquired by the health module based on real-time exercise parameters provided by the exercise module, such as real-time exercise calorie expenditure.

[0259] S1315. In response to clicking the end control at the second moment, the motion module determines the second total heat.

[0260] This step can refer to S804 above. In this step, the second total heat refers to the total exercise heat recorded by the motion module during the first time period.

[0261] S1316, The motion module sends the second total heat to the display module.

[0262] S1317, The display module displays the second total heat on the second interface.

[0263] S1318 The health module sums the first exercise calories with the historical calories for each first hour.

[0264] Historical calorie count refers to the total calorie count recorded by electronic devices through fitness apps at the first moment.

[0265] S1319, The health module determines the total exercise heat within a third time period as the second time-division heat within that third time period.

[0266] This step can be referenced from S713 above.

[0267] S1320, the health module sends the first exercise calories, the first hourly calories, and the second hourly calories to the display module.

[0268] S1321 The display module displays the first exercise calories on the third interface, the first hourly calories on the fourth interface, and the second hourly calories on the sixth interface.

[0269] Figure 14 The third illustration shows an interface diagram of an electronic device provided in an embodiment of this application.

[0270] For example, such as Figure 14 As shown in A, the first detail interface 220 (i.e., the sixth interface) displays the exercise details card 1410. This includes, for example, the type of exercise, the calorie consumption data for each type of exercise, and the percentage of calorie consumption data for each type of exercise in the total calorie expenditure. The exercise type refers to the types of exercise included in the exercise module of the sports and health application.

[0271] Furthermore, electronic devices can establish a communication connection with wearable devices (such as a Bluetooth connection). During exercise, the wearable device can acquire calorie parameters such as real-time exercise calories, total exercise calories, first minute calorie count, and second minute calorie count, and provide them to the electronic device. The first exercise calorie count displayed on the interface corresponding to the health module of the electronic device can include the calorie parameters acquired from the wearable device. Alternatively, the wearable device may only be used to collect exercise information such as steps, distance, and time, and provide it to the electronic device. The electronic device then obtains the corresponding calorie parameters based on this exercise information.

[0272] Wearable devices are devices with a simpler structure than electronic devices, such as sports watches and fitness trackers.

[0273] like Figure 14 As shown in Figure B, when the electronic device and the wearable device are connected, the sports details card 1410 can display the types of sports supported by the wearable device, such as yoga.

[0274] like Figure 15 As shown in the illustration, this application also provides a chip system. The chip system 1500 includes at least one processor 1510 and at least one interface circuit 1520. The at least one processor 1510 and the at least one interface circuit 1520 are interconnected via lines. The processor 1510 is used to support an electronic device in implementing the various steps in the above method embodiments, and the at least one interface circuit 1520 is used to receive signals from other devices (e.g., memory) or to send signals to other devices (e.g., a communication interface). The chip system may include a chip and may also include other discrete devices.

[0275] This application also provides a computer storage medium including instructions that, when executed on the electronic device, cause the electronic device to perform the steps in the above method embodiments.

[0276] This application also provides a computer program product including instructions that, when executed on the electronic device, cause the electronic device to perform the steps in the method embodiments described above.

[0277] The technical effects of the chip system, computer storage medium, and computer program product are similar to those in the preceding method embodiments.

[0278] It should be understood that in the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0279] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0280] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and modules described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0281] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or modules may be electrical, mechanical, or other forms.

[0282] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located on one device or distributed across multiple devices. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0283] In addition, the functional modules in the various embodiments of this application can be integrated into one device, or each module can exist physically separately, or two or more modules can be integrated into one device.

[0284] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be entirely or partially in the form of a computer program product. This computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer storage medium or transmitted from one computer storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer storage medium can be any available medium accessible to a computer or a data storage device including one or more servers, data centers, etc., that can be integrated with the medium. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0285] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for displaying exercise calories, characterized in that, The method is applied to an electronic device, the electronic device including a sports and health application, the sports and health application including a sports module and a health module, the sports module providing a first type of parameter interface, and the health module providing a second type of parameter interface; wherein, the first type of parameter interface is used to display sports parameters during user exercise, and the second type of parameter interface is used to display user health parameters; both the sports parameters and the health parameters include the user's exercise calories; the method includes: In response to the start of exercise operation for the first type of exercise in the sports and health application, the exercise module is activated and a first interface in the first type of parameter interface is displayed, and the health module switches from a first calculation mode to a second calculation mode; the first interface is used to record and display real-time exercise parameters during the exercise process from a first moment based on a first calorie calculation formula corresponding to the first exercise type, the real-time exercise parameters including real-time exercise calories calculated based on the user's weight, real-time exercise distance, and real-time exercise time; in the first calculation mode, the health module obtains the exercise calories within a certain time period based on the product of the calorie consumption factor and the cumulative number of steps within a certain time period; in the second calculation mode, the health module stops obtaining the exercise calories within a certain time period based on the product of the calorie consumption factor and the cumulative number of steps within a certain time period, and receives exercise calories from the exercise module; In response to the end-of-exercise operation on the first interface at the second moment, the second interface in the first type of parameter interface is displayed, and the health module exits the second calculation mode; the second interface includes total exercise parameters within a first time period, the total exercise parameters including total exercise calories accumulated from the real-time exercise calories; the first time period starts from the first moment and ends at the second moment; wherein, during the first time period, the exercise module provides the real-time exercise calories to the health module; In response to a first operation in the sports and health application, a third interface in the second type of parameter interface is displayed; the third interface includes a first exercise calorie, which is the sum of the total exercise calorie and the total exercise calorie recorded by the electronic device at a first moment; In response to the second operation on the third interface, a fourth interface in the second type of parameter interface is displayed; the fourth interface includes N third exercise calories, which are generated by the health module or the exercise module based on the real-time exercise calories provided by the exercise module during the first time period, by calculating the calorie difference between adjacent time nodes. Each third exercise calorie corresponds to the total exercise calories in one of the N second time periods within the first time period; the N second time periods are of equal duration, and the sum of the N third exercise calories is equal to the total exercise calories within the first time period.

2. The method according to claim 1, characterized in that, The first formula for calculating heat is: in, The real-time exercise heat; The metabolic equivalent is a value corresponding to the first type of exercise. Different types of exercise correspond to different metabolic equivalents, and the metabolic equivalent is related to the real-time exercise distance and the real-time exercise time. The user's weight; The real-time motion time is denoted as .

3. The method according to claim 2, characterized in that, The first type of exercise is running, and the metabolic equivalent is: in, The real-time movement distance; , , It is a constant.

4. The method according to claim 2, characterized in that, The first type of exercise is walking, and the metabolic equivalent is: in, The real-time movement distance; , , It is a constant.

5. The method according to claim 2, characterized in that, The first type of exercise is cycling, and the metabolic equivalent is: in, The real-time movement distance; , , It is a constant.

6. An electronic device, characterized in that, include: The device includes a memory, a display screen, a motion sensor, and one or more processors; the memory, the display screen, the motion sensor, and the processor are coupled together. The memory stores computer program code, which includes instructions; when the processor executes the instructions, the electronic device performs the method as described in any one of claims 1-5.

7. A computer-readable storage medium, characterized in that, Includes instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1-5.