WO2023016486A1 - 一种呼吸指导方法及相关装置 - Google Patents

一种呼吸指导方法及相关装置 Download PDF

Info

Publication number
WO2023016486A1
WO2023016486A1 PCT/CN2022/111414 CN2022111414W WO2023016486A1 WO 2023016486 A1 WO2023016486 A1 WO 2023016486A1 CN 2022111414 W CN2022111414 W CN 2022111414W WO 2023016486 A1 WO2023016486 A1 WO 2023016486A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
user
action
prompt
motion
Prior art date
Application number
PCT/CN2022/111414
Other languages
English (en)
French (fr)
Inventor
李小龙
董晓杰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP22855466.3A priority Critical patent/EP4368265A1/en
Publication of WO2023016486A1 publication Critical patent/WO2023016486A1/zh

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B71/00Games or sports accessories not covered in groups A63B1/00 - A63B69/00
    • A63B71/06Indicating or scoring devices for games or players, or for other sports activities
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B71/00Games or sports accessories not covered in groups A63B1/00 - A63B69/00
    • A63B71/06Indicating or scoring devices for games or players, or for other sports activities
    • A63B71/0619Displays, user interfaces and indicating devices, specially adapted for sport equipment, e.g. display mounted on treadmills
    • A63B71/0622Visual, audio or audio-visual systems for entertaining, instructing or motivating the user
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/30ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to physical therapies or activities, e.g. physiotherapy, acupressure or exercising
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B71/00Games or sports accessories not covered in groups A63B1/00 - A63B69/00
    • A63B71/06Indicating or scoring devices for games or players, or for other sports activities
    • A63B71/0619Displays, user interfaces and indicating devices, specially adapted for sport equipment, e.g. display mounted on treadmills
    • A63B71/0622Visual, audio or audio-visual systems for entertaining, instructing or motivating the user
    • A63B2071/0625Emitting sound, noise or music
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B71/00Games or sports accessories not covered in groups A63B1/00 - A63B69/00
    • A63B71/06Indicating or scoring devices for games or players, or for other sports activities
    • A63B71/0619Displays, user interfaces and indicating devices, specially adapted for sport equipment, e.g. display mounted on treadmills
    • A63B2071/0655Tactile feedback

