Breathing guidance method and related apparatus
Abstract
Embodiments of the disclosure include a breathing guidance method and a related apparatus. Some embodiments include obtaining sensor data. Some embodiments determine an action type of a user based on the sensor data. Some embodiments output a first prompt in response to determining that the action type of the user represents a first action type, where the first prompt is used to prompt the user to perform an inhalation action. Some embodiments output a second prompt in response to determining that the action type of the user represents a second action type, where the second prompt is used to prompt the user to perform an exhalation action, and is different from the second prompt.
Claims
exact text as granted — not AI-modified1 . A method, comprising:
obtaining, by a first electronic device, sensor data; determining, by the first electronic device, an action type of a user based on the sensor data; outputting, by the first electronic device, a first prompt in response to the first electronic device determining that the action type of the user represents a first action type, wherein the first prompt prompts the user to perform an inhalation action; and outputting, by the first electronic device, a second prompt in response to the first electronic device determining that the action type of the user represents a second action type, wherein the second prompt prompts the user to perform an exhalation action, and wherein the first prompt is different from the second prompt.
2 . The method according to claim 1 , wherein a type of the first prompt is any one or more of the following: vibration type, voice type, text type, or picture type; and
wherein a type of the second prompt is any one or more of the following: vibration type, voice type, text type, or picture type.
3 . The method according to claim 2 , wherein the first prompt being different from the second prompt comprises:
a first vibration frequency of the first prompt is different from a second vibration frequency of the second prompt.
4 . The method according to claim 2 , wherein the first prompt being different from the second prompt comprises:
a first voice content of the first prompt is different from a second voice content of the second prompt.
5 . (canceled)
6 . The method according to claim 1 , further comprising:
when the first electronic device outputs the first prompt, sending, by the first electronic device, a first instruction to a second electronic device, wherein the first instruction instructs the second electronic device to output a third prompt, the third prompt prompts the user to perform a second inhalation action, and a type of the third prompt is any one or more of the following: vibration type, voice type, text type, or picture type.
7 . The method according to claim 1 , wherein outputting, by the electronic device, the first prompt in response to the first electronic device determining that the action type of the user represents the first action type comprises:
outputting, by the first electronic device, the first prompt in response to the first electronic device determining, for n consecutive times, that the action type of the user represents the first action type, wherein n is a positive integer greater than or equal to
1 .
8 . The method according to claim 1 , wherein after outputting, by the first electronic device, the first prompt, and before outputting, by the first electronic device, the second prompt, the method further comprises:
outputting, by the first electronic device, a fourth prompt in response to the first electronic device determining that the action type of the user represents a third action type, wherein the fourth prompt prompts the user to perform a breath holding action, and a type of the fourth prompt is any one or more of the following: vibration type, voice type, text type, or picture type.
9 . The method according to claim 1 , wherein outputting, by the first electronic device, the first prompt in response to the first electronic device determining that the action type of the user represents the first action type, wherein the first prompt prompts the user to perform the inhalation action comprises:
outputting, by the first electronic device, the first prompt in response to the first electronic device determining that the action type of the user represents the first action type and the first electronic device detecting that the user has completed the first action, wherein the first prompt prompts the user to perform a second inhalation action.
10 . The method according to claim 1 , wherein before obtaining, by the first electronic device, the sensor data, the method further comprises:
receiving, by the first electronic device, a first input operation, and responding to the first input operation to determine a first exercise mode, wherein the first exercise mode is any one of the following: a running mode, a swimming mode, a weight lifting mode, an elliptical machine exercise mode, a rowing machine exercise mode, or a rowing mode; and wherein determining, by the first electronic device, the action type of the user based on the sensor data comprises:
determining, by the first electronic device, the action type of the user in the first exercise mode based on the sensor data.
11 . The method according to claim 1 , wherein before obtaining, by the first electronic device, the sensor data, the method further comprises:
receiving, by the first electronic device, the sensor data sent by a third electronic device.
12 . The method according to claim 11 , wherein the sensor data comprises one or more of acceleration data, gyroscope data, image data, gravity data, or pressure data.
13 . The method according to claim 10 , wherein, within a first time after the first electronic device determines the first exercise mode, the first electronic device suspends obtaining of the sensor data.
14 . The method according to claim 13 , wherein after the first electronic device suspends obtaining of the sensor data, in response to the first electronic device detecting that a heart rate of the user is greater than a preset heart rate value or a respiratory rate of the user is greater than a preset frequency, the first electronic device continues obtaining the sensor data.
15 - 17 . (canceled)
18 . An electronic device, wherein the electronic device comprises one or more processors and one or more memories, the one or more memories are coupled to the one or more processors, wherein the one or more memories store computer program code, the computer program code comprises computer instructions, and when the one or more processors invoke the computer instructions the electronic device is enabled to perform:
obtaining sensor data; determining an action type of a user based on the sensor data; outputting a first prompt in response to the electronic device determining that the action type of the user represents a first action type, wherein the first prompt is used to prompt the user to perform an inhalation action; and outputting a second prompt in response to the electronic device determining that the action type of the user represents a second action type, wherein the second prompt prompts the user to perform an exhalation action, and wherein he first prompt is different from the second prompt.
19 . The electronic device according to claim 18 , wherein the electronic device is further enabled to perform:
when the electronic device outputs the first prompt, sending a first instruction to a second electronic device, wherein the first instruction instructs the second electronic device to output a third prompt, the third prompt prompts the user to perform a second inhalation action, and a type of the third prompt is any one or more of the following: vibration type, voice type, text type, or picture type.
20 . The electronic device according to claim 19 , wherein the electronic device is further enabled to perform:
outputting the first prompt in response to the electronic device determines, for n consecutive times, that the action type of the user represents the first action type, wherein n is a positive integer greater than or equal to 1.
21 . The electronic device according to claim 19 , wherein the electronic device is further enabled to perform:
receiving a first input operation, and responding to the first input operation to determine a first exercise mode, wherein the first exercise mode is any one of the following: a running mode, a swimming mode, a weight lifting mode, an elliptical machine exercise mode, a rowing machine exercise mode, or a rowing mode; and wherein determining the action type of the user based on the sensor data comprises: determining the action type of the user in the first exercise mode based on the sensor data.
22 . An electronic device, wherein the electronic device comprises one or more processors and one or more memories, the one or more memories coupled to the one or more processors, wherein the one or more memories store computer program code, the computer program code comprises computer instructions, and when the one or more processors invoke the computer instructions the electronic device is enabled to perform:
receiving a first input operation, and responding to the first input operation to determine a first exercise mode; obtaining sensor data; determining an action type of a user in a first exercise mode based on the sensor data; outputting a first prompt in response to the electronic device determining that the action type of the user represents a first action type, wherein the first prompt prompts the user to perform an inhalation action; and outputting a second prompt in response to the electronic device determining that the action type of the user represents a second action type, wherein the second prompt prompts the user to perform an exhalation action, and wherein the first prompt is different from the second prompt.
23 . The electronic device according to claim 22 , wherein the electronic device is further enabled to perform:
when the electronic device outputs the first prompt, sending a first instruction to a second electronic device, wherein the first instruction instructs the second electronic device to output a third prompt, the third prompt prompts the user to perform a second inhalation action, and a type of the third prompt is any one or more of the following: vibration type, voice type, text type, or picture type.
24 . The electronic device according to claim 22 , wherein the electronic device is further enabled to perform:
outputting the first prompt in response to the electronic device determining, for n consecutive times, that the action type of the user represents the first action type, wherein n is a positive integer greater than or equal to 1.Join the waitlist — get patent alerts
Track US2025135278A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.