Definitions

  • the present application relates to the technical field of mobile terminals, in particular to a breathing guidance method and a related device.
  • Breathing is one of the most important acts in the daily activities of human beings. Correct breathing is very important for exercise and health. However, in some cases, users forget to breathe in a reasonable rhythm. For example: in the field of sports, how to achieve safe exercise and improve performance by regulating breathing; in the field of medical health, how to achieve better rehabilitation goals through breathing guidance.
  • This application provides a breathing guidance method and a related device, which realizes that the electronic device can remind the user when to inhale and when to inhale through different prompting methods, so that the rhythm of the action matches the breathing rhythm of the user .
  • the present application provides a breathing guidance method, the method includes: acquiring sensor data by a first electronic device;
  • the first electronic device determines the user's action type based on sensor data; when the first electronic device determines that the user's action type is the first action type, the first electronic device outputs a first prompt, and the first prompt is used to prompt the user to perform an inhalation action ; When the first electronic device determines that the user's action type is the second action type, the first electronic device outputs a second prompt, the second prompt is used to prompt the user to perform an exhalation action, and the first prompt is different from the second prompt.
  • the first electronic device may be a mobile phone, a wearable device, a headset, smart glasses, an augmented reality (augmented reality, AR) device, a virtual reality (virtual reality, VR) device, and the like.
  • the wearable device may be a device supported by the wrist, such as a smart watch, a smart bracelet, a smart wristband, and the like.
  • the wearable device may also be an ankle-supported device, such as a smart anklet, a smart shoe, a smart sock, or other devices that can be worn on the leg.
  • the wearable device can also be a device supported by the head, such as a smart helmet, a smart headband (also called a smart headband).
  • the first electronic device may also be medical equipment, fitness equipment, and the like.
  • Medical devices may include, but are not limited to, ventilators, nebulizers, gastroscope equipment, chest X-ray detection equipment, etc.
  • Exercise equipment may include, but is not limited to, boat hulls, rowing machines, elliptical machines, barbells, and the like.
  • the third electronic device collects sensor data, and determines a user's action type based on the sensor data.
  • the third electronic device determines that the user's action type is the first action type
  • the third electronic device sends an instruction 1 to the first electronic device, and after receiving the instruction 1, the first electronic device outputs a first prompt, which is used to Prompt the user to take an inhalation action
  • the third electronic device determines that the user's action type is the second action type
  • the third electronic device sends the instruction 2 to the first electronic device, and the first electronic device outputs the second instruction after receiving the instruction 2.
  • the second prompt is used to prompt the user to perform an exhalation action, and the first prompt is different from the second prompt.
  • the electronic device can remind the user when to inhale and when to inhale through different prompting methods, so that the rhythm of the action matches the breathing rhythm of the user, saving physical energy and improving the user's breathing. athletic ability.
  • the type of the first prompt is any one or more of the following: vibration, voice, text, picture;
  • the type of the second prompt is any one or more of the following: Vibration, voice, text, picture.
  • the first prompt is different from the second prompt, specifically including: a vibration frequency of the first prompt is different from a vibration frequency of the second prompt.
  • the first prompt is different from the second prompt, specifically including: the voice content of the first prompt is different from the voice content of the second prompt.
  • the first prompt is different from the second prompt, specifically including: the type of the first prompt is any one or more of the following: vibration, voice, text, and picture; The second prompt does not output any content; or, the first prompt does not output any content; the type of the second prompt is any one or more of the following: vibration, voice, text, and picture.
  • the first electronic device may display the guiding action on the display screen.
  • the guide action is used to instruct the user to breathe actions corresponding to different action types.
  • the first electronic device may display animation on the display screen.
  • the animation is used to indicate breathing actions corresponding to different action types of the user.
  • the first electronic device may be playing the voice.
  • the voice is used to instruct the user to breathe actions corresponding to different action types.
  • the method further includes: when the first electronic device outputs the first prompt, the first electronic device sends a first instruction to the second electronic device, the first instruction is used to indicate The second electronic device outputs a third prompt, and the third prompt is used to remind the user to take an inhalation action; wherein, the type of the third prompt is any one or more of the following: vibration, voice, text, and picture.
  • the first electronic device may output a third prompt through other electronic devices (the second electronic device is an earphone or a mobile phone) that has established a connection.
  • the first electronic device may not output any content, but output the third prompt through another electronic device (the second electronic device is an earphone or a mobile phone) that establishes a connection.
  • the second electronic device is an earphone or a mobile phone
  • the electronic device when the first electronic device determines that the user's action type is the first action type, the electronic device outputs a first prompt, which specifically includes: when the first electronic device determines n consecutive times When the user's action type is the first action type, the electronic device outputs a first prompt, and n is a positive integer greater than or equal to 1.
  • the electronic device When the first electronic device determines that the user's action type is the second action type, the electronic device outputs a second prompt, which specifically includes: when the first electronic device determines that the user's action type is the second action type for m consecutive times, the electronic device outputs The second prompt, m is a positive integer greater than or equal to 1.
  • the first electronic device may monitor multiple first actions or second actions, and allow the user to perform an inhalation action or an exhalation action. For example, “one step and one breath" in running, "two strokes correspond to one breath” in swimming, etc. In this way, the first electronic device gives different breathing rhythms according to different exercise types, reflecting the flexibility of breathing guidance.
  • the method further includes: when the first electronic device determines the user's action type When it is the third action type, the first electronic device outputs a fourth prompt, and the fourth prompt is used to prompt the user to perform a breath-holding action; wherein, the type of the fourth prompt is any one or more of the following: vibration, voice, text, picture .
  • the type of the fourth prompt is any one or more of the following: vibration, voice, text, picture .
  • the first electronic device prompts the user to hold one's breath through a fourth prompting manner.
  • the first electronic device prompts the user to perform one or several short exhalation and inhalation actions in a fourth prompt manner.
  • the first electronic device determines that the user's action type is the first action type
  • the first electronic device outputs a first prompt
  • the first prompt is used to prompt the user to inhale
  • the action specifically includes: when the first electronic device determines that the user's action type is the first action type, and the first electronic device detects that the user has completed the first action, the first electronic device outputs a first prompt, and the first prompt is used to Prompt the user to inhale.
  • the user's head can protrude from the water surface and perform an inhalation action only after the user completes the first action.
  • the first electronic device when the first electronic device determines that the user's action type is the second action type, and the first electronic device detects that the user has completed the second action, the first electronic device outputs a second prompt, and the second The prompt is used to prompt the user to perform an exhalation action. For example, in a swimming application scenario, the user completes the second action, and the first electronic device prompts the user to perform an exhalation action.
  • the method further includes: the first electronic device receives and responds to a first input operation, and determines a first motion pattern; the first motion pattern It is any one of the following: running mode, swimming mode, weightlifting mode, elliptical machine exercise mode, rowing machine exercise mode, and rowing mode; the first electronic device determines the user's action type based on sensor data, specifically including: the first electronic device determines the user's action type based on sensor data The data determines the type of motion of the user in the first exercise mode. In this way, the first electronic device can turn on different exercise modes before exercising, and provide different breathing guidance schemes in different exercise modes.
  • the first electronic device may adaptively enable the first motion mode according to the collected motion sensor data.
  • the first electronic device After the first electronic device adaptively turns on the first sports mode, the first electronic device displays a first interface on which a first control is displayed. The first electronic device receives and responds to the user's input operation on the first control, and the first electronic device cancels starting the first exercise mode. In this way, the first electronic device is prevented from turning on the first exercise mode by mistake, which increases the consumption of the first electronic device.
  • the method further includes: the first electronic device receives the sensor data sent by the third electronic device.
  • the third electronic device may be fitness equipment or medical equipment. That is to say, the first electronic device establishes a communication connection with the first electronic device. The third electronic device collects motion sensor data on the third electronic device in real time, and sends the motion sensor data to the first electronic device in real time.
  • the sensor data includes one or more of acceleration data, gyroscope data, image data, gravity data, and pressure data.
  • the first electronic device suspends acquiring sensor data. In this way, after the first electronic device instructs the user to breathe for a period of time, it can suspend the breathing guidance function to save power consumption of the first electronic device.
  • the first electronic device After the first electronic device suspends acquiring sensor data, the first electronic device detects that the user's heart rate is greater than a preset heart rate value and/or the user's breathing rate is greater than a preset frequency , the first electronic device continues to acquire sensor data. In this way, the flexibility of the breathing guidance performed by the first electronic device is reflected.
  • the present application provides an electronic device, the electronic device includes: one or more processors, one or more memories; one or more memories are coupled with one or more processors, one or more memories are used
  • the computer program code includes computer instructions, and one or more processors call the computer instructions to make the electronic device execute the method described in any one of the above first aspects.
  • the present application provides a computer-readable storage medium, including instructions, wherein, when the instructions are run on an electronic device, the electronic device is made to execute the method described in any one of the above-mentioned first aspects.
  • the present application provides a computer program product, which is characterized in that, when the computer program product is run on an electronic device, the electronic device is made to execute the method described in any one of the above-mentioned first aspects.
  • FIG. 1 is a schematic diagram of a hardware structure of an electronic device 100 provided in an embodiment of the present application
  • FIG. 2 is a software structural block diagram of an electronic device 100 provided in an embodiment of the present application.
  • FIG. 3A-FIG. 3E are UI diagrams of a group of electronic devices 100 in the running mode provided by the embodiment of the present application;
  • FIG. 4 is a UI diagram of a motion sensor in the running mode of the electronic device 100 provided by the embodiment of the present application;
  • 5A-5O are UI diagrams involved in a group of breathing guidance schemes during running provided by the embodiment of the present application.
  • 6A-6B are schematic diagrams of the first action and the second action in a group of breaststroke provided by the embodiment of the present application;
  • FIGS. 7A and 7B are schematic diagrams of the first action and the second action in a group of freestyle swimming provided by the embodiment of the present application;
  • FIGS. 8A-8B are schematic diagrams of the first action and the second action in a group of backstroke provided by the embodiment of the present application;
  • 9A-9B are schematic diagrams of the first action and the second action in a group of butterfly strokes provided by the embodiment of the present application.
  • 10A-10B are schematic diagrams of the first action and the second action in a group of weightlifting exercises provided by the embodiment of the present application;
  • 11A-11B are schematic diagrams of the first action and the second action in a group of rowing exercises provided by the embodiment of the present application;
  • 12A-12B are schematic diagrams of a group of first and second actions when using a rowing machine to exercise according to the embodiment of the present application;
  • FIGS. 13A-13B are schematic diagrams of a set of first and second actions when using an elliptical machine for exercise provided by the embodiment of the present application;
  • 14A-14C are a set of schematic diagrams for judging the type of action in weightlifting through acceleration data provided by the embodiment of the present application;
  • Fig. 15A-Fig. 15C are a set of schematic diagrams for judging the action type in rowing motion through acceleration data provided by the embodiment of the present application;
  • Fig. 16A-Fig. 16C are a set of schematic diagrams of judging the type of action in the rowing machine through the acceleration data provided by the embodiment of the present application;
  • Figure 17A- Figure 17C is a set of schematic diagrams for judging the type of action in the exercise using the elliptical machine through the acceleration data provided by the embodiment of the present application;
  • Fig. 18 is a schematic diagram of a scene in a gastroscopy provided by an embodiment of the present application.
  • Fig. 19 is a schematic diagram of a scene in an aerosol inhalation therapy provided by an embodiment of the present application.
  • FIG. 20 is a schematic flow chart of a breathing guidance method provided in an embodiment of the present application.
  • FIG. 21 is a schematic diagram of an electronic device 100 obtaining a user's exercise ability according to the user's personal information provided by the embodiment of the present application.
  • first and second are used for descriptive purposes only, and cannot be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, the “multiple” The meaning is two or more.
  • UI user interface
  • the term "user interface (UI)” in the following embodiments of this application is a medium interface for interaction and information exchange between an application program or an operating system and a user, and it realizes the difference between the internal form of information and the form acceptable to the user. conversion between.
  • the user interface is the source code written in a specific computer language such as java and extensible markup language (XML).
  • the source code of the interface is parsed and rendered on the electronic device, and finally presented as content that can be recognized by the user.
  • the commonly used form of user interface is the graphical user interface (graphic user interface, GUI), which refers to the user interface related to computer operation displayed in a graphical way. It may be text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, and other visible interface elements displayed on the display screen of the electronic device.
  • the user needs to combine the breathing rhythm to cooperate with the doctor's check.
  • it is generally judged by a doctor's experience to tell the user when to inhale and when to exhale.
  • the doctor will examine many patients every day. If the doctor needs to remind the user to breathe every time, the workload of the doctor will be greatly increased.
  • the embodiment of the present application provides a breathing guidance method.
  • the method includes: when the electronic device detects the first action, prompting the user to inhale in a first prompting manner; when the electronic device detects the second action, prompting the user to exhale in a second prompting manner.
  • first action and the second action may be user actions detected by the electronic device.
  • the first action and the second action may also be actions of other electronic equipment (such as sports equipment and medical equipment) detected by the electronic equipment.
  • the type of the first prompting method may be any one or more of vibration, voice, text, and picture.
  • the type of the second prompting method may also be any one or more of vibration, voice, text, and picture.
  • the vibration frequency of the first prompting mode may be different from the vibration frequency of the second prompting mode.
  • the first prompting mode may be a long vibration
  • the second prompting mode may be an interval vibration.
  • the vibration frequency of the first prompt mode and the vibration frequency of the second prompt mode may also be the same, for example, the first prompt mode may only vibrate once, and the second prompt mode may only vibrate once.
  • the voice content of the first prompting manner is different from the voice content of the second prompting manner.
  • the speech content of the first prompting manner may be "please inhale"
  • the speech content of the second prompting manner may be "please exhale”.
  • both the type of the first prompting method and the type of the second prompting method are text
  • the electronic device when the electronic device outputs the first prompting, the electronic device can display the text "inhale" on the display screen, and the text displayed on the display screen
  • the size, color, and shape may gradually change (for example, the font gradually becomes larger) as the user inhales.
  • the electronic device When the electronic device outputs the second prompt, the electronic device may display the text "exhale" on the display screen, and the size, color and shape of the text displayed on the display screen may gradually change with the user's exhalation action (eg font gets smaller).
  • FIG. 5M-FIG. 5O the embodiments described in subsequent FIG. 5M-FIG. 5O.
  • both the type of the first prompting method and the type of the second prompting method are pictures
  • the electronic device when the electronic device outputs the first prompting, the electronic device can display an image on the display screen, and the size, color and The shape may gradually change as the user's inhalation action progresses (for example, the image gradually becomes larger).
  • the electronic device outputs the second prompt the electronic device can display an image on the display screen, and the size, color, and shape of the image displayed on the display screen can gradually change as the user's exhalation action proceeds (for example, the image gradually becomes smaller) ).
  • the type of the first prompting manner and the type of the second prompting manner may also be a combination of two or more of the aforementioned vibration, voice, text, and picture.
  • the type of the first prompting method may be any one or several of vibration, voice, text, and picture, and the second prompting method does not output any prompting.
  • the electronic device detects that the user is performing the first action, it prompts the user to perform an inhalation action through vibration, voice, text, pictures, and the like.
  • the electronic device detects that the user is performing the second action, the electronic device does not output any prompt.
  • the type of the first prompting method may not output any prompting
  • the second prompting method may be any one or several of vibration, voice, text, and picture.
  • the electronic device detects that the user is performing the first action, the electronic device does not output any prompt.
  • the electronic device detects that the user is performing the second action, it prompts the user to perform an inhalation action through vibration, voice, text, pictures, and the like.
  • the first prompting manner and the second prompting manner may also be implemented in other ways, and this embodiment of the present application does not limit the specific implementation of the first prompting manner and the second prompting manner.
  • the electronic device can prompt the user when to inhale and when to inhale through different prompting methods, so that the rhythm of the action matches the breathing rhythm of the user.
  • the method can be applied to the field of sports.
  • rhythmic breathing combined with rhythmic exercise can make the user's training effect achieve twice the result with half the effort. That is, when the electronic device detects that the user performs the first action, the electronic device prompts the user to inhale through the first prompting manner. When the electronic device detects that the user performs the second action, the electronic device prompts the user to exhale through the second prompting manner.
  • the method can guide the user's breathing rhythm and exercise rhythm during exercise, so that the user's breathing rhythm matches the exercise rhythm. It can provide sufficient oxygen and energy for the muscles during exercise, save the user's physical energy consumption, and enhance the exercise effect.
  • This method can be applied to the health field.
  • the electronic device detects that other electronic devices (such as medical devices) do the first action
  • the electronic device prompts the user to inhale through the first prompting manner.
  • the electronic device detects that other electronic devices (such as medical equipment) perform the second action
  • the electronic device prompts the user to exhale in a second prompting manner.
  • the breathing rhythm of the user can cooperate with the inspection actions of other electronic devices (such as medical devices), which can improve the user's experience during the inspection process, reduce discomfort, and improve the efficiency of health inspection.
  • the patient when a patient needs respiratory rehabilitation training, the patient can save the electronic version of the breathing guidance plan given by the doctor in the electronic device, and the electronic device regularly prompts the user to do respiratory rehabilitation training through the electronic version of the breathing guidance plan. In this way, the user can regularly perform respiratory rehabilitation training according to the breathing guidance plan, thereby improving the rehabilitation effect.
  • the electronic device provided by the embodiment of the present application is introduced below.
  • FIG. 1 shows a schematic diagram of a hardware structure of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may be a cell phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (personal digital assistant) digital assistant, PDA), augmented reality (augmented reality, AR) equipment, virtual reality (virtual reality, VR) equipment, artificial intelligence (artificial intelligence, AI) equipment, wearable equipment (smart watch, smart bracelet), vehicle equipment, smart home equipment and/or smart city equipment, the embodiment of the present application does not specifically limit the specific type of the electronic equipment.
  • the electronic device 100 may include a processor 110 , an internal memory 120 , a wireless communication module 130 , a mobile communication module 140 , a sensor module 150 , an audio module 160 , a display screen 170 , a power switch 180 , a motor 190 and keys 1000 .
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the internal memory 120 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (non-volatile memory, NVM).
  • RAM random access memory
  • NVM non-volatile memory
  • Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (synchronous dynamic random access memory, SDRAM), double data rate synchronous Dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as the fifth generation DDR SDRAM is generally called DDR5SDRAM), etc.; non-volatile memory can include disk storage devices, flash memory (flash memory).
  • SRAM static random-access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • non-volatile memory can include disk storage devices, flash memory (flash memory).
  • flash memory can include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.
  • it can include single-level storage cells (single-level cell, SLC), multi-level storage cells (multi-level cell, MLC), triple-level cell (TLC), quad-level cell (QLC), etc.
  • SLC single-level storage cells
  • MLC multi-level storage cells
  • TLC triple-level cell
  • QLC quad-level cell
  • UFS universal flash storage
  • embedded multimedia memory card embedded multi media Card
  • the random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of an operating system or other running programs, and can also be used to store data of users and application programs.
  • the non-volatile memory can also store executable programs and data of users and application programs, etc., and can be loaded into the random access memory in advance for the processor 110 to directly read and write.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 130A, the antenna 140A, the wireless communication module 130, the mobile communication module 140, the modem processor and the baseband processor, etc.
  • the antenna 130A and the antenna 140A can be used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • the wireless communication module 130 can provide wireless local area networks (wireless local area networks, WLAN), bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 130 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 130 receives electromagnetic waves via the antenna 130A, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 130 can also receive the signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it into electromagnetic wave and radiate it through the antenna 130A.
  • the mobile communication module 140 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 140 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 140 can receive electromagnetic waves through the antenna 140A, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 140 can also amplify the signal modulated by the modem processor, convert it into electromagnetic wave and radiate it through the antenna 140A.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through an audio device, or displays images or videos through the display screen 170 .
  • the mobile communication module 140 and the wireless communication module 130 can be used to establish a connection with other devices, obtain motion data collected by other devices, the motion data includes: heart rate, heat, breathing rate, etc., or control other devices to prompt The user breathes, adjusts the action, pauses or continues the exercise, etc.
  • Other devices can refer to mobile phones, wristbands, body fat scales, computers, notebooks, etc.
  • the sensor module 150 includes a gyro sensor 1501 , an acceleration sensor 1502 , a distance sensor 1503 , a temperature sensor 1504 , a touch sensor 1505 , a pressure sensor 1506 and a bone conduction sensor 1507 .
  • the gyroscope sensor 1501 can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 1501 .
  • the gyro sensor 1501 can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 1501 detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyroscope sensor 1501 can also be used for navigation and somatosensory game scenes.
  • the acceleration sensor 1502 can be used to detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • a distance sensor 1503 can be used to measure distance.
  • the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 1503 to measure a distance to achieve fast focusing.
  • the temperature sensor 1504 is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 1504 to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 1504 exceeds the threshold, the electronic device 100 may reduce the performance of a processor located near the temperature sensor 1504, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery, so as to prevent the electronic device 100 from being shut down abnormally due to the low temperature.
  • the electronic device 100 boosts the output voltage of the battery to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 1505 is also called “touch device”.
  • the touch sensor 1505 can be arranged on the display screen 170, and the touch sensor 1505 and the display screen 170 form a touch screen, also called “touch screen”.
  • the touch sensor 1505 is used to detect a touch operation acting on or near it.
  • the touch sensor 1505 can transmit the detected touch operation to the application processor to determine the type of the touch event.
  • Visual output related to the touch operation can be provided through the display screen 170 .
  • the touch sensor 1505 may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 170 .
  • the pressure sensor 1506 is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • a pressure sensor 1506 may be disposed on the display screen 170 .
  • pressure sensors 1506 such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 1506, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 1506 .
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 1506 .
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation whose intensity is less than the first pressure threshold acts on the icon of the short message application, an instruction to view the short message is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the bone conduction sensor 1507 can acquire vibration signals. In some embodiments, the bone conduction sensor 1507 can acquire the vibration signal of the human voice vibrating the bone. The bone conduction sensor 1507 can also contact the pulse of the human body and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 1507 can also be set in the earphone, combined into a bone conduction earphone.
  • the audio module 160 can analyze the voice signal based on the vibration signal obtained by the bone conduction sensor 1507 to vibrate the bone block, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 1507 to realize the heart rate detection function.
  • the audio module 160 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 160 may also be used to encode and decode audio signals.
  • the audio module 160 can be set in the processor 110 , or some functional modules of the audio module 160 can be set in the processor 110 .
  • Speaker 1601 also called “horn” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 1601, or listen to hands-free calls.
  • the microphone 1602 also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 1602 with a human mouth, and input the sound signal to the microphone 1602 .
  • the electronic device 100 may be provided with at least one microphone 1602 .
  • the electronic device 100 may be provided with two microphones 1602, which may also implement a noise reduction function in addition to collecting sound signals.
  • the electronic device 100 can also be provided with three, four or more microphones 1602 to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
  • the electronic device 100 realizes the display function through the GPU, the display screen 170 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 170 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 170 is used to display images, videos and the like.
  • the display screen 170 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 or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 170 , where N is a positive integer greater than 1.
  • the power switch 180 can be used to control power supply to the electronic device 100 .
  • the motor 190 can generate vibration prompts.
  • the motor 190 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 190 can also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 170 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the key 1000 includes a power key, a volume key and the like.
  • the key 1000 may be a mechanical key. It can also be a touch button.
  • the electronic device 1000 may receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the software structure of the electronic device 100 is exemplarily described by taking an Android system with a layered architecture as an example.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, which are application program layer, application program framework layer, Android runtime and system library, and kernel layer from top to bottom.
  • the application layer can consist of a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompting text information in the status bar issuing a prompt sound, vibrating electronic equipment, and flashing an indicator light, etc.
  • the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • a breathing guidance method provided by the embodiment of the present application will be described in detail below in combination with the first and second embodiments.
  • Embodiment 1 is about the breathing guidance program in the sports field.
  • the electronic device 100 may be a mobile phone, a wearable device, a headset, smart glasses, an augmented reality (augmented reality, AR) device, a virtual reality (virtual reality, VR) device, and the like.
  • the wearable device may be a device supported by the wrist, such as a smart watch, a smart bracelet, a smart wristband, and the like.
  • the wearable device may also be an ankle-supported device, such as a smart anklet, a smart shoe, a smart sock, or other devices that can be worn on the leg.
  • the wearable device can also be a device supported by the head, such as a smart helmet, a smart headband (also called a smart headband).
  • the electronic device 100 is taken as an example for illustration.
  • the electronic device 100 can monitor the user's actions in real time, and when the electronic device 100 detects that the user makes a first action, the electronic device 100 prompts the user to inhale through a first prompting method. When the electronic device 100 detects that the user performs the second action, the electronic device 100 prompts the user to exhale in a second prompt manner. In this way, the user can control the breathing rhythm and the exercise rhythm, and make the breathing rhythm and the exercise rhythm match, so as to improve the exercise effect.
  • exercise combined with fitness equipment may include but not limited to running, swimming and the like.
  • Exercises incorporating exercise equipment may include, but are not limited to, rowing, rowing machine exercises, elliptical machine exercises, weightlifting exercises, and the like.
  • the exercise type may also include other exercises, which are not limited in this embodiment of the present application.
  • the electronic device 100 collects motion sensor data, and determines whether the user's motion is the first motion or the second motion based on the motion sensor data. After determining the user's action, the electronic device 100 prompts the user to inhale through the first prompting manner and prompts the user to exhale through the second prompting manner.
  • fitness equipment such as barbells, elliptical machines, rowing machines, etc.
  • the fitness equipment collects motion sensor data, and determines whether the user's motion is the first motion or the second motion based on the motion sensor data. After the fitness equipment determines the user's action, it prompts the user to inhale through the first prompting manner and prompts the user to exhale through the second prompting manner.
  • the fitness equipment needs to establish a communication connection with the electronic device 100 .
  • the fitness equipment collects motion sensor data, and determines whether the user's motion is the first motion or the second motion based on the motion sensor data. After the fitness equipment determines that the user's action is the first action, the fitness equipment sends a command 1 to the electronic device 100, and the electronic device 100 prompts the user to inhale through a first prompting method after receiving the command 1 . After the fitness equipment determines that the user's action is the second action, the fitness equipment sends command 2 to the electronic device 100, and after receiving the command 2, the electronic device 100 prompts the user to inhale through the second prompting method.
  • the fitness equipment needs to establish a communication connection with the electronic device 100 .
  • the fitness equipment collects motion sensor data, and the fitness equipment sends the motion sensor data to the electronic device 100 in real time.
  • the electronic device 100 acquires the motion sensor data, it determines whether the user's motion is the first motion or the second motion based on the motion sensor data.
  • the electronic device 100 prompts the user to inhale through the first prompting manner and prompts the user to exhale through the second prompting manner.
  • the above-mentioned communication connection between the fitness equipment and the electronic device 100 may refer to a wired connection or a wireless connection.
  • the wireless connection may be a wireless local area network (wireless local area network, WLAN) connection, a high-fidelity wireless communication (wireless fidelity, Wi-Fi) connection, a Bluetooth connection, an infrared connection, a near field communication (near field communication, NFC) connection, ZigBee And short-distance connections such as other wireless communication technologies emerging in subsequent development.
  • the fitness equipment can also establish a long-distance connection with the electronic device 100, and the long-distance connection includes but not limited to the long-distance connection of the mobile network based on 2G, 3G, 4G, 5G and subsequent standard protocols.
  • the fitness equipment and the electronic device 100 can also log in the same user account (such as a Huawei account), and then perform a remote connection through the server.
  • the first motion may be a motion in which the user's arms swing forward
  • the second motion may be a motion in which the user's arms swing backward.
  • the first motion may be the user's arm motion when the user's head is lifted out of the water.
  • the second action may be the action of the user's arm when the user's head dives into the water surface.
  • the first motion and the second motion may also be leg motions, and the following embodiments of the present application will be described by taking the first motion and the second motion as hand motions as an example.
  • User actions corresponding to different exercise types will be described in detail in subsequent embodiments, and will not be described in detail in this embodiment of the application.
  • the electronic device 100 Before the user starts exercising, the electronic device 100 needs to enable the exercise mode corresponding to the exercise type.
  • the electronic device 100 can start the motion type in the following two ways.
  • the electronic device 100 starts the running mode as an example for description.
  • the electronic device 100 receives and responds to the user's input to start the running mode.
  • FIG. 3A exemplarily shows a UI diagram for the electronic device 100 to start the running mode.
  • the electronic device 100 may start or end the running mode selected by the user.
  • the electronic device 100 can count down a certain period of time (for example, three seconds) after the vibration to start the running mode.
  • the electronic device 100 may display a running icon and the text "running mode" on the display screen. In this way, the user can be prompted that the electronic device 100 has turned on the running mode.
  • the electronic device 100 When the electronic device 100 has turned on the running mode and detects a long-press operation acting on the touch control 301, the electronic device 100 may count down a certain period of time (for example, three seconds) after vibrating to end the running mode.
  • a certain period of time for example, three seconds
  • the electronic device 100 can automatically turn off the display screen after the running mode is turned on for a period of time (for example, 1 minute or 2 minutes), which can effectively save power consumption of the electronic device 100 .
  • a short press operation on the touch control 301 is detected, the electronic device 100 can light up the display screen. After being turned on, the display screen can display the running icon and the text "running mode" as shown in FIG. 3A.
  • the electronic device 100 may also enable the running mode by receiving a running mode enabling request sent by the electronic device 200 .
  • FIG. 3B- FIG. 3D exemplarily show UI diagrams of the electronic device 100 sending the request to start the running mode through the electronic device 200 to start the running mode.
  • the electronic device 100 may establish a communication connection relationship with the electronic device 200 (such as a mobile phone, a tablet computer, etc.).
  • the electronic device 200 may send an instruction to start the running mode to the electronic device 100 .
  • the electronic device 100 receives an instruction for starting the running mode, the electronic device 100 can start the running mode.
  • the electronic device 200 displays a home screen user interface 302 .
  • the user interface 302 may include a status bar 303, a tray 304 with frequently used application icons, and other application icons.
  • the status bar 303 may include a time indicator, a battery status indicator, one or more signal strength indicators of a wireless fidelity (Wi-Fi) signal, a mobile communication signal (also called a cellular signal) One or more signal strength indicators.
  • the tray 304 with commonly used application program icons can display: camera icon, phone icon, contact icon, text message icon.
  • Other application program icons can be, for example: an icon of a clock, an icon of a calendar, an icon of a gallery, an icon of a memo, an icon of Huawei Video, and an icon 305 of sports and health.
  • An icon of any application may be used to respond to a user's operation (for example, a click operation), so that the electronic device 200 starts the application corresponding to the icon.
  • the sports health icon 305 can be used to start the application program sports health.
  • the application sports health can be used for the electronic device 200 to establish a communication connection with the electronic device 100 .
  • the electronic device 200 can display the user's exercise data to the user through the application program Sports Health.
  • the electronic device 200 receives and responds to a user operation (for example, a click operation) acting on the sports and health icon 305 , and the electronic device 200 may display a sports and health application interface 306 as shown in FIG. 3C .
  • a user operation for example, a click operation
  • the application interface 306 may include a status bar 303 and an interface viewing option 307 .
  • the interface view option 307 may include exercise options, device options, discovery options and my options. Any option can be used to respond to the user's operation (for example, click operation), so that the electronic device 200 displays the content corresponding to the option on the application interface 306.
  • the content corresponding to the device option may include device information already added in the electronic device and a control for adding a new device.
  • the electronic device 200 may display the added device option 308 and the device added option 309 .
  • the device adding option 309 can be used to trigger the electronic device 200 to add a new device.
  • the new device is a device that establishes a communication connection relationship with the above-mentioned electronic device 200 for the first time.
  • the electronic device 200 may display an add device setting interface, so that the electronic device 200 establishes a communication connection with the new device.
  • the above-mentioned adding device setting interface can be used by the user to search for new devices and establish communication connection methods, etc., such as Bluetooth connection.
  • the embodiment of the present application does not limit the process of establishing a communication connection relationship between the electronic device 200 and the new device.
  • the added device option 308 may contain identifications of multiple electronic devices. All of the above multiple electronic devices have established a communication connection relationship with the electronic device 200 . For example, the electronic device 200 has established a communication connection relationship with the electronic device 100 . When a user operation (for example, a click operation) acting on any device option in the added device options 308 is detected, the electronic device may display relevant information corresponding to the device.
  • a user operation for example, a click operation
  • the electronic device 200 When the electronic device 200 detects a user operation (such as a single-click operation) on the electronic device 100 identified in the added device option 308, the electronic device 200 may display the application interface 310 as shown in FIG. 3D.
  • a user operation such as a single-click operation
  • the application interface 310 may include a status bar 303 , a device status bar 311 , exercise data 312 , and exercise mode options 313 .
  • the device status bar 311 can be used to display the connection status between the electronic device 100 and the electronic device 200 and the power of the electronic device 100 .
  • the device status bar 311 may prompt that the connection method is Bluetooth connection and the connection status is "connected”. Further, the electronic device 200 may obtain the power information of the electronic device 100 .
  • the device status bar 311 can prompt the current battery level of the electronic device 100 (for example, 77%).
  • the content prompted by the device status bar 311 may also include more content, which is not limited in this embodiment of the present application.
  • the exercise data 312 may include the number of steps the user moves, the calories burned and the distance moved recorded by the electronic device 100 .
  • the data in the exercise data 312 is the data of the user recorded by the electronic device 100 in the working state (for example, including the total number of steps moved, calories burned and moved distance during the user's daily walking and running activities).
  • the exercise mode option 313 can be used to open or end the running mode, swimming mode and weightlifting mode, and the exercise mode option 313 can also include other more modes, such as the elliptical machine exercise mode, the rowing machine exercise mode, the rowing mode, etc., these modes are in Not reflected in the sport mode option 313.
  • Exercise mode options 313 may include a running mode designation 3131 and a control 3132 for turning on running mode, a swimming mode designation and controls for swimming mode, a weightlifting mode designation and controls for turning on weightlifting mode.
  • the electronic device 200 may send an instruction to start the running mode to the electronic device 100 .
  • the electronic device 100 may start the running mode after a certain period of time (for example, a countdown of 3 seconds) after the vibration.
  • a certain period of time for example, a countdown of 3 seconds
  • the electronic device 100 may display a running icon and the text "running mode" on the display screen. In this way, the user can be prompted that the electronic device 100 has turned on the running mode.
  • the electronic device 100 may end the running mode after a certain period of time (for example, a countdown of 3 seconds) after the vibration.
  • the electronic device 100 can automatically turn on the do-not-disturb mode.
  • the do-not-disturb mode when the electronic device 200 receives an incoming call or message notification, the electronic device 100 may block the reminder instruction of the incoming call or message notification sent by the electronic device. That is, the electronic device 100 will not remind the user of incoming calls or message notifications through vibration or ringing. In this way, when the electronic device 100 has turned on the running mode and there is an incoming call or message notification, the electronic device 100 will not interfere with the user's running.
  • Method 2 The electronic device 100 automatically turns on the running mode according to the data collected by the sensor.
  • the electronic device 100 may automatically enable the running mode.
  • the electronic device 100 may determine that the user is running in a manner that a motion sensor collects motion data, for example, an acceleration sensor collects acceleration data, and the electronic device 100 obtains an acceleration waveform characteristic map according to the acceleration data.
  • the electronic device 100 inputs the acceleration waveform feature map into the classification model.
  • the classification model is trained in advance, and the classification model can analyze the user's exercise type (such as running, swimming, etc.) according to the input exercise data.
  • the classification model analyzes that the user is running according to the characteristic map of the acceleration waveform, and the electronic device 100 can determine that the user is running.
  • the electronic device 100 may also directly input the acceleration data collected by the acceleration sensor into the classification model, and the classification model directly outputs that the user is running or the user is doing other sports.
  • the electronic device 100 may also determine that the user is running in other ways, which is not limited in this embodiment of the present application.
  • the electronic device 100 when the electronic device 100 turns on other exercise modes, such as the weightlifting exercise mode, but detects that the user is running, the electronic device 100 may automatically switch the other exercise modes to the running mode.
  • other exercise modes such as the weightlifting exercise mode
  • the electronic device 100 when the electronic device 100 starts the running mode and detects that the user is not running, the electronic device 100 may automatically end the running mode.
  • the electronic device 100 can adaptively turn on the running mode. Moreover, when the user forgets to end the running mode after starting the running mode, the electronic device 100 can adaptively end the running mode, thereby reducing the power consumption of the electronic device 100 .
  • the electronic device 100 may also receive a user operation to turn off the running mode. Preventing the electronic device 100 from turning on the running mode by mistake increases the consumption of the electronic device 100 .
  • the electronic device 100 may mistake the user for running and switch the user's exercise mode from walking to running.
  • the undo control displayed on the display screen of the electronic device 100 may receive a user's input operation, so that the electronic device 100 switches the exercise mode to the previous exercise mode.
  • the electronic device 100 has turned on the walking mode before, and the electronic device 100 mistakenly recognizes that the walking mode has been switched to the running mode.
  • the electronic device 100 displays the text "Run Mode On" and the control 314 on the display screen.
  • the electronic device 100 may receive the user's input operation on the control 314, and in response to the user's input operation, the electronic device 100 switches the running mode to the walking mode.
  • the electronic device 100 may also recognize the voice result of the user, and switch the exercise mode to the previous exercise mode.
  • the electronic device 100 can also activate the running mode in other ways, such as through somatosensory gestures Turn on running mode, etc. This application is not limited here.
  • the electronic device 100 may detect whether the motion sensor is in a working state before turning on the motion mode.
  • the electronic device 100 may detect whether the acceleration sensor is in a working state before starting the running mode.
  • FIG. 4 shows a UI diagram of the motion sensor of the electronic device 100 when the running mode is turned on.
  • the electronic device 100 may display a user interface as shown in FIG. 4 on the display screen. It may contain a prompt box 401 , a confirmation control 402 and a cancel control 403 . in:
  • the prompt box 401 includes prompt content, which is used to prompt that when the running mode is turned on, the motion sensor (such as the acceleration sensor) in the electronic device 100 will be in working state to determine whether the user needs to turn on the running mode.
  • the content of the prompt may include "This function requires the acceleration sensor to be turned on. Do you agree to turn it on?".
  • Confirmation control 402 may be used to enable run mode.
  • the electronic device 100 can detect whether the motion sensor (such as an acceleration sensor) is in a working state. If the motion sensor (such as the acceleration sensor) is not in the working state, the electronic device 100 can automatically make the motion sensor (such as the acceleration sensor) in the working state. In this way, the electronic device 100 can turn on the running mode, and vibrate for a period of time (for example, three seconds) after turning on the running mode to remind the user that the running mode has been turned on.
  • a cancel control 403 may be used to disable the motion sensor for running mode.
  • the electronic device 100 does not turn on the motion sensor of the running mode.
  • the electronic device 100 starts the operation of the motion sensor in other sports modes, which is similar to the operation of the electronic device 100 in the running mode described above, except that the types of motion sensors involved in different sports types are different. .
  • the types of motion sensors involved in different motion types will be introduced one by one in the subsequent embodiments, and will not be repeated in the embodiments of the present application.
  • the electronic device 100 After the electronic device 100 starts the exercise mode selected by the user, the electronic device 100 will monitor the user's actions in real time, and give breathing guidance in combination with the user's exercise actions during the user's exercise, so that the user's exercise actions match the breathing rhythm.
  • exercise methods can be divided into exercise combined with fitness equipment and exercise without fitness equipment.
  • exercise combined with fitness equipment may include but not limited to running, swimming and the like.
  • Exercises incorporating exercise equipment may include, but are not limited to, rowing, rowing machine exercises, elliptical machine exercises, weightlifting exercises, and the like.
  • sports not combined with fitness equipment may include but not limited to running, swimming and so on.
  • 5A-5O exemplarily show the UI diagrams involved in the breathing guidance solution during running.
  • 5A-5B exemplarily show schematic diagrams of motion postures corresponding to the first action and the second action during running.
  • the first movement may change from the movement of the arm shown in FIG. 5A to the movement posture of the user's arm during the movement of the arm shown in FIG. 5B . It can also be said that the first movement is an arm movement when the arm of the user wearing the electronic device 100 swings forward.
  • the second movement may change from the movement of the arm shown in FIG. 5B to the movement posture of the user's arm during the movement of the arm shown in FIG. 5A . It can also be said that the first movement is an arm movement when the arm of the user wearing the electronic device 100 swings backward.
  • the first motion may also be an arm motion when the arm of the user wearing the electronic device 100 swings backward
  • the second motion may also be an arm motion when the arm of the user wearing the electronic device 100 swings forward.
  • the electronic device 100 may prompt the user whether breathing guidance is required by way of voice and/or text information, so that the electronic device 100 may ask the user for an opinion, and then Start monitoring the user's actions and respect the user's wishes.
  • the user selects the running mode, and after the user starts exercising, the electronic device 100 directly starts monitoring the user's actions without asking the user's opinion.
  • the user selects the running mode, and before the electronic device 100 starts to detect the user's motion, the electronic device 100 plays the voice "I am about to start exercising, do I need breathing guidance?"
  • the electronic device 100 receives and responds to the user's voice reply, and after the user starts exercising, monitors the user's movement, and gives breathing advice guidance based on the user's movement.
  • the electronic device 100 receives and responds to the user's voice reply, and the electronic device 100 will not give breathing guidance during the user's exercise.
  • the user usually wears earphones during running, and after the electronic device 100 is paired with the earphones, the user can play music in the electronic device 100 through the earphones to increase the fun of running.
  • the electronic device 100 can play the voice "is about to start exercising, do you need breathing guidance?" through the earphone.
  • the user selects the running mode, and before the electronic device 100 starts to detect the user's motion, the electronic device 100 may display text information on the display screen of the electronic device 100, and the text information is used to prompt the user whether to Breathing instructions are needed.
  • FIG. 5C exemplarily outputs a UI diagram of the electronic device 100 displaying text prompts.
  • the electronic device 100 may display a user interface as shown in FIG. 5C on the display screen, and the user interface may include a prompt box 501 , a confirmation control 502 and a cancel control 503 . in:
  • the prompt box 501 includes prompt content, and the prompt content is used to prompt the electronic device 100 to activate the breathing guidance function when the running mode is activated.
  • the text message may include "Need breathing instructions?".
  • Confirmation control 502 can be used to turn on the breathing guidance function.
  • the electronic device 100 can start the breathing guidance function.
  • a cancel control 503 can be used to disable the breathing guidance function.
  • the electronic device 100 In response to a user operation (such as a single-click operation) acting on the cancel control 503, the electronic device 100 does not activate the breathing guidance function.
  • the electronic device 100 prompts the user whether breathing guidance is required in combination with the aforementioned voice and text information.
  • the electronic device 100 may also use other methods, such as vibrating the electronic device 100, to prompt the user whether breathing guidance is required.
  • the embodiment of the present application does not limit the manner in which the electronic device 100 activates the breathing guidance function.
  • the electronic device 100 may display pictures and text information on the display screen, and the pictures and text information are used to remind the user of breathing actions corresponding to different running actions.
  • FIG. 5D-FIG. 5F exemplarily output UI diagrams of the electronic device 100 displaying pictures and text information.
  • the electronic device 100 may display a picture on the display screen, and the picture is used to indicate breathing movements corresponding to different arm swinging movements of the user during running.
  • FIG. 5D exemplarily shows a user interface where the electronic device 100 displays an arm-waving motion picture corresponding to an inhalation motion.
  • the user carrying the electronic device 100 swings forward with an arm (for example, the right arm), and the breathing action of the user is inhalation.
  • an arm for example, the right arm
  • the breathing action of the user is inhalation.
  • the electronic device 100 may also display a user interface as shown in FIG. 5F on the display screen, and the user interface may include a prompt box 601 . in:
  • the prompt box 601 includes text information, and the text information is used to prompt breathing actions corresponding to different prompt modes.
  • the text message may include "long vibration for inhalation, short vibration for exhalation". In this way, the user can perform corresponding breathing actions according to different vibration frequencies during running.
  • the electronic device 100 may broadcast the text information in the prompt box 601 by voice.
  • the electronic device 100 may broadcast the text information in the prompt box 601 by voice and display the text information in the prompt box 601 on the display screen.
  • the electronic device 100 can remind the user of breathing movements corresponding to different arm swing movements, and can also use other devices that have established a connection relationship with the electronic device 100 (such as the electronic device 200 ) to display pictures and text information, prompting the user to breathe according to different arm swinging movements.
  • the electronic device 100 can remind the user of breathing movements corresponding to different arm swing movements, and can also use other devices that have established a connection relationship with the electronic device 100 (such as the electronic device 200 ) to display pictures and text information, prompting the user to breathe according to different arm swinging movements.
  • the electronic device 100 After the electronic device 100 activates the breathing guidance function, the electronic device 100 needs to monitor the user's actions (the first action and the second action) during running, and provide a specific breathing guidance plan based on the user's actions.
  • the electronic device 100 determines whether the user's arm movement gesture is the first movement or the second movement according to the movement data collected by the movement sensor.
  • FIG. 5G-FIG. 5I exemplarily show schematic diagrams for the electronic device 100 to determine whether the user's arm motion posture is the first motion or the second motion according to the acceleration data.
  • the electronic device 100 may determine whether the user is performing the first action or the second action according to the acceleration data collected by the acceleration sensor.
  • the acceleration sensor in the electronic device 100 can collect the acceleration data of the user's wrist, and judge the user's arm movement according to the acceleration data of the user's wrist.
  • the electronic device 100 collects the sub-acceleration data in the three directions of the X-axis, the Y-axis and the Z-axis, and the electronic device 100 obtains the sum acceleration data according to the sub-acceleration data in the three directions including the X-axis, the Y-axis and the Z-axis, and according to the sum acceleration data
  • the magnitude of the acceleration is used to determine whether the user is performing the first action or the second action.
  • the first action is the action of the user's arm swinging forward
  • the second action is the action of the user's arm swinging backward
  • FIG. 5G exemplarily shows a schematic diagram of the acceleration magnitude and direction collected by the electronic device 100 when the user's arm swings forward.
  • the magnitude and direction of the component acceleration data in the three directions of X-axis, Y-axis and Z-axis are exemplarily shown.
  • the acceleration data P1 of the X-axis sub-acceleration data and the Y-axis sub-acceleration data can be obtained through geometric operations.
  • the acceleration data P1 and the sum acceleration data a1 of the Z-axis sub-acceleration data can be obtained. It can be understood that the sum acceleration data a1 is the sum acceleration data in the three directions of the X axis, the Y axis and the Z axis.
  • FIG. 5H exemplarily shows a schematic diagram of the acceleration magnitude and direction collected by the electronic device 100 when the user's arm swings backward.
  • the magnitude and direction of the component acceleration data in the three directions of X-axis, Y-axis and Z-axis are exemplarily shown.
  • the acceleration data P2 of the X-axis sub-acceleration data and the Y-axis sub-acceleration data can be obtained through geometric operations.
  • the acceleration data P2 and the sum acceleration data a2 of the Z-axis sub-acceleration data can be obtained through the set operation. It can be understood that the sum acceleration data a2 is the sum acceleration data in the three directions of the X axis, the Y axis and the Z axis.
  • the value of the sum acceleration when the user's arm swings forward from a static state, the value of the sum acceleration gradually increases from zero to the maximum value, and during the process of the user's arm swinging forward to the highest point, the value of the sum acceleration increases from the maximum value Gradually decrease to a positive minimum value (eg 0.3).
  • a positive minimum value for example, 0.3
  • the value of the sum acceleration gradually decreases from a positive minimum value (for example, 0.3) to the minimum value, and when the user's arm swings back to the highest point In the course of the point, the value of the sum acceleration gradually increases from the minimum value to the negative maximum value (eg -0.2).
  • the sum and acceleration are in vector units. That is, the sum acceleration represents not only the magnitude of the sum acceleration, but also the direction of the sum acceleration. It can be seen from the foregoing analysis that when the sum acceleration is greater than 0, it means that the user's arm is swinging forward. When the sum acceleration is less than 0, it means the user's arm is swinging backwards. In this way, the electronic device 100 can determine whether the user's arm movement is the first movement or the second movement according to whether the sum of the acceleration data is positive or negative.
  • FIG. 5I exemplarily shows a schematic diagram of the acceleration collected by the electronic device 100 during the running process of the user.
  • the horizontal axis represents time
  • the vertical axis represents the magnitude of acceleration.
  • the sum acceleration data a1 shown in FIG. 5G may be the acceleration data a1 shown at time t1 in FIG. 5I.
  • the sum acceleration data a2 shown in FIG. 5H may be the acceleration data a2 shown at time t2 in FIG. 5I.
  • the electronic device 100 may obtain a motion trajectory diagram of the user's arm according to the acceleration data, compare the motion trajectory diagram of the user's arm with a template, and determine whether the user's arm movement is the first movement or the second movement.
  • the electronic device 100 may also determine whether the user's arm motion is the first motion or the second motion according to other methods, which is not limited in this embodiment of the present application.
  • the electronic device 100 When the user is running, when the electronic device 100 determines that the user's arm is swinging forward, the electronic device 100 prompts the user to inhale in a first prompt manner. When the electronic device 100 determines that the user's arm is swinging backward, the electronic device 100 prompts the user to exhale in a second prompt manner. In this way, the electronic device 100 can match the user's arm swinging motion with the breathing rhythm through different prompting methods, saving the user's physical energy and improving the user's exercise ability.
  • the electronic device when both the type of the first prompting method and the type of the second prompting method are text, when the electronic device outputs the first prompting, the electronic device may display the text "inhale" on the display screen, and the display screen The size, color and shape of the displayed text may gradually change (for example, the font gradually becomes larger) as the user inhales.
  • the electronic device When the electronic device outputs the second prompt, the electronic device may display the text "exhale" on the display screen, and the size, color and shape of the text displayed on the display screen may gradually change with the user's exhalation action (eg font gets smaller). As shown in FIGS.
  • the electronic device 100 may continuously monitor n times of the first action, and prompt the user to perform an inhalation action through the first prompting method. After the electronic device 100 continuously monitors m times of the second action, it prompts the user to perform an exhalation action through the second prompting manner.
  • n is a positive integer greater than or equal to 1
  • m is a positive integer greater than or equal to 1.
  • the electronic device 100 prompts the user to perform an exhalation action through the second prompt method every time the electronic device 100 detects that the user performs the second action twice in a row. It can be understood that, in different running modes, the breathing guidance provided by the electronic device 100 based on the detected user's arm swing is also different. Compared with fast running, jogging has a lower breathing rate than fast running. The electronic device 100 can give the user different breathing guidance according to different running modes, reflecting the flexibility of the breathing guidance of the electronic device 100 .
  • swimming types can be divided into breaststroke, freestyle, backstroke and butterfly.
  • the actions of users of different swimming types are also different. Therefore, the electronic device 100 may also provide different breathing guidance for the user according to different swimming types and in combination with the user's arm movements during swimming.
  • 6A and 6B exemplarily show schematic diagrams of the first action and the second action in breaststroke.
  • the first action may be the stroke posture of the user's arm during the process from the arm action shown in FIG. 6A to the arm action shown in FIG. 6B . It can also be said that the first movement is the corresponding arm movement when the arm of the user wearing the electronic device 100 strokes backward. When the user's arm strokes backwards, correspondingly, the user's head can protrude out of the water surface, and the user can inhale at this time.
  • the second action may be the stroke posture of the user's arm during the process from the arm action shown in FIG. 6B to the arm action shown in FIG. 6A . It can also be said that the second motion is the corresponding arm motion when the arm of the user wearing the electronic device 100 strokes forward. When the user's arm strokes forward, correspondingly, the user's head can be inserted into the water surface, and the user can exhale at this time.
  • the user will stand still for a period of time (for example, 3s), and stop rowing hands and feet, that is, maintain the posture and body movements shown in FIG. 6A for 3s. In this way, energy can be saved.
  • the user after performing the second action, the user can perform an exhalation action.
  • the user may perform an exhalation action at the beginning of the second action.
  • the movement in which the user's arm remains still may be referred to as the third movement.
  • the arm movement corresponding to the third movement is static.
  • the electronic device 100 may prompt the user to perform a breath-holding action through a third prompting method, or prompt the user to perform a group or groups of rapid exhalation and inhalation. gas action.
  • the type of the third prompting method may be any one or more of vibration, voice, text, and picture.
  • FIG. 7A and 7B exemplarily show schematic diagrams of the first action and the second action in freestyle.
  • the first action may be the stroke posture of the user's arm during the process from the arm action shown in FIG. 7A to the arm action shown in FIG. 6B . It can also be said that the first movement is the corresponding arm movement when the arm of the user wearing the electronic device 100 strokes upwards. When the user's arm strokes upwards, correspondingly, the user's head can protrude out of the water surface, and the user can inhale at this time.
  • the second action may be the stroke posture of the user's arm during the process from the arm action shown in FIG. 7B to the arm action shown in FIG. 7A . It can also be said that the second action is the corresponding arm action when the arm of the user wearing the electronic device 100 strokes the water downward. When the user's arm strokes the water downward, correspondingly, the user's head can be inserted into the water surface, and the user can inhale at this time.
  • the movement in which the user's arm remains still may be referred to as the third movement.
  • the arm movement corresponding to the third movement is static.
  • the electronic device 100 may prompt the user to perform a breath-holding action through a third prompting method, or prompt the user to perform a group or groups of rapid exhalation and inhalation. gas action.
  • the type of the third prompting method may be any one or more of vibration, voice, text, and picture.
  • Fig. 8A and Fig. 8B exemplarily show schematic diagrams of the first movement and the second movement in backstroke.
  • the first action may be the stroke posture of the user's arm during the process from the arm action shown in FIG. 8A to the arm action shown in FIG. 8B . It can also be said that the first movement is the corresponding arm movement when the arm of the user wearing the electronic device 100 strokes upwards. As the user's arm strokes up the water, the user can inhale.
  • backstroke after finishing the first movement, the user will stand still for a period of time (for example, 2s), stop rowing hands and feet, that is, maintain the posture and body movements shown in Figure 8B for example 2s, thus, Can save physical energy.
  • the user's head is always out of the water.
  • the user after completing the first movement, the user performs an inhalation movement.
  • the user may perform an inhalation action at the beginning of performing the first action.
  • the second action may be the stroke posture of the user's arm during the process from the arm action shown in FIG. 8B to the arm action shown in FIG. 8A . It can also be said that the second motion is the corresponding arm motion when the arm of the user wearing the electronic device 100 strokes the water downward. As the user's arm strokes down the water, the user can inhale.
  • the first action can also be the stroke posture of the user's arm during the process from the arm action shown in Figure 8B to the arm action shown in Figure 8A
  • the second action can also be the arm action shown in Figure 8A.
  • the stroke posture of the user's arm changes from the arm movement shown in FIG. 8B to the arm movement shown in FIG. 8B .
  • the embodiments of the present application are not limited here.
  • backstroke after finishing the second movement, the user will stand still for a period of time (for example, 3s), stop rowing hands and feet, that is, keep the posture and body movements shown in Figure 8A for 3s, in this way, Can save physical energy.
  • the user's head is always out of the water.
  • the user after completing the second action, the user performs an inhalation action.
  • the user may perform an inhalation action at the beginning of the second action.
  • the movement in which the user's arm remains still may be referred to as the third movement.
  • the arm movement corresponding to the third movement is static.
  • the electronic device 100 may prompt the user to perform a breath-holding action through a third prompting method, or prompt the user to perform a group or groups of rapid exhalation and inhalation. gas action.
  • the type of the third prompting method may be any one or more of vibration, voice, text, and picture.
  • 9A and 9B exemplarily show schematic diagrams of the first movement and the second movement in butterfly stroke.
  • the first action may be the stroke posture of the user's arm during the process from the arm action shown in FIG. 9A to the arm action shown in FIG. 9B . It can also be said that the first action is the corresponding arm action when the arm of the user wearing the electronic device 100 strokes downward. As the user's arm strokes down the water, the user can inhale.
  • the second action may be the stroke posture of the user's arm during the process from the arm action shown in FIG. 9B to the arm action shown in FIG. 9A . It can also be said that the second motion is the corresponding arm motion when the arm of the user wearing the electronic device 100 strokes upwards. As the user's arm strokes up the water, the user can inhale. It should be noted that, in butterfly stroke, after finishing the second movement, the user will stand still for a period of time (for example, 3s), stop rowing hands and feet, that is, maintain the posture and body movements shown in Figure 9A for example 3s. In this way , can save physical energy. In a possible implementation manner, after performing the second action, the user can perform an exhalation action. In another possible implementation manner, the user may perform an exhalation action at the beginning of the second action.
  • the movement in which the user's arm remains still may be referred to as the third movement.
  • the arm movement corresponding to the third movement is static.
  • the electronic device 100 may prompt the user to perform a breath-holding action through a third prompting method, or prompt the user to perform a group or groups of rapid exhalation and inhalation. gas action.
  • the type of the third prompting method may be any one or more of vibration, voice, text, and picture.
  • the electronic device 100 may prompt the user whether breathing guidance is required by way of voice and/or text information, so that the electronic device 100 may ask the user for an opinion, and then Start monitoring the user's actions and respect the user's wishes.
  • the user selects the swimming mode, and after the user starts exercising, the electronic device 100 directly starts to monitor the user's actions without asking the user's opinion.
  • the electronic device 100 may display pictures and text information on the display screen, and the pictures and text information are used to remind the user of breathing actions corresponding to different swimming actions.
  • the electronic device 100 prompts the user for breathing actions corresponding to different swimming actions reference may be made to how the electronic device 100 prompts the user for breathing actions corresponding to different running actions in the running mode. The principles are similar, except that the motion modes are different, which will not be repeated in this embodiment of the present application.
  • the electronic device 100 may determine whether the user's arm motion is the first motion or the second motion according to acceleration data collected by a motion sensor (eg, an acceleration sensor).
  • a motion sensor eg, an acceleration sensor
  • the electronic device 100 may obtain the motion trajectory diagram of the user's arm according to the acceleration data collected by the motion sensor (such as an acceleration sensor), compare the motion trajectory diagram of the user's arm with the template, and determine whether the user's arm movement is The first action or the second action.
  • the motion sensor such as an acceleration sensor
  • the electronic device 100 may obtain the motion trajectory diagram of the user's arm according to the acceleration data collected by the motion sensor (such as an acceleration sensor), compare the motion trajectory diagram of the user's arm with the template, and determine whether the user's arm movement is The first action or the second action.
  • the electronic device 100 After the electronic device 100 activates the breathing guidance function, the electronic device 100 needs to monitor the user's movements (the first movement and the second movement) during swimming, and provide a specific breathing guidance plan based on the user's movements.
  • swimming is different from running in that in swimming, after the user paddles his head out of the water surface, the user inhales. Generally, the head protrudes from the water surface for a period of time (for example, 2 seconds). Afterwards, after the user's rower makes the head enter the water surface, the user exhales, and generally the head enters the water surface for a period of time (for example, 2 seconds). After that, repeat the above actions.
  • the electronic device 100 when the electronic device 100 detects that the user performs the first action, and after the first action is completed, the user's head sticks out of the water, the electronic device 100 prompts the user to inhale in a first prompt manner.
  • the electronic device 100 detects that the user has just started to perform the second action, the electronic device 100 prompts the user to exhale in a second prompt manner, or, the electronic device 100 detects that the user performs the second action, and after the second action is completed, the electronic device 100 prompts the user to exhale.
  • the device 100 prompts the user to exhale in a second prompt manner.
  • the electronic device 100 collects the movement data of the arm .
  • the smart bracelet is not generally worn by the user when swimming.
  • the electronic device 100 may be any one of smart swimming goggles, smart earplugs, earphones, or smart swimming caps. Devices such as smart swimming goggles, smart earplugs, earphones, or smart swimming caps can collect the movement data of the user's head, and use the head movement data to determine the user's movement type.
  • the electronic device 100 is any one of smart swimming goggles, smart earplugs, earphones or smart swimming caps.
  • the electronic device 100 determines that the user is performing the first action, and when the user's head enters the water surface from outside the water surface, the electronic device 100 determines that the user is performing the second action.
  • the electronic device 100 can collect pressure sensor data, and judge whether the user is performing the first action or the second action based on the pressure sensor data.
  • the electronic device 100 determines that the user is performing the first action, that is, the user's head protrudes from the water surface out of the water surface.
  • the electronic device 100 determines that the user is performing the second action, that is, the user's head enters the water surface from outside the water surface.
  • the electronic device 100 can simultaneously monitor the user's breathing rate and stride frequency, so as to determine whether the user's breathing rate and stride frequency are consistent, and if not, the electronic device 100 will give adjustment suggestions.
  • the electronic device 100 can collect the user's breathing rate through the microphone that comes with the electronic device 100, or the earphone is connected to the electronic device 100, and the user wears the earphone while exercising and listening to music. A microphone on the connected headset picks up the user's breathing rate.
  • the electronic device 100 can record exercise status through exercise software (such as a sports health application program), and the exercise status includes but not limited to: exercise track, stride during exercise, stride frequency, etc.
  • the electronic device 100 may prompt the user to adjust the breathing rate or the step frequency through voice, text, vibration and other means.
  • the electronic device 100 may continuously monitor n times of the first movement, and prompt The user performs an inhalation action. After the electronic device 100 continuously monitors m second actions, it prompts the user to perform an exhalation action through the second prompt method, where n is a positive integer greater than or equal to 1, and m is a positive integer greater than or equal to 1.
  • n can be 1, and n can be 1, that is, "one stroke and one inhalation”.
  • the electronic device 100 Every time the electronic device 100 detects that the user performs the first action, it prompts the user to take an inhalation action through the first prompt method, and every time the electronic device 100 detects that the user performs the second action, it prompts the user to perform an exhalation action through the second prompt mode.
  • the electronic device 100 makes different breathing guidance based on the detected user's arm swing or head movement. That is, breathing rates are different in breaststroke, backstroke, freestyle, and butterfly.
  • the electronic device 100 can give the user different breathing guidance according to different swimming modes, reflecting the flexibility of the breathing guidance of the electronic device 100 .
  • the electronic device 100 can match the user's arm swinging action with the rhythm of breathing through different prompting methods, so as to save the user's physical energy and improve the user's swimming ability.
  • exercises combined with fitness equipment may include, but are not limited to, weightlifting, rowing, rowing machine exercises, elliptical machine exercises, and the like.
  • the user When the user is doing the exercise combined with the fitness equipment, when the user is doing the first movement, the user inhales. When the user is performing the second motion, the user exhales. Then the electronic device 100 may prompt the user to inhale when detecting that the user is performing the first action. When it is detected that the user is performing the second action, the user is prompted to exhale. In this way, the user's exercise rhythm can be matched with the breathing rhythm, and the user's exercise ability can be improved.
  • Weightlifting can be divided into standing weightlifting, lying weightlifting, etc.
  • the following embodiments of the present application take lying weightlifting as an example for illustration.
  • the first motion and the second motion may be the user's arm motion collected by the electronic device 100 .
  • FIG. 10A exemplarily shows a schematic diagram of the first movement in the weightlifting process.
  • the barbell posture composed of solid lines is posture 1002
  • the barbell posture composed of dashed lines is posture 1001 .
  • the first movement may be the movement of the arm pushing up during the process of changing the barbell posture 1001 into posture 1002 shown in FIG. 10A .
  • FIG. 10B exemplarily shows a schematic diagram of the second action in the weightlifting process.
  • the second action may be an arm pull-down action during the process of changing the barbell posture 1002 into posture 1001 as shown in FIG. 10B .
  • the first action may also be an action of pulling the arms down during the process of changing the barbell posture 1002 into posture 1001 .
  • the second action may also be an action of pushing up the arms during the process of changing the barbell posture 1001 into posture 1002 .
  • the barbell is at the highest point, and the posture of the barbell is posture 1002 .
  • the user will keep the posture 1002 of the barbell at the highest point for a period of time, and then, the user is doing a second movement, so that the posture of the barbell changes from posture 1002 to posture 1001. Therefore, the arm movement when the barbell is kept in the posture 1002 can be called the third movement.
  • the arm movement corresponding to the third movement is static, and the user's wrist is at the highest point.
  • the electronic device 100 may prompt the user to perform a breath-holding action through a third prompting method, or prompt the user to perform a group or groups of rapid exhalation and inhalation. gas action.
  • the type of the third prompting method may be any one or more of vibration, voice, text, and picture.
  • the first motion and the second motion may be the user's arm motion collected by the electronic device 100 .
  • FIG. 11A exemplarily shows a schematic diagram of the first action in the rowing process.
  • FIG. 11A exemplarily shows a schematic diagram of a user's first action during rowing.
  • the first action may be the arm action during the process of the user moving from the dotted line image to the solid line image shown in FIG. 11A , that is, the first action is an action of moving backward and contracting the arm.
  • FIG. 11B exemplarily shows a schematic diagram of a second motion of the user during rowing.
  • the second action may be the arm action during the process of the user moving from the dotted line image to the solid line image shown in FIG. 11B , that is, the second action is an action of moving forward and extending the arm.
  • the first action may also be an action of moving forward and extending the arm.
  • the second motion can also be a motion of moving backwards with the arms retracted.
  • the first motion and the second motion may be motions of the user's wrist collected by the electronic device 100 .
  • FIG. 12A exemplarily shows a schematic diagram of the user's first action in the process of using the rowing machine.
  • the first action may be the arm action during the process of the user moving from the dotted line image to realizing the image shown in FIG. 11A , that is, the first action is the arm action of moving backward and away from the rowing machine.
  • FIG. 12B exemplarily shows a schematic diagram of the user's second action in the process of using the rowing machine.
  • the second action may be the arm action during the process of the user moving from the dotted line image to realizing the image shown in FIG. 11B , that is, the second action is the arm action of moving forward and approaching the rowing machine.
  • the first movement may also be an arm movement moving forward and close to the rowing machine.
  • the second motion can also be an arm motion that moves back and away from the rowing machine.
  • the first motion and the second motion may be motions of the user's wrist collected by the electronic device 100 .
  • 13A-13B exemplarily show schematic diagrams of the first action and the second action of the user in the process of using the elliptical machine.
  • the first movement may be the exercise posture of the user's arm during the process from the arm movement shown in FIG. 13A to the arm movement shown in FIG. 13B . As the arm moves back, the user can inhale.
  • the second action may be the exercise posture of the user's arm during the process from the arm action shown in FIG. 13B to the arm action shown in FIG. 13A .
  • the user can exhale.
  • the first movement may also be an arm movement moving forward and approaching the elliptical machine.
  • the second motion can also be an arm motion that moves back and away from the elliptical.
  • the electronic device 100 may prompt the user whether breathing guidance is required by way of voice and/or text information, so that the electronic device 100 may ask the user for an opinion, and then Start monitoring the user's actions and respect the user's wishes.
  • the user selects the corresponding exercise mode, and after the user starts the exercise, the electronic device 100 directly starts to monitor the user's actions without asking the user's opinion.
  • the electronic device 100 can display pictures and text information on the display screen, and the pictures and text information are used to prompt the user to perform the arm movements in the above-mentioned exercises combined with fitness equipment. corresponding breathing action.
  • the electronic device 100 prompts the user for breathing actions corresponding to the above-mentioned arm movements in conjunction with fitness equipment refer to how the electronic device 100 prompts the user for breathing actions corresponding to different running actions in the running mode. The principles are similar, except that the motion modes are different, which will not be repeated in this embodiment of the present application.
  • the electronic device 100 After the electronic device 100 activates the breathing guidance function, the electronic device 100 needs to monitor the user's actions (the first action and the second action) during exercise, and provide a specific breathing guidance plan based on the user's actions.
  • the electronic device 100 determines the specific realization of the user's first movement, second movement and third movement according to the movement data collected by the movement sensor.
  • 14A-14C exemplarily show schematic diagrams in which the electronic device 100 determines that the user's arm movement posture is the first movement, the second movement and the third movement according to the acceleration data.
  • the electronic device 100 may determine that the user is performing the first action, the second action, and the third action according to the acceleration data collected by the acceleration sensor.
  • the acceleration sensor in the electronic device 100 can collect the acceleration data of the user's wrist, and judge the user's arm movement according to the acceleration data of the user's wrist.
  • the electronic device 100 collects the sub-acceleration data in the three directions of the X-axis, the Y-axis and the Z-axis, and the electronic device 100 obtains the sum acceleration data according to the sub-acceleration data in the three directions including the X-axis, the Y-axis and the Z-axis, and according to the sum acceleration data
  • the magnitude of the acceleration is used to determine whether the user is performing the first action or the second action.
  • the first movement is the movement of the arms pushing up during the process of changing the barbell posture 1001 to the posture 1002
  • the second movement is the movement of the arms pulling down during the process of changing the barbell posture 1002 into the posture 1001 .
  • FIG. 14A exemplarily shows a schematic diagram of the magnitude and direction of the acceleration collected by the electronic device 100 during the process of the user's arm pushing up.
  • the partial acceleration data in the Y-axis direction collected by the electronic device 100 is acceleration data Y1 .
  • the direction of the acceleration data Y1 is vertical to the horizontal plane upward. It can be understood that the acceleration data Y1 is the sum acceleration data in the three directions of the X axis, the Y axis and the Z axis.
  • FIG. 14B exemplarily shows a schematic diagram of the acceleration magnitude and direction collected by the electronic device 100 during the pull-down process of the user's arm.
  • the sub-acceleration data in the Y-axis direction collected by the electronic device 100 is acceleration data Y2.
  • the direction of the acceleration data Y2 is vertical to the horizontal and downward. It can be understood that the acceleration data Y2 is the sum acceleration data in the three directions of the X axis, the Y axis and the Z axis.
  • the value of the acceleration data gradually increases from zero to the maximum value during the push-up process of the user's arm, and the value of the acceleration data increases from the maximum value during the push-up process of the user's arm to the highest point gradually decreases to close to 0.
  • the acceleration value is close to 0.
  • the sum acceleration data not only indicates the magnitude of the acceleration, but also indicates the direction of the acceleration. From the foregoing analysis, it can be known that when the sum acceleration data is greater than 0, it means that the user's arm is pushing up. When the sum acceleration data is less than 0, it means that the user's arm is doing a pull-down action, and when the sum acceleration data remains near 0 for a period of time (for example, 2 seconds), it means that the user's arm is doing the action of keeping the barbell at the highest point. In this way, the electronic device 100 can determine whether the user's arm movement is the first movement, the second movement or the third movement according to the magnitude of the acceleration data.
  • FIG. 14C exemplarily shows a schematic diagram of acceleration data collected by the electronic device 100 during the weight lifting process of the user.
  • the horizontal axis represents time
  • the vertical axis represents the magnitude of the sum acceleration data.
  • the sum acceleration data is greater than 0, it means that the user's arm is pushing up; when the sum acceleration data is less than 0, it means that the user's arm is doing pull-down action; when the sum acceleration data is kept near 0 for a period of time (for example, 2 seconds ), indicating that the user's arms are doing the motion of holding the barbell at its highest point. Since the user's arm is periodically pushed up and pulled down during the weightlifting process, the size of the acceleration data collected by the electronic device 100 also changes periodically, and the size of the acceleration data collected by the electronic device 100 changes periodically. Varies between positive and negative values.
  • the acceleration data Y1 shown in FIG. 14A may be the acceleration data Y1 shown at time t1 in FIG. 14C .
  • the sum acceleration data Y2 shown in FIG. 14B may be the acceleration data Y2 shown at time t4 in FIG. 14C.
  • the acceleration gradually decreases from the straight value to around 0 (acceleration value corresponding to the time t2). If it is greater than the preset value, it means that the action type between the time t2 and the time t3 is that the user's arm is doing the action of keeping the barbell at the highest point.
  • the electronic device 100 may obtain the motion trajectory diagram of the user's arm according to the acceleration data, compare the motion trajectory diagram of the user's arm with the template, and determine whether the user's arm movement is the first movement, the second movement and third action.
  • the electronic device 100 may also determine that the user's arm motion is the first motion, the second motion, and the third motion according to other methods, which are not limited in this embodiment of the present application.
  • the electronic device 100 determines specific implementations of the user's first motion and the second motion according to the motion data collected by the motion sensor.
  • 15A-15C exemplarily show schematic diagrams for the electronic device 100 to determine whether the motion gesture of the user's wrist is the first motion or the second motion according to the acceleration data.
  • the electronic device 100 may determine whether the user is performing the first action or the second action according to the acceleration data collected by the acceleration sensor.
  • the acceleration sensor in the electronic device 100 can collect the acceleration data of the user's wrist, and judge the user's arm movement according to the acceleration data of the user's wrist.
  • the electronic device 100 collects the sub-acceleration data in the three directions of the X-axis, the Y-axis and the Z-axis, and the electronic device 100 obtains the sum acceleration data according to the sub-acceleration data in the three directions including the X-axis, the Y-axis and the Z-axis, and according to the sum acceleration data
  • the magnitude of the acceleration is used to determine whether the user is performing the first action or the second action.
  • the first action is an action of moving backwards and retracting the arms
  • the second action is an action of moving forwards and extending the arms.
  • FIG. 15A exemplarily shows a schematic diagram of the magnitude and direction of the acceleration collected by the electronic device 100 during the process in which the user firmly grasps the handle of the paddle and pulls the handle backward.
  • the sub-acceleration data in the X-axis direction collected by the electronic device 100 is acceleration data X1.
  • the direction of the acceleration data X1 is parallel to the horizontal plane to the left. It can be understood that the acceleration data X1 is the sum acceleration data in three directions of the X axis, the Y axis and the Z axis.
  • FIG. 15B exemplarily shows a schematic diagram of the magnitude and direction of the acceleration collected by the electronic device 100 during the process in which the user grips the grip of the paddle and pushes the grip forward.
  • the sub-acceleration data in the X-axis direction collected by the electronic device 100 is acceleration data X2.
  • the direction of the acceleration data X2 is parallel to the horizontal plane to the right. It can be understood that the acceleration data X2 is the sum acceleration data in the three directions of the X axis, the Y axis and the Z axis.
  • the value of the sum acceleration data gradually increases from zero to the maximum value, and then the value of the sum acceleration data gradually decreases from the maximum value to a positive minimum value (eg 0.3).
  • the value of the sum acceleration data gradually decreases from a positive minimum value (for example, 0.3) to the minimum value, and then the sum acceleration data value gradually decreases from the minimum value Grow to a negative maximum value (eg -0.2).
  • the sum and acceleration data here are vector units. That is, the sum acceleration data not only indicates the magnitude of the acceleration, but also indicates the direction of the acceleration.
  • the electronic device 100 can determine whether the user's arm movement is the first movement or the second movement according to whether the sum of the acceleration data is positive or negative.
  • FIG. 15C exemplarily shows a schematic diagram of the acceleration data collected by the electronic device 100 during the rowing process of the user.
  • the horizontal axis represents time
  • the vertical axis represents the magnitude of the sum acceleration data.
  • the acceleration data X1 shown in FIG. 15A may be the acceleration data X1 shown at time t1 in FIG. 15C
  • the sum acceleration data X2 shown in FIG. 15B may be the acceleration data X2 shown at time t2 in FIG. 15C.
  • the electronic device 100 may obtain a motion trajectory diagram of the user's arm according to the acceleration data, compare the motion trajectory diagram of the user's arm with a template, and determine whether the user's arm movement is the first movement or the second movement.
  • the electronic device 100 may also determine whether the user's arm motion is the first motion or the second motion according to other methods, which is not limited in this embodiment of the present application.
  • the electronic device 100 determines the specific implementation of the user's first action and second action according to the exercise data collected by the motion sensor.
  • 16A-16C exemplarily show schematic diagrams of the electronic device 100 determining whether the motion gesture of the user's wrist is the first motion or the second motion according to the acceleration data.
  • the electronic device 100 may determine whether the user is performing the first action or the second action according to the acceleration data collected by the acceleration sensor.
  • the acceleration sensor in the electronic device 100 can collect the acceleration data of the user's wrist, and judge the user's arm movement according to the acceleration data of the user's wrist.
  • the electronic device 100 collects the sub-acceleration data in the three directions of the X-axis, the Y-axis and the Z-axis, and the electronic device 100 obtains the sum acceleration data according to the sub-acceleration data in the three directions including the X-axis, the Y-axis and the Z-axis, and according to the sum acceleration data
  • the magnitude of the acceleration is used to determine whether the user is performing the first action or the second action.
  • the first movement is an arm movement away from the rowing machine
  • the second movement is an arm movement close to the rowing machine
  • FIG. 16A exemplarily shows a schematic diagram of the magnitude and direction of the acceleration collected by the electronic device 100 during the process in which the user pulls the handle of the rowing machine and moves backward away from the rowing machine.
  • the sub-acceleration data in the X-axis direction collected by the electronic device 100 is acceleration data X1.
  • the direction of the acceleration data X1 is parallel to the horizontal plane to the left. It can be understood that the acceleration data X1 is the sum acceleration data in the three directions of the X axis, the Y axis and the Z axis.
  • FIG. 16B exemplarily shows a schematic diagram of the magnitude and direction of the acceleration collected by the electronic device 100 when the user pulls the handle of the rowing machine and moves forward to approach the rowing machine.
  • the sub-acceleration data in the X-axis direction collected by the electronic device 100 is acceleration data X2.
  • the direction of the acceleration data X2 is parallel to the horizontal plane to the right. It can be understood that the acceleration data X2 is the sum acceleration data in the three directions of the X axis, the Y axis and the Z axis.
  • the user moves the handle of the rowing machine so that the distance between the handle of the rowing machine and the rowing machine reaches the longest distance, and the value of the acceleration data gradually increases from zero to the maximum value, after that, and The value of the acceleration data gradually decreases from the maximum value to around 0.
  • the value of the sum acceleration data gradually decreases from around 0 to the minimum value, and then the value of the sum acceleration data gradually increases from the minimum value to 0 nearby.
  • the sum and acceleration data here are vector units. That is, the sum acceleration data not only indicates the magnitude of the acceleration, but also indicates the direction of the acceleration.
  • the electronic device 100 can determine whether the user's arm movement is the first movement or the second movement according to whether the sum of the acceleration data is positive or negative.
  • FIG. 16C exemplarily shows a schematic diagram of the acceleration data collected by the electronic device 100 during the exercise process of the user using the rowing machine.
  • the horizontal axis represents time
  • the vertical axis represents the magnitude of the sum acceleration data.
  • the acceleration data collected by the electronic device 100 is also periodically moving backward and away from the rowing machine and moving forward and close to the rowing machine during the use of the rowing machine.
  • the acceleration data collected by the electronic device 100 is also periodically The acceleration data collected by the electronic device 100 periodically changes between positive and negative values.
  • the acceleration data X1 shown in FIG. 16A may be the acceleration data X1 shown at time t1 in FIG. 16C .
  • the sum acceleration data X2 shown in FIG. 16B may be the acceleration data X2 shown at time t2 in FIG. 16C .
  • the electronic device 100 may obtain a motion trajectory diagram of the user's arm according to the acceleration data, compare the motion trajectory diagram of the user's arm with a template, and determine whether the user's arm movement is the first movement or the second movement.
  • the electronic device 100 may also determine whether the user's arm motion is the first motion or the second motion according to other methods, which is not limited in this embodiment of the present application.
  • the electronic device 100 determines the specific implementation of the user's first action and second action according to the exercise data collected by the motion sensor.
  • 17A-17C exemplarily show schematic diagrams for the electronic device 100 to determine whether the motion gesture of the user's wrist is the first motion or the second motion according to the acceleration data.
  • the electronic device 100 may determine whether the user is performing the first action or the second action according to the acceleration data collected by the acceleration sensor.
  • the acceleration sensor in the electronic device 100 can collect the acceleration data of the user's wrist, and judge the user's arm movement according to the acceleration data of the user's wrist.
  • the electronic device 100 collects the sub-acceleration data in the three directions of the X-axis, the Y-axis and the Z-axis, and the electronic device 100 obtains the sum acceleration data according to the sub-acceleration data in the three directions including the X-axis, the Y-axis and the Z-axis, and according to the sum acceleration data
  • the magnitude of the acceleration is used to determine whether the user is performing the first action or the second action.
  • the first movement is the arm movement of pulling the armrest of the elliptical machine backward
  • the second movement is the arm movement of pushing the armrest of the elliptical machine forward.
  • FIG. 17A exemplarily shows a schematic diagram of the acceleration magnitude and direction collected by the electronic device 100 when the user pulls the armrest of the elliptical machine and moves backward away from the elliptical machine.
  • the component acceleration data in the X-axis direction collected by the electronic device 100 is acceleration data X1.
  • the direction of the acceleration data X1 is parallel to the horizontal plane to the left. It can be understood that the acceleration data X1 is the sum acceleration data in the three directions of the X axis, the Y axis and the Z axis.
  • FIG. 17B exemplarily shows a schematic diagram of the acceleration magnitude and direction collected by the electronic device 100 when the user pushes the armrest of the elliptical machine to move forward to approach the elliptical machine.
  • the sub-acceleration data in the X-axis direction collected by the electronic device 100 is acceleration data X2.
  • the direction of the acceleration data X2 is parallel to the horizontal plane to the right. It can be understood that the acceleration data X2 is the sum acceleration data in the three directions of the X axis, the Y axis and the Z axis.
  • the user moves the armrest of the elliptical machine so that the distance between the armrest of the elliptical machine and the elliptical machine reaches the longest distance, and the value of the acceleration data gradually increases from zero to the maximum value, after that, and The value of the acceleration data gradually decreases from the maximum value to around 0.
  • the value of the sum acceleration data gradually decreases from around 0 to the minimum value, and then the value of the sum acceleration data gradually increases from the minimum value to 0 nearby.
  • the sum and acceleration data here are vector units.
  • the sum acceleration data not only indicates the magnitude of the acceleration, but also indicates the direction of the acceleration. From the foregoing analysis, it can be seen that when the sum acceleration data is greater than 0, it means that the user is doing an arm movement of pulling the armrest of the elliptical machine backward. When the sum acceleration data is less than 0, it means that the user is making an arm motion of pushing the armrest of the elliptical machine forward. In this way, the electronic device 100 can determine whether the user's arm movement is the first movement or the second movement according to whether the sum of the acceleration data is positive or negative.
  • FIG. 17C exemplarily shows a schematic diagram of acceleration data collected by the electronic device 100 when the user is exercising on the elliptical machine.
  • the horizontal axis represents time
  • the vertical axis represents the magnitude of the sum acceleration data.
  • the acceleration data collected by the electronic device 100 also changes periodically.
  • the magnitude of the acceleration data collected by the electronic device 100 changes periodically between positive and negative values.
  • the acceleration data X1 shown in FIG. 17A may be the acceleration data X1 shown at time t1 in FIG. 17C .
  • the sum acceleration data X2 shown in FIG. 17B may be the acceleration data X2 shown at time t2 in FIG. 17C.
  • the electronic device 100 may obtain a motion trajectory diagram of the user's arm according to the acceleration data, compare the motion trajectory diagram of the user's arm with a template, and determine whether the user's arm movement is the first movement or the second movement.
  • the electronic device 100 may also determine whether the user's arm motion is the first motion or the second motion according to other methods, which is not limited in this embodiment of the present application.
  • the electronic device 100 After the electronic device 100 turns on the breathing guidance function, the electronic device 100 needs to monitor the user's arm movements (the first movement and the second movement) in the above-mentioned exercises combined with fitness equipment, and give specific breathing instructions in combination with the user's arm movements. guidance program.
  • the electronic device 100 can continuously monitor n times of the first movement, and prompt the user to take an inhalation through the first prompt method action. After the electronic device 100 continuously monitors m times of the second action, it prompts the user to perform an exhalation action through the second prompting manner.
  • the electronic device 100 can match the user's arm movement with the breathing rhythm in the exercise combined with the fitness equipment through different prompting methods, saving the user's physical energy and improving the user's fitness effect.
  • FIGS. 14A-14C introduce that the electronic device 100 determines that the user's arm movement posture is the first movement, the second movement and the third movement according to the motion sensor data collected by the electronic device 100 .
  • the electronic device 100 collects motion sensor data, and determines whether the user's motion type is the first motion, the second motion, or the third motion based on the motion sensor data.
  • the electronic device 100 prompts the user to perform an inhalation action through a first prompting manner.
  • the electronic device 100 prompts the user to perform an exhalation action through the second prompting manner.
  • the electronic device 100 prompts the user to hold his breath through the third prompting method, or prompts the user to continuously perform at least one short exhalation action and at least one short inhalation action through the third prompting mode.
  • the barbell can replace the function of the electronic device 100 . That is to say, the barbell collects motion sensor data, and based on the motion sensor data, determines whether the user's motion type is the first motion, the second motion or the third motion, and guides the user's breathing rhythm. Specifically, the barbell collects motion sensor data, and determines whether the user's motion type is the first motion, the second motion, or the third motion based on the motion sensor data. After the barbell determines the first movement, the user is prompted to perform an inhalation movement through the first prompting manner. After the barbell determines the second movement, the user is prompted to perform an exhalation movement through a second prompting manner. After the barbell determines the third movement, the user is reminded to hold his breath through the third prompting method, or the user is prompted to continuously perform at least one short exhalation movement and at least one short inhalation movement through the third prompting method.
  • the electronic device 100 needs to establish a communication connection with the barbell.
  • the barbell collects motion sensor data and sends the motion sensor data to the electronic device 100 .
  • the electronic device 100 determines whether the user's motion type is the first motion, the second motion or the third motion based on the motion sensor data, and guides the user's breathing rhythm.
  • the electronic device 100 prompts the user to perform an inhalation action through a first prompting manner.
  • the electronic device 100 prompts the user to perform an exhalation action through the second prompting manner.
  • the electronic device 100 prompts the user to hold his breath through the third prompting method, or prompts the user to continuously perform at least one short exhalation action and at least one short inhalation action through the third prompting mode.
  • the electronic device 100 needs to establish a communication connection with the barbell.
  • the barbell collects motion sensor data, and determines whether the user's motion is the first motion, the second motion, or the third motion based on the motion sensor data. After the barbell determines that the user's action is the first action, the barbell sends an instruction 1 to the electronic device 100. After receiving the instruction 1, the electronic device 100 prompts the user to inhale through the first prompting method. After the barbell determines that the user's action is the second action, the barbell sends command 2 to the electronic device 100. After receiving the command 2, the electronic device 100 prompts the user to perform an exhalation action through a second prompting method.
  • the barbell After the barbell determines that the user's action is the third action, the barbell sends command three to the electronic device 100. After receiving the command three, the electronic device 100 prompts the user to hold his breath through the third prompting method, or prompts the user to continuously do at least One short exhalation and at least one short inhalation.
  • the communication connection mentioned above may refer to a wired connection or a wireless connection.
  • the wireless connection may be a wireless local area network (wireless local area network, WLAN) connection, a high-fidelity wireless communication (wireless fidelity, Wi-Fi) connection, a Bluetooth connection, an infrared connection, a near field communication (near field communication, NFC) connection, ZigBee And short-distance connections such as other wireless communication technologies emerging in subsequent development.
  • the barbell can also establish a long-distance connection with the electronic device 100, and the long-distance connection includes but is not limited to the long-distance connection of the mobile network based on 2G, 3G, 4G, 5G and subsequent standard protocols.
  • the barbell and the electronic device 100 can also be logged into the same user account (for example, a Huawei account), and then remotely connected through the server.
  • the barbell prompting the user to inhale through the first prompt is similar to the electronic device 100 prompting the user to inhale through the first prompt, which will not be repeated in this embodiment of the present application.
  • the barbell prompting the user to inhale through the second prompt is similar to the electronic device 100 prompting the user to exhale through the second prompt, which will not be repeated in this embodiment of the present application.
  • the type of the above-mentioned third prompting method may be any one of vibration, voice, text, and picture, or may be a combination of two or more of vibration, voice, text, and picture.
  • the electronic device 100 determines whether the user's arm motion gesture is the first motion or the second motion according to the motion sensor data collected by the electronic device 100 . Specifically, the electronic device 100 collects motion sensor data, and determines whether the user's motion type is the first motion or the second motion based on the motion sensor data. After determining the first action, the electronic device 100 prompts the user to perform an inhalation action through a first prompting manner. After determining the second action, the electronic device 100 prompts the user to perform an exhalation action through the second prompting manner.
  • the hull (or oars on the hull) can replace the function of the electronic device 100 . That is to say, the hull collects motion sensor data, and based on the motion sensor data, determines whether the user's action type is the first action or the second action, and guides the user's breathing rhythm. Specifically, the hull collects motion sensor data, and determines whether the user's action type is the first action, the second action, or the third action based on the motion sensor data. After the hull determines the first action, the user is prompted to perform an inhalation action through the first prompting method. After the hull determines the second action, it prompts the user to perform an exhalation action through the second prompting method.
  • the electronic device 100 needs to establish a communication connection with the hull (or the oars on the hull).
  • the hull collects motion sensor data and sends the motion sensor data to the electronic device 100 .
  • the electronic device 100 determines whether the user's motion type is the first motion or the second motion based on the motion sensor data, and guides the user's breathing rhythm.
  • the electronic device 100 prompts the user to perform an inhalation action through a first prompting manner.
  • the electronic device 100 prompts the user to perform an exhalation action through the second prompting manner.
  • the electronic device 100 needs to establish a communication connection with the hull (or the oars on the hull).
  • the hull collects motion sensor data, and determines whether the user's motion is the first motion or the second motion based on the motion sensor data.
  • Hull determines that the user's action is the first action
  • Hull sends a command 1 to the electronic device 100, and after receiving the command 1, the electronic device 100 prompts the user to inhale through the first prompting method.
  • the barbell determines that the user's action is the second action
  • the hull sends command 2 to the electronic device 100.
  • the electronic device 100 prompts the user to perform an exhalation action through a second prompting method.
  • the communication connection mentioned above may refer to a wired connection or a wireless connection.
  • the wireless connection may be a wireless local area network (wireless local area network, WLAN) connection, a high-fidelity wireless communication (wireless fidelity, Wi-Fi) connection, a Bluetooth connection, an infrared connection, a near field communication (near field communication, NFC) connection, ZigBee And short-distance connections such as other wireless communication technologies emerging in subsequent development.
  • the hull (or the oars on the hull) can also establish a long-distance connection with the electronic device 100.
  • the long-distance connection includes but is not limited to the long-distance connection based on mobile networks based on 2G, 3G, 4G, 5G and subsequent standard protocols.
  • the hull (or the oars on the hull) and the electronic device 100 can also be logged in with the same user account (such as a Huawei account), and then remotely connected through the server.
  • the above-mentioned hull (or oars on the hull) prompting the user to take an inhalation action through the first prompting method is similar to the electronic device 100 prompting the user to do an inhalation action through the first prompting manner, and will not be repeated in this embodiment of the present application.
  • the above-mentioned hull (or oars on the hull) prompting the user to take an inhalation action through the second prompting method is similar to the electronic device 100 prompting the user to perform an exhalation action through the second prompting manner, and will not be repeated in this embodiment of the present application.
  • 16A-16C describe how the electronic device 100 determines whether the user's arm movement posture is the first movement or the second movement according to the motion sensor data collected by the electronic device 100 .
  • the electronic device 100 collects motion sensor data, and determines whether the user's motion type is the first motion or the second motion based on the motion sensor data.
  • the electronic device 100 prompts the user to perform an inhalation action through a first prompting manner.
  • the electronic device 100 prompts the user to perform an exhalation action through the second prompting manner.
  • the rowing machine can replace the function of the electronic device 100 . That is to say, the rowing machine collects motion sensor data, and based on the motion sensor data, determines whether the user's motion type is the first motion or the second motion, and guides the user's breathing rhythm. Specifically, the rowing machine collects motion sensor data, and determines whether the user's motion type is the first motion, the second motion or the third motion based on the motion sensor data. After the rowing machine determines the first movement, it prompts the user to perform an inhalation movement through the first prompting method. After the rowing machine determines the second action, it prompts the user to perform an exhalation action through the second prompting method.
  • the electronic device 100 needs to establish a communication connection with the rowing machine.
  • the rowing machine collects motion sensor data and sends the motion sensor data to the electronic device 100 .
  • the electronic device 100 determines whether the user's motion type is the first motion or the second motion based on the motion sensor data, and guides the user's breathing rhythm.
  • the electronic device 100 prompts the user to perform an inhalation action through a first prompting manner.
  • the electronic device 100 prompts the user to perform an exhalation action through the second prompting manner.
  • the electronic device 100 needs to establish a communication connection with the rowing machine.
  • the rowing machine collects motion sensor data, and determines whether the user's motion is the first motion or the second motion based on the motion sensor data. After the rowing machine determines that the user's action is the first action, the rowing machine sends an instruction 1 to the electronic device 100. After receiving the instruction 1, the electronic device 100 prompts the user to inhale through the first prompting method. After the rowing machine determines that the user's action is the second action, the rowing machine sends command 2 to the electronic device 100. After receiving the command 2, the electronic device 100 prompts the user to perform an exhalation action through a second prompting method.
  • the rowing machine may have a display screen, which may display text, pictures or videos to prompt the user to inhale or exhale.
  • the display screen may also display content such as text, pictures or videos to prompt the user to perform the first action or the second action.
  • the above-mentioned rowing machine prompting the user to take an inhalation action through the first prompt method is similar to the electronic device 100 prompting the user to perform an inhalation action through the first prompt method, which will not be repeated in this embodiment of the present application.
  • the rowing machine prompting the user to take an inhalation action through the second prompting method is similar to the electronic device 100 prompting the user to perform an exhalation action through the second prompting manner, and will not be repeated in this embodiment of the present application.
  • the communication connection mentioned above may refer to a wired connection or a wireless connection.
  • the wireless connection may be a wireless local area network (wireless local area network, WLAN) connection, a high-fidelity wireless communication (wireless fidelity, Wi-Fi) connection, a Bluetooth connection, an infrared connection, a near field communication (near field communication, NFC) connection, ZigBee And short-distance connections such as other wireless communication technologies emerging in subsequent development.
  • the rowing machine can also establish a long-distance connection with the electronic device 100, and the long-distance connection includes but not limited to the long-distance connection of the mobile network based on 2G, 3G, 4G, 5G and subsequent standard protocols.
  • the rowing machine and the electronic device 100 can also log in the same user account (such as a Huawei account), and then perform a remote connection through the server.
  • FIGS. 17A-17C introduce that the electronic device 100 determines whether the user's arm motion posture is the first motion or the second motion according to the motion sensor data collected by the electronic device 100 . Specifically, the electronic device 100 collects motion sensor data, and determines whether the user's motion type is the first motion or the second motion based on the motion sensor data. After determining the first action, the electronic device 100 prompts the user to perform an inhalation action through a first prompting manner. After determining the second action, the electronic device 100 prompts the user to perform an exhalation action through the second prompting manner.
  • the elliptical machine can replace the functions of the electronic device 100 . That is to say, the elliptical machine collects motion sensor data, and based on the motion sensor data, determines whether the user's motion type is the first motion or the second motion, and guides the user's breathing rhythm. Specifically, the elliptical machine collects motion sensor data, and determines whether the user's motion type is the first motion, the second motion, or the third motion based on the motion sensor data. After the elliptical machine determines the first movement, it prompts the user to perform an inhalation movement through a first prompting manner. After the elliptical machine determines the second action, it prompts the user to perform an exhalation action through the second prompting method.
  • the electronic device 100 needs to establish a communication connection with the elliptical machine.
  • the elliptical machine collects motion sensor data and sends the motion sensor data to the electronic device 100 .
  • the electronic device 100 determines whether the user's motion type is the first motion or the second motion based on the motion sensor data, and guides the user's breathing rhythm.
  • the electronic device 100 prompts the user to perform an inhalation action through a first prompting manner.
  • the electronic device 100 prompts the user to perform an exhalation action through the second prompting manner.
  • the electronic device 100 needs to establish a communication connection with the elliptical machine.
  • the elliptical machine collects motion sensor data, and determines whether the user's motion is the first motion or the second motion based on the motion sensor data. After the elliptical machine determines that the user's action is the first action, the elliptical machine sends an instruction 1 to the electronic device 100. After receiving the instruction 1, the electronic device 100 prompts the user to inhale through the first prompting method. After the elliptical machine determines that the user's action is the second action, the elliptical machine sends command 2 to the electronic device 100. After receiving the command 2, the electronic device 100 prompts the user to perform an exhalation action through a second prompting method.
  • the elliptical machine may have a display screen, which may display content such as text, pictures or videos to prompt the user to inhale or exhale.
  • the display screen may also display content such as text, pictures or videos to prompt the user to perform the first action or the second action.
  • the above-mentioned elliptical machine prompting the user to take an inhalation action through the first prompt method is similar to the electronic device 100 prompting the user to perform an inhalation action through the first prompt method, and will not be repeated in this embodiment of the present application.
  • the above-mentioned elliptical machine prompting the user to take an inhalation action through the second prompting method is similar to the electronic device 100 prompting the user to perform an exhalation action through the second prompting method, and the embodiment of the present application will not repeat them here.
  • the communication connection mentioned above may refer to a wired connection or a wireless connection.
  • the wireless connection may be a wireless local area network (wireless local area network, WLAN) connection, a high-fidelity wireless communication (wireless fidelity, Wi-Fi) connection, a Bluetooth connection, an infrared connection, a near field communication (near field communication, NFC) connection, ZigBee And short-distance connections such as other wireless communication technologies emerging in subsequent development.
  • the elliptical machine can also establish a long-distance connection with the electronic device 100, and the long-distance connection includes but is not limited to the long-distance connection of the mobile network based on 2G, 3G, 4G, 5G and subsequent standard protocols.
  • the elliptical trainer and the electronic device 100 can also log in the same user account (for example, a Huawei account), and then perform a long-distance connection through the server.
  • Embodiment 2 is about the breathing guidance program in the health field.
  • the electronic device 100 detects that other electronic devices (such as medical equipment) perform the first action, the electronic device 100 passes the first action.
  • a prompt mode prompts the user to inhale.
  • the electronic device 100 detects that the medical device performs the second action, the electronic device 100 prompts the user to exhale in a second prompt manner.
  • the user's breathing rhythm can be matched with the inspection action of the medical device, which can improve the user's experience in the inspection process, reduce discomfort, and improve the efficiency of health inspection.
  • the electronic device 100 needs to establish a communication connection with the medical device.
  • the medical device collects motion sensor data, and the medical device sends the motion sensor data to the electronic device 100 in real time.
  • the electronic device 100 determines whether the motion type of the medical device is the first motion or the second motion based on the motion sensor data.
  • the electronic device 100 prompts the user to inhale through the first prompting manner and prompts the user to exhale through the second prompting manner.
  • the electronic device 100 needs to establish a communication connection with the medical device.
  • the medical device collects motion sensor data, and determines whether the motion type of the medical device is the first motion or the second motion based on the motion sensor data. After the medical device determines that the user's action is the first action, the medical device sends an instruction 1 to the electronic device 100, and after receiving the instruction 1, the electronic device 100 prompts the user to inhale in a first prompting manner. After the medical device determines that the user's action is the second action, the medical device sends command 2 to the electronic device 100, and after receiving the command 2, the electronic device 100 prompts the user to inhale through the second prompting method.
  • the medical device in the following embodiments of the present application may replace the function of the electronic device 100 . That is to say, the medical device collects motion sensor data, and based on the motion sensor data, determines whether the work type of the medical device is the first action or the second action. After the medical device determines the type of action, it prompts the user to inhale and pass The second prompting mode prompts the user to exhale.
  • the above-mentioned communication connection between the medical device and the electronic device 100 may refer to a wired connection or a wireless connection.
  • the wireless connection may be a wireless local area network (wireless local area network, WLAN) connection, a high-fidelity wireless communication (wireless fidelity, Wi-Fi) connection, a Bluetooth connection, an infrared connection, a near field communication (near field communication, NFC) connection, ZigBee And short-distance connections such as other wireless communication technologies emerging in subsequent development.
  • the medical device can also establish a long-distance connection with the electronic device 100, and the long-distance connection includes but not limited to the long-distance connection of the mobile network based on 2G, 3G, 4G, 5G and subsequent standard protocols.
  • the medical device and the electronic device 100 can also log in with the same user account (such as a Huawei account), and then perform a remote connection through the server.
  • the aforementioned medical and health checks may include, but are not limited to, gastroscopy, respiratory drug therapy, monitoring of respiratory diseases (such as asthma) and the like.
  • Fig. 18 exemplarily shows a schematic diagram of a scene in gastroscopy.
  • a gastric tube is passed from the patient's mouth through the esophagus into the stomach.
  • the user experience is very poor, and the duration will be accompanied by symptoms such as vomiting and respiratory discomfort.
  • the doctor's oral breathing guidance prompts the user's breathing rhythm, so as to reduce the user's discomfort.
  • the electronic device 100 or the main body of the gastric tube can provide breathing guidance in combination with the action types of the gastroscope.
  • the first movement is the action of the gastric tube going deep into the stomach along the esophagus of the gastric tube
  • the second action is the pause of the gastric tube going deep into the stomach along the esophagus of the gastric tube.
  • the main body of the gastric tube can replace the function of the electronic device 100 .
  • the main body of the gastric tube can collect the motion sensor data of the motion sensor on the gastric tube, and determine the action type of the gastric tube based on the motion sensor data.
  • the main body of the gastric tube determines that the action type of the gastric tube is the first action, that is, when the gastric tube starts to go deep into the stomach along the esophagus of the gastric tube, the main body of the gastric tube prompts the user to perform an inhalation action through the first prompting method.
  • the main body of the gastric tube determines that the action type of the gastric tube is the second action, that is, when the gastric tube pauses and goes down the esophagus of the gastric tube, the main body of the gastric tube prompts the user to perform an exhalation action through the second prompting method.
  • the main body of the above-mentioned gastric tube reminds the user to take an inhalation action through the first prompt method, which is similar to the electronic device 100 prompting the user to perform an inhalation action through the first prompt method, and the embodiment of the present application will not repeat them here.
  • the main body of the above-mentioned gastric tube reminds the user to take an inhalation action through the second prompt method, which is similar to the electronic device 100 prompting the user to perform an exhalation action through the second prompt method, and will not be repeated in this embodiment of the present application.
  • the main body of the gastric tube may have a display screen, which may display text, pictures or videos to prompt the user to inhale or exhale.
  • the display screen may also display content such as text, pictures or videos to prompt the user to perform the first action or the second action.
  • the main body of the gastroscope can also prompt the user to exhale and inhale through voice or vibration.
  • the electronic device 100 When the electronic device 100 gives breathing guidance, before the electronic device 100 starts to guide the user's breathing rhythm, the electronic device 100 needs to establish a communication connection with the main body of the gastric tube.
  • the main body of the gastric tube collects motion sensor data and sends the motion sensor data to the electronic device 100 .
  • the electronic device 100 determines whether the user's motion type is the first motion or the second motion based on the motion sensor data, and guides the user's breathing rhythm.
  • the electronic device 100 determines that the action type of the gastric tube is the first action, that is, when the gastric tube starts to go deep into the stomach along the esophagus of the gastric tube, the electronic device 100 prompts the user to perform an inhalation action through the first prompting manner.
  • the electronic device 100 determines that the action type of the gastric tube is the second action, that is, when the gastric tube pauses and goes deep into the stomach along the esophagus of the gastric tube, the electronic device 100 prompts the user to perform an exhalation action through the second prompting method.
  • the electronic device 100 When the electronic device 100 gives breathing guidance, before the electronic device 100 starts to guide the user's breathing rhythm, the electronic device 100 needs to establish a communication connection with the main body of the gastric tube.
  • the main body of the gastric tube collects motion sensor data, and determines whether the motion type of the gastric tube is the first motion or the second motion based on the motion sensor data.
  • the main body of the gastric tube determines that the user's action is the first action, that is, when the gastric tube starts to go deep into the stomach along the esophagus of the gastric tube
  • the main body of the gastric tube sends command one to the electronic device 100, and the electronic device 100 receives command one Afterwards, the user is prompted to inhale through the first prompting manner.
  • the main body of the gastric tube determines that the user's action is the second action, that is, when the gastric tube pauses and goes deep into the stomach along the esophagus of the gastric tube, the main body of the gastric tube sends command 2 to the electronic device 100, and the electronic device 100 receives the command After the second step, the user is prompted to perform an exhalation action through a second prompting manner.
  • the stomach tube when the stomach tube is going deep into the patient's stomach, the user will inhale deeply, so that the whole body is relaxed and the chest is expanded as much as possible.
  • the gastric tube When the gastric tube is suspended and goes deep into the patient's stomach, the user can cooperate with slow exhalation to reduce discomfort during the examination.
  • the breathing rhythm of the patient can be matched with the deep and pause action of the gastric tube, reducing the user's discomfort during the gastroscopy examination.
  • the breathing prompts given by the electronic device 100 may also be different.
  • the electronic device 100 may prompt the user to inhale by way of strong vibration.
  • the frequency of the strong vibration of the electronic device 100 may be frequency three. Frequency three is greater than frequency one. In this way, the stronger the vibration frequency of the electronic device 100 is, the longer it takes for the user to inhale, which can alleviate discomfort to a certain extent.
  • the electronic device 100 can prompt the user to inhale through different voice contents at different stages in the endoscopy examination.
  • the voice content can be "through the nasal cavity depth Inhale and hold for a period of time (eg 5s)".
  • the electronic device 100 may display breathing actions corresponding to different prompting modes.
  • the user can know in advance the prompting method of the electronic device 100 , when to exhale, and when to exhale.
  • FIG. 5D-FIG. 5F the principles are similar, and details will not be repeated here in this embodiment of the present application.
  • Respiratory drug therapy may include, but is not limited to, nebulized inhalation therapy, ventilator therapy, and the like.
  • nebulized inhalation therapy may include, but is not limited to, nebulized inhalation therapy, ventilator therapy, and the like.
  • the following embodiments of the present application take nebulization inhalation therapy as an example for illustration.
  • the first action is the action of the nebulizer delivering medicine
  • the second action is the action of the nebulizer suspending medicine delivery.
  • Fig. 19 exemplarily shows a schematic diagram of a scene in nebulization inhalation therapy.
  • the drug changes from liquid to mist with the aid of a nebulizer or a nebulizer pump and enters the throat through normal breathing.
  • a nebulizer or a nebulizer pump enters the throat through normal breathing.
  • the atomizer Before starting the atomization inhalation therapy, there may be a display screen on the atomizer, and text, pictures or videos may also be displayed on the display screen to remind the user when the atomizer starts to deliver medicine and when to stop delivering medicine.
  • the atomizer can also prompt the user by voice when the atomizer starts to deliver medicine and when to stop delivering medicine.
  • the electronic device 100 may establish a communication connection with the atomizer.
  • the atomizer sends the electronic version of the tutorial to the electronic device 100 through the communication module.
  • the patient can play the electronic version of the tutorial through the electronic device 100 to learn the precautions for using the nebulizer. For example, how to achieve a better therapeutic effect by controlling the breathing rhythm to match the medicine delivery rhythm of the nebulizer.
  • the electronic device 100 may also display breathing actions corresponding to different prompting modes, and the like.
  • the atomizer can replace the function of the electronic device 100 .
  • the atomizer prompts the user to take an inhalation action through the first prompt mode. In this way, the patient starts to inhale when the nebulizer delivers the medicine, so that the medicine can reach the patient's respiratory tract, and the therapeutic effect will be better.
  • the atomizer suspends medicine delivery, the atomizer prompts the user to exhale through the second prompt mode. In this way, when the nebulizer suspends medicine delivery, the patient starts to exhale to achieve the purpose of relaxing the whole body.
  • Prompting the user to take an inhalation action by the above-mentioned atomizer through the first prompt method is similar to prompting the user to perform an inhalation action by the electronic device 100 through the first prompt method, and will not be repeated in this embodiment of the present application.
  • the aforementioned atomizer prompting the user to take an inhalation action through the second prompting method is similar to the electronic device 100 prompting the user to perform an exhalation action through the second prompting method, and will not be repeated in this embodiment of the present application.
  • the display screen may also display text, pictures or videos to remind the user whether to inhale or exhale.
  • the atomizer can also prompt the user to inhale or exhale through voice or vibration.
  • the electronic device 100 When the electronic device 100 gives breathing guidance, before the electronic device 100 starts to guide the user's breathing rhythm, the electronic device 100 needs to establish a communication connection with the atomizer.
  • the atomizer starts to deliver medicine, the atomizer sends an instruction 1 to the electronic device 100 through the communication module. After receiving the instruction 1, the electronic device 100 prompts the patient to start inhaling in a first prompt manner.
  • the atomizer suspends medicine delivery, the atomizer sends command 2 to the electronic device 100 through the communication module, and the electronic device 100 prompts the patient to start exhaling in a second prompting manner after receiving the command 2 . In this way, the patient starts to inhale when the nebulizer delivers the medicine, so that the medicine can reach the patient's respiratory tract, and the therapeutic effect will be better.
  • the aforementioned communication connection between the electronic device 100 and the atomizer may refer to a wired connection or a wireless connection.
  • the wireless connection may be a wireless local area network (wireless local area network, WLAN) connection, a high-fidelity wireless communication (wireless fidelity, Wi-Fi) connection, a Bluetooth connection, an infrared connection, a near field communication (near field communication, NFC) connection, ZigBee And short-distance connections such as other wireless communication technologies emerging in subsequent development.
  • the atomizer can also establish a long-distance connection with the electronic device 100, and the long-distance connection includes but not limited to the long-distance connection of the mobile network based on 2G, 3G, 4G, 5G and subsequent standard protocols.
  • the atomizer and the electronic device 100 can also log in with the same user account (such as a Huawei account), and then connect remotely through the server.
  • the electronic device 100 can use the electronic device 100 to collect physiological data such as the user's heart rate, breathing rate, blood oxygen level, and asthmatic sounds from the lungs to determine whether the user has an asthma attack.
  • physiological data such as the user's heart rate, breathing rate, blood oxygen level, and asthmatic sounds from the lungs to determine whether the user has an asthma attack.
  • the electronic device 100 can give breathing guidance, which can relieve the user's symptoms of an asthma attack.
  • the electronic device 100 can display text, pictures, or video teaching content on the display screen to give some suggestions, or give some suggestions by voice, so that the user knows How to relieve symptoms during an asthma attack.
  • the electronic device 100 prompts the user to take a deep breath, to lay down in a straight position, to use related medication and so on in the form of voice.
  • Voice content can be "deep call in, slow call out, etc.”
  • the voice content can also be “choose a semi-recumbent position or a sitting position, and untie the buttons near the neck to ensure smooth breathing”.
  • the voice content can also be "please use the bronchodilator spray”.
  • the electronic device 100 may display an animation on the display screen, and at the same time, the electronic device 100 prompts the user to perform actions along with the animation on the display screen, such as choosing a correct lying position, how to control breathing rhythm, and so on.
  • the electronic device 100 can prompt the user to take a deep breath through the first prompting method, and after a certain time interval (for example, 2 seconds), the electronic device 100 can prompt the user to exhale slowly through the second prompting method . In this way, through rhythmic breathing, the symptoms of the user's asthma attack can be relieved.
  • a certain time interval for example, 2 seconds
  • the electronic device 100 may prompt the user to take the medicine through voice, text or vibration, and display the corresponding medicine name and taking instructions on the display screen of the electronic device 100 .
  • the electronic device 100 can ask the user whether he needs help through the voice module. If no reply is received, the electronic device 100 may consider that the user needs help.
  • the electronic device 100 stores the contact information of the emergency contact, and the electronic device 100 can directly send the user's physiological data and possible symptom information (such as asthma) to the emergency contact.
  • the electronic device 100 can send the user's current location, the user's name, home address, disease history, contact number, user's physiological data and possible symptom information to the server, and the server calls the map service to find the closest location to the user's current location. Get its name, on-duty staff and contact number of the community health service center.
  • the server notifies the user's current location, user's name, home address, disease history, contact number, user's physiological data and possible symptom information to the community health service center closest to the user through an application program or other means. After that, if the on-duty staff of the community health service center nearest to the user sees the user's information, the on-duty staff will contact the user through the phone call sent by the server, ask if they need help, and take further first-aid measures and assistance.
  • Fig. 20 exemplarily shows a schematic flowchart of a breathing guidance method provided by an embodiment of the present application.
  • the method includes:
  • the electronic device 100 acquires sensor data, and determines a user's action type based on the sensor data.
  • the electronic device 100 may be a mobile phone, a wearable device, a headset, smart glasses, an augmented reality (augmented reality, AR) device, a virtual reality (virtual reality, VR) device, and the like.
  • the wearable device may be a device supported by the wrist, such as a smart watch, a smart bracelet, a smart wristband, and the like.
  • the wearable device may also be an ankle-supported device, such as a smart anklet, a smart shoe, a smart sock, or other devices that can be worn on the leg.
  • the wearable device can also be a device supported by the head, such as a smart helmet, a smart headband (also called a smart headband).
  • the electronic device 100 may also be medical equipment, fitness equipment, and the like.
  • Medical devices may include, but are not limited to, ventilators, nebulizers, gastroscope equipment, chest X-ray detection equipment, etc.
  • Exercise equipment may include, but is not limited to, boat hulls, rowing machines, elliptical machines, barbells, and the like.
  • the sensor data includes one or more of acceleration data, gyroscope data, image data, gravity data, and pressure data.
  • the electronic device 100 Before the electronic device 100 acquires the sensor data, the electronic device 100 receives and responds to the first input operation to determine the first exercise mode; the first exercise mode is any of the following: running mode, swimming mode, weightlifting mode, elliptical machine exercise mode, Rowing machine exercise mode, rowing mode.
  • the electronic device 100 determines the user's action type in the first exercise mode based on the sensor data. In this way, the electronic device 100 can start different exercise modes before the user exercises, and provide different breathing guidance schemes in different exercise modes. Specifically, reference may be made to the embodiments shown in FIG. 3A, FIG. 3B-FIG. 3D, and the embodiments of the present application will not be repeated here.
  • the electronic device 100 may adaptively enable the first exercise mode (for example, the running mode) according to the collected motion sensor data. After the electronic device 100 adaptively turns on the first exercise mode, the electronic device 100 displays a first interface on which a first control is displayed. The electronic device 100 receives and responds to the user's input operation on the first control, and the electronic device 100 cancels starting the first exercise mode. In this way, the electronic device 100 is prevented from turning on the first sports mode by mistake, which increases the consumption of the electronic device 100 .
  • the first interface may be the user interface shown in Figure 3E
  • the first control may be the control 314 shown in Figure 3E. Specifically, reference may be made to the embodiments shown in FIG. 3A-FIG. 3E , and the embodiments of the present application will not be repeated here.
  • the electronic device 100 receives the sensor data sent by the third electronic device.
  • the third electronic device may be fitness equipment or medical equipment. That is to say, the first electronic device establishes a communication connection with the first electronic device.
  • the third electronic device collects motion sensor data on the third electronic device in real time, and sends the motion sensor data to the first electronic device in real time.
  • the electronic device 100 may display the guiding action on the display screen.
  • the guide action is used to instruct the user to breathe actions corresponding to different action types. Specifically, you can refer to the embodiment shown in Figure 5D- Figure 5F
  • the electronic device 100 may display animation on the display screen.
  • the animation is used to indicate breathing actions corresponding to different action types of the user.
  • the electronic device 100 determines that the user's motion type is the first motion type, the electronic device 100 outputs a first prompt, where the first prompt is used to prompt the user to perform an inhalation motion.
  • the first action may be that the electronic device 100 determines that the user's exercise posture is the first action based on the electronic device 100 collecting motion data of the user.
  • the first motion when the first motion is the motion posture of the user, the first motion may be the user's arm motion, or the first motion may be the user's leg motion.
  • the arm movement and the leg movement are coordinated and performed together.
  • the first movement is the user's arm movement as an example for illustration.
  • the first action may also be that the third electronic device determines the motion posture of the third electronic device based on the motion data collected by the third electronic device, and infers the user's behavior based on the motion posture of the third electronic device. movement posture. After the third electronic device deduces the user's movement posture, the third electronic device sends an instruction to the electronic device 100, and the instruction is used to instruct the user of the electronic device 100 to perform the first action.
  • the third electronic device Before the user starts exercising, the third electronic device needs to establish a communication connection with the electronic device 100 .
  • the communication connection may refer to a wired connection or a wireless connection.
  • the wireless connection can be a high-fidelity wireless communication (wireless fidelity, Wi-Fi) connection, Bluetooth connection, infrared connection, NFC connection, ZigBee connection and other short-distance connections, and can also be a long-distance connection.
  • Long-distance connections include but are not limited to 2G-based , 3G, 4G, 5G and the long-distance connection of the mobile network of the follow-up standard protocol.
  • the electronic device 100 and the third electronic device may log in to the same user account (such as a Huawei account), and then perform a remote connection through the server.
  • the third electronic device After the third electronic device deduces that the user's motion posture is the first action, the third electronic device sends an instruction 1 to the electronic device 100, and after the electronic device 100 receives the instruction 1, the electronic device 100 prompts the user to inhale through the first prompting method .
  • the first action is a motion gesture of other electronic equipment (such as a medical device). Based on the motion data collected by the other electronic devices, the other electronic devices determine the motion postures of the other electronic devices. When the other electronic device determines that the movement posture of the other electronic device is the first action, the other electronic device sends an instruction 1 to the electronic device 100, and after the electronic device 100 receives the instruction 1, the electronic device 100 prompts the user to inhale through the first prompting method .
  • the breathing rhythm of the user can be matched with the movement posture of other electronic devices (such as medical equipment), especially in some health fields, when the user is doing health checks and treatments, such as gastroscopy, atomization therapy, chest X-ray Optical inspection, etc.
  • other electronic devices send command 1 to electronic device 100, after electronic device 100 receives command 1, that is, electronic device 100 monitors the motion posture of other electronic devices
  • the electronic device 100 prompts the user to inhale in a first prompt manner.
  • the breathing rhythm of the user can be matched with the action of the medical device, the discomfort of the user during the health check can be alleviated, and the therapeutic effect can be improved at the same time.
  • Embodiment 2 introduced in FIG. 18-FIG. 19 , and details will not be repeated here in this embodiment of the present application.
  • the electronic device 100 determines that the user's action type is the second action type, the electronic device 100 outputs a second prompt, the second prompt is used to prompt the user to perform an exhalation action, and the first prompt is different from the second prompt.
  • the second action is similar to the first action.
  • the electronic device 100 sends a first instruction to the second electronic device, the first instruction is used to instruct the second electronic device to output a third prompt, and the third prompt is used to prompt the user Perform an inhalation action; wherein, the type of the third prompt is any one or more of the following: vibration, voice, text, picture.
  • the electronic device 100 may output the third prompt through another electronic device (the second electronic device is an earphone or a mobile phone) that has established a connection.
  • the electronic device 100 may not output any content, but output the third prompt through another electronic device (the second electronic device is an earphone or a mobile phone) that establishes a connection.
  • the third electronic device collects sensor data, and determines the user's action type based on the sensor data.
  • the third electronic device determines that the user's action type is the first action type
  • the third electronic device sends an instruction 1 to the first electronic device, and after receiving the instruction 1, the first electronic device outputs a first prompt, which is used to Prompt the user to take an inhalation action
  • the third electronic device determines that the user's action type is the second action type
  • the third electronic device sends the instruction 2 to the first electronic device, and the first electronic device outputs the second instruction after receiving the instruction 2.
  • the second prompt is used to prompt the user to perform an exhalation action, and the first prompt is different from the second prompt.
  • the type of the first prompting method is any one or more of the following: vibration, voice, text, and picture.
  • the type of the second prompt is any one or more of the following: vibration, voice, text, picture.
  • the vibration frequency of the first prompt is different from the vibration frequency of the second prompt.
  • the voice content of the first prompt is different from the voice content of the second prompt.
  • the type of the first prompt is any one or more of the following: vibration, voice, text, picture; the second prompt does not output any content; or the first prompt does not output any content; the type of the second prompt is any of the following Or several: vibration, voice, text, picture.
  • the electronic device 100 can prompt the user when to inhale and when to inhale through different prompting methods, so that the rhythm of the action matches the breathing rhythm of the user, saving physical energy and improving the user's exercise ability.
  • the electronic device 100 outputs a fourth prompt.
  • the prompt is used to prompt the user to perform a breath-holding action; wherein, the type of the fourth prompt is any one or more of the following: vibration, voice, text, and picture.
  • the type of the fourth prompt is any one or more of the following: vibration, voice, text, and picture.
  • the electronic device 100 prompts the user to hold his breath through a fourth prompting manner.
  • the electronic device 100 prompts the user to perform a short group or several groups of exhalation and inhalation actions through a fourth prompt manner.
  • the electronic device 100 determines that the user's action type is the first action type, and the electronic device 100 detects that the user has completed the first action, the electronic device 100 outputs a first prompt, and the first prompt is used to prompt the user to take a suction action. gas action.
  • the electronic device 100 determines that the user's action type is the second action type, and the electronic device 100 detects that the user has completed the second action, the electronic device 100 outputs a second prompt, and the second prompt is used to Prompts the user to exhale.
  • the user completes the second action
  • the electronic device 100 prompts the user to perform an exhalation action.
  • the electronic device 100 may continuously give breathing instructions to the user after the user starts exercising and before ending the exercising. In this way, the electronic device 100 can always provide the user with breathing guidance during the user's exercise, and the user can better coordinate the exercise action and the rhythm of breathing. For example, when the electronic device 100 monitors the arm movement of the user wearing the electronic device 100 when the arm swings forward during the user's running, the electronic device 100 prompts the user to inhale in a first prompting manner. When the arm movement of the user wearing the electronic device 100 is detected when the arm swings backward, the electronic device 100 prompts the user to exhale in a second prompting manner. Until the user finishes exercising, the electronic device 100 stops instructing the user to perform breathing actions. In this way, the electronic device 100 can always guide the user's breathing during the user's running, and the user can better coordinate the rhythm of the arm swing and breathing during the running process.
  • the user may actively trigger the suspension and/or continuation of the breathing guidance of the user by the electronic device 100 .
  • the electronic device 100 may receive and respond to the user's voice during the running process of the user, pause or continue in conjunction with the user's arm swinging motion, and guide the user's breathing motion.
  • the user may wake up the electronic device 100 by voice "Xiao A Xiao A, stop breathing guidance".
  • the electronic device 100 will suspend monitoring the user's running arm movement, that is, the electronic device 100 will suspend guidance to the user's breathing action.
  • the user can wake up the electronic device 100 by voice "Xiao A Xiao A, continue breathing guidance". After the electronic device 100 recognizes the user's voice, it will continue to monitor the user's arm movements during running, and guide the user's breathing action again in combination with the user's arm movements during running. In this way, the user can flexibly control the electronic device 100 according to his own needs, which improves user experience.
  • the electronic device 100 may adaptively suspend breathing guidance for the user. For example, when the electronic device 100 monitors the arm movement of the user wearing the electronic device 100 when the arm swings forward during the user's running, the electronic device 100 prompts the user to inhale in a first prompt manner. When the arm movement of the user wearing the electronic device 100 is detected when the arm swings backward, the electronic device 100 prompts the user to exhale in a second prompting manner. After a period of time (the first time) after the electronic device 100 instructs the user to perform the breathing action, the electronic device 100 suspends monitoring the user's running arm movement, and the electronic device 100 also suspends the guidance of the user's breathing action at the same time. In this way, compared with always guiding the user's breathing during the user's running, the power consumption of the electronic device 100 can be saved.
  • the electronic device 100 may adaptively start the breathing guidance for the user afterwards. For example, after the electronic device 100 suspends the monitoring of the user's arm movement and the guidance of the breathing action, the electronic device 100 can collect the user's breathing frequency through the microphone attached to the electronic device 100, or the earphone is connected to the electronic device 100, and the user wears the earphone While listening to music while exercising, the electronic device 100 may also collect the breathing rate of the user through a microphone on an earphone connected to the electronic device 100 .
  • the electronic device 100 may prompt the user whether breathing guidance is needed through voice, vibration, text, etc., or, when the electronic device 100 determines When the breathing rate of the user is greater than the breathing rate in the running mode breathing guidance scheme, the electronic device 100 may prompt the user to slow down the breathing rate.
  • the electronic device 100 determines that the breathing rate of the user is lower than the breathing rate (preset frequency) in the breathing guidance scheme of the running mode, the electronic device 100 may prompt the user to increase the breathing rate.
  • the electronic device 100 After the electronic device 100 continues to monitor the user's arm movement and guide the breathing action for a period of time, when the electronic device 100 determines that the user's breathing rate matches the breathing rate in the running mode breathing guidance program, the electronic device 100 can pause. Monitoring of the user's arm movements and guidance of breathing movements. In this way, the flexibility of the electronic device 100 for breathing guidance to the user is reflected.
  • the electronic device 100 may obtain the user's heart rate in real time, and determine the user's rest time according to the user's heart rate. For example, when the electronic device 100 is running, the electronic device 100 may obtain the user's heart rate in real time, and determine the user's rest time according to the user's heart rate.
  • the electronic device 100 determines the user's metabolic mode according to the change of the user's heart rate, including: aerobic mode and anaerobic mode, or aerobic mode, anaerobic lactic acid mode, anaerobic lactic acid-free mode, etc., different
  • the metabolic mode may correspond to different rest times, and after the user ends a certain period of exercise, the electronic device 100 may prompt the user to have a rest time.
  • the electronic device 100 determines that the user's heart rate is not within the range specified by the preset heart rate (preset heart rate value)
  • the electronic device 100 can prompt the user through voice, vibration, text, etc. Stop exercising and start resting.
  • the electronic device 100 may prompt the user to stop resting and start exercising according to the change of the user's heart rate.
  • the electronic device 100 may also adaptively start the breathing guidance for the user. For example, the electronic device 100 may collect the user's heart rate after the electronic device 100 suspends the monitoring of the user's arm motion and the guidance of the breathing motion. When the electronic device 100 determines that the user's heart rate is not within the range specified by the preset heart rate, the electronic device 100 may prompt the user whether breathing guidance is needed through voice, vibration, text, and other means.
  • the electronic device 100 After the electronic device 100 continues to monitor the user's arm movements and guide the breathing movements for a period of time, the electronic device 100 determines that the user's heart rate is within the range specified by the preset heart rate, then the electronic device 100 can suspend the monitoring of the user's arm movements. Monitoring and guidance of breathing maneuvers. In this way, the flexibility of the electronic device 100 for breathing guidance to the user is reflected.
  • the electronic device 100 may determine the user's preset heart rate according to the user's exercise ability. When the electronic device 100 suspends the breathing guidance for the user, or before the user exercises, the electronic device 100 does not turn on the breathing guidance. If the user's heart rate is higher than the user's preset heart rate, the electronic device 100 can adaptively turn on the breathing guidance. For example, during running, the electronic device 100 suspends the breathing guidance for the user, or the user does not turn on the breathing guidance of the electronic device 100 before starting to run. The electronic device 100 can obtain the user's heart rate in real time during the user's running.
  • the electronic device 100 can ask the user whether to start breathing guidance through voice, vibration, text, etc. function, or the electronic device 100 can automatically turn on the breathing guidance function, and combine the user's running arm swinging action to guide the user's breathing action, so that the user's arm swinging action during running matches the rhythm of breathing.
  • the electronic device 100 suspends the breathing guidance for the user, or the electronic device 100 does not enable the breathing guidance function before the user exercises. Then, the electronic device 100 may prompt the user whether breathing guidance is needed after the user has been exercising for a period of time according to the user's exercise ability and in combination with one or more factors of exercise type, exercise goal, temperature, humidity and air pressure.
  • the electronic device 100 may prompt the user whether to take a rest after the user has been exercising for a period of time according to the user's exercise ability.
  • the electronic device 100 may determine the user's preset exercise time according to the user's exercise ability, and if the user's running time exceeds the preset exercise time, the electronic device 100 may prompt the user whether to take a rest.
  • the electronic device 100 may determine the user's preset heart rate according to the user's exercise ability.
  • the electronic device 100 can obtain the user's heart rate in real time, and if the electronic device 100 detects that the user's heart rate is greater than a preset heart rate, the electronic device 100 can prompt the user whether to take a rest.
  • FIG. 21 exemplarily shows a schematic diagram in which the electronic device 100 obtains the user's exercise ability according to the user's personal information.
  • the electronic device 100 acquires personal information of a user.
  • the user's personal information includes, but is not limited to: gender, age, height and weight, maximum oxygen uptake, resting heart rate and maximum heart rate, etc.
  • the maximum oxygen uptake may be the maximum value among the user's oxygen uptake data acquired by the electronic device 100 during the user's previous exercise.
  • the maximum heart rate may be the maximum value of the user's heart rate acquired by the electronic device 100 during the user's previous exercise.
  • the user's personal data may be stored in the electronic device 100, may also be input by the user, or may be obtained from other devices connected with it.
  • the electronic device 100 evaluates the user's exercise ability based on the user's personal information and the fuzzy evaluation system.
  • the fuzzy evaluation system refers to using the method of fuzzy mathematics to give the possibility of obtaining a certain comment for the things affected by multiple parameters according to certain evaluation standards. That is to say, if the proportion of each parameter is different, the output results of the fuzzy evaluation system are also different.
  • the electronic device 100 can set the proportion of each parameter input to the fuzzy evaluation system to be the same, or set the proportion of each parameter input to the fuzzy evaluation system to be different, which is not limited in this embodiment of the present application. .
  • Each parameter in the personal information is related to the user's athletic ability. For example, men are more athletic than women. Young adults are more athletic than teens and older adults. A person with a higher oxygen uptake is more athletic than a person with a lower oxygen uptake, and so on.
  • the electronic device 100 inputs the user's personal information into the fuzzy evaluation system, and the fuzzy evaluation system outputs the user's athletic ability.
  • Athletic ability can be divided into weak, medium, strong and excellent levels. Of course, the athletic ability can also be divided into more or fewer levels, which is not limited in this embodiment of the present application.
  • the electronic device 100 Since the user's personal information changes, the electronic device 100 needs to periodically update the user's personal information. Then, the electronic device 100 may also periodically update the user's exercise ability.
  • the electronic device 100 may display the exercise result.
  • the exercise results displayed by the electronic device 100 may include but not limited to the following:
  • the user's exercise data includes: heart rate, heat, breathing rate, exercise time, exercise date, exercise days, etc.
  • the user's exercise status can include current exercise status and historical exercise status. In this way, the user can compare his current exercise status with previous exercise status to check whether he has made progress, whether his body has been exercised, and so on.
  • the electronic device 100 can determine the nutrition that the user needs to consume after exercising according to the user's energy consumption, exercise time and other data. For example, the electronic device 100 can display the user's nutritional intake ratio or recommended food in the exercise results.
  • the nutrient intake ratio can be used to indicate the ratio of protein, sugar, fat, dietary fiber, water, etc. that the user needs to ingest after this exercise.
  • the recommended foods may include: milk, eggs, beef, etc., and the electronic device 100 may recommend different foods according to the intensity of the user's exercise. In this way, it can help users recover their physical fitness faster and make up for the energy consumed during exercise.
  • the exercise result is not limited to the content mentioned above, and may also include data such as basic information of the user, which is not limited in this embodiment of the present application.
  • the electronic device 100 can also provide a sharing function, and the user can use the sharing function to share the user's exercise result to other devices or other social platforms.
  • the processes can be completed by computer programs to instruct related hardware.
  • the programs can be stored in computer-readable storage media.
  • When the programs are executed may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Biophysics (AREA)
  • Physical Education & Sports Medicine (AREA)
  • Medical Informatics (AREA)
  • Biomedical Technology (AREA)
  • Animal Behavior & Ethology (AREA)
  • Physics & Mathematics (AREA)
  • Pathology (AREA)
  • Veterinary Medicine (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Epidemiology (AREA)
  • Primary Health Care (AREA)
  • Physiology (AREA)
  • Dentistry (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种呼吸指导方法及相关装置。方法包括:当电子设备(100)监测到第一动作时,以第一提示方式提示用户做吸气动作;当电子设备(100)监测到第二动作时,以第二提示方式提示用户做呼气动作。其中,第一动作和第二动作可以是电子设备(100)监测到的用户动作。第一动作和第二动作可以是电子设备(100)监测到的其他电子设备(例如运动器械和医疗器械)的动作。第一动作和第二动作也可以是其他电子设备监测到的其他电子设备的动作。

Description

一种呼吸指导方法及相关装置
本申请要求于2021年08月13日提交中国专利局、申请号为202110931153.8、申请名称为“一种呼吸指导方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及移动终端技术领域,尤其涉及一种呼吸指导方法及相关装置。
背景技术
呼吸是人类日常活动中最重要的行为之一。正确的呼吸对于运动以及健康都有非常重要的意义。然而,在一些情况下,用户会忘记以合理的节奏进行呼吸。例如:在运动领域,如何通过调节呼吸来达到安全运动、提高成绩;在医疗健康领域,如何通过呼吸指导来达到较好的康复目的。
目前,还没有在运动领域及健康领域对用户进行呼吸指导的方案。如何在运动以及健康领域对用户进行科学的呼吸指导是亟待解决的问题。
发明内容
本申请提供了一种呼吸指导方法及相关装置,实现了电子设备可以通过不同的提示方式,来提示用户什么时候进行吸气,什么时候进行吸气,使得动作的节奏与用户的呼吸节奏相匹配。
第一方面,本申请提供了一种呼吸指导方法,方法包括:第一电子设备获取传感器数据;
第一电子设备基于传感器数据确定用户的动作类型;当第一电子设备确定用户的动作类型为第一动作类型时,第一电子设备输出第一提示,第一提示用于提示用户做吸气动作;当第一电子设确定用户的动作类型为第二动作类型时,第一电子设备输出第二提示,第二提示用于提示用户做呼气动作,第一提示与第二提示不同。
第一电子设备可以是手机、可穿戴式设备、耳机、智能眼镜、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备等等。其中,可穿戴式设备可以是以手腕为支撑的设备,例如智能手表、智能手环、智能腕带等等。可穿戴式设备也可以是以脚踝为支撑的设备,例如智能脚环、智能鞋、智能袜子或者其他可佩戴在腿上的设备等等。可穿戴式设备也可以是以头部为支撑的设备,例如智能头盔、智能头带(也可以称为智能头箍)。
第一电子设备也可以是医疗器械设备和健身器材设备等等。医疗器械设备可以包括但不仅限于呼吸机、雾化机、胃镜设备、胸部X光检测设备等等。健身器材设备可以包括但不仅限于船体、划船机、椭圆机、杠铃等等。
在一种可能的实现方式中,第三电子设备采集传感器数据,并基于传感器数据确定出用户的动作类型。当第三电子设备确定用户的动作类型为第一动作类型时,第三电子设备向第一电子设备发送指令一,第一电子设备接收到指令一之后,输出第一提示,第一提示用于提示用户做吸气动作;当第三电子设备确定用户的动作类型为第二动作类型时,第三电子设备向第一电子设备发送指令二,第一电子设备接收到指令二之后,输出第二提示,第二提示用 于提示用户做呼气动作,第一提示与第二提示不同。
通过第一方面提供的方法,电子设备可以通过不同的提示方式,来提示用户什么时候进行吸气,什么时候进行吸气,使得动作的节奏与用户的呼吸节奏相匹配,节省体能,提高用户的运动能力。
结合第一方面,在一种可能的实现方式中,第一提示的类型为以下任意一种或几种:震动、语音、文字、图片;第二提示的类型为以下任意一种或几种:震动、语音、文字、图片。
结合第一方面,在一种可能的实现方式中,第一提示与所述第二提示不同,具体包括:第一提示的震动频率与第二提示的震动频率不同。
结合第一方面,在一种可能的实现方式中,第一提示与所述第二提示不同,具体包括:第一提示的语音内容与第二提示的语音内容不同。
结合第一方面,在一种可能的实现方式中,第一提示与所述第二提示不同,具体包括:第一提示的类型为以下任意一种或几种:震动、语音、文字、图片;第二提示不输出任何内容;或者,第一提示不输出任何内容;第二提示的类型为以下任意一种或几种:震动、语音、文字、图片。
结合第一方面,在一种可能的实现方式中,在第一电子设备开始指导用户呼吸之前,第一电子设备可以在显示屏上显示引导动作。该引导动作用于指示用户不同的动作类型对应的呼吸动作。
结合第一方面,在一种可能的实现方式中,在第一电子设备开始指导用户呼吸之前,第一电子设备可以在显示屏上显示动画。该动画用于指示用户不同的动作类型对应的呼吸动作。
结合第一方面,在一种可能的实现方式中,在第一电子设备开始指导用户呼吸之前,第一电子设备可以在播放语音。该语音用于指示用户不同的动作类型对应的呼吸动作。
结合第一方面,在一种可能的实现方式中,方法还包括:在第一电子设备输出第一提示的同时,第一电子设备向第二电子设备发送第一指令,第一指令用于指示第二电子设备输出第三提示,第三提示用于提示用户做吸气动作;其中,第三提示的类型为以下任意一种或几种:震动、语音、文字、图片。这样,第一电子设备在输出第一提示的同时,可以通过建立连接的其他电子设备(第二电子设备为耳机或者手机)等输出第三提示。
在其他可能的实现方式中,第一电子设备可以不输出任何内容,而是通过建立连接的其他电子设备(第二电子设备为耳机或者手机)等输出第三提示。
结合第一方面,在一种可能的实现方式中,当第一电子设备确定用户的动作类型为第一动作类型时,电子设备输出第一提示,具体包括:当第一电子设连续n次确定用户的动作类型为第一动作类型时,电子设备输出第一提示,n为大于等于1的正整数。
当第一电子设备确定用户的动作类型为第二动作类型时,电子设备输出第二提示,具体包括:当第一电子设连续m次确定用户的动作类型为第二动作类型时,电子设备输出第二提 示,m为大于等于1的正整数。第一电子设备可以监测到多次第一动作或者第二动作,让用户做一次吸气动作或者做一次呼气动作。例如,跑步中的“一步一呼”,游泳中可以“两次划手动作对应一次呼吸动作”等。这样,第一电子设备根据不同的运动类型给出的呼吸节奏也不同,体现了呼吸指导的灵活性。
结合第一方面,在一种可能的实现方式中,在第一电子设备输出第一提示之后,在第一电子设备输出第二提示之前,方法还包括:当第一电子设备确定用户的动作类型为第三动作类型时,第一电子设备输出第四提示,第四提示用于提示用户做闭气动作;其中,第四提示的类型为以下任意一种或几种:震动、语音、文字、图片。例如,在举重运动中,用户在完成第一动作之后,用户将杠铃在最高点保持一段时间,那么这段时间,用户的动作可以称为第三动作。例如,在游泳运动中,用户在完成第一动作之后,用户将手臂动作静止保持一段时间,这里的用户动作也可以称为第三动作。用户在做第三动作时,在一种可能的实现方式中,第一电子设备通过第四提示方式提示用户闭气。在其他可能的实现方式中,第一电子设备通过第四提示方式提示用户做短暂的一组或几组呼气和吸气动作。
结合第一方面,在一种可能的实现方式中,当第一电子设备确定用户的动作类型为第一动作类型时,第一电子设备输出第一提示,第一提示用于提示用户做吸气动作,具体包括:当第一电子设备确定用户的动作类型为第一动作类型时,且第一电子设备监测到用户已完成第一动作,第一电子设备输出第一提示,第一提示用于提示用户做吸气动作。例如,在游泳应用场景中,用户只有完成了第一动作,用户的头部才可以伸出水面,才可以做吸气动作。
在其他可能的实现方式中,当第一电子设备确定用户的动作类型为第二动作类型时,且第一电子设备监测到用户已完成第二动作,第一电子设备输出第二提示,第二提示用于提示用户做呼气动作。例如,在游泳应用场景中,用户完成了第二动作,第一电子设备提示用户做呼气动作。
结合第一方面,在一种可能的实现方式中,在第一电子设备获取传感器数据之前,方法还包括:第一电子设备接收并响应第一输入操作,确定第一运动模式;第一运动模式为以下任意一种:跑步模式、游泳模式、举重模式、椭圆机运动模式、划船机运动模式、划船模式;第一电子设备基于传感器数据确定用户的动作类型,具体包括:第一电子设备基于传感器数据确定在第一运动模式下用户的动作类型。这样,第一电子设备可以在运动之前,开启不同的运动模式,并在不同的运动模式中给出不同的呼吸指导方案。
在其他可能的实现方式中,第一电子设备可以根据采集的运动传感器数据自适应开启第一运动模式。
在第一电子设备自适应开启第一运动模式之后,第一电子设备显示有第一界面,第一界面上显示有第一控件。第一电子设备接收并响应用户针对第一控件的输入操作,第一电子设备取消开启第一运动模式。这样,防止第一电子设备误开启第一运动模式,增加了第一电子设备的消耗。
结合第一方面,在一种可能的实现方式中,在第一电子设备获取传感器数据之前,方法还包括:第一电子设备接收第三电子设备发送的传感器数据。
第三电子设备可以是健身器材设备,也可以是医疗器械设备。也就是说,第一电子设备 与第一电子设备建立通信连接。第三电子设备实时采集第三电子设备上的运动传感器数据,并实时将运动传感器数据发送至第一电子设备。
结合第一方面,在一种可能的实现方式中,传感器数据包括加速度数据、陀螺仪数据、图像数据、重力数据和压力数据中的一个或多个。
结合第一方面,在一种可能的实现方式中,在第一电子设备确定第一运动模式后的第一时间内,第一电子设备暂停获取传感器数据。这样,第一电子设备在指导用户呼吸一段时间之后,可以暂停呼吸指导功能,节省第一电子设备的功耗。
结合第一方面,在一种可能的实现方式中,在第一电子设备暂停获取传感器数据后,第一电子设备监测到用户的心率大于预设心率值和/或用户的呼吸频率大于预设频率,第一电子设备继续获取传感器数据。这样,体现了第一电子设备进行呼吸指导的灵活性。
第二方面,本申请提供了一种电子设备,电子设备包括:一个或多个处理器、一个或多个存储器;一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,一个或多个处理器调用所述计算机指令以使得电子设备执行上述第一方面中的任一项所述的方法。
第三方面,本申请提供了一种计算机可读存储介质,包括指令,其特征在于,当指令在电子设备上运行时,使得电子设备执行上述第一方面中的任一项所述的方法。
第四方面,本申请提供了一种计算机程序产品,其特征在于,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面中的任一项所述的方法。
附图说明
图1为本申请实施例提供的一种电子设备100的硬件结构示意图;
图2为本申请实施例提供的一种电子设备100的软件结构框图;
图3A-图3E为本申请实施例提供的一组电子设备100开启跑步模式的UI图;
图4为本申请实施例提供的一种电子设备100开启跑步模式的运动传感器的UI图;
图5A-图5O为本申请实施例提供的一组跑步过程中的呼吸指导方案涉及到的UI图;
图6A-图6B为本申请实施例提供的一组蛙泳中的第一动作和第二动作的示意图;
图7A和图7B为本申请实施例提供的一组自由泳中的第一动作和第二动作的示意图;
图8A-图8B为本申请实施例提供的一组仰泳中的第一动作和第二动作的示意图;
图9A-图9B为本申请实施例提供的一组蝶泳中的第一动作和第二动作的示意图;
图10A-图10B为本申请实施例提供的一组举重运动中的第一动作和第二动作的示意图;
图11A-图11B为本申请实施例提供的一组划船运动中的第一动作和第二动作的示意图;
图12A-图12B为本申请实施例提供的一组使用划船机做运动时的第一动作和第二动作的示意图;
图13A-图13B为本申请实施例提供的一组使用椭圆机做运动时的第一动作和第二动作的示意图;
图14A-图14C为本申请实施例提供的一组通过加速度数据判断举重运动中的动作类型的示意图;
图15A-图15C为本申请实施例提供的一组通过加速度数据判断划船运动中的动作类型的示意图;
图16A-图16C为本申请实施例提供的一组通过加速度数据判断使用划船机做运动中的动作类型的示意图;
图17A-图17C为本申请实施例提供的一组通过加速度数据判断使用椭圆机做运动中的动作类型的示意图;
图18为本申请实施例提供的一种胃镜检查中的场景示意图;
图19为本申请实施例提供的一种雾化吸入疗法中的场景示意图;
图20为本申请实施例提供的一种呼吸指导方法的方法流程示意图;
图21为本申请实施例提供的一种电子设备100根据用户的个人信息得到用户的运动能力的示意图。
具体实施方式
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请以下实施例中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备上经过解析,渲染,最终呈现为用户可以识别的内容。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的文本、图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
目前,在运动领域,随着人们对身体健康的关注,原来越多的人参与到运动活动中,大量的运动类应用程序也营运而生。目前的运动类应用程序一般只能简单记录用户的运动数据,或者提供一些离线的文章或者教程在运动之前供用户参考。或者,有一些电子设备(例如可穿戴设备)具备日常的呼吸训练功能,例如,当用户紧张时,用户可以根据可穿戴设备上的呼吸教程来调整自己的呼吸节奏,达到放松情绪的目的。但是,该呼吸训练仅用于调节用户的情绪,并不能够对用户的运动过程中的呼吸节奏进行指导,以达到提高运动效果和运动成绩的目的。
在健康领域,在一些情况下,由于用户的心肺功能不太好,需要结合呼吸训练以达到改善心肺功能的目的。目前一般是由医生口头指导的方式来告知用户在特定时间按照一定的规则做呼吸康复训练。一方面,口头医嘱的方式对于记忆力不好的患者容易遗忘;另一方面。用户凭记忆做呼吸康复训练可能会与医生指导的呼吸康复训练存在出入,导致训练的效果差。
或者,在另一些情况下,在一些健康检查过程中,用户需要结合呼吸的节奏来配合医生的检查。目前一般是由医生的经验判断来告知用户什么时候该吸气什么时候该呼气。一方面,医生的经验判断也是会存在误差的;另一方面,医生每天会为很多患者做检查,若医生每次都需要提示用户呼吸,导致医生的工作量大大增加。
因此,本申请实施例提供了一种呼吸指导方法。方法包括:当电子设备监测到第一动作时,以第一提示方式提示用户吸气;当电子设备监测到第二动作时,以第二提示方式提示用户呼气。
其中,第一动作和第二动作可以是电子设备检测到的用户动作。第一动作和第二动作也可以是电子设备检测到的其他电子设备(例如运动器械和医疗器械)的动作。
第一提示方式的类型可以为震动、语音、文字、图片中的任意一种或几种。第二提示方式的类型也可以为震动、语音、文字、图片中的任意一种或几种。
当第一提示方式的类型和第二提示方式的类型均为震动时,第一提示方式的震动频率与第二提示方式的震动频率可以不同。例如,第一提示方式可以是长震动,第二提示方式可以是间隔震动。第一提示方式的震动频率与第二提示方式的震动频率也可以相同,例如,第一提示方式可以仅震动一次,第二提示方式也可以仅震动一次。
当第一提示方式的类型和第二提示方式的类型均为语音时,第一提示方式的语音内容与第二提示方式的语音内容不同。例如,第一提示方式的语音内容可以为“请吸气”,第二提示方式的语音内容可以为“请呼气”。
当第一提示方式的类型和第二提示方式的类型均为文字时,当电子设备输出第一提示时,电子设备可以在显示屏上显示文字“吸气”,且显示屏上显示的文字的大小、颜色以及形状可以随着用户的吸气动作的进行逐渐变化(例如字体逐渐变大)。具体的,可以参考后续图5J-图5L介绍的实施例。当电子设备输出第二提示时,电子设备可以在显示屏上显示文字“呼气”,且显示屏上显示的文字的大小、颜色以及形状可以随着用户的呼气动作的进行逐渐变化(例如字体逐渐变小)。具体的,可以参考后续图5M-图5O介绍的实施例。
当第一提示方式的类型和第二提示方式的类型均为图片时,当电子设备输出第一提示时,电子设备可以在显示屏上显示图像,且显示屏上显示的图像的大小、颜色以及形状可以随着用户的吸气动作的进行逐渐变化(例如图像逐渐变大)。当电子设备输出第二提示时,电子设备可以在显示屏上显示图像,且显示屏上显示的图像的大小、颜色以及形状可以随着用户的呼气动作的进行逐渐变化(例如图像逐渐变小)。
第一提示方式的类型和第二提示方式的类型也可以是前述震动、语音、文字、图片中两种及以上组合的形式。
第一提示方式的类型可以为震动、语音、文字、图片中的任意一种或几种,第二提示方式不输出任何提示。例如,当电子设备监测到用户在做第一动作时,通过震动、语音、文字、图片等方式提示用户做吸气动作。当电子设备监测到用户在做第二动作时,电子设备不输出任何提示。
第一提示方式的类型可以不输出任何提示,第二提示方式可以为震动、语音、文字、图 片中的任意一种或几种。例如,当电子设备监测到用户在做第一动作时,电子设备不输出任何提示。当电子设备监测到用户在做第二动作时,通过震动、语音、文字、图片等方式提示用户做吸气动作。
第一提示方式和第二提示方式也可以是其他的实现,本申请实施例对于第一提示方式和第二提示方式的具体实现不做限定。
这样,电子设备可以通过不同的提示方式,来提示用户什么时候进行吸气,什么时候进行吸气,使得动作的节奏与用户的呼吸节奏相匹配。
该方法可以应用于运动领域,在运动领域,有节奏的呼吸配合有节奏的运动可以使得户的训练效果达到事半功倍的效果。即当电子设备检测到用户做第一动作时,电子设备通过第一提示方式提示用户进行吸气。当电子设备检测到用户做第二动作时,电子设备通过第二提示方式提示用户进行呼气。这样,该方法够对用户的运动过程中的呼吸节奏和运动节奏进行指导,使得用户的呼吸节奏与运动节奏相匹配。可以为运动过程中肌肉提供充足的氧气和能量,节省用户的体能消耗,增强运动效果。
该方法可以应用于健康领域,一方面,在一些健康检查过程中,当用户需要结合呼吸的节奏来配合医生的检查时,当电子设备监测到其他的电子设备(例如医疗器械)做第一动作时,电子设备通过第一提示方式提示用户进行吸气。当电子设备监测到其他的电子设备(例如医疗器械)做第二动作时,电子设备通过第二提示方式提示用户进行呼气。这样,使得用户的呼吸节奏可以配合其他的电子设备(例如医疗器械)的检查动作,可以提高用户在做检查的过程中的体验,减少不适感,也可以提高健康检查的效率。另一方面,当患者需要进行呼吸康复训练时,患者可以将医生给的呼吸指导方案的电子版本保存在电子设备里面,电子设备通过呼吸指导方案的电子版本定期提示用户做呼吸康复训练。这样,可以使得用户定期根据呼吸指导方案做呼吸康复训练,提高康复效果。
下面介绍本申请实施例提供的电子设备。
图1示出了本申请实施例提供的电子设备100的硬件结构示意图。
电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备(智能手表、智能手环)、车载设备、智能家居设备和/或智慧城市设备,本申请实施例对该电子设备的具体类型不作特殊限制。
电子设备100可以包括处理器110,内部存储器120,无线通信模块130,移动通信模块140,传感器模块150,音频模块160,显示屏170,电源开关180,马达190和按键1000。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
内部存储器120可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。
随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动 态随机存储器(dynamic random access memory,DRAM)、同步动态随机存储器(synchronous dynamic random access memory,SDRAM)、双倍资料率同步动态随机存取存储器(double data rate synchronous dynamic random access memory,DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5SDRAM)等;非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。
快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(single-level cell,SLC)、多阶存储单元(multi-level cell,MLC)、三阶储存单元(triple-level cell,TLC)、四阶储存单元(quad-level cell,QLC)等,按照存储规范划分可以包括通用闪存存储(英文:universal flash storage,UFS)、嵌入式多媒体存储卡(embedded multi media Card,eMMC)等。
随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。
非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。
电子设备100的无线通信功能可以通过天线130A,天线140A,无线通信模块130,移动通信模块140,调制解调处理器以及基带处理器等实现。
天线130A和天线140A可以用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。
无线通信模块130可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块130可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块130经由天线130A接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块130还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线130A转为电磁波辐射出去。
移动通信模块140可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块140可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块140可以由天线140A接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块140还可以对经调制解调处理器调制后的信号放大,经天线140A转为电磁波辐射出去。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备输出声音信号,或通过显示屏170显示图像或视频。
在一些实施例中,移动通信模块140和无线通信模块130可用于与其他设备建立连接,获取其他设备采集的运动数据,运动数据包括:心率、热量、呼吸频率等等,或者,控制其他设备提示用户呼吸、调整动作、暂停或继续运动等等,其他设备可以是指手机、手环、体脂称、电脑、笔记本等等。
传感器模块150包括陀螺仪传感器1501,加速度传感器1502,距离传感器1503,温度传感器1504,触摸传感器1505、压力传感器1506和骨传导传感器1507。
其中,陀螺仪传感器1501可用于确定电子设备100的运动姿态。在一些实施例中,可以 通过陀螺仪传感器1501确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器1501可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器1501检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器1501还可以用于导航,体感游戏场景。
加速度传感器1502可用于检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器1503可用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器1503测距以实现快速对焦。
温度传感器1504用于检测温度。在一些实施例中,电子设备100利用温度传感器1504检测的温度,执行温度处理策略。例如,当温度传感器1504上报的温度超过阈值,电子设备100执行降低位于温度传感器1504附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器1505也称“触控器件”。触摸传感器1505可以设置于显示屏170,由触摸传感器1505与显示屏170组成触摸屏,也称“触控屏”。触摸传感器1505用于检测作用于其上或附近的触摸操作。触摸传感器1505可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏170提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器1505也可以设置于电子设备100的表面,与显示屏170所处的位置不同。
压力传感器1506用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器1506可以设置于显示屏170。压力传感器1506的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器1506,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏170,电子设备100根据压力传感器1506检测所述触摸操作强度。电子设备100也可以根据压力传感器1506的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
骨传导传感器1507可以获取震动信号。在一些实施例中,骨传导传感器1507可以获取人体声部震动骨块的震动信号。骨传导传感器1507也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器1507也可以设置于耳机中,结合成骨传导耳机。音频模块160可以基于所述骨传导传感器1507获取的声部震动骨块的震动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器1507获取的血压跳动信号解析心率信息,实现心率检测功能。
音频模块160用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块160还可以用于对音频信号编码和解码。在一些实施例中,音频模块160可以设置于处理器110中,或将音频模块160的部分功能模块设置于处理器110中。
扬声器1601,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过 扬声器1601收听音乐,或收听免提通话。
麦克风1602,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风1602发声,将声音信号输入到麦克风1602。电子设备100可以设置至少一个麦克风1602。在另一些实施例中,电子设备100可以设置两个麦克风1602,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风1602,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
电子设备100通过GPU,显示屏170,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏170和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏170用于显示图像,视频等。显示屏170包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏170,N为大于1的正整数。
电源开关180可用于控制电源向电子设备100的供电。
马达190可以产生震动提示。马达190可以用于来电震动提示,也可以用于触摸震动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的震动反馈效果。作用于显示屏170不同区域的触摸操作,马达190也可对应不同的震动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的震动反馈效果。触摸震动反馈效果还可以支持自定义。
按键1000包括开机键,音量键等。按键1000可以是机械按键。也可以是触摸式按键。电子设备1000可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
图2是本发明实施例的电子设备100的软件结构框图。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming  interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备震动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合一和实施例二对本申请实施例提供的一种呼吸指导方法进行详细介绍。
实施例一
实施例一是关于运动领域的呼吸指导方案。
电子设备100可以是手机、可穿戴式设备、耳机、智能眼镜、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备等等。其中,可穿戴式设备可以是以手腕为支撑的设备,例如智能手表、智能手环、智能腕带等等。可穿戴式设备也可以是以脚踝为支撑的设备,例如智能脚环、智能鞋、智能袜子或者其他可佩戴在腿上的设备等等。可穿戴式 设备也可以是以头部为支撑的设备,例如智能头盔、智能头带(也可以称为智能头箍)。
在以下实施例中,以电子设备100为智能手环为例进行说明。电子设备100可以实时监测用户动作,当电子设备100监测到用户做第一动作时,电子设备100通过第一提示方式提示用户进行吸气。当电子设备100监测到用户做第二动作时,电子设备100通过第二提示方式提示用户进行呼气。这样,用户可以控制呼吸节奏与运动节奏,并使得呼吸节奏和运动节奏相匹配,以提高运动效果。
不同的运动类型对应的用户动作也不同。运动类型可以分为结合健身器械的运动和不结合健身器械的运动。其中:结合健身器械的运动可以包括但不仅限于跑步、游泳等等。结合健身器械的运动可以包括但不仅限于划船、划船机运动、椭圆机运动、举重运动等等。运动类型还可以包括其他的运动,本申请实施例在此不做限定。
对于不结合健身器械的运动,电子设备100采集运动传感器数据,并基于运动传感器数据确定出用户的动作为第一动作还是第二动作。电子设备100确定出用户的动作之后,通过第一提示方式提示用户吸气和通过第二提示方式提示用户呼气。
对于结合健身器械的运动,在一种可能的实现方式中,健身器械(例如杠铃、椭圆机、划船机等等)可以替代电子设备100的功能。也就是说,健身器械采集运动传感器数据,并基于运动传感器数据确定出用户的动作为第一动作还是第二动作。健身器械确定出用户的动作之后,通过第一提示方式提示用户吸气和通过第二提示方式提示用户呼气。
在其他可能的实现方式中,健身器械需要与电子设备100建立通信连接。健身器械采集运动传感器数据,并基于运动传感器数据确定出用户的动作为第一动作还是第二动作。在健身器械确定出用户的动作为第一动作后,健身器械发送指令一至电子设备100,电子设备100接收到指令一之后,通过第一提示方式提示用户吸气。在健身器械确定出用户的动作为第二动作后,健身器械发送指令二至电子设备100,电子设备100接收到指令二之后,通过第二提示方式提示用户吸气。
在其他可能的实现方式中,健身器械需要与电子设备100建立通信连接。健身器械采集运动传感器数据,健身器械实时将运动传感器数据发送至电子设备100。电子设备100获取到运动传感器数据之后,并基于运动传感器数据确定出用户的动作为第一动作还是第二动作。电子设备100确定出用户的动作之后,通过第一提示方式提示用户吸气和通过第二提示方式提示用户呼气。
上述健身器械与电子设备100之间的通信连接可以是指有线连接、无线连接。无线连接可以是无线局域网络(wireless local area network,WLAN)连接、高保真无线通信(wireless fidelity,Wi-Fi)连接、蓝牙连接、红外线连接、近场通信(near field communication,NFC)连接、ZigBee以及后续发展中出现的其他无线通信技术等近距离连接。健身器械也可以与电子设备100建立远距离连接,远距离连接包括但不限于基于2G,3G,4G,5G以及后续标准协议的移动网络的远距离连接。健身器械也可以与电子设备100可以登录同一用户账号(例如华为账号),然后通过服务器进行远距离连接。
由于运动类型不同,对应的用户动作也不同。例如,对于跑步来说,第一动作可以是用户的手臂向前摆动的动作,第二动作可以是用户的手臂向后摆动的动作。对于游泳来说,第一动作可以是用户的头抬出水面上时,此时用户的手臂动作。第二动作可以是用户的头从钻入水面下时,此时用户的手臂动作。在一些实施例中,第一动作和第二动作也可以腿部动作,本申请以下实施例以第一动作和第二动作为手部动作为例进行说明。不同的运动类型对应的 用户动作将在后续实施例详细赘述,本申请实施例在此不再一一赘述。
在用户开始运动之前,电子设备100需要开启对应的运动类型的运动模式。
电子设备100开启运动类型可以有以下两种方式。本申请实施例以电子设备100开启跑步模式为例进行说明。
方式一:
在一些实施例中,电子设备100接收并响应于用户的输入,开启跑步模式。
图3A示例性示出了电子设备100开启跑步模式的UI图。
如图3A所示,当电子设备100监测到作用于触摸控件301的长按操作时,电子设备100可以开启或者结束用户选择的跑步模式。当电子设备100未开启跑步模式,且监测到作用于触摸控件301的长按操作时,电子设备100可以在震动后倒计时一定时间(例如三秒)开启跑步模式。当跑步模式开启后,电子设备100可以在显示屏上显示跑步的图标以及文字“跑步模式”。这样,可以提示用户电子设备100已开启跑步模式。
当电子设备100已开启跑步模式,且监测到作用于触摸控件301的长按操作时,电子设备100可以在震动后倒计时一定时间(例如三秒)结束跑步模式。
在一种可能的实现方式中,电子设备100在开启跑步模式一段时间(例如1分钟或者2分钟等)后,可自动熄灭显示屏,可以有效节省电子设备100的功耗。当监测到作用于触摸控件301的短按操作,电子设备100可以点亮显示屏。显示屏在被点亮后可以显示如图3A所示的跑步的图标以及文字“跑步模式”。
在另一些实施例中,电子设备100与电子设备200建立通信连接之后,电子设备100还可以通过接收电子设备200发送的开启跑步模式请求开启跑步模式。
如图3B-图3D示例性示出了电子设备100通过电子设备200发送的开启跑步模式请求开启跑步模式的UI图。
电子设备100可以与电子设备200(例如手机、平板电脑等)建立通信连接关系。当监测到用于开启或者结束跑步模式的用户操作,该电子设备200可以向电子设备100发送开启跑步模式的指令。当电子设备100接收到用于开启跑步模式的指令,电子设备100可以开启跑步模式。
如图3B中所示,电子设备200显示主屏幕用户界面302。用户界面302可包括:状态栏303,具有常用应用程序图标的托盘304,以及其他应用程序图标。其中,状态栏303可包括时间指示符、电池状态指示符、无线高保真(wireless fidelity,Wi-Fi)信号的一个或多个信号强度指示符、移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符。具有常用应用程序图标的托盘304可展示:相机图标、电话图标、联系人图标、短信图标。其他应用程序图标可例如:时钟的图标、日历的图标、图库的图标、备忘录的图标、华为视频的图标、运动健康的图标305。任一个应用的图标可用于响应用户的操作(例如单击操作),使得电子设备200启动图标对应的应用。其中,运动健康的图标305可用于启动应用程序运动健康。应用程序运动健康可用于电子设备200与电子设备100建立通信连接关系。电子设备200可以通过应用程序运动健康向用户展示用户的运动数据。
电子设备200接收并响应于作用于运动健康的图标305的用户操作(例如单击操作),电子设备200可以显示如图3C所示的运动健康的应用界面306。
如图3C所示,该应用界面306可以包含状态栏303、界面查看选项307。其中,界面查看选项307可以包含运动选项、设备选项、发现选项和我的选项。任一个选项可用于响应用户的 操作(例如单击操作),使得电子设备200在应用界面306上显示选项对应的内容。例如,与设备选项对应的内容可包含在电子设备中已添加的设备信息以及用于添加新设备的控件。当电子设备200监测到作用于设备选项上的用户操作(例如单击操作),电子设备200可以显示已添加设备选项308和设备添加选项309。
其中,设备添加选项309可用于触发电子设备200添加新的设备。该新的设备为与上述电子设备200首次建立通信连接关系的设备。当电子设备200监测到作用于设备添加选项309的用户操作(例如单击操作),电子设备200可以显示添加设备设置界面,使得电子设备200与该新的设备建立通信连接关系。上述添加设备设置界面可供用户搜索新的设备和建立通信连接的方式等,例如蓝牙连接。本申请实施例对电子设备200与新的设备建立通信连接关系的过程不作限定。
已添加设备选项308中可包含多个电子设备的标识。上述多个电子设备均与电子设备200建立过通信连接关系。例如,电子设备200与电子设备100建立过通信连接关系。当监测到作用于已添加设备选项308中任一设备选项的用户操作(例如单击操作),电子设备可以显示与该设备对应的相关信息。
当电子设备200监测到作用于已添加设备选项308中电子设备100标识的用户操作(例如单击操作),电子设备200可以显示如图3D所示的应用界面310。
如图3D所示,应用界面310可以包含状态栏303、设备状态拦311、运动数据312以及运动模式选项313。其中,设备状态拦311可用于显示电子设备100与电子设备200的连接状态以及电子设备100的电量。示例性的,当监测到电子设备200通过蓝牙连接方式与电子设备100建立了通信连接关系,设备状态拦311可提示连接方式为蓝牙连接以及连接状态为“已连接”。进一步的,电子设备200可以获取电子设备100的电量信息。设备状态拦311可提示电子设备100当前的电量(例如77%)。设备状态拦311提示的内容还可以包含更多,本申请实施例对此不作限定。运动数据312可包含电子设备100记录的用户移动的步数、消耗的热量和移动的距离。运动数据312中的数据为电子设备100在工作状态下记录的用户一天内的数据(例如,包含用户日常走路以及跑步等活动时总的移动的步数、消耗的热量和移动的距离)。
运动模式选项313可用于开启或者结束跑步模式、游泳模式以及举重模式,运动模式选项313还可以包括其他更多的模式,例如椭圆机运动模式、划船机运动模式、划船模式等等,这些模式在运动模式选项313中未体现。运动模式选项313可包含跑步模式标识3131以及用于开启跑步模式的控件3132、游泳模式标识以及用于游泳模式的控件、举重模式标识以及用于开启举重模式的控件。响应于作用在开启跑步模式的控件3132的用户操作(例如单击),电子设备200可以向电子设备100发送开启跑步模式的指令。电子设备100当接收到电子设备200发送的开启跑步模式的指令,电子设备100可以在震动后一定时间(例如倒计时3秒)开启跑步模式。当开启跑步模式,电子设备100可以在显示屏上显示跑步的图标以及文字“跑步模式”。这样,可以提示用户电子设备100已开启跑步模式。
当接收到电子设备200发送的结束跑步模式的指令,电子设备100可以在震动后一定时间(例如倒计时3秒)结束跑步模式。
另外,当开启跑步模式时,电子设备100可以自动开启免打扰模式。示例性的,开启免打扰模式时,当电子设备200收到来电或者消息通知,电子设备100可以屏蔽电子设备发送的来电或者消息通知的提醒指令。即电子设备100不会通过震动或者响铃等方式提醒用户有来电或者消息通知。这样,当电子设备100已开启跑步模式,且有来电或者消息通知时,电子设备100不会对用户跑步产生干扰。
方式二:电子设备100根据传感器的采集到的数据,自动开启跑步模式。
当电子设备100未开启跑步模式,且监测到用户处于跑步的状态时,电子设备100可以自动开启跑步模式。其中,电子设备100判断用户处于跑步的状态的方式可以为,运动传感器采集运动数据,例如加速度传感器采集加速度数据,电子设备100根据加速度数据得到加速度波形特征图。电子设备100将加速度波形特征图输入分类模型。分类模型是提前训练好的,分类模型可以根据输入的运动数据分析出用户的运动类型(例如跑步、游泳等)。分类模型根据加速度波形特征图分析出用户在跑步,则电子设备100可以确定用户处于跑步的状态。
在其他的一些实施例中,电子设备100也可以直接将加速度传感器采集到的加速度数据输入分类模型,分类模型直接输出用户在做跑步或用户在做其他的运动。
电子设备100还可以根据其它方式来确定用户处于跑步的状态,本申请实施例对此不作限定。
在一些实施例中,当电子设备100开启了其它的运动模式,例如举重运动模式,但监测到用户处于跑步的状态时,电子设备100可以自动将其它的运动模式切换为跑步模式。
在一些实施例中,当电子设备100开启了跑步模式,且监测到用户未处于跑步的状态时,电子设备100可以自动结束跑步模式。
这样,当用户在跑步而忘记开启跑步模式,或者开启的运动模式选择错误时,电子设备100可以自适应开启跑步模式。并且,当用户在开启跑步模式后忘记结束跑步模式时,电子设备100可以自适应结束跑步模式,从而减少电子设备100的功耗。
在一些情况下,电子设备100自适应开启跑步模式之后,电子设备100也可以接收用户操作关闭跑步模式。防止电子设备100误开启跑步模式,增加了电子设备100的消耗。
例如,用户将电子设备100佩戴在手腕,为了在一定时间内尽快过马路,用户小跑了几步,电子设备100可能误认为用户在跑步,将用户的运动模式由走路模式切换为跑步模式。为了防止电子设备100误切换运动模式,电子设备100显示屏上显示的撤销控件可以接收用户的输入操作,使得电子设备100将运动模式切换至之前的运动模式。
如图3E所示,电子设备100之前开启了走路模式,电子设备100误识别将走路模式切换成了跑步模式。电子设备100在显示屏上显示文字“已开启跑步模式”和控件314。电子设备100可以接收用户针对控件314的输入操作,响应于用户的输入操作,电子设备100将跑步模式切换为走路模式。
不限于电子设备100接收用户的输入操作将运动模式切换至之前的运动模式。电子设备100也可以识别用户的语音结果,将运动模式切换至之前的运动模式。
除了上述通过监测作用于触摸控件301上的用户操作和通过接收电子设备200发送的指令来开启跑步模式,以及自适应开启跑步模式,电子设备100还可以通过其它方式开启跑步模式,例如通过体感手势开启跑步模式等。本申请在此不做限定。
在一些实施例中,电子设备100在开启运动模式之前可以检测运动传感器否处于工作状态。
例如,电子设备100在开启跑步模式之前可以检测加速度传感器否处于工作状态。
图4示出了电子设备100开启跑步模式的运动传感器的UI图。
当监测到用于开启跑步模式的用户操作(例如作用在图3A上的触摸控件301的长按操作),电子设备100可以在显示屏上显示如图4所示的用户界面,该用户界面中可包含有提示框401、 确认控件402和取消控件403。其中:
提示框401包括有提示内容,该提示内容用于提示开启跑步模式时,电子设备100中的运动传感器(如加速度传感器)将处于工作状态,以确定用户是否需要开启跑步模式。提示内容可包括“此功能需要开启加速度传感器。是否同意开启?”。
确认控件402可用于开启跑步模式。响应于作用在确认控件402上的用户操作(例如单击操作),电子设备100可以检测运动传感器(如加速度传感器)是否处于工作状态。如果运动传感器(如加速度传感器)未处于工作状态,则电子设备100可以自动使运动传感器(如加速度传感器)处于工作状态。这样,电子设备100就可以开启跑步模式,并在开启跑步模式后震动一段时间(例如三秒)提醒用户跑步模式已开启。
取消控件403可用于不开启跑步模式的运动传感器。响应于作用在取消控件403上的用户操作(例如单击操作),电子设备100不开启跑步模式的运动传感器。
需要说明的是,电子设备100开启其他的运动模式的运动传感器操作,与上述介绍的电子设备100开启跑步模式的运动传感器的操作类似,不同之处在于不同运动类型涉及到的运动传感器的类型不同。不同运动类型涉及到的运动传感器的类型将在后续实施例中一一介绍,本申请实施例不再赘述。
在电子设备100开启用户选择的运动模式之后,电子设备100将实时监测用户的动作,在用户运动过程中,结合用户的运动动作给出呼吸指导,使得用户的运动动作与呼吸节奏匹配。
目前,运动方式可以分为结合健身器械的运动和不结合健身器械的运动。其中:结合健身器械的运动可以包括但不仅限于跑步、游泳等等。结合健身器械的运动可以包括但不仅限于划船、划船机运动、椭圆机运动、举重运动等等。
下面分别对结合健身器械的运动和不结合健身器械的运动中涉及到的呼吸指导方案进行详细解释。
一、不结合健身器械的运动中的呼吸指导方案
由前述分析可知,不结合健身器材的运动可以包括但不仅限于跑步、游泳等等。
1、跑步过程中的呼吸指导方案
图5A-图5O示例性示出了跑步过程中的呼吸指导方案涉及到的UI图。
图5A-图5B示例性示出了跑步过程中的第一动作和第二动作对应的运动姿态的示意图。
第一动作可以是由图5A所示的手臂的动作,变为图5B所示的手臂的动作过程中,用户手臂的运动姿态。也可以说,第一动作为佩戴有电子设备100的用户的手臂向前摆动时的手臂动作。
第二动作可以是由图5B所示的手臂的动作,变为图5A所示的手臂的动作过程中,用户手臂的运动姿态。也可以说,第一动作为佩戴有电子设备100的用户的手臂向后摆动时的手臂动作。
可选的,第一动作也可以是佩戴有电子设备100的用户的手臂向后摆动时的手臂动作,第二动作也可以是佩戴有电子设备100的用户的手臂向前摆动时的手臂动作。
可选的,在电子设备100开始检测用户的动作之前,电子设备100可以通过语音和/或文字信息的方式提示用户是否需要进行呼吸指导,这样,电子设备100可以在征求用户的意见之后,再开始监测用户的动作,尊重了用户的意愿。在一些实施例中,用户选择了跑步模式, 在用户开始运动之后,电子设备100直接开始监测用户的动作,不需要询问用户的意见。
在一种可能的实现方式中,用户选择了跑步模式,在电子设备100开始检测用户的动作之前,电子设备100播放语音“即将开始运动,是否需要呼吸指导?”当用户回复“是”时,电子设备100接收并响应用户的语音回复,并在用户开始运动之后,监测用户的动作,并结合用户的动作给出呼吸意见指导。当用户回复“否”时,电子设备100接收并响应用户的语音回复,电子设备100不会在用户的运动过程中给出呼吸指导。
在一些实施例中,用户在跑步过程中,通常佩戴有耳机,电子设备100与耳机配对之后,用户可以通过耳机播放电子设备100内的音乐,以增加跑步过程中的乐趣。电子设备100可以通过耳机播放语音“即将开始运动,是否需要呼吸指导?”。
在其他种可能的实现方式中,用户选择了跑步模式,在电子设备100开始检测用户的动作之前,电子设备100可以在电子设备100的显示屏上显示文字信息,该文字信息用于提示用户是否需要呼吸指导。
图5C示例性输出了电子设备100显示文字提示的UI图。
电子设备100可以在显示屏上显示如图5C所示的用户界面,该用户界面中可包含有提示框501、确认控件502和取消控件503。其中:
提示框501包括有提示内容,该提示内容用于提示开启跑步模式时,电子设备100开启呼吸指导功能。文字信息可包括“是否需要呼吸指导?”。
确认控件502可用于开启呼吸指导功能。响应于作用在确认控件502上的用户操作(例如单击操作),电子设备100可以开启呼吸指导功能式。
取消控件503可用于不开启呼吸指导功能。响应于作用在取消控件503上的用户操作(例如单击操作),电子设备100不开启呼吸指导功能。
在其他种可能的实现方式中,电子设备100同时结合上述语音和文字信息的方式提示用户是否需要进行呼吸指导。电子设备100还可以通过其他的方式,例如电子设备100震动来提示用户是否需要进行呼吸指导。本申请实施例对于电子设备100开启呼吸指导功能的方式不做限定。
可选的,在电子设备100开启了呼吸指导功能之后,电子设备100可以在显示屏上显示图片和文字信息,该图片和文字信息用于提示用户不同的跑步动作对应的呼吸动作。
图5D-图5F示例性输出了电子设备100显示图片和文字信息的UI图。
在用户开始跑步之前,电子设备100可以在显示屏上显示图片,该图片用于指示用户在跑步过程中不同的挥臂动作对应的呼吸动作。
如图5D示例性示出了电子设备100显示吸气动作对应的挥臂动作图片的用户界面。在图5D中,携带有电子设备100的用户的手臂(例如右手臂)的向前摆动,用户的呼吸动作为吸气。这样,可以理解为,当携带有电子设备100的用户的手臂(例如右手臂)的向前摆动时,用户处于发力阶段,发力时需要紧绷肌肉,吸气可以为身体提供一些支撑力。在图5E中,当携带有电子设备100的用户的手臂(例如右手臂)的向后摆动时,用户处于卸力阶段,卸力时肌肉放松,可以减轻用户的负担。这样,引导用户正确的呼吸可以为肌肉提供充足的氧气和能量,节省用户的体能,帮助用户正确并科学地完成运动,增强运动效果。
电子设备100还可以在显示屏上显示如图5F所示的用户界面,该用户界面中可包含有提示框601。其中:
提示框601包括有文字信息,该文字信息用于提示不同的提示方式对应的呼吸动作。文 字信息可包括“长震动为吸气,短震动为呼气”。这样,用户可以在跑步的过程中可以根据不同的震动频率做相应的呼吸动作。
可选的,在电子设备100开启了呼吸指导功能之后,电子设备100可以通过语音的方式播报提示框601中的文字信息。
可选的,在电子设备100开启了呼吸指导功能之后,电子设备100可以通过语音的方式播报提示框601中的文字信息以及在显示屏上显示提示框601中的文字信息。
可选地,电子设备100除了通过在显示屏中显示图片和文字信息,提示用户不同的挥臂动作对应的呼吸动作外,还可以通过与电子设备100建立连接关系的其他设备(例如电子设备200)上显示图片和文字信息,提示用户不同的挥臂动作对应的呼吸动作。
电子设备100开启了呼吸指导功能之后,电子设备100需监测用户在跑步过程中的动作(第一动作和第二动作),并结合用户的动作给出具体的呼吸指导方案。
接下来介绍电子设备100如何根据运动传感器采集到的运动数据来判断用户的手臂运动姿态是第一动作还是第二动作的。
图5G-图5I示例性示出了电子设备100根据加速度数据确定用户的手臂运动姿态是第一动作还是第二动作的示意图。
一种可能的实现方式中,电子设备100可以根据加速度传感器采集到的加速度数据判断用户在做第一动作还是第二动作。
电子设备100中的加速度传感器可以采集用户手腕部的加速度数据,并根据用户手腕部的加速度数据判断用户的手臂动作。电子设备100采集X轴、Y轴和Z轴三个方向上的分加速度数据,电子设备100根据括X轴、Y轴和Z轴三个方向上的分加速度数据得到和加速度数据,并根据和加速度的大小来判断用户在做第一动作还是第二动作。
由前述可是,第一动作为用户的手臂向前摆动的动作,第二动作为用户的手臂向后摆动的动作。
图5G示例性示出了用户的手臂向前摆动时,电子设备100采集的和加速度大小和方向的示意图。
在图5G中,示例性示出了X轴、Y轴和Z轴三个方向上的分加速度数据大小和方向。通过几何运算,可以得到X轴分加速度数据和Y轴分加速度数据的加速度数据P1。在通过几何运算,可以得到加速度数据P1和Z轴分加速度数据的和加速度数据a1,可以理解的是,和加速度数据a1就是X轴、Y轴和Z轴三个方向上的和加速度数据。
图5H示例性示出了用户的手臂向后摆动时,电子设备100采集的和加速度大小和方向的示意图。
在图5H中,示例性示出了X轴、Y轴和Z轴三个方向上的分加速度数据大小和方向。通过几何运算,可以得到X轴分加速度数据和Y轴分加速度数据的加速度数据P2。在通过集合运算,可以得到加速度数据P2和Z轴分加速度数据的和加速度数据a2,可以理解的是,和加速度数据a2就是X轴、Y轴和Z轴三个方向上的和加速度数据。
本申请以下实施例以用户手臂从静止态向前摆动时,和加速度的值从零逐渐增大到最大值,在用户的手臂向前摆动到最高点的过程中,和加速度的值从最大值逐渐减小至正的极小值(例如0.3)。用户手臂向前摆动到最高点之后,用户手臂从最高点向后摆动时,和加速度的值从正的极小值(例如0.3)逐渐减小到最小值,在用户的手臂向后摆动到最高点的过程中,和加速度的值从最小值逐渐增大到负的极大值(例如-0.2)。这里的和加速度均为矢量单位。 即和加速度不仅表示和加速度的大小,还表示和加速度的方向。由前述分析可知,当和加速度大于0时,表示用户手臂向前摆动。当和加速度小于0时,表示用户手臂向后摆动。这样,电子设备100可以通过和加速度数据的正负判断用户的手臂动作是第一动作还是第二动作。
图5I示例性示出了在用户跑步过程中,电子设备100采集的和加速度的示意图。
在图5I中,横轴表示时间,纵轴表示和加速度的大小。在图5F中,当和加速度大于0时,表示用户的手臂在向前摆动,当和加速度小于0时,表示用户的手臂在向后摆动。由于在跑步过程中,用户的手臂在周期性的前后摆动,因此电子设备100采集到的和加速度大小也呈周期性的变化,电子设备100采集到的和加速度大小周期性的在正值和负值之间变化。示例性的,图5G中所示的和加速度数据a1,可以是图5I中t1时刻所示的加速度数据a1。图5H中所示的和加速度数据a2,可以是图5I中t2时刻所示的加速度数据a2。
在另一种可能的实现方式中,电子设备100可以根据加速度数据得到用户手臂的运动轨迹图,将用户手臂的运动轨迹图与模板对比,确定用户的手臂动作是第一动作还是第二动作。电子设备100还可以根据其他的方式确定出用户的手臂动作是第一动作还是第二动作,本申请实施例在此不做限定。
在用户跑步过程中,当电子设备100判断出用户的手臂向前摆动时,电子设备100以第一提示方式提示用户吸气。当电子设备100判断出用户的手臂向后摆动时,电子设备100以第二提示方式提示用户用户呼气。这样的话,电子设备100可以通过不同的提示方式,使得用户在跑步过程中的挥臂动作与呼吸的节奏相匹配,节省用户的体能,提高用户的运动能力。
第一提示方式和第二提示方式的具体实现方式在前述实施例以详细介绍,本申请实施例在此不再赘述。
可选的,当第一提示方式的类型和第二提示方式的类型均为文字时,当电子设备输出第一提示时,电子设备可以在显示屏上显示文字“吸气”,且显示屏上显示的文字的大小、颜色以及形状可以随着用户的吸气动作的进行逐渐变化(例如字体逐渐变大)。当电子设备输出第二提示时,电子设备可以在显示屏上显示文字“呼气”,且显示屏上显示的文字的大小、颜色以及形状可以随着用户的呼气动作的进行逐渐变化(例如字体逐渐变小)。如图5J-图5L所示,电子设备100监测到用户做第一动作,电子设备100提示用户吸气时,电子设备100显示屏上显示的文字“吸气”的字体逐渐变大。如图5M-图5O所示,电子设备100监测到用户做第二动作,电子设备100提示用户呼气时,电子设备100显示屏上显示的文字“呼气”的字体逐渐变小。
在电子设备100基于用户在跑步过程中的挥臂动作,指导用户的呼吸动作的时,电子设备100可以连续监测到n次第一动作后,通过第一提示方式提示用户进行一次吸气动作。电子设备100连续监测到m次第二动作后,通过第二提示方式提示用户进行一次呼气动作。n为大于等于1的正整数,m为大于等于1的正整数。示例性的,当n为1,n=2时,可以理解为“一步一吸,两步一呼”,即电子设备100每监测到用户做一次第一动作,通过第一提示方式提示用户进行一次吸气动作,电子设备100每监测到用户连续做两次第二动作,通过第二提示方式提示用户进行一次呼气动作。可以理解的是,不同的跑步模式中,电子设备100基于检测到的用户的挥臂动作,所做出的呼吸指导也不尽相同。慢跑相对于快跑,慢跑的呼吸频率会低于快跑的呼吸频率。电子设备100可以根据不同的跑步模式给用户不同的呼吸指导,体现了电子设备100的呼吸指导的灵活性。
2、游泳过程中的呼吸指导方案
游泳类型又可以分为蛙泳、自由泳、仰泳和蝶泳等类型。不用的游泳类型用户的动作也不一样。因此,电子设备100还可以根据不同的游泳类型,结合用户的游泳时的手臂动作,为用户进行不同的呼吸指导。
接下来分别对蛙泳、自由泳、仰泳和蝶泳中用户的手臂动作与第一动作和第二动作的对应关系进行说明。
(1)、蛙泳
图6A和图6B示例性示出了蛙泳中的第一动作和第二动作的示意图。
第一动作可以是由图6A所示的手臂的动作,变为图6B所示的手臂的动作的过程中,用户手臂的划水姿势。也可以说,第一动作为佩戴有电子设备100的用户的手臂向后划水时对应的手臂动作。用户的手臂向后划水时,对应的,用户的头可以伸出水面外,此时用户可以吸气。
需要说明的是,在蛙泳中,在做完第一动作后,用户会静止一段时间(例如2s),停止划手和划脚,也即将图6B所示的姿体动作保持例2s,这样,可以节省体能。也就是说,在用户做完第一动作后,用户的头伸出水面外,用户才可以吸气。
第二动作可以是由图6B所示的手臂的动作,变为图6A所示的手臂的动作的过程中,用户手臂的划水姿势。也可以说,第二动作为佩戴有电子设备100的用户的手臂向前划水时对应的手臂动作。用户的手臂向前划水时,对应的,用户的头可以探入水面内,此时用户可以呼气。
需要说明的是,在游泳过程中,在做完第二动作后,用户会静止一段时间(例如3s),停止划手和划脚,也即将图6A所示的姿体动作保持例3s。这样,可以节省体能。在一种可能的实现方式中,在做完第二动作后,用户可以做呼气动作。在另一种可能的实现方式中,用户也可以在刚开始做第二动作时,做呼气动作。
可以将做完第一动作后,在开始做第二动作之前,用户手臂静止的动作称为第三动作。第三动作对应的手臂动作为静态的。
在用户静止的时间,也即电子设备100监测到用户在做第三动作,电子设备100可以通过第三提示方式提示用户做闭气动作,或者提示用户做急促的一组或几组呼气和吸气动作。第三提示方式的类型可以为震动、语音、文字、图片中的任意一种或几种。
(2)、自由泳
图7A和图7B示例性示出了自由泳中的第一动作和第二动作的示意图。
第一动作可以是由图7A所示的手臂的动作,变为图6B所示的手臂的动作的过程中,用户手臂的划水姿势。也可以说,第一动作为佩戴有电子设备100的用户的手臂向上划水时对应的手臂动作。用户的手臂向上划水时,对应的,用户的头可以伸出水面外,此时用户可以吸气。
需要说明的是,在自由泳中,在做完第一动作后,用户会静止一段时间(例如2s),停止划手和划脚,也即将图7B所示的姿体动作保持例2s,这样,可以节省体能。也就是说,在用户做完第一动作后,用户的头伸出水面外,用户才可以吸气。
第二动作可以是由图7B所示的手臂的动作,变为图7A所示的手臂的动作的过程中,用户手臂的划水姿势。也可以说,第二动作为佩戴有电子设备100的用户的手臂向下划水时对 应的手臂动作。用户的手臂向下划水时,对应的,用户的头可以探入水面内,此时用户可以吸气。
需要说明的是,在自由泳中,在做完第二动作后,用户会静止一段时间(例如3s),停止划手和划脚,也即将图7A所示的姿体动作保持例3s这样,可以节省体能。在一种可能的实现方式中,在做完第二动作后,用户可以做呼气动作。在另一种可能的实现方式中,用户也可以在刚开始做第二动作时,做呼气动作。
可以将做完第一动作后,在开始做第二动作之前,用户手臂静止的动作称为第三动作。第三动作对应的手臂动作为静态的。
在用户静止的时间,也即电子设备100监测到用户在做第三动作,电子设备100可以通过第三提示方式提示用户做闭气动作,或者提示用户做急促的一组或几组呼气和吸气动作。第三提示方式的类型可以为震动、语音、文字、图片中的任意一种或几种。
(3)、仰泳
图8A和图8B示例性示出了仰泳中的第一动作和第二动作的示意图。
第一动作可以是由图8A所示的手臂的动作,变为图8B所示的手臂的动作的过程中,用户手臂的划水姿势。也可以说,第一动作为佩戴有电子设备100的用户的手臂向上划水时对应的手臂动作。用户的手臂向上划水时,用户可以吸气。
需要说明的是,在仰泳中,在做完第一动作后,用户会静止一段时间(例如2s),停止划手和划脚,也即将图8B所示的姿体动作保持例2s,这样,可以节省体能。在仰泳中,用户的头部一直位于水面外。在一种可能的实现方式中,在做完第一动作后,用户做吸气动作。在另一种可能的实现方式中,用户也可以在刚开始做第一动作时,用户做吸气动作。第二动作可以是由图8B所示的手臂的动作,变为图8A所示的手臂的动作的过程中,用户手臂的划水姿势。也可以说,第二动作为佩戴有电子设备100的用户的手臂向下划水时对应的手臂动作。用户的手臂向下划水时,用户可以吸气。
可选的,第一动作也可以是由图8B所示的手臂的动作,变为图8A所示的手臂的动作的过程中,用户手臂的划水姿势,第二动作也可以是图8A所示的手臂的动作,变为图8B所示的手臂的动作的过程中,用户手臂的划水姿势。本申请实施例在此不做限定。
需要说明的是,在仰泳中,在做完第二动作后,用户会静止一段时间(例如3s),停止划手和划脚,也即将图8A所示的姿体动作保持例3s,这样,可以节省体能。在仰泳中,用户的头部一直位于水面外。在一种可能的实现方式中,在做完第二动作后,用户做吸气动作。在另一种可能的实现方式中,用户也可以在刚开始做第二动作时,用户做吸气动作。
可以将做完第一动作后,在开始做第二动作之前,用户手臂静止的动作称为第三动作。第三动作对应的手臂动作为静态的。
在用户静止的时间,也即电子设备100监测到用户在做第三动作,电子设备100可以通过第三提示方式提示用户做闭气动作,或者提示用户做急促的一组或几组呼气和吸气动作。第三提示方式的类型可以为震动、语音、文字、图片中的任意一种或几种。
(4)蝶泳
图9A和图9B示例性示出了蝶泳中的第一动作和第二动作的示意图。
第一动作可以是由图9A所示的手臂的动作,变为图9B所示的手臂的动作的过程中,用户手臂的划水姿势。也可以说,第一动作为佩戴有电子设备100的用户的手臂向下划水时对 应的手臂动作。用户的手臂向下划水时,用户可以吸气。
需要说明的是,在蝶泳中,在做完第一动作后,用户会静止一段时间(例如2s),停止划手和划脚,也即将图9B所示的姿体动作保持例2s,这样,可以节省体能。也就是说,在用户做完第一动作后,用户的头伸出水面外,用户才可以吸气。
第二动作可以是由图9B所示的手臂的动作,变为图9A所示的手臂的动作的过程中,用户手臂的划水姿势。也可以说,第二动作为佩戴有电子设备100的用户的手臂向上划水时对应的手臂动作。用户的手臂向上划水时,用户可以吸气。需要说明的是,在蝶泳中,在做完第二动作后,用户会静止一段时间(例如3s),停止划手和划脚,也即将图9A所示的姿体动作保持例3s.,这样,可以节省体能。在一种可能的实现方式中,在做完第二动作后,用户可以做呼气动作。在另一种可能的实现方式中,用户也可以在刚开始做第二动作时,做呼气动作。
可以将做完第一动作后,在开始做第二动作之前,用户手臂静止的动作称为第三动作。第三动作对应的手臂动作为静态的。
在用户静止的时间,也即电子设备100监测到用户在做第三动作,电子设备100可以通过第三提示方式提示用户做闭气动作,或者提示用户做急促的一组或几组呼气和吸气动作。第三提示方式的类型可以为震动、语音、文字、图片中的任意一种或几种。
可选的,在电子设备100开始检测用户的动作之前,电子设备100可以通过语音和/或文字信息的方式提示用户是否需要进行呼吸指导,这样,电子设备100可以在征求用户的意见之后,再开始监测用户的动作,尊重了用户的意愿。在一些实施例中,用户选择了游泳模式,在用户开始运动之后,电子设备100直接开始监测用户的动作,不需要询问用户的意见。这里,对于游泳模式中如何开启呼吸指导的,可以参考跑步模式中如何开启呼吸指导的描述。原理类似,只是运动模式不同,本申请实施例在此不再赘述。
可选的,在电子设备100开启了呼吸指导功能之后,电子设备100可以在显示屏上显示图片和文字信息,该图片和文字信息用于提示用户不同的游泳动作对应的呼吸动作。这里,对于电子设备100如何提示用户不同的游泳动作对应的呼吸动作的,可以参考跑步模式中电子设备100如何提示用户不同的跑步动作对应的呼吸动作的。原理类似,只是运动模式不同,本申请实施例在此不再赘述。
在一种可能的实现方式中,电子设备100可以根据运动传感器(例如加速度传感器)采集的加速度数据确定出用户的手臂动作是第一动作还是第二动作。
在其他可能的实现方式中,电子设备100可以根据运动传感器(例如加速度传感器)采集的加速度数据得到用户手臂的运动轨迹图,将用户手臂的运动轨迹图与模板对比,确定出用户的手臂动作是第一动作还是第二动作。本申请实施例在此不做限定。
电子设备100开启了呼吸指导功能之后,电子设备100需监测用户在游泳过程中的动作(第一动作和第二动作),并结合用户的动作给出具体的呼吸指导方案。游泳与跑步不同的是,在游泳中,用户划手使得头部伸出水面外后,用户吸气,一般头部伸出水面的时间会持续一段时间(例如2秒)。之后,用户的划手使得头部进入水面内后,用户呼气,一般头部进入水面内后会持续一段时间(例如2秒)。之后,在重复上述动作。那么可以理解的是,当电子设备100监测到用户做第一动作,且做完第一动作后,用户的头部伸出水面,电子设备100以 第一提示方式提示用户吸气。当电子设备100监测到用户刚开始做第二动作时,电子设备100以第二提示方式提示用户呼气,或者,电子设备100监测到用户做第二动作,且做完第二动作后,电子设备100以第二提示方式提示用户呼气。
上述图6A和图6B、图7A和图7B、图8A和图8B、图9A和图9B均是以电子设备100为智能手环为例进行说明的,电子设备100采集的是手臂的运动数据。在其他实施例中,当用户在游泳时,一般不会佩戴智能手环。那么在这种情况下,电子设备100可以为智能泳镜、智能耳塞、耳机或者智能泳帽等等中的任意一种。智能泳镜、智能耳塞、耳机或者智能泳帽等设备可以采集用户头部的运动数据,并通过头部的运动数据来判断用户的动作类型。
可选的,当电子设备100为智能泳镜、智能耳塞、耳机或者智能泳帽中的任意一种时。当用户的头从水面内伸出水面外时,电子设备100判断出用户在做第一动作,当用户的头从水面外进入水面内时,电子设备100判断出用户在做第二动作。,由于水面内的压强大于水面外的压强,电子设备100可以采集压力传感器数据,并基于压力传感器数据判断用户在做第一动作还是第二动作。具体的,当电子设备100判断出压力传感器数据突然变大,则电子设备100判断出用户在做第一动作,即用户的头部从水面内伸出水面外。当电子设备100判断出压力传感器数据突然变小,则电子设备100判断出用户在做第二动作,即用户的头部从水面外进入水面内。
可选的,在用户运动过程中,电子设备100可以同时监测用户的呼吸频率和步频,以此判断用户的呼吸频率和步频是否一致,若不一致,电子设备100将给出调整建议。具体的,电子设备100可以通过电子设备100自带的麦克风采集用户的呼吸频率,或者耳机与电子设备100连接,用户带上耳机一边运动一边听音乐,电子设备100也可以通过与电子设备100建立连接的耳机上的麦克风采集用户的呼吸频率。电子设备100可以通过运动软件(例如运动健康应用程序)记录运动状态,运动状态包括但不仅限于:运动轨迹、运动过程中的步幅、步频等等。当电子设备100监测到用户的呼吸频率与步频不匹配时,电子设备100可以通过语音、文字、振动等方式提示用户调整呼吸频率或者调整步频。
可选的,在电子设备100基于用户在游泳过程中的手臂动作或者头部动作,指导用户的呼吸动作的时,电子设备100可以连续监测到n次第一动作后,通过第一提示方式提示用户进行一次吸气动作。电子设备100连续监测到m次第二动作后,通过第二提示方式提示用户进行一次呼气动作,n为大于等于1的正整数,m为大于等于1的正整数。例如m可以为1,n可以为1,即“一划手一吸气”。电子设备100每检测到用户做一次第一动作,通过第一提示方式提示用户做一次吸气动作,电子设备100每检测到用户做一次第二动作,通过第二提示方式提示用户做一次呼气动作,可以理解的是,不同的游泳模式中,电子设备100基于检测到的用户的挥臂动作或者头部动作,所做出的呼吸指导也不尽相同。也就是说,蛙泳、仰泳、自由泳和蝶泳中的呼吸频率不同。电子设备100可以根据不同的游泳模式给用户不同的呼吸指导,体现了电子设备100的呼吸指导的灵活性。
这样的话,电子设备100可以通过不同的提示方式,使得用户在游泳过程中的挥臂动作与呼吸的节奏相匹配,节省用户的体能,提高用户的游泳能力。
二、结合健身器械的运动中的呼吸指导方案
由前述可知,结合健身器械的运动可以包括但不仅限于举重运动、划船、划船机运动、椭圆机运动等等。
用户在做结合健身器械的运动过程中,当用户在做第一动作时,用户吸气。当用户在做第二动作时,用户呼气。那么电子设备100可以在监测到用户在做第一动作时,提示用户进行吸气。在监测到用户在做第二动作时,提示用户进行呼气。这样,可以使得用户的运动节奏与呼吸节奏向匹配,提升用户的运动能力。
接下来分别对举重运动、划船、划船机运动、椭圆机运动中用户的动作类型对应的运动姿态进行说明。
1、用户在举重过程中的第一动作和第二动作对应的运动姿态。
举重可以分为站立式举重、躺式举重等等,本申请以下实施例以躺式举重为例进行说明。
在一些实施例中,第一动作和第二动作可以是电子设备100采集的用户的手臂动作。
如图10A所示,图10A示例性示出了举重过程中的第一动作的示意图。
在用户完成杠铃上推的过程中,用户的手腕垂直于地面从最低点向上移动至最高点,对应的杠铃的姿态由姿态1001变为姿态1002。由实线组成的杠铃姿态即为姿态1002,由虚线组成的杠铃姿态即为姿态1001。第一动作可以是图10A所示的将杠铃姿态1001变成姿态1002的过程中手臂上推的动作。
如图10B所示,图10B示例性示出了举重过程中的第二动作的示意图。
在用户完成杠铃下拉的过程中,用户的手腕垂直于地面从最高点向下移动至最低点,对应的杠铃的姿态由姿态1002变为姿态1001。由虚线组成的杠铃姿态即为姿态1002,由实线组成的杠铃姿态即为姿态1001。第二动作可以是图10B所示的将杠铃姿态1002变成姿态1001的过程中手臂下拉的动作。
可选的,第一动作也可以将杠铃姿态1002变成姿态1001的过程中手臂下拉的动作。,第二动作也可以是将杠铃姿态1001变成姿态1002的过程中手臂上推的动作。
需要说明的是,在举重过程中,用户完成第一动作之后,杠铃位于最高点,杠铃姿态为姿态1002。一般,用户会将杠铃的姿态1002在最高点保持一段时间在,之后,用户在做第二动作,使得杠铃姿态由姿态1002变成姿态1001。因此,可以将杠铃保持在姿态1002时的手臂动作称为第三动作。第三动作对应的手臂动作为静态的,用户的手腕位于最高点。在用户静止的时间,也即电子设备100监测到用户在做第三动作,电子设备100可以通过第三提示方式提示用户做闭气动作,或者提示用户做急促的一组或几组呼气和吸气动作。第三提示方式的类型可以为震动、语音、文字、图片中的任意一种或几种。
2、用户在划船过程中的第一动作和第二动作对应的运动姿态。
在一些实施例中,第一动作和第二动作可以是电子设备100采集的用户的手臂动作。
如图11A所示,图11A示例性示出了划船过程中的第一动作的示意图。
如图11A所示,图11A示例性示出了用户在划船过程中的第一动作的示意图。
在用户将船桨的握杆向后拉动的过程中,用户的手腕由静止态向后移动,对应的用户的身体也随着船桨的握杆向后移动而移动。那么第一动作可以是图11A所示的用户从虚线图像移动至实线图像过程中的手臂动作,即第一动作是向后移动且手臂收缩的动作。
如图11B所示,图11B示例性示出了用户在划船过程中的第二动作的示意图。
在用户将船桨的握杆向前推动的过程中,用户的手腕由静止态向前移动,对应的用户的 身体也随着船桨的握杆向前移动而移动。那么第二动作可以是图11B所示的用户从虚线图像移动至实线图像过程中的手臂动作,即第二动作是向前移动且手臂伸展的动作。
可选的,第一动作也可以是向前移动且手臂伸展的动作。第二动作也可以是向后移动且手臂收缩的动作。
3、用户在使用划船机做运动的过程中的第一动作和第二动作对应的运动姿态。
在一些实施例中,第一动作和第二动作可以是电子设备100采集的用户的手腕部的动作。
如图12A所示,图12A示例性示出了用户在使用划船机的过程中的第一动作的示意图。
在用户将划船机的手柄向后拉动的过程中,用户的手腕从初始位置向后移动远离划船机,对应的用户的身体也随着划船机的手柄向后移动而移动。那么第一动作可以是图11A所示的用户从虚线图像移动至实现图像过程中的手臂动作,即第一动作是向后移动并远离划船机的手臂动作。
如图12B所示,图12B示例性示出了用户在使用划船机的过程中的第二动作的示意图。
在用户将划船机的手柄放回至初始位置的过程中,用户的手腕向前移动靠近划船机,对应的用户的身体也随着划船机的拉杆向前移动而移动。那么第二动作可以是图11B所示的用户从虚线图像移动至实现图像过程中的手臂动作,即第二动作是向前移动并靠近划船机的手臂动作。
可选的,第一动作也可以是向前移动并靠近划船机的手臂动作。第二动作也可以是向后移动并远离划船机的手臂动作。
4、用户在使用椭圆机做运动的过程中的第一动作和第二动作对应的运动姿态。
在一些实施例中,第一动作和第二动作可以是电子设备100采集的用户的手腕部的动作。
图13A-图13B示例性示出了用户在使用椭圆机的过程中的第一动作和第二动作的示意图。
在用户将椭圆机的扶手向后拉动的过程中,用户的手腕从初始位置向后移动远离椭圆机,对应的用户的身体也随着椭圆机的扶手向后移动而移动。那么第一动作可以是由图13A所示的手臂的动作,变为图13B所示的手臂的动作的过程中,用户手臂的运功姿势。手臂向后运动时,用户可以吸气。
在用户将椭圆机的扶手向前推动的过程中,用户的手腕向前移动并靠近椭圆机,对应的用户的身体也随着椭圆机的扶手向前移动而移动。那么第二动作可以是由图13B所示的手臂的动作,变为图13A所示的手臂的动作的过程中,用户手臂的运功姿势。手臂向前运动时,用户可以呼气。
可选的,第一动作也可以是向前移动并靠近椭圆机的手臂动作。第二动作也可以是向后移动并远离椭圆机的手臂动作。
可选的,在电子设备100开始检测用户的动作之前,电子设备100可以通过语音和/或文字信息的方式提示用户是否需要进行呼吸指导,这样,电子设备100可以在征求用户的意见之后,再开始监测用户的动作,尊重了用户的意愿。在一些实施例中,用户选择了对应的运动模式,在用户开始该项运动之后,电子设备100直接开始监测用户的动作,不需要询问用户的意见。
这里,对于上述几种结合健身器械的运动中如何开启呼吸指导的,可以参考跑步模式中 如何开启呼吸指导的描述。原理类似,只是运动模式不同,本申请实施例在此不再赘述。
可选的,在电子设备100开启了呼吸指导功能之后,电子设备100可以在显示屏上显示图片和文字信息,该图片和文字信息用于提示用户上述几种结合健身器械的运动中的手臂动作对应的呼吸动作。这里,对于电子设备100如何提示用户上述几种结合健身器械的运动中的手臂动作对应的呼吸动作,可以参考跑步模式中电子设备100如何提示用户不同的跑步动作对应的呼吸动作的。原理类似,只是运动模式不同,本申请实施例在此不再赘述。
电子设备100开启了呼吸指导功能之后,电子设备100需监测用户在运动过程中的动作(第一动作和第二动作),并结合用户的动作给出具体的呼吸指导方案。
接下来分别介绍在举重运动、划船、划船机运动、椭圆机运动中,电子设备100如何根据运动传感器采集到的运动数据来判断用户在做第一动作还是第二动作的。
一、在举重运动中,电子设备100根据运动传感器采集到的运动数据确定用户的第一动作、第二动作和第三动作的具体实现。
图14A-图14C示例性示出了电子设备100根据加速度数据确定用户的手臂运动姿态是第一动作、第二动作和第三动作的示意图。
一种可能的实现方式中,电子设备100可以根据加速度传感器采集到的加速度数据判断用户在做第一动作、第二动作和第三动作。
电子设备100中的加速度传感器可以采集用户手腕部的加速度数据,并根据用户手腕部的加速度数据判断用户的手臂动作。电子设备100采集X轴、Y轴和Z轴三个方向上的分加速度数据,电子设备100根据括X轴、Y轴和Z轴三个方向上的分加速度数据得到和加速度数据,并根据和加速度的大小来判断用户在做第一动作还是第二动作。
由前述可是,第一动作是将杠铃姿态1001变成姿态1002的过程中手臂上推的动作,第二动作是将杠铃姿态1002变成姿态1001的过程中手臂下拉的动作。
在举重运动中,由于用户的手臂是在上下运动,在理想情况下,可以理解为电子设备100采集的X轴和Z轴三个方向上的分加速度数据均为0,那么电子设备100只采集到了Y轴方向上的分加速度数据。
图14A示例性示出了用户手臂在上推的过程中,电子设备100采集的和加速度大小和方向的示意图。
在图14A中,电子设备100采集的Y轴方向上的分加速度数据为加速度数据Y1。加速度数据Y1的方向垂直于水平面向上。可以理解的是,加速度数据Y1就是X轴、Y轴和Z轴三个方向上的和加速度数据。
图14B示例性示出了用户手臂在下拉的过程中,电子设备100采集的和加速度大小和方向的示意图。
在图14B中,电子设备100采集的Y轴方向上的分加速度数据为加速度数据Y2。加速度数据Y2的方向垂直于水平面向下。可以理解的是,加速度数据Y2就是X轴、Y轴和Z轴三个方向上的和加速度数据。
本申请以下实施例以用户手臂在上推的过程中,和加速度数据的值从零逐渐增大到最大值,在用户的手臂上推到最高点的过程中,和加速度数据的值从最大值逐渐减小至接近于0。用户手臂上推到最高点之后,会将杠铃在最高点保持一段时间,这段时间,加速度的值接近于0。之后,用户手臂从最高点向下拉时,和加速度数据的值从0附近逐渐减小到最小值, 在用户的手臂下拉到最低点的过程中,和加速度数据的值从最小值逐渐增大到0附近。这里的和加速度数据为矢量单位。即和加速度数据不仅表示加速度的大小,还表示加速度的方向。由前述分析可知,当和加速度数据大于0时,表示用户手臂在做上推动作。当和加速度数据小于0时,表示用户手臂在做下拉动作,当和加速度数据在0附近保持了一段时间(例如2秒),表示用户手臂在做将杠铃保持在最高点的动作。这样,电子设备100可以通过和加速度数据的大小判断用户的手臂动作是第一动作、第二动作还是第三动作。
图14C示例性示出了在用户在举重过程中,电子设备100采集的和加速度数据的示意图。
在图14C中,横轴表示时间,纵轴表示和加速度数据的大小。当和加速度数据大于0时,表示用户的手臂在做上推动作,当和加速度数据小于0时,表示用户的手臂在做下拉动作,当和加速度数据在0附近保持了一段时间(例如2秒),表示用户手臂在做将杠铃保持在最高点的动作。由于在举重过程中,用户的手臂在周期性的上推和下拉,因此电子设备100采集到的和加速度数据大小也呈周期性的变化,电子设备100采集到的和加速度数据大小周期性的在正值和负值之间变化。示例性的,图14A中所示的加速度数据Y1,可以是图14C中t1时刻所示的加速度数据Y1。图14B中所示的和加速度数据Y2,可以是图14C中t4时刻所示的加速度数据Y2。图14C中,加速度从正直值逐渐减小至0附近(t2时刻对应的加速度值),t2时刻至t3时刻之间,加速度的值一直保持为0,且t2时刻与t3时刻之间的差值大于预设值,则表示t2时刻与t3时刻之间的动作类型为用户手臂在做将杠铃保持在最高点的动作。
在另一种可能的实现方式中,电子设备100可以根据加速度数据得到用户手臂的运动轨迹图,将用户手臂的运动轨迹图与模板对比,确定用户的手臂动作是第一动作、第二动作和第三动作。电子设备100还可以根据其他的方式确定出用户的手臂动作是第一动作、第二动作和第三动作,本申请实施例在此不做限定。
二、在划船过程中,电子设备100根据运动传感器采集到的运动数据确定用户的第一动作和第二动作的具体实现。
图15A-图15C示例性示出了电子设备100根据加速度数据确定用户的手腕运动姿态是第一动作还是第二动作的示意图。
一种可能的实现方式中,电子设备100可以根据加速度传感器采集到的加速度数据判断用户在做第一动作还是第二动作。
电子设备100中的加速度传感器可以采集用户手腕部的加速度数据,并根据用户手腕部的加速度数据判断用户的手臂动作。电子设备100采集X轴、Y轴和Z轴三个方向上的分加速度数据,电子设备100根据括X轴、Y轴和Z轴三个方向上的分加速度数据得到和加速度数据,并根据和加速度的大小来判断用户在做第一动作还是第二动作。
由前述可知,第一动作是向后移动且手臂收缩的动作,第二动作是向前移动且手臂伸展的动作。
在划船过程中,由于用户的手腕部是在前后运动,在理想情况下,可以理解为电子设备100采集的Y轴和Z轴三个方向上的分加速度数据均为0,那么电子设备100只采集到了X轴方向上的分加速度数据。
图15A示例性示出了用户紧握船桨的握杆向后拉动握杆的过程中,电子设备100采集的和加速度大小和方向的示意图。
在图15A中,电子设备100采集的X轴方向上的分加速度数据为加速度数据X1。加速度数据X1的方向平行于水平面向左。可以理解的是,加速度数据X1就是X轴、Y轴和Z 轴三个方向上的和加速度数据。
图15B示例性示出了用户紧握船桨的握杆向前推动握杆的过程中,电子设备100采集的和加速度大小和方向的示意图。
在图15B中,电子设备100采集的X轴方向上的分加速度数据为加速度数据X2。加速度数据X2的方向平行于水平面向右。可以理解的是,加速度数据X2就是X轴、Y轴和Z轴三个方向上的和加速度数据。
本申请以下实施例以用户紧握船桨的握杆向后拉动握杆的过程中,和加速度数据的值从零逐渐增大到最大值,之后,和加速度数据的值从最大值逐渐减小至正的极小值(例如0.3)。在紧握船桨的握杆向前推动握杆的过程中,和加速度数据的值从正的极小值(例如0.3)逐渐减小到最小值,之后,和加速度数据的值从最小值逐渐增大到负的极大值(例如-0.2)。这里的和加速度数据为矢量单位。即和加速度数据不仅表示加速度的大小,还表示加速度的方向。由前述分析可知,当和加速度数据大于0时,表示用户在做向后拉动握杆动作。当和加速度数据小于0时,表示用户在做向前推动握杆动作。这样,电子设备100可以通过和加速度数据的正负判断用户的手臂动作是第一动作还是第二动作。
图15C示例性示出了在用户在划船过程中,电子设备100采集的和加速度数据的示意图。
在图15C中,横轴表示时间,纵轴表示和加速度数据的大小。在图15C中,当和加速度数据大于0时,表示用户在做向后拉动握杆动作,当和加速度数据小于0时,表示用户在做向前推动握杆动作。由于在划船的过程中,用户的手臂在做周期性的向后拉动握杆和拉动握的动作杆,因此电子设备100采集到的和加速度数据大小也呈周期性的变化,电子设备100采集到的和加速度数据大小周期性的在正值和负值之间变化。示例性的,图15A中所示的加速度数据X1,可以是图15C中t1时刻所示的加速度数据X1。图15B中所示的和加速度数据X2,可以是图15C中t2时刻所示的加速度数据X2。
在另一种可能的实现方式中,电子设备100可以根据加速度数据得到用户手臂的运动轨迹图,将用户手臂的运动轨迹图与模板对比,确定用户的手臂动作是第一动作还是第二动作。电子设备100还可以根据其他的方式确定出用户的手臂动作是第一动作还是第二动作,本申请实施例在此不做限定。
三、在使用划船机做运动过程中,电子设备100根据运动传感器采集到的运动数据确定用户的第一动作和第二动作的具体实现。
图16A-图16C示例性示出了电子设备100根据加速度数据确定用户的手腕运动姿态是第一动作还是第二动作的示意图。
一种可能的实现方式中,电子设备100可以根据加速度传感器采集到的加速度数据判断用户在做第一动作还是第二动作。
电子设备100中的加速度传感器可以采集用户手腕部的加速度数据,并根据用户手腕部的加速度数据判断用户的手臂动作。电子设备100采集X轴、Y轴和Z轴三个方向上的分加速度数据,电子设备100根据括X轴、Y轴和Z轴三个方向上的分加速度数据得到和加速度数据,并根据和加速度的大小来判断用户在做第一动作还是第二动作。
由前述可知,第一动作是远离划船机的手臂动作,第二动作是靠近划船机的手臂动作。
在划船机运动中,由于用户的手腕部是在前后运动,在理想情况下,可以理解为电子设备100采集的Y轴和Z轴三个方向上的分加速度数据均为0,那么电子设备100只采集到了X轴方向上的分加速度数据。
图16A示例性示出了用户拉动划船机的手柄向后移动远离划船机的过程中,电子设备100采集的和加速度大小和方向的示意图。
在图16A中,电子设备100采集的X轴方向上的分加速度数据为加速度数据X1。加速度数据X1的方向平行于水平面向左。可以理解的是,加速度数据X1就是X轴、Y轴和Z轴三个方向上的和加速度数据。
图16B示例性示出了用户拉动划船机的手柄向前移动靠近划船机的过程中,电子设备100采集的和加速度大小和方向的示意图。
在图16B中,电子设备100采集的X轴方向上的分加速度数据为加速度数据X2。加速度数据X2的方向平行于水平面向右。可以理解的是,加速度数据X2就是X轴、Y轴和Z轴三个方向上的和加速度数据。
本申请以下实施例以用户移动划船机的手柄,使得划船机的手柄与划船机之间的距离达到最远距离的过程中,和加速度数据的值从零逐渐增大到最大值,之后,和加速度数据的值从最大值逐渐减小至0附近。在用户移动划船机的手柄,使得划船机的手柄靠近划船机的过程中,和加速度数据的值从0附近逐渐减小到最小值,之后,和加速度数据的值从最小值逐渐增大到0附近。这里的和加速度数据为矢量单位。即和加速度数据不仅表示加速度的大小,还表示加速度的方向。由前述分析可知,当和加速度数据大于0时,表示用户在做向后移动并远离划船机的手臂动作。当和加速度数据小于0时,表示用户在做向前移动并靠近划船机的手臂动作。这样,电子设备100可以通过和加速度数据的正负判断用户的手臂动作是第一动作还是第二动作。
图16C示例性示出了在用户在使用划船机做运动的过程中,电子设备100采集的和加速度数据的示意图。
在图16C中,横轴表示时间,纵轴表示和加速度数据的大小。在图16C中,当和加速度数据大于0时,表示用户在做远离划船机的手臂动作,当和加速度数据小于0时,表示用户在做靠近划船机的手臂动作。由于在使用划船机的过程中,用户的手臂在周期性的向后移动并远离船机船机和向前移动并靠近划船机,因此电子设备100采集到的和加速度数据大小也呈周期性的变化,电子设备100采集到的和加速度数据大小周期性的在正值和负值之间变化。示例性的,图16A中所示的加速度数据X1,可以是图16C中t1时刻所示的加速度数据X1。图16B中所示的和加速度数据X2,可以是图16C中t2时刻所示的加速度数据X2。
在另一种可能的实现方式中,电子设备100可以根据加速度数据得到用户手臂的运动轨迹图,将用户手臂的运动轨迹图与模板对比,确定用户的手臂动作是第一动作还是第二动作。电子设备100还可以根据其他的方式确定出用户的手臂动作是第一动作还是第二动作,本申请实施例在此不做限定。
四、在使用椭圆做运动过程中,电子设备100根据运动传感器采集到的运动数据确定用户的第一动作和第二动作的具体实现。
图17A-图17C示例性示出了电子设备100根据加速度数据确定用户的手腕运动姿态是第一动作还是第二动作的示意图。
一种可能的实现方式中,电子设备100可以根据加速度传感器采集到的加速度数据判断用户在做第一动作还是第二动作。
电子设备100中的加速度传感器可以采集用户手腕部的加速度数据,并根据用户手腕部的加速度数据判断用户的手臂动作。电子设备100采集X轴、Y轴和Z轴三个方向上的分加 速度数据,电子设备100根据括X轴、Y轴和Z轴三个方向上的分加速度数据得到和加速度数据,并根据和加速度的大小来判断用户在做第一动作还是第二动作。
由前述可知,第一动作是向后拉动椭圆机的扶手的手臂动作,第二动作是向前推动椭圆机的扶手的手臂动作。
在椭圆机运动中,由于用户的手腕部是在前后运动,在理想情况下,可以理解为电子设备100采集的Y轴和Z轴三个方向上的分加速度数据均为0,那么电子设备100只采集到了X轴方向上的分加速度数据。
图17A示例性示出了用户拉动椭圆机的扶手向后移动远离椭圆机的过程中,电子设备100采集的和加速度大小和方向的示意图。
在图17A中,电子设备100采集的X轴方向上的分加速度数据为加速度数据X1。加速度数据X1的方向平行于水平面向左。可以理解的是,加速度数据X1就是X轴、Y轴和Z轴三个方向上的和加速度数据。
图17B示例性示出了用户推动椭圆机的扶手向前移动靠近椭圆机的过程中,电子设备100采集的和加速度大小和方向的示意图。
在图17B中,电子设备100采集的X轴方向上的分加速度数据为加速度数据X2。加速度数据X2的方向平行于水平面向右。可以理解的是,加速度数据X2就是X轴、Y轴和Z轴三个方向上的和加速度数据。
本申请以下实施例以用户移动椭圆机的扶手,使得椭圆机的扶手与椭圆机之间的距离达到最远距离的过程中,和加速度数据的值从零逐渐增大到最大值,之后,和加速度数据的值从最大值逐渐减小至0附近。在用户移动椭圆机的扶手,使得椭圆机的扶手靠近椭圆机的过程中,和加速度数据的值从0附近逐渐减小到最小值,之后,和加速度数据的值从最小值逐渐增大到0附近。这里的和加速度数据为矢量单位。即和加速度数据不仅表示加速度的大小,还表示加速度的方向。由前述分析可知,当和加速度数据大于0时,表示用户在做向后拉动椭圆机的扶手的手臂动作。当和加速度数据小于0时,表示用户在做向前推动椭圆机的扶手的手臂动作。这样,电子设备100可以通过和加速度数据的正负判断用户的手臂动作是第一动作还是第二动作。
图17C示例性示出了在用户在使用椭圆机做运动的过程中,电子设备100采集的和加速度数据的示意图。
在图17C中,横轴表示时间,纵轴表示和加速度数据的大小。在图17C中,当和加速度数据大于0时,表示用户向后拉动椭圆机的扶手的手臂动作,当和加速度数据小于0时,表示用户在做向前推动椭圆机的扶手的手臂动作。由于在使用椭圆机的过程中,用户的手臂在周期性的向后移动并远离椭圆机和向前移动并靠近椭圆机,因此电子设备100采集到的和加速度数据大小也呈周期性的变化,电子设备100采集到的和加速度数据大小周期性的在正值和负值之间变化。示例性的,图17A中所示的加速度数据X1,可以是图17C中t1时刻所示的加速度数据X1。图17B中所示的和加速度数据X2,可以是图17C中t2时刻所示的加速度数据X2。
在另一种可能的实现方式中,电子设备100可以根据加速度数据得到用户手臂的运动轨迹图,将用户手臂的运动轨迹图与模板对比,确定用户的手臂动作是第一动作还是第二动作。电子设备100还可以根据其他的方式确定出用户的手臂动作是第一动作还是第二动作,本申请实施例在此不做限定。
电子设备100开启了呼吸指导功能之后,电子设备100需监测用户在上述几种结合健身器械的运动中的手臂动作(第一动作和第二动作),并结合用户的手臂动作给出具体的呼吸指导方案。
在电子设备100基于用户在结合健身器械的运动中的手臂动作,指导用户的呼吸动作的时,电子设备100可以连续监测到n次第一动作后,通过第一提示方式提示用户进行一次吸气动作。电子设备100连续监测到m次第二动作后,通过第二提示方式提示用户进行一次呼气动作。
这样的话,电子设备100可以通过不同的提示方式,使得用户在结合健身器械的运动中的手臂动作与呼吸的节奏相匹配,节省用户的体能,提高用户的健身效果。
接下来介绍举重运动、划船、划船机运动、椭圆机运动中的呼吸指导方案。
一、举重运动中的呼吸指导方案
图14A-图14C介绍了电子设备100根据电子设备100采集的运动传感器数据确定用户的手臂运动姿态是第一动作、第二动作和第三动作。具体的,电子设备100采集运动传感器数据,并基于运动传感器数据确定出用户的动作类型是第一动作、第二动作还是第三动作。电子设备100确定出第一动作之后,通过第一提示方式提示用户做吸气动作。电子设备100确定出第二动作之后,通过第二提示方式提示用户做呼气动作。电子设备100确定出第三动作之后,通过第三提示方式提示用户憋气,或者通过第三提示方式提示用户连续做至少一次短促的呼气动作和至少一次短促的吸气动作。
可选的,杠铃可以替代电子设备100的功能。也就是说杠铃采集运动传感器数据,并基于运动传感器数据确定出用户的动作类型是第一动作、第二动作还是第三动作,并对用户的呼吸节奏进行指导。具体的,杠铃采集运动传感器数据,并基于运动传感器数据确定出用户的动作类型是第一动作、第二动作还是第三动作。杠铃确定出第一动作之后,通过第一提示方式提示用户做吸气动作。杠铃确定出第二动作之后,通过第二提示方式提示用户做呼气动作。杠铃确定出第三动作之后,通过第三提示方式提示用户憋气,或者通过第三提示方式提示用户连续做至少一次短促的呼气动作和至少一次短促的吸气动作。
可选的,在电子设备100开始指导用户的呼吸节奏之前,电子设备100需要与杠铃建立通信连接。杠铃采集运动传感器数据,并将运动传感器数据发送至电子设备100。电子设备100接收到运动传感器数据后,基于运动传感器数据确定出用户的动作类型是第一动作、第二动作还是第三动作,并对用户的呼吸节奏进行指导。电子设备100确定出第一动作之后,通过第一提示方式提示用户做吸气动作。电子设备100确定出第二动作之后,通过第二提示方式提示用户做呼气动作。电子设备100确定出第三动作之后,通过第三提示方式提示用户憋气,或者通过第三提示方式提示用户连续做至少一次短促的呼气动作和至少一次短促的吸气动作。
可选的,在电子设备100开始指导用户的呼吸节奏之前,电子设备100需要与杠铃建立通信连接。杠铃采集运动传感器数据,并基于运动传感器数据确定出用户的动作为第一动作、第二动作还是第三动作。杠铃确定出用户的动作为第一动作后,杠铃发送指令一至电子设备100,电子设备100接收到指令一之后,通过第一提示方式提示用户吸气。杠铃确定出用户的动作为第二动作后,杠铃发送指令二至电子设备100,电子设备100接收到指令二之后,通 过第二提示方式提示用户做呼气动作。杠铃确定出用户的动作为第三动作后,杠铃发送指令三至电子设备100,电子设备100接收到指令三之后,通过第三提示方式提示用户憋气,或者通过第三提示方式提示用户连续做至少一次短促的呼气动作和至少一次短促的吸气动作。
上述通信连接可以是指有线连接、无线连接。无线连接可以是无线局域网络(wireless local area network,WLAN)连接、高保真无线通信(wireless fidelity,Wi-Fi)连接、蓝牙连接、红外线连接、近场通信(near field communication,NFC)连接、ZigBee以及后续发展中出现的其他无线通信技术等近距离连接。杠铃也可以与电子设备100建立远距离连接,远距离连接包括但不限于基于2G,3G,4G,5G以及后续标准协议的移动网络的远距离连接。杠铃也可以与电子设备100可以登录同一用户账号(例如华为账号),然后通过服务器进行远距离连接。
上述杠铃通过第一提示方式提示用户做吸气动作与电子设备100通过第一提示方式提示用户做吸气动作类似,本申请实施例在此不再赘述。
上述杠铃通过第二提示方式提示用户做吸气动作与电子设备100通过第二提示方式提示用户做呼气动作类似,本申请实施例在此不再赘述。
上述第三提示方式的类型可以为震动、语音、文字、图片中的任意一种,也可以是震动、语音、文字、图片中两种及以上组合的形式。
二、划船运动中的呼吸指导方案
图15A-图15C介绍了电子设备100根据电子设备100采集的运动传感器数据确定用户的手臂运动姿态是第一动作还是第二动作。具体的,电子设备100采集运动传感器数据,并基于运动传感器数据确定出用户的动作类型是第一动作还是第二动作。电子设备100确定出第一动作之后,通过第一提示方式提示用户做吸气动作。电子设备100确定出第二动作之后,通过第二提示方式提示用户做呼气动作。
可选的,船体(或者船体上的船桨)可以替代电子设备100的功能。也就是说船体采集运动传感器数据,并基于运动传感器数据确定出用户的动作类型是第一动作还是第二动作,并对用户的呼吸节奏进行指导。具体的,船体采集运动传感器数据,并基于运动传感器数据确定出用户的动作类型是第一动作、第二动作还是第三动作。船体确定出第一动作之后,通过第一提示方式提示用户做吸气动作。船体确定出第二动作之后,通过第二提示方式提示用户做呼气动作。
可选的,在电子设备100开始指导用户的呼吸节奏之前,电子设备100需要与船体(或者船体上的船桨)建立通信连接。船体采集运动传感器数据,并将运动传感器数据发送至电子设备100。电子设备100接收到运动传感器数据后,基于运动传感器数据确定出用户的动作类型是第一动作还是第二动作,并对用户的呼吸节奏进行指导。电子设备100确定出第一动作之后,通过第一提示方式提示用户做吸气动作。电子设备100确定出第二动作之后,通过第二提示方式提示用户做呼气动作。
可选的,在电子设备100开始指导用户的呼吸节奏之前,电子设备100需要与船体(或者船体上的船桨)建立通信连接。船体采集运动传感器数据,并基于运动传感器数据确定出用户的动作为第一动作还是第二动作。船体确定出用户的动作为第一动作后,船体发送指令一至电子设备100,电子设备100接收到指令一之后,通过第一提示方式提示用户吸气。杠 铃确定出用户的动作为第二动作后,船体发送指令二至电子设备100,电子设备100接收到指令二之后,通过第二提示方式提示用户做呼气动作。
上述通信连接可以是指有线连接、无线连接。无线连接可以是无线局域网络(wireless local area network,WLAN)连接、高保真无线通信(wireless fidelity,Wi-Fi)连接、蓝牙连接、红外线连接、近场通信(near field communication,NFC)连接、ZigBee以及后续发展中出现的其他无线通信技术等近距离连接。船体(或者船体上的船桨)也可以与电子设备100建立远距离连接,远距离连接包括但不限于基于2G,3G,4G,5G以及后续标准协议的移动网络的远距离连接。船体(或者船体上的船桨)也可以与电子设备100可以登录同一用户账号(例如华为账号),然后通过服务器进行远距离连接。
上述船体(或者船体上的船桨)通过第一提示方式提示用户做吸气动作与电子设备100通过第一提示方式提示用户做吸气动作类似,本申请实施例在此不再赘述。
上述船体(或者船体上的船桨)通过第二提示方式提示用户做吸气动作与电子设备100通过第二提示方式提示用户做呼气动作类似,本申请实施例在此不再赘述。
三、用户在使用划船机运动中的呼吸指导方案
图16A-图16C介绍了电子设备100根据电子设备100采集的运动传感器数据确定用户的手臂运动姿态是第一动作还是第二动作。具体的,电子设备100采集运动传感器数据,并基于运动传感器数据确定出用户的动作类型是第一动作还是第二动作。电子设备100确定出第一动作之后,通过第一提示方式提示用户做吸气动作。电子设备100确定出第二动作之后,通过第二提示方式提示用户做呼气动作。
可选的,划船机可以替代电子设备100的功能。也就是说划船机采集运动传感器数据,并基于运动传感器数据确定出用户的动作类型是第一动作还是第二动作,并对用户的呼吸节奏进行指导。具体的,划船机采集运动传感器数据,并基于运动传感器数据确定出用户的动作类型是第一动作、第二动作还是第三动作。划船机确定出第一动作之后,通过第一提示方式提示用户做吸气动作。划船机确定出第二动作之后,通过第二提示方式提示用户做呼气动作。
可选的,在电子设备100开始指导用户的呼吸节奏之前,电子设备100需要与划船机建立通信连接。划船机采集运动传感器数据,并将运动传感器数据发送至电子设备100。电子设备100接收到运动传感器数据后,基于运动传感器数据确定出用户的动作类型是第一动作还是第二动作,并对用户的呼吸节奏进行指导。电子设备100确定出第一动作之后,通过第一提示方式提示用户做吸气动作。电子设备100确定出第二动作之后,通过第二提示方式提示用户做呼气动作。
可选的,在电子设备100开始指导用户的呼吸节奏之前,电子设备100需要与划船机建立通信连接。划船机采集运动传感器数据,并基于运动传感器数据确定出用户的动作为第一动作还是第二动作。划船机确定出用户的动作为第一动作后,划船机发送指令一至电子设备100,电子设备100接收到指令一之后,通过第一提示方式提示用户吸气。划船机确定出用户的动作为第二动作后,划船机发送指令二至电子设备100,电子设备100接收到指令二之后,通过第二提示方式提示用户做呼气动作。
在一些实施例中,划船机上可以有显示屏,显示屏上可以显示文字、图片或者视频等内容提示用户做吸气动作还是呼气动作。或者,显示屏上也可以显示文字、图片或者视频等内容提示用户做第一动作还是第二动作。
上述划船机通过第一提示方式提示用户做吸气动作与电子设备100通过第一提示方式提示用户做吸气动作类似,本申请实施例在此不再赘述。
上述划船机通过第二提示方式提示用户做吸气动作与电子设备100通过第二提示方式提示用户做呼气动作类似,本申请实施例在此不再赘述。
上述通信连接可以是指有线连接、无线连接。无线连接可以是无线局域网络(wireless local area network,WLAN)连接、高保真无线通信(wireless fidelity,Wi-Fi)连接、蓝牙连接、红外线连接、近场通信(near field communication,NFC)连接、ZigBee以及后续发展中出现的其他无线通信技术等近距离连接。划船机也可以与电子设备100建立远距离连接,远距离连接包括但不限于基于2G,3G,4G,5G以及后续标准协议的移动网络的远距离连接。划船机也可以与电子设备100可以登录同一用户账号(例如华为账号),然后通过服务器进行远距离连接。
四、用户在使用椭圆机运动中的呼吸指导方案
图17A-图17C介绍了电子设备100根据电子设备100采集的运动传感器数据确定用户的手臂运动姿态是第一动作还是第二动作。具体的,电子设备100采集运动传感器数据,并基于运动传感器数据确定出用户的动作类型是第一动作还是第二动作。电子设备100确定出第一动作之后,通过第一提示方式提示用户做吸气动作。电子设备100确定出第二动作之后,通过第二提示方式提示用户做呼气动作。
可选的,椭圆机可以替代电子设备100的功能。也就是说椭圆机采集运动传感器数据,并基于运动传感器数据确定出用户的动作类型是第一动作还是第二动作,并对用户的呼吸节奏进行指导。具体的,椭圆机采集运动传感器数据,并基于运动传感器数据确定出用户的动作类型是第一动作、第二动作还是第三动作。椭圆机确定出第一动作之后,通过第一提示方式提示用户做吸气动作。椭圆机确定出第二动作之后,通过第二提示方式提示用户做呼气动作。
可选的,在电子设备100开始指导用户的呼吸节奏之前,电子设备100需要与椭圆机建立通信连接。椭圆机采集运动传感器数据,并将运动传感器数据发送至电子设备100。电子设备100接收到运动传感器数据后,基于运动传感器数据确定出用户的动作类型是第一动作还是第二动作,并对用户的呼吸节奏进行指导。电子设备100确定出第一动作之后,通过第一提示方式提示用户做吸气动作。电子设备100确定出第二动作之后,通过第二提示方式提示用户做呼气动作。
可选的,在电子设备100开始指导用户的呼吸节奏之前,电子设备100需要与椭圆机建立通信连接。椭圆机采集运动传感器数据,并基于运动传感器数据确定出用户的动作为第一动作还是第二动作。椭圆机确定出用户的动作为第一动作后,椭圆机发送指令一至电子设备100,电子设备100接收到指令一之后,通过第一提示方式提示用户吸气。椭圆机确定出用户的动作为第二动作后,椭圆机发送指令二至电子设备100,电子设备100接收到指令二之后, 通过第二提示方式提示用户做呼气动作。
在一些实施例中,椭圆机上可以有显示屏,显示屏上可以显示文字、图片或者视频等内容提示用户做吸气动作还是呼气动作。或者,显示屏上也可以显示文字、图片或者视频等内容提示用户做第一动作还是第二动作。
上述椭圆机通过第一提示方式提示用户做吸气动作与电子设备100通过第一提示方式提示用户做吸气动作类似,本申请实施例在此不再赘述。
上述椭圆机通过第二提示方式提示用户做吸气动作与电子设备100通过第二提示方式提示用户做呼气动作类似,本申请实施例在此不再赘述。
上述通信连接可以是指有线连接、无线连接。无线连接可以是无线局域网络(wireless local area network,WLAN)连接、高保真无线通信(wireless fidelity,Wi-Fi)连接、蓝牙连接、红外线连接、近场通信(near field communication,NFC)连接、ZigBee以及后续发展中出现的其他无线通信技术等近距离连接。椭圆机也可以与电子设备100建立远距离连接,远距离连接包括但不限于基于2G,3G,4G,5G以及后续标准协议的移动网络的远距离连接。椭圆机也可以与电子设备100可以登录同一用户账号(例如华为账号),然后通过服务器进行远距离连接。
实施例二
实施例二是关于健康领域的呼吸指导方案。
在医疗和健康检查过程中,当用户需要结合呼吸的节奏来配合医生的检查和治疗时,当电子设备100监测到其他的电子设备(例如医疗器械)做第一动作时,电子设备100通过第一提示方式提示用户进行吸气。当电子设备100监测到医疗器械做第二动作时,电子设备100通过第二提示方式提示用户进行呼气。这样,使得用户的呼吸节奏可以配合医疗器械的检查动作,可以提高用户在做检查的过程中的体验,减少不适感,也可以提高健康检查的效率。
具体的,在一种可能的实现方式中,电子设备100需要与医疗器械建立通信连接。医疗器械采集运动传感器数据,医疗器械实时将运动传感器数据发送至电子设备100。电子设备100获取到运动传感器数据之后,并基于运动传感器数据确定出医疗器械的动作类型为第一动作还是第二动作。电子设备100确定出医疗器械的动作类型之后,通过第一提示方式提示用户吸气和通过第二提示方式提示用户呼气。
在另一种可能的实现方式中,电子设备100需要与医疗器械建立通信连接。医疗器械采集运动传感器数据,并基于运动传感器数据确定出医疗器械的动作类型为第一动作还是第二动作。在医疗器械确定出用户的动作为第一动作后,医疗器械发送指令一至电子设备100,电子设备100接收到指令一之后,通过第一提示方式提示用户吸气。在医疗器械确定出用户的动作为第二动作后,医疗器械发送指令二至电子设备100,电子设备100接收到指令二之后,通过第二提示方式提示用户吸气。
可选的,本申请以下实施例中的医疗器械可以替代电子设备100的功能。也就是说,医疗器械采集运动传感器数据,并基于运动传感器数据确定出医疗器械的工作类型为第一动作还是第二动作医疗器械确定出动作类型之后,通过第一提示方式提示用户吸气和通过第二提示方式提示用户呼气。
上述医疗器械与电子设备100之间的通信连接可以是指有线连接、无线连接。无线连接可以是无线局域网络(wireless local area network,WLAN)连接、高保真无线通信(wireless fidelity,Wi-Fi)连接、蓝牙连接、红外线连接、近场通信(near field communication,NFC)连 接、ZigBee以及后续发展中出现的其他无线通信技术等近距离连接。医疗器械也可以与电子设备100建立远距离连接,远距离连接包括但不限于基于2G,3G,4G,5G以及后续标准协议的移动网络的远距离连接。医疗器械也可以与电子设备100可以登录同一用户账号(例如华为账号),然后通过服务器进行远距离连接。上述医疗和健康检查可以包括但不仅限于胃镜检查、呼吸道药物治疗、呼吸道疾病(例如哮喘)监测等等。
一、胃镜检查中的呼吸指导
图18示例性示出了胃镜检查中的场景示意图。
在胃镜检查过程中,胃管会从患者口腔里面经过食道里面进入到胃部。在胃管经过食道里面进入到胃部的过程中,用户体验很差,时长会伴随呕吐,呼吸不适等症状。通常在胃镜检查过程中,由医生口头的呼吸指导来提示用户的呼吸节奏,以此减少用户的不适感。为了使得在胃镜检查中的呼吸指导更加智能,本申请以下实施例中,电子设备100或者胃管的主体可以结合胃镜的动作类型给出呼吸指导。
在胃镜检查过程中,第一动作为胃管沿着胃管的食道向胃部深入的动作,第二动作为胃管暂停沿着胃管的食道向胃部深入的动作。
当胃管的主体给出呼吸指导意见时。胃管的主体可以替代电子设备100的功能。具体的,胃管的主体可以采集胃管上的运动传感器的运动传感器数据,并基于运动传感器数据确定出胃管的动作类型。当胃管的主体确定出胃管的动作类型为第一动作时,即胃管开始沿着胃管的食道向胃部深入时,胃管的主体通过第一提示方式提示用户做吸气动作。当胃管的主体确定出胃管的动作类型为第二动作时,即胃管暂停沿着胃管的食道向下深入时,胃管的主体通过第二提示方式提示用户做呼气动作。上述胃管的主体通过第一提示方式提示用户做吸气动作与电子设备100通过第一提示方式提示用户做吸气动作类似,本申请实施例在此不再赘述。
上述胃管的主体通过第二提示方式提示用户做吸气动作与电子设备100通过第二提示方式提示用户做呼气动作类似,本申请实施例在此不再赘述。
在一些实施例中,胃管的主体上可以有显示屏,显示屏上可以显示文字、图片或者视频等内容提示用户做吸气动作还是呼气动作。或者,显示屏上也可以显示文字、图片或者视频等内容提示用户做第一动作还是第二动作。可选的,胃镜的主体也可以通过语音的方式或者震动的方式提示用户呼气和吸气。
当电子设备100给出呼吸指导意见时,在电子设备100开始指导用户的呼吸节奏之前,电子设备100需要与胃管的主体建立通信连接。胃管的主体采集运动传感器数据,并将运动传感器数据发送至电子设备100。电子设备100接收到运动传感器数据后,基于运动传感器数据确定出用户的动作类型是第一动作还是第二动作,并对用户的呼吸节奏进行指导。当电子设备100确定出胃管的动作类型为第一动作时,即胃管开始沿着胃管的食道向胃部深入时,电子设备100通过第一提示方式提示用户做吸气动作。当电子设备100确定出胃管的动作类型为第二动作时,即胃管暂停沿着胃管的食道向胃部深入时,电子设备100通过第二提示方式提示用户做呼气动作。
当电子设备100给出呼吸指导意见时,在电子设备100开始指导用户的呼吸节奏之前,电子设备100需要与胃管的主体建立通信连接。胃管的主体采集运动传感器数据,并基于运动传感器数据确定出胃管的动作类型为第一动作还是第二动作。当胃管的主体确定出用户的动作为第一动作时,即胃管开始沿着胃管的食道向胃部深入时,胃管的主体发送指令一至电子设备100,电子设备100接收到指令一之后,通过第一提示方式提示用户吸气。当胃管的主体确定出用户的动作为第二动作时,即胃管暂停沿着胃管的食道向胃部深入时,胃管的主 体发送指令二至电子设备100,电子设备100接收到指令二之后,通过第二提示方式提示用户做呼气动作。
这样,当胃管在向患者的胃部深入时,用户进行深度吸气,使得全身放松,胸廓尽量扩张。当胃管暂停向患者的胃部深入时,用户可以配合缓慢呼气,减少在检查过程中的不适感。通过电子设备100的提示方式,可以使得患者的呼吸节奏与胃管的深入和暂停动作相匹配,减少用户在胃镜检查中的不适感。
可选的,在胃镜检查中的不同阶段,也即胃管的首端到达患者的食道不同位置,电子设备100给出的呼吸提示也可以不同。
例如,当胃镜刚经过患者口腔到达咽喉部(即食道的)时,此时用户的不适感在整个胃镜检查中时最强烈的。此时,电子设备100可以通过强震动的方式提示用户进行吸气。电子设备100强震动的频率可以为频率三。频率三大于频率一。这样,电子设备100的震动频率越强,用户进行吸气的时间需要越久,可以在一定程度上减轻不适感。
可选的,电子设备100可以通过不同的语音内容在镜检查中的不同阶段提示用户进行吸气,当胃镜刚经过患者口腔到达咽喉部(即食道的)时,语音内容可以是“通过鼻腔深度吸气,并持续一段时间(例如5s)”。
可选的,在患者开始进行检查之前,电子设备100可以显示不同的提示方式对应的呼吸动作。这样,用户可以提前知道电子设备100的提示方式,在什么时候该呼气,什么时候该呼气。具体的实现方式,可以参考图5D-图5F的实施例,原理类似,本申请实施例在此不再赘述。
二、呼吸道药物治疗中的呼吸指导
呼吸道药物治疗可以包括但不仅限于雾化吸入疗法、呼吸机疗法等等。本申请以下实施例以雾化吸入疗法为例进行说明。
在呼吸道药物治疗中,第一动作为雾化机送药的动作,第二动作为雾化机暂停送药的动作。
图19示例性示出了雾化吸入疗法中的场景示意图。
在雾化吸入疗法中,药物借助雾化机或者雾化泵由液态变成雾状通过正常呼吸进入到咽喉。达到治疗呼吸道疾病的目的。
在开始雾化吸入疗法之前,雾化机上可以有显示屏,显示屏上也可以显示文字、图片或者视频等内容提示用户雾化机什么时候开始开始送药,什么时候开始暂停送药。或者,雾化机也可以通过语音的方式提示用户雾化机什么时候开始开始送药,什么时候开始暂停送药。
或者,在开始雾化吸入疗法之前,电子设备100可以与雾化机建立通信连接。雾化机通过通信模块将使用教程的电子版本发送至电子设备100。患者可以通过电子设备100播放使用教程的电子版本,了解到使用雾化机的注意事项。例如,如何通过控制呼吸节奏与雾化机的送药的节奏相匹配,达到更好的治疗效果。或者,电子设备100也可以显示不同的提示方式对应的呼吸动作等等。
当雾化机给出呼吸指导意见时。雾化机可以替代电子设备100的功能。当雾化机开始送药时,雾化机通过第一提示方式提示用户做吸气动作。这样,可以使得在雾化机送药时,患 者开始吸气,使得药物可以到达患者的呼吸道,治疗效果会更好。当雾化机暂停送药时,雾化机通过第二提示方式提示用户做呼气动作。这样,可以使得在雾化机暂停送药时,患者开始呼气,达到放松全身的目的。
上述雾化机通过第一提示方式提示用户做吸气动作与电子设备100通过第一提示方式提示用户做吸气动作类似,本申请实施例在此不再赘述。
上述雾化机通过第二提示方式提示用户做吸气动作与电子设备100通过第二提示方式提示用户做呼气动作类似,本申请实施例在此不再赘述。
在一些实施例中,雾化机上可以有显示屏,显示屏上也可以显示文字、图片或者视频等内容提示用户该做吸气动作还是呼气动作。可选的,雾化机也可以通过语音的方式或者震动的方式提示用户该做吸气动作还是呼气动作。
当电子设备100给出呼吸指导意见时,在电子设备100开始指导用户的呼吸节奏之前,电子设备100需要与雾化机建立通信连接。当雾化机开始送药时,雾化机通过通信模块发送指令一至电子设备100,电子设备100在接收到指令一后,以第一提示方式提示患者开始吸气。当雾化机暂停送药时,雾化机通过通信模块发送指令二至电子设备100,电子设备100在接收到指令二后,以第二提示方式提示患者开始呼气。这样,可以使得在雾化机送药时,患者开始吸气,使得药物可以到达患者的呼吸道,治疗效果会更好。
上述电子设备100与雾化机之间的通信连接可以是指有线连接、无线连接。无线连接可以是无线局域网络(wireless local area network,WLAN)连接、高保真无线通信(wireless fidelity,Wi-Fi)连接、蓝牙连接、红外线连接、近场通信(near field communication,NFC)连接、ZigBee以及后续发展中出现的其他无线通信技术等近距离连接。雾化机也可以与电子设备100建立远距离连接,远距离连接包括但不限于基于2G,3G,4G,5G以及后续标准协议的移动网络的远距离连接。雾化机也可以与电子设备100可以登录同一用户账号(例如华为账号),然后通过服务器进行远距离连接。
三、呼吸道疾病(例如哮喘)监测
电子设备100可以通过电子设备100采集用户的心率、呼吸频率、血氧水平及肺部发出的哮喘声音等生理数据,来判断用户的哮喘是否发作。
当电子设备100确定出用户的哮喘发作,电子设备100可以给出呼吸指导意见,可以缓解用户哮喘发作时的症状。
可选的,在电子设备100给出呼吸指导意见之前,电子设备100可以在显示屏上显示文字、图片或者视频教学等内容给出一些建议,或者通过语音的方式给出一些建议,使得用户知道如何缓解哮喘发作过程中的症状。
例如,电子设备100通过语音的形式提示用户深呼吸、摆正躺姿、使用相关的药物治疗等等。语音内容可以是“深度呼入,缓慢呼出等等”。语音内容还可以是“选择半卧位、端坐体位,将颈部附近的纽扣解开,保证呼吸顺畅”。语音内容还可以是“请使用支气管扩张喷雾剂”。
例如,电子设备100可以在显示屏显示动画,同时电子设备100提示用户跟着显示屏上的动画一起做动作,例如选择正确的躺姿,如何控制呼吸节奏等等。
在电子设备100给出呼吸指导意见时,电子设备100可以通过第一提示方式提示用户深度吸气,之后间隔一定时间(例如2秒),电子设备100可以通过第二提示方式提示用户缓慢 呼气。这样,通过有节奏的呼吸,可以缓解用户哮喘发作时的症状。
可选的,电子设备100可以通过语音、文字或者震动的方式提示用户吃药,并将对应的药物名称和服用说明显示在电子设备100的显示屏上。
可选的,电子设备100监测到用户的生理数据高于正常值,那么电子设备100可以通过语音模块询问用户是否需要帮助,当语音识别结果为“是”时,或者超过一定时间,电子设备100没有接收到任何回复,则电子设备100可以认为该用户需要帮助。一方面,电子设备100中保存有紧急联系人的联系方式,电子设备100可以直接将用户的生理数据以及可能的症状信息(例如哮喘)发送至紧急联系人。另一方面,电子设备100可以将用户当前位置,用户的姓名、家庭住址、疾病史、联系电话、用户的生理数据以及可能的症状信息发送至服务器,服务器调用地图服务,找到距离用户当前位置最近的社区卫生服务中心,获得其名称、值班工作人员和联系电话。服务器将该用户的当前位置,用户的姓名、家庭住址、疾病史、联系电话、用户的生理数据以及可能的症状信息通过应用程序或其他方式告知距离用户最近的社区卫生服务中心。之后,若距离用户最近的社区卫生服务中心的值班工作人员看到用户的信息之后,值班工作人员将通过服务器发送的电话联系用户,询问其是否需要帮助,并采取进一步的急救措施和协助。
图20示例性示出了本申请实施例提供的一种呼吸指导方法的方法流程示意图。
如图20所示,该方法包括:
S2001、电子设备100(第一电子设备)获取传感器数据,并基于传感器数据确定用户的动作类型。
电子设备100可以是手机、可穿戴式设备、耳机、智能眼镜、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备等等。其中,可穿戴式设备可以是以手腕为支撑的设备,例如智能手表、智能手环、智能腕带等等。可穿戴式设备也可以是以脚踝为支撑的设备,例如智能脚环、智能鞋、智能袜子或者其他可佩戴在腿上的设备等等。可穿戴式设备也可以是以头部为支撑的设备,例如智能头盔、智能头带(也可以称为智能头箍)。
电子设备100也可以是医疗器械设备和健身器材设备等等。医疗器械设备可以包括但不仅限于呼吸机、雾化机、胃镜设备、胸部X光检测设备等等。健身器材设备可以包括但不仅限于船体、划船机、椭圆机、杠铃等等。
传感器数据包括加速度数据、陀螺仪数据、图像数据、重力数据和压力数据中的一个或多个。
在电子设备100获取传感器数据之前,电子设备100接收并响应第一输入操作,确定第一运动模式;第一运动模式为以下任意一种:跑步模式、游泳模式、举重模式、椭圆机运动模式、划船机运动模式、划船模式。电子设备100基于传感器数据确定在第一运动模式下用户的动作类型。这样,电子设备100可以在用户运动之前,开启不同的运动模式,并在不同的运动模式中给出不同的呼吸指导方案。具体的,可以参考图3A、图3B-图3D所示的实施例,本申请实施例在此不再赘述。
在其他可能的实现方式中,电子设备100可以根据采集的运动传感器数据自适应开启第一运动模式(例如跑步模式)。在电子设备100自适应开启第一运动模式之后,电子设备100显示有第一界面,第一界面上显示有第一控件。电子设备100接收并响应用户针对第一控件的输入操作,电子设备100取消开启第一运动模式。这样,防止电子设备100误开启第一运动模式,增加了电子设备100的消耗。第一界面可以是图3E所示的用户界面,第一控件可以 是图3E所示的控件314。具体的,可以参考图3A-图3E所示的实施例,本申请实施例在此不再赘述。
在电子设备100获取传感器数据之前,电子设备100接收第三电子设备发送的传感器数据。第三电子设备可以是健身器材设备,也可以是医疗器械设备。也就是说,第一电子设备与第一电子设备建立通信连接。第三电子设备实时采集第三电子设备上的运动传感器数据,并实时将运动传感器数据发送至第一电子设备。
可选的,在电子设备100开始指导用户呼吸之前,电子设备100可以在显示屏上显示引导动作。该引导动作用于指示用户不同的动作类型对应的呼吸动作。具体的,可以参考图5D-图5F所示的实施例
可选的,在电子设备100开始指导用户呼吸之前,电子设备100可以在显示屏上显示动画。该动画用于指示用户不同的动作类型对应的呼吸动作。
S2002、当电子设备100确定用户的动作类型为第一动作类型时,电子设备100输出第一提示,第一提示用于提示用户做吸气动作。
在一种可能的实现方式中,第一动作可以是电子设备100基于电子设备100采集用户的运动数据,判断出用户的运动姿态为第一动作。
其中,当第一动作是用户的运动姿态时,那么第一动作可以是用户的手臂动作,第一动作也可以是用户的腿部动作。在运动过程中,手臂动作与腿部动作是协调并作的,本申请实施例是以第一动作为用户的手臂动作为例进行说明的。
对于运动过程中,第一动作的相关描述和介绍,可以参考图5A-图5B、图6A-图6B、图7A-图7B、图8A-图8B、图9A-图9B、图10A-图10B、图11A-图11B、图12A-图12B、图13A-图13B所示的实施例,本申请实施例在此不再赘述。
在其他可能的实现方式中,第一动作也可以是第三电子设备基于第三电子设备采集的运动数据,判断出第三电子设备的运动姿态,并通过第三电子设备的运动姿态推断出用户的运动姿态。在第三电子设备推断出用户的运动姿态后,第三电子设备向电子设备100发送指令,该指令用于指示电子设备100用户在做第一动作。
在用户开始运动之前,第三电子设备需要与电子设备100建立通信连接。该通信连接可以是指有线连接、无线连接。无线连接可以是高保真无线通信(wireless fidelity,Wi-Fi)连接、蓝牙连接、红外线连接、NFC连接、ZigBee连接等近距离连接,也可以是远距离连接,远距离连接包括但不限于基于2G,3G,4G,5G以及后续标准协议的移动网络的远距离连接。例如,电子设备100和第三电子设备可以登录同一用户账号(例如华为账号),然后通过服务器进行远距离连接。
在第三电子设备推断出用户的运动姿态为第一动作之后,第三电子设备向电子设备100发送指令一,电子设备100接收到指令一之后,电子设备100通过第一提示方式提示用户吸气。
在其他可能的实现方式中,第一动作是其他电子设备(例如医疗器械)的运动姿态。其他电子设备基于其他电子设备采集的运动数据,判断出其他电子设备的运动姿态。当其他电子设备确定出其他电子设备的运动姿态为第一动作时,其他电子设备向电子设备100发送指令一,电子设备100接收到指令一之后,电子设备100通过第一提示方式提示用户吸气。这 样,可以使得用户的呼吸节奏与其他电子设备(例如医疗器械)的运动姿态相匹配,特别是在一些健康领域,用户在做健康检查和治疗时,例如胃镜检查,雾化治疗、胸透X光检查等等,当其他电子设备的运动姿态为第一动作时,其他电子设备向电子设备100发送指令一,电子设备100接收到指令一之后,即电子设备100监测到其他电子设备的运动姿态为第一动作,电子设备100通过第一提示方式提示用户吸气。这样,可以使得用户的呼吸节奏与医疗器械的动作相匹配,可以缓解用户在健康检查中的不适感,同时可以提高治疗效。具体的,可以参考图18-图19介绍的实施例二,本申请实施例在此不再赘述。
S2003、当电子设备100确定用户的动作类型为第二动作类型时,电子设备100输出第二提示,第二提示用于提示用户做呼气动作,第一提示与第二提示不同。
第二动作与第一动作类似,具体的,可以参考S2002中对第一动作的相关解释,本申请实施例在此不再赘述。
可选的,在电子设备100输出第一提示的同时,电子设备100向第二电子设备发送第一指令,第一指令用于指示第二电子设备输出第三提示,第三提示用于提示用户做吸气动作;其中,第三提示的类型为以下任意一种或几种:震动、语音、文字、图片。这样,电子设备100在输出第一提示的同时,可以通过建立连接的其他电子设备(第二电子设备为耳机或者手机)等输出第三提示。在其他可能的实现方式中,电子设备100可以不输出任何内容,而是通过建立连接的其他电子设备(第二电子设备为耳机或者手机)等输出第三提示。
可选的,第三电子设备采集传感器数据,并基于传感器数据确定出用户的动作类型。当第三电子设备确定用户的动作类型为第一动作类型时,第三电子设备向第一电子设备发送指令一,第一电子设备接收到指令一之后,输出第一提示,第一提示用于提示用户做吸气动作;当第三电子设备确定用户的动作类型为第二动作类型时,第三电子设备向第一电子设备发送指令二,第一电子设备接收到指令二之后,输出第二提示,第二提示用于提示用户做呼气动作,第一提示与第二提示不同。
第一提示方式的类型为以下任意一种或几种:震动、语音、文字、图片。
第二提示的类型为以下任意一种或几种:震动、语音、文字、图片。
例如,第一提示的震动频率与第二提示的震动频率不同。或者第一提示的语音内容与第二提示的语音内容不同。或者第一提示的类型为以下任意一种或几种:震动、语音、文字、图片;第二提示不输出任何内容;或者第一提示不输出任何内容;第二提示的类型为以下任意一种或几种:震动、语音、文字、图片。
这样,电子设备100可以通过不同的提示方式,来提示用户什么时候进行吸气,什么时候进行吸气,使得动作的节奏与用户的呼吸节奏相匹配,节省体能,提高用户的运动能力。
可选的,在电子设备100输出第一提示之后,在电子设备100输出第二提示之前,当电子设备100确定用户的动作类型为第三动作类型时,电子设备100输出第四提示,第四提示用于提示用户做闭气动作;其中,第四提示的类型为以下任意一种或几种:震动、语音、文字、图片。例如,在举重运动中,用户在完成第一动作之后,用户将杠铃在最高点保持一段时间,那么这段时间,用户的动作可以称为第三动作。例如,在游泳运动中,用户在完成第一动作之后,用户将手臂动作静止保持一段时间,这里的用户动作也可以称为第三动作。用 户在做第三动作时,在一种可能的实现方式中,电子设备100通过第四提示方式提示用户闭气。在其他可能的实现方式中,电子设备100通过第四提示方式提示用户做短暂的一组或几组呼气和吸气动作。
可选的,当电子设备100确定用户的动作类型为第一动作类型时,且电子设备100监测到用户已完成第一动作,电子设备100输出第一提示,第一提示用于提示用户做吸气动作。例如,在游泳应用场景中,用户只有完成了第一动作,用户的头部才可以伸出水面,才可以做吸气动作。在其他可能的实现方式中,当电子设备100确定用户的动作类型为第二动作类型时,且电子设备100监测到用户已完成第二动作,电子设备100输出第二提示,第二提示用于提示用户做呼气动作。例如,在游泳应用场景中,用户完成了第二动作,电子设备100提示用户做呼气动作。
可选的,电子设备100可以在用户开始运动之后,结束运动之前,持续性的给用户呼吸指导。这样,电子设备100可以在用户的运动过程中一直给用户提供呼吸指导,用户可以更好的协调运动动作与呼吸的节奏。例如电子设备100可以在用户跑步的过程中,当监测到佩戴有电子设备100的用户的手臂向前摆动时的手臂动作时,电子设备100通过第一提示方式提示用户吸气。当监测到佩戴有电子设备100的用户的手臂向后摆动时的手臂动作时,电子设备100通过第二提示方式提示用户呼气。直至用户结束运动,电子设备100停止指导用户做呼吸动作。这样,电子设备100可以在用户的跑步过程中一直对用户的呼吸进行指导,用户可以更好的协调跑步过程中的挥臂动作与呼吸的节奏。
可选的,在用户运动过程中,用户可以主动触发暂停和/或继续电子设备100对用户的呼吸指导。例如,电子设备100可以在用户跑步的过程中,接收并响应用户的语音,暂停或继续结合用户的挥臂动作,对用户的呼吸动作进行指导。示例性,当设备100在对用户的呼吸进行指导时,用户可以通过语音“小A小A,暂停呼吸指导”唤醒电子设备100。电子设备100在识别到用户的语音后,将暂停对用户的跑步的手臂动作的监测,即电子设备100暂停对用户的呼吸动作的指导。当用户又想再次通过电子设备100指导自己的呼吸动作时,用户可以通过语音“小A小A,继续呼吸指导”唤醒电子设备100。电子设备100在识别到用户的语音后,将继续对用户的跑步时的手臂动作的监测,并结合用户的跑步时的手臂动作对用户的呼吸动作再次指导。这样,用户可以根据自身需求灵活的控制电子设备100,提高了用户体验。
在用户运动过程中,电子设备100可以自适应暂停对用户的呼吸指导。例如,电子设备100可以在用户跑步的过程中,当监测到佩戴有电子设备100的用户的手臂向前摆动时的手臂动作时,电子设备100通过第一提示方式提示用户吸气。当监测到佩戴有电子设备100的用户的手臂向后摆动时的手臂动作时,电子设备100通过第二提示方式提示用户呼气。电子设备100指导用户做呼吸动作后的一段时间(第一时间)后,电子设备100暂停对用户的跑步的手臂动作的监测,那么电子设备100也同时暂停了对用户的呼吸动作的指导。这样,相比于在用户的跑步过程中一直对用户的呼吸进行指导,可以节省电子设备100的电量消耗。
可选的,在用户运动过程中,在电子设备100暂停对用户的呼吸指导,之后,电子设备100也可以自适应开启对用户的呼吸指导。例如在电子设备100暂停对用户的手臂动作的监测以及呼吸动作的指导之后,电子设备100可以通过电子设备100自带的麦克风采集用户的呼吸频率,或者耳机与电子设备100连接,用户带上耳机一边运动一边听音乐,电子设备100也可以通过与电子设备100建立连接的耳机上的麦克风采集用户的呼吸频率。当电子设备100判断出用户的呼吸频率与跑步模式呼吸指导方案中的呼吸频率不匹配时,电子设备100可以通过语音、震动、文字等方式提示用户是否需要呼吸指导,或者,当电子设备100判断出用户的呼吸频率大于跑步模式呼吸指导方案中的呼吸频率时,电子设备100可以提示用户放慢呼吸频率。当电子设备100判断出用户的呼吸频率小于跑步模式呼吸指导方案中的呼吸频率(预设频率)时,电子设备100可以提示用户加快呼吸频率。在电子设备100继续对用户的手臂动作的监测以及呼吸动作的指导一段时间后,电子设备100判断出用户的呼吸频率与跑步模式呼吸指导方案中的呼吸频率相匹配时,则电子设备100可以暂停对用户的手臂动作的监测以及呼吸动作的指导。这样,体现了电子设备100对用户进行呼吸指导的灵活性。
可选的,在用户运动过程中,电子设备100可以实时获取用户的心率,根据用户的心率来确定用户的休息时间。例如,电子设备100可以在跑步过程中,电子设备100可以实时获取用户的心率,根据用户的心率来确定用户的休息时间。具体的,电子设备100根据用户的心率变化情况来确定用户的代谢方式,包括:有氧方式和无氧方式,或者,有氧方式、无氧乳酸方式、无氧无乳酸方式等等,不同的代谢方式可以对应不同的休息时间,在用户结束某一阶段的运动后,电子设备100可以提示用户可休息的时间。或者,进一步地,在用户跑步过程中,电子设备100确定出用户的心率不在预设心率(预设心率值)规定的范围内时,则电子设备100可以通过语音、震动、文字等方式提示用户停止运动并开始休息。或者,进一步地,在用户休息的过程中,电子设备100可以根据用户的心率变化情况,提示用户停止休息并开始运动。
可选的,在用户运动过程中,在电子设备100暂停对用户的呼吸指,之后,电子设备100也可以自适应开启对用户的呼吸指导。例如在电子设备100暂停对用户的手臂动作的监测以及呼吸动作的指导之后,电子设备100可以采集用户的心率。当电子设备100判断出用户的心率不在预设心率规定的范围内时,电子设备100可以通过语音、震动、文字等方式提示用户是否需要呼吸指导。在电子设备100继续对用户的手臂动作的监测以及呼吸动作的指导一段时间后,电子设备100判断出用户的心率在预设心率规定的范围内,则电子设备100可以暂停对用户的手臂动作的监测以及呼吸动作的指导。这样,体现了电子设备100对用户进行呼吸指导的灵活性。
可选的,电子设备100可以根据用户的运动能力,确定出用户的预设心率。在电子设备100暂停对用户的呼吸指导,或者在用户运动之前,电子设备100没有开启呼吸指导,若用户的心率高于用户的预设心率,电子设备100可以自适应开启呼吸指导。例如,在跑步过程中,电子设备100暂停对用户的呼吸指导,或者用户在开始跑步前没有开启电子设备100的呼吸指导。电子设备100可以在用户跑步过程中,实时获取用户的心率,若电子设备100监测到用户的心率大于预设心率,那么电子设备100可以通过语音、震动、文字等方式询问用户是否需要开启呼吸指导功能,或者电子设备100可以自动开启呼吸指导功能,并结合用户 的跑步的挥臂动作,对用户的呼吸动作进行指导,使得用户在跑步过程中的挥臂动作与呼吸的节奏相匹配。
可选的,在用户运动过程中,电子设备100暂停对用户的呼吸指导,或者在用户运动之前,电子设备100没有开启呼吸指导功能。那么电子设备100可以根据用户的运动能力,并结合运动运动类型、运动目标、温度、湿度和气压中的一种或多种因素,在用户运动一段时间后,提示用户是否需要呼吸指导。
可选的,电子设备100可以根据用户的运动能力,在用户运动一段时间后,提示用户是否需要休息。
在一种可能的实现方式中,电子设备100可以根据用户的运动能力,确定出用户的预设运动时间,若用户跑步时间超过了预设运动时间,则电子设备100可以提示用户是否需要休息。
在其他可能的实现方式中,电子设备100可以根据用户的运动能力,确定出用户的预设心率。电子设备100可以实时获取用户的心率,若电子设备100监测到用户的心率大于预设心率,则电子设备100可以提示用户是否需要休息。
接下来介绍电子设备100如何确定用户的运动能力的。
图21示例性示出了电子设备100根据用户的个人信息得到用户的运动能力的示意图。
首先,电子设备100获取用户的个人信息。用户的个人信息包括但不仅限于:性别、年龄、身高和体重、最大摄氧量、静息心率和最大心率等等。其中,最大摄氧量可以是用户在之前的运动过程中电子设备100获取的用户的摄氧量数据中的最大值。最大心率可以是用户在之前的运动过程中电子设备100获取的用户的心率中的最大值。用户的个人数据可以是电子设备100中存储的,也可以是用户输入的,也可以是从与建立连接的其他设备中获取到的。
之后,电子设备100基于用户的个人信息和模糊评价系统对用户的运动能力进行评估。
模糊评价系统是指利用模糊数学的方法,对受到多个参数影响的事物,按照一定的评判标准,给出事物获得某个评语的可能性。也就是说,每一个参数所占的比例不同,那么模糊评价系统输出的结果也不同。电子设备100可以将输入模糊评价系统的每一个参数所占的比例设置为相同的,也可以将输入模糊评价系统的每一个参数所占的比例设置不同的,本申请实施例在此不做限定。
个人信息中的每一个参数都与用户的运动能力相关。例如,男性的运动能力比女性的运动能力强。青年人的运动能力比少年人和老年人的运动能力强。摄氧量大的人比摄氧量小的人的运动能力强等等。
电子设备100将用户的个人信息输入模糊评价系统,模糊评价系统将输出用户的运动能力。运动能力可以划分为偏弱、中等、强和优秀等级别。当然,运动能力也可以划分为更多或更少的级别,本申请实施例在此不做限定。
由于用户的个人信息会变化,因此电子设备100需周期性的更新用户的个人信息。那么,电子设备100也可以周期性的更新用户的运动能力。
在用户开始运动后的,电子设备100可以显示运动结果。电子设备100显示的运动结果可以包括但不限于以下内容:
一、用户运动数据
用户的运动数据包括:心率、热量、呼吸频率、运动时间、运动日期、运动天数等等。这样,用户可以根据运动结果详细了解到自己的运动情况。另外,用户运动情况可以包括本次运动情况和历史运动情况,这样,用户可以对比自己当前的运动情况和之前的运动情况,来查看自己是否有进步,身体是否得到锻炼等等。
二、饮食注意事项
电子设备100可以根据用户的能量消耗情况、运动时间等等数据,确定用户在运动后需要摄入的营养,例如,电子设备100可以在运动结果中显示用户的营养摄入比例或者推荐的食物。该营养摄入比例可以用于指示用户在此次运动后,需要摄入的蛋白质、糖类、脂肪、膳食纤维、水分等等的比例。推荐的食物可以包括:牛奶、鸡蛋、牛肉等等,电子设备100可以根据用户运动的强度推荐不同的食物。这样,可以帮助用户更快地恢复体能,弥补运动过程中消耗的能量。
可以理解的是,运动结果不限于上述提及的内容,还可以包含用户的基本信息等等数据,本申请实施例对此不作限制。
进一步地,电子设备100还可以提供分享功能,用户可以使用该分享功能将用户的运动结果分享到其他设备或其他的社交平台。
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (17)

  1. 一种呼吸指导方法,其特征在于,所述方法包括:
    第一电子设备获取传感器数据;
    所述第一电子设备基于所述传感器数据确定用户的动作类型;
    当所述第一电子设备确定所述用户的动作类型为第一动作类型时,所述第一电子设备输出第一提示,所述第一提示用于提示用户做吸气动作;
    当所述第一电子设确定所述用户的动作类型为第二动作类型时,所述第一电子设备输出第二提示,所述第二提示用于提示用户做呼气动作,所述第一提示与所述第二提示不同。
  2. 根据权利要求1所述的方法,其特征在于,所述第一提示的类型为以下任意一种或几种:震动、语音、文字、图片;
    所述第二提示的类型为以下任意一种或几种:震动、语音、文字、图片。
  3. 根据权利要求2所述的方法,其特征在于,所述第一提示与所述第二提示不同,具体包括:
    所述第一提示的震动频率与所述第二提示的震动频率不同。
  4. 根据权利要求2所述的方法,其特征在于,所述第一提示与所述第二提示不同,具体包括:
    所述第一提示的语音内容与所述第二提示的语音内容不同。
  5. 根据权利要求1所述的方法,其特征在于,所述第一提示与所述第二提示不同,具体包括:
    所述第一提示的类型为以下任意一种或几种:震动、语音、文字、图片;
    所述第二提示不输出任何内容;
    或者,
    所述第一提示不输出任何内容;
    所述第二提示的类型为以下任意一种或几种:震动、语音、文字、图片。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:
    在所述第一电子设备输出所述第一提示的同时,所述第一电子设备向第二电子设备发送第一指令,所述第一指令用于指示所述第二电子设备输出第三提示,所述第三提示用于提示用户做吸气动作;其中,所述第三提示的类型为以下任意一种或几种:震动、语音、文字、图片。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,当所述第一电子设备确定所述用户的动作类型为第一动作类型时,所述电子设备输出第一提示,具体包括:
    当所述第一电子设连续n次确定所述用户的动作类型为所述第一动作类型时,所述电子设备输出所述第一提示,n为大于等于1的正整数。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,在所述第一电子设备输出第一提示 之后,在所述第一电子设备输出第二提示之前,所述方法还包括:
    当所述第一电子设备确定所述用户的动作类型为第三动作类型时,所述第一电子设备输出第四提示,所述第四提示用于提示用户做闭气动作;其中,所述第四提示的类型为以下任意一种或几种:震动、语音、文字、图片。
  9. 根据权利要求1-7任一项所述的方法,其特征在于,当所述第一电子设备确定所述用户的动作类型为第一动作类型时,所述第一电子设备输出第一提示,所述第一提示用于提示用户做吸气动作,具体包括:
    当所述第一电子设备确定所述用户的动作类型为所述第一动作类型时,且所述第一电子设备监测到用户已完成所述第一动作,所述第一电子设备输出所述第一提示,所述第一提示用于提示用户做吸气动作。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,在所述第一电子设备获取传感器数据之前,所述方法还包括:
    所述第一电子设备接收并响应第一输入操作,确定第一运动模式;所述第一运动模式为以下任意一种:跑步模式、游泳模式、举重模式、椭圆机运动模式、划船机运动模式、划船模式;
    所述第一电子设备基于所述传感器数据确定用户的动作类型,具体包括:
    所述第一电子设备基于所述传感器数据确定在所述第一运动模式下所述用户的动作类型。
  11. 根据权利要求1-10任一项所述的方法,其特征在于,在所述第一电子设备获取传感器数据之前,所述方法还包括:
    所述第一电子设备接收第三电子设备发送的所述传感器数据。
  12. 根据权利要求11所述的方法,其特征在于,所述传感器数据包括加速度数据、陀螺仪数据、图像数据、重力数据和压力数据中的一个或多个。
  13. 根据权利要求10-12任一项所述的方法,其特征在于,在所述第一电子设备确定所述第一运动模式后的第一时间内,所述第一电子设备暂停获取所述传感器数据。
  14. 根据权利要求13所述的方法,其特征在于,在所述第一电子设备暂停获取所述传感器数据后,所述第一电子设备监测到用户的心率大于预设心率值和/或用户的呼吸频率大于预设频率,所述第一电子设备继续获取所述传感器数据。
  15. 一种电子设备,其特征在于,所述电子设备包括:一个或多个处理器、一个或多个存储器;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行上述权利要求1-14中的任一项所述的方法。
  16. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1至14任一项所述的方法。
  17. 一种计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1至14任一项所述的方法。
PCT/CN2022/111414 2021-08-13 2022-08-10 一种呼吸指导方法及相关装置 WO2023016486A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22855466.3A EP4368265A1 (en) 2021-08-13 2022-08-10 Breathing guide method and related apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110931153.8A CN115703003A (zh) 2021-08-13 2021-08-13 一种呼吸指导方法及相关装置
CN202110931153.8 2021-08-13

Publications (1)

Publication Number Publication Date
WO2023016486A1 true WO2023016486A1 (zh) 2023-02-16

Family

ID=85180655

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/111414 WO2023016486A1 (zh) 2021-08-13 2022-08-10 一种呼吸指导方法及相关装置

Country Status (3)

Country Link
EP (1) EP4368265A1 (zh)
CN (1) CN115703003A (zh)
WO (1) WO2023016486A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104188680A (zh) * 2014-09-25 2014-12-10 中国人民解放军第三军医大学第二附属医院 带语音装置的放射摄影系统及其实现方法
CN109350070A (zh) * 2018-09-06 2019-02-19 闫维新 一种具备呼吸采集及提示功能的舞蹈动作捕捉系统
WO2019132771A1 (en) * 2017-12-30 2019-07-04 Kaha Pte. Ltd. Method and system for indicating a breathing pattern
CN112752675A (zh) * 2018-09-18 2021-05-04 戴姆勒股份公司 用于操作座椅系统的方法、座椅系统和运输工具
CN114588602A (zh) * 2022-03-14 2022-06-07 郑红艳 一种临床催生装置
WO2022116032A1 (en) * 2020-12-02 2022-06-09 Qualcomm Incorporated Respiratory feedback for improved exercise performance

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104188680A (zh) * 2014-09-25 2014-12-10 中国人民解放军第三军医大学第二附属医院 带语音装置的放射摄影系统及其实现方法
WO2019132771A1 (en) * 2017-12-30 2019-07-04 Kaha Pte. Ltd. Method and system for indicating a breathing pattern
CN109350070A (zh) * 2018-09-06 2019-02-19 闫维新 一种具备呼吸采集及提示功能的舞蹈动作捕捉系统
CN112752675A (zh) * 2018-09-18 2021-05-04 戴姆勒股份公司 用于操作座椅系统的方法、座椅系统和运输工具
WO2022116032A1 (en) * 2020-12-02 2022-06-09 Qualcomm Incorporated Respiratory feedback for improved exercise performance
CN114588602A (zh) * 2022-03-14 2022-06-07 郑红艳 一种临床催生装置

Also Published As

Publication number Publication date
EP4368265A1 (en) 2024-05-15
CN115703003A (zh) 2023-02-17

Similar Documents

Publication Publication Date Title
KR102258161B1 (ko) 호흡 시퀀스 사용자 인터페이스
US11967246B2 (en) Fluctuating progress indicator
US10726731B2 (en) Breathing synchronization and monitoring
US9314666B2 (en) System and method for identifying and interpreting repetitive motions
US20220061695A1 (en) Entrainment sonification techniques
TW200913960A (en) Exercise assisting devices
TW200920436A (en) Physiological biofeedback system and method providing improved breathing pattern through multi-media interactive feedback of the senses
US20180272189A1 (en) Apparatus and method for breathing and core muscle training
TWI729602B (zh) 頭戴式顯示系統及其影像產生方法
JP2019155084A (ja) 姿勢及び深呼吸改善装置、システム、並びに方法
EP4110262A1 (en) Infant feeding reinforcement system
GB2567678A (en) Device and method for guiding breathing of a user
US10905358B2 (en) Posture and deep breathing improvement device, system, and method
WO2023016486A1 (zh) 一种呼吸指导方法及相关装置
CN113599787B (zh) 一种呼吸训练方法和可穿戴设备
US10660545B2 (en) Posture and deep breathing improvement device, system, and method
JP2024504227A (ja) エクササイズパフォーマンスを向上させるための呼吸フィードバック
US20240207682A1 (en) Detecting Neuromuscular Signals at a Wearable Device to Facilitate Performance of Physical Activities, and Methods and Systems Thereof
KR20190125755A (ko) 기기 및 제어방법
US20230380793A1 (en) System and method for deep audio spectral processing for respiration rate and depth estimation using smart earbuds
CN115700130A (zh) 运动引导方法、用户界面及电子设备
WO2024137510A1 (en) Detecting neuromuscular signals at a wearable device to facilitate performance of physical activities, and methods and systems thereof
TW201642936A (zh) 運動訓練系統、運動訓練裝置及儲存媒體
CN118625921A (zh) 用于在人工现实环境中准确投掷对象的传感器及其系统和使用方法
CN115445170A (zh) 一种运动提醒方法以及相关设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22855466

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022855466

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022855466

Country of ref document: EP

Effective date: 20240207

NENP Non-entry into the national phase

Ref country code: DE