Method, apparatus, wearable device, and readable storage medium for processing physiological data
By collecting user's heart rate and exercise data, calculating emotional stress scores, and playing music or games when necessary, the problem of wearable devices being unable to monitor mental health is solved, and the adjustment of user's psychological state and the improvement of health prompts is achieved.
Patent Information
- Application Number
- CN202110938295.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-16
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2041-08-16
AI Technical Summary
Existing wearable devices cannot fully monitor the user's mental health status, resulting in poor health prompts.
By collecting the user's heart rate data and exercise status, using the heart rate data to calculate emotional stress scores, and when emotional instability is played, the user's emotions can be adjusted by playing music or opening a game to monitor and prompt mental health.
Improve the health prompt effect of wearable devices, allowing users to maintain a good mental health status.
Smart Images

Figure CN115702791B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of wearable devices, and in particular, to a method and apparatus for processing physiological data, a wearable device, and a readable storage medium. Background Art
[0002] A wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. A variety of sensors are integrated in the wearable device, and various powerful functions are realized through software support, data interaction, and cloud interaction.
[0003] In the prior art, a wearable device can measure various physiological data of a user through various types of sensors. For example, the heart rate of the user can be monitored in real time through a heart rate sensor, and the motion state of the user can be measured through a gyroscope and an acceleration sensor, etc. Based on the physiological data obtained by measuring the user, the wearable device can determine the current physiological state of the user and output a corresponding health reminder to the user.
[0004] However, this method in the prior art only simply compares the detected physiological data with standard physiological data, and determines whether the user is physiologically healthy according to the comparison result. It cannot determine whether the user's current mental state is healthy, resulting in an incomplete and comprehensive health reminder of the wearable device and a poor health reminder effect. Summary of the Invention
[0005] This application provides a method and apparatus for processing physiological data, a wearable device, and a readable storage medium, which are used to solve the problem of poor health reminder effect of existing wearable devices.
[0006] In a first aspect, an embodiment of this application provides a method for processing physiological data, which is applied to a wearable device and includes:
[0007] Obtain the physiological parameters of the user at the current moment, where the physiological parameters include heart rate data and motion data;
[0008] Determine the motion state of the user at the current moment according to the motion data;
[0009] If the motion state does not match the preset state, calculate an emotional stress score corresponding to the heart rate data according to the heart rate data, where the emotional stress score is used to characterize the quality of the user's current emotion;
[0010] Adjust the emotional stress score according to the emotional stress score and the preset stress value range.
[0011] In a second aspect, an embodiment of this application provides a device for processing physiological data, including:
[0012] An acquisition module, configured to acquire the physiological parameters of the user collected at the current moment, where the physiological parameters include heart rate data and motion data;
[0013] A determination module, configured to determine the motion state of the user at the current moment according to the motion data;
[0014] A calculation module, configured to calculate an emotional stress score corresponding to the heart rate data according to the heart rate data if the motion state does not match a preset state, where the emotional stress score is used to characterize the quality of the user's current emotion;
[0015] An execution module, configured to adjust the emotional stress score according to the emotional stress score and a preset stress value range.
[0016] In a third aspect, an embodiment of the present application provides a wearable device, including: a sensor component, a processor, and an output component, where the sensor component is connected to the processor, and the processor is connected to the output component;
[0017] The sensor component is configured to collect the physiological parameters of the user at the current moment;
[0018] The processor is configured to acquire the physiological parameters, determine the emotional stress score of the user, and control the output component to perform an operation of adjusting the emotional stress score according to the emotional stress score and a preset stress value range.
[0019] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored. Computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed by a processor, they are used to implement the method as described above.
[0020] In a fifth aspect, an embodiment of the present application provides a computer program product, including computer programs / instructions, and when the computer programs / instructions are executed by a processor, the above method is implemented.
[0021] The method, device, wearable device, and readable storage medium for processing physiological data provided by the embodiments of the present application collect the user's heart rate data and motion state, and based on the user's motion state, use the heart rate data to determine the user's current emotion. When the user's emotion is unstable, corresponding operations can be executed to timely adjust the user's emotion, so that the user can be in a better mental health state and improve the health prompting effect of the wearable device. Description of the Drawings
[0022] The drawings here are incorporated into the description and form a part of this description, showing embodiments consistent with the present application, and are used together with the description to explain the principles of the present application;
[0023] Figure 1 A schematic diagram of the scenario of the method for processing physiological data provided by an embodiment of the present application;
[0024] Figure 2 A schematic flowchart of the first embodiment of the method for processing physiological data provided by an embodiment of the present application;
[0025] Figure 3 A schematic flowchart of the second embodiment of the method for processing physiological data provided by an embodiment of the present application;
[0026] Figure 4 A schematic structural diagram of the device for processing physiological data provided by an embodiment of the present application;
[0027] Figure 5 A schematic structural diagram of the wearable device provided by an embodiment of the present application;
[0028] Through the above-mentioned drawings, the specific embodiments of the present application have been shown, and more detailed descriptions will be given later. These drawings and text descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed implementation manners
[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0030] Figure 1 A schematic diagram of the scenario of the method for processing physiological data provided by an embodiment of the present application, and the method for processing physiological data can be applicable to Figure 1 the wearable device in Figure 1 As shown in , the wearable device 11 may specifically be a smart bracelet, which includes a heart rate sensor, an acceleration sensor, a gyroscope, a music player, and a processor. When the user wears the wearable device, the heart rate sensor can collect the user's heart rate in real time, the acceleration sensor and the gyroscope can monitor the user's motion state, the music player can play music under the control of the processor, and the processor can process the physiological data of the user collected by each sensor and perform data interaction with the user's terminal device (such as a mobile phone).
[0031] Exemplarily, the wearable device 11 may further be provided with a game component, for example, including a game display interface, and the user can play games by clicking or touching the game display interface.
[0032] Exemplarily, the wearable device can also be a helmet, clothing, and so on.
[0033] In real life, the wearable device 11 can collect the user's physiological data through various sensors, and then interact with the user's device terminal (such as a mobile phone) through software support to display the user's current physiological data and the healthy standard level of this physiological data. In some wearable devices with a prompting function, such as those equipped with a vibration component, it can also vibrate through the vibration function to prompt the user that the current physiological data is in an abnormal state. Exemplarily, the physiological data can be the user's heart rate data, blood oxygen data, body fat data, and so on.
[0034] However, for such a wearable device in the prior art, on the one hand, the wearable device can only monitor the user's current physiological data and prompt whether the user's current physiological data is at the healthy standard level. However, in addition to physical health, the user's health status also includes mental health, etc. The wearable device cannot monitor the changes in the user's mental state, nor can it effectively prompt the user how to adjust mental abnormalities, lacking the function of monitoring and prompting the user's mental health.
[0035] In summary, there is no existing processing method for wearable devices that can monitor the user's physiological data and mental state and give appropriate health prompts when the user's mental state changes.
[0036] To address the above problems, the embodiments of the present application provide a processing method, device, wearable device, and readable storage medium for physiological data. By using the user's physiological data to determine the user's current emotional state, when the user's current emotion fluctuates, the wearable device can automatically play corresponding music or open games to adjust the user's emotion, enabling the user's emotion to be in a stable state, enabling the wearable device to have the function of monitoring the user's mental health, and improving the health prompting effect of the wearable device.
[0037] Next, the technical solutions of the present application will be described in detail through specific embodiments. It should be noted that these specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0038] Figure 2 FIG. is a schematic flowchart of the first embodiment of the processing method for physiological data provided by the embodiments of the present application. This processing method for physiological data can be applied to a wearable device, such as Figure 2 As shown, this processing method for physiological data specifically includes the following steps:
[0039] S201. Obtain the physiological parameters of the user collected at the current moment.
[0040] Among them, the physiological parameters include heart rate data and exercise data. Exemplarily, the physiological parameters can include the user's real-time heart rate data and exercise data. The wearable device can collect the user's pulse once every time period through a heart rate sensor to obtain the user's real-time heart rate. The wearable device can collect the user's movement speed and movement acceleration once every time period through an acceleration sensor and / or a gyroscope to obtain the user's exercise data.
[0041] Exemplarily, the physiological parameters collected at the current moment can interact with the user's terminal device (such as a mobile phone), and transmit the physiological parameters at the current moment to the user's terminal device. The user can view the changes in the physiological parameters at the current moment through the display interface of the terminal device.
[0042] Exemplarily, the wearable device can be equipped with a display interface to display the user's physiological parameters at the current moment in real time, such as displaying one or more of the user's current movement speed and heart rate data in real time.
[0043] S202. Determine the user's exercise state at the current moment according to the exercise data.
[0044] In the embodiment of the present application, the exercise data can include the user's movement speed and movement acceleration, etc. The exercise state can refer to that the user is currently in an exercise state or a non-exercise state. If the user's current movement speed and / or movement acceleration reach the set value, it is determined that the user is currently in an exercise state. If the user's current movement speed and / or movement acceleration do not reach the set value, it is determined that the user is currently in a non-exercise state.
[0045] Exemplarily, after the wearable device determines the user's exercise state at the current moment, it can make a secondary confirmation with the user through a voice component, such as outputting a voice prompt "It is determined that you are currently in an exercise state" for the user to complete the operation confirmation.
[0046] Exemplarily, the user can also preset an exercise time period in the wearable device. When within this time period, the user's movement speed and / or movement acceleration reach the device value, it is directly determined that the user is currently in an exercise state.
[0047] S203. If the exercise state does not match the preset state, calculate the emotional stress score corresponding to the heart rate data according to the heart rate data.
[0048] Among them, the emotional stress score is used to characterize the quality of the user's current emotion. When the emotional stress score is lower than a preset minimum stress value, it indicates that the user's current emotion is poor and there may be relatively high stress. When the emotional stress score is higher than a preset maximum stress value, it indicates that the user's current emotion is good and the stress is relatively light.
[0049] Exemplarily, the preset state can be the above-mentioned exercise state. If the user's current exercise state does not match the above-mentioned exercise state (that is, the user's current exercise state is a non-exercise state) at the current moment, then at this time, the emotional stress score of the user at the current moment can be determined according to the heart rate data.
[0050] In the embodiment of the present application, the calculation of the emotional stress score can be obtained by a preset algorithm formula or model, etc. Exemplarily, a large amount of sample data can be collected to train the model. The sample data can be the heart rate data corresponding to when the user is in a poor mood and the heart rate data corresponding to when the user is in a good mood. By inputting the user's current heart rate data into the trained model, the model calculates and outputs the user's current emotional stress score.
[0051] S204. Adjust the emotional stress score according to the emotional stress score and the preset stress value range.
[0052] In the embodiment of the present application, different users have different stress tolerance levels. The preset stress value range can be set by the user independently. For example, the user can set the interval [50, 80] as the preset stress value range.
[0053] Specifically, when the emotional stress score exceeds the preset stress value range, the wearable device correspondingly performs an operation to lower the user's emotional stress score. When the emotional stress score is lower than the preset stress value range, the wearable device correspondingly performs an operation to increase the user's emotional stress score.
[0054] Exemplarily, when the user's emotional stress score is low, the wearable device can play some soothing music through the music playback component to adjust the user's emotional stress score.
[0055] Exemplarily, the music can be set by the user in advance. For example, the user sets the music that the wearable device should play when the emotional stress score is low.
[0056] In the embodiment of the present application, by collecting the user's heart rate data and exercise state, and based on the user's exercise state, the heart rate data is used to determine the user's current emotion. When the user's emotion is unstable, corresponding operations can be performed to timely adjust the user's emotion, so that the user can be in a better mental health state and improve the health prompting effect of the wearable device.
[0057] In some embodiments, the above step S204 can be specifically implemented through the following steps:
[0058] If the emotional stress score is higher than the preset maximum stress value, then adjust the emotional stress score to decrease;
[0059] If the emotional stress score is lower than the preset minimum stress value, then adjust the emotional stress score to increase.
[0060] In the embodiments of the present application, the wearable device can adjust the user's emotional stress score to increase or decrease by performing different operations. Exemplarily, the wearable device can play some relatively calming music to adjust the user's emotional stress score to decrease, and the wearable device can provide some small games for the user to entertain to adjust the user's emotional stress score to increase.
[0061] In some embodiments, for "adjusting the emotional stress score" in the above step S204, it can be specifically implemented through the following steps:
[0062] Select music and / or games corresponding to the emotional stress score according to the preset corresponding relationship;
[0063] Control the music player of the wearable device to play the music corresponding to the emotional stress score and / or control the game component of the wearable device to open the game corresponding to the emotional stress score.
[0064] In the embodiments of the present application, the preset corresponding relationship can be set by the user in advance. Exemplarily, the user can set that when the emotional stress score is relatively low, the corresponding music is the music and / or games preferred by the user.
[0065] Specifically, the emotional stress score can be classified, specifically into two categories: relatively high emotion and relatively low emotion. When the user's emotion is relatively low, corresponding music and / or games can be selected according to the size of the emotional stress score using the preset corresponding relationship.
[0066] Exemplarily, the game component at least includes an operation interface and a display interface. The operation interface can be used by the user to perform operations, and the display interface can be used by the user to view the game content. Exemplarily, the operation interface and the display interface can be integrated together.
[0067] In some embodiments, if the motion data includes moving speed and / or moving acceleration, then the above step S202 can be specifically implemented through the following steps:
[0068] Compare the moving speed with the preset speed and / or compare the moving acceleration with the preset acceleration to obtain a comparison result;
[0069] Determine the user's motion state at the current moment according to the comparison result.
[0070] Specifically, when the user's current moving speed is greater than the preset speed and / or the moving acceleration is greater than the preset acceleration, it is determined that the user's current motion state is an exercise state. When the user's current moving speed is less than or equal to the preset speed and / or the moving acceleration is less than or equal to the preset acceleration, it is determined that the user's current motion state is a non-exercise state.
[0071] In some embodiments, after the above step S202, the above method for processing physiological data may further include the following steps:
[0072] If the motion state matches the preset state, compare the heart rate data with the preset heart rate threshold range to obtain a comparison result;
[0073] Output a prompt message corresponding to the comparison result.
[0074] Wherein, the prompt message is used to prompt the user's current heart rate change.
[0075] In the embodiments of the present application, the preset state refers to the user being in an exercise state. Exemplarily, the exercise state may refer to the user performing aerobic exercise or anaerobic exercise. When the user is in the exercise state, if the exercise amount is too large or too small and does not meet the normal standard (i.e., not within the preset heart rate threshold range), the wearable device may output a corresponding prompt message.
[0076] Exemplarily, if the user's heart rate data is less than the minimum value in the preset heart rate threshold range, a prompt message to increase the exercise amount may be output. If the user's heart rate data is greater than the maximum value in the preset heart rate threshold, a prompt message to reduce the exercise amount may be output.
[0077] Exemplarily, the prompt message may be at least one of a voice prompt, a vibration prompt, or a text prompt.
[0078] In the embodiments of the present application, by comparing the user's heart rate data with the preset heart rate threshold range and outputting a corresponding prompt message according to the comparison result, the heart rate data of the user in the exercise state can be monitored, and the user can be prompted for exercise, so that the wearable device has a better health prompting effect.
[0079] In some embodiments, after the above step S204, the above method for processing physiological data may further include the following steps:
[0080] When the user's emotional stress score is within the preset stress value range, stop adjusting the emotional stress score.
[0081] In an embodiment of the present application, the wearable device can calculate the user's emotional stress score in real time. When the wearable device adjusts the user's real-time emotional stress score to within a preset stress value range by playing music / or opening a game, the wearable device no longer adjusts the user's emotional stress score.
[0082] Exemplarily, the preset stress value range can be the emotional stress score range when the user's emotion is relatively stable.
[0083] In some embodiments, the above step S203 may specifically include the following steps:
[0084] Input the heart rate data into a preset stress index algorithm;
[0085] Using the preset stress index algorithm, calculate the emotional stress score corresponding to the heart rate data.
[0086] In an embodiment of the present application, the preset stress index algorithm may include an exponential function. Exemplarily, experimenters can collect heart rate data of multiple groups of users with relatively poor emotions and heart rate data of multiple groups of users with relatively good emotions, and obtain the preset stress index algorithm through statistical induction.
[0087] Figure 3 It is a schematic flowchart of the second embodiment of the method for processing physiological data provided by the embodiment of the present application. As Figure 3 shown, the method includes the following steps:
[0088] S301, PPG heart rate calculation.
[0089] Specifically, the heart rate sensor can use photoplethysmography (PPG) to measure and calculate the user's heart rate data in real time.
[0090] S302, Emotional stress score calculation.
[0091] Specifically, the user's real-time heart rate data can be input into a preset stress index algorithm, and the preset stress index algorithm can calculate and output the user's emotional stress score in real time.
[0092] S303, If the emotional stress score exceeds the preset stress range, play music.
[0093] Specifically, when the user's emotional stress score is too low or too high, the music player of the wearable device can automatically play the corresponding music. The user can pre-set the corresponding relationship between different emotional stress scores and music. Exemplarily, when the user's emotional stress score is relatively low, relatively soothing music can be played.
[0094] S304. When the user's emotional stress score is within the preset stress range, stop playing music.
[0095] Specifically, after the user listens to music, if the user's current emotional stress score returns to the normal preset stress range, automatically stop playing music, and then continue to monitor the user's heart rate data.
[0096] In the embodiment of the present application, by calculating the user's current emotional stress score based on the user's heart rate data, and automatically playing music to adjust the user's mood when the user's emotional stress score exceeds the preset threshold range, the wearable device can be made to have the function of adjusting the user's mental state, making the functions of the wearable device more diverse and improving the health reminder effect of the wearable device.
[0097] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For the details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0098] Figure 4 It is a schematic structural diagram of a processing device for physiological data provided by an embodiment of the present application. This processing device for physiological data can be integrated in a wearable device or can work independently of the wearable device and cooperate with a mobile terminal to implement the technical solution of the present application.
[0099] Exemplarily, as Figure 4 shown, the processing device 40 for physiological data includes an acquisition module 41, a determination module 42, a calculation module 43, and an execution module 44. Among them, the acquisition module 41 is used to acquire the physiological parameters of the user collected at the current moment. The determination module 42 is used to determine the user's exercise state at the current moment according to the exercise data. The calculation module 43 is used to calculate the emotional stress score corresponding to the heart rate data if the exercise state does not match the preset state. The execution module 44 is used to adjust the emotional stress score according to the emotional stress score and the preset stress value range.
[0100] Among them, the physiological parameters include heart rate data and exercise data, and the emotional stress score is used to characterize the quality of the user's current mood.
[0101] In some embodiments, the calculation module 43 can specifically be used for:
[0102] If the emotional stress score is higher than the preset maximum stress value, adjust the emotional stress score to decrease;
[0103] If the emotional stress score is lower than the preset minimum stress value, adjust the emotional stress score to increase.
[0104] In some embodiments, the calculation module 43 can specifically be used for:
[0105] Select music and / or games corresponding to the emotional stress score according to the preset correspondence;
[0106] Control the music player of the wearable device to play music corresponding to the emotional stress score and / or control the game component of the wearable device to open a game corresponding to the emotional stress score.
[0107] In some embodiments, if the motion data includes moving speed and / or moving acceleration, the determining module 42 may specifically be configured to:
[0108] Compare the moving speed with a preset speed and / or compare the moving acceleration with a preset acceleration to obtain a comparison result;
[0109] Determine the user's motion state at the current moment according to the comparison result.
[0110] In some embodiments, the processing device 40 for physiological data further includes a prompting module, which is used for:
[0111] If the motion state matches the preset state, compare the heart rate data with a preset heart rate threshold range to obtain a comparison result;
[0112] Output a prompt message corresponding to the comparison result.
[0113] Wherein, the prompt message is used to prompt the user's current heart rate change.
[0114] In some embodiments, the processing device 40 for physiological data further includes a control module, which is used for:
[0115] When the user's emotional stress score is within the preset stress value range, stop adjusting the emotional stress score.
[0116] In some embodiments, the calculation module 43 may specifically be configured to:
[0117] Input the heart rate data into a preset stress index algorithm;
[0118] Use the preset stress index algorithm to calculate the emotional stress score corresponding to the heart rate data.
[0119] The device provided by the embodiments of the present application can be used to execute the methods in the above embodiments, and its implementation principles and technical effects are similar, and will not be elaborated here.
[0120] It should be noted that the division of each module of the above device is only a division of logical functions. In actual implementation, it can be fully or partially integrated into a physical entity, or physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also all be implemented in hardware; or some modules can be implemented in the form of software called by processing elements, and some modules can be implemented in hardware. For example, the acquisition module can be a separately established processing element, or can be integrated in a certain chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and the function of the above acquisition module can be called and executed by a certain processing element of the above device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together or can be independently implemented. Here, the processing element can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed through the integrated logic circuit in the processor element or the instruction in the form of software.
[0121] For example, the above modules can be one or more integrated circuits configured to implement the above method, such as: one or more application specific integrated circuits (ASICs), or, one or more digital signal processors (DSPs), or, one or more field programmable gate arrays (FPGAs), etc. Again, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. Again, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0122] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that the computer can access or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.
[0123] Figure 5 The structure diagram of the wearable device provided by the embodiment of the present application is as follows Figure 5 As shown, the wearable device 50 at least includes a sensor component 51, a processor 52, and an output component 53. The sensor component 51 is connected to the processor 52, and the processor 52 is connected to the output component 53.
[0124] Among them, the sensor component 51 is used to collect the physiological parameters of the user at the current moment. The processor 52 is used to obtain the physiological parameters, determine the user's emotional stress score, and control the output component 53 to perform an operation of adjusting the emotional stress score according to the emotional stress score and the preset stress value range.
[0125] Exemplarily, in some embodiments, the output component 53 may specifically include a music player and / or a game component.
[0126] Among them, the music player can play corresponding music under the control of the processor 52, and the game component can display corresponding games for the user to entertain under the control of the processor 52.
[0127] Exemplarily, in some embodiments, the sensor component 51 may specifically include a heart rate sensor, an acceleration sensor, and a gyroscope.
[0128] Among them, the heart rate sensor can measure and calculate the user's heart rate data in real time, and the acceleration sensor and the gyroscope can obtain the user's motion data in real time, specifically including the user's moving speed and moving acceleration.
[0129] Optionally, an embodiment of the present application further provides a readable storage medium, on which a computer program is stored. Computer instructions are stored in the readable storage medium, and when the computer instructions are executed by a processor, they are used to implement the method as described above.
[0130] Optionally, an embodiment of the present application further provides a computer program product, including a computer program / instructions, and when the computer program / instructions are executed by a processor, the above method is implemented.
[0131] In the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after; in a formula, the character " / " represents a "division" relationship between the associated objects before and after. "At least one (item)" or its similar expression refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, or c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, c can be single or multiple.
[0132] It can be understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. In the embodiments of the present application, the magnitudes of the serial numbers of the above processes do not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0133] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for processing physiological data, characterized in that, The method is for non-therapeutic purposes and is applied to a wearable device, including: Obtaining the physiological parameters of the user collected at the current moment, where the physiological parameters include heart rate data and motion data; Determining the motion state of the user at the current moment according to the motion data; If the motion state does not match the preset state, then according to the heart rate data, calculating an emotional stress score corresponding to the heart rate data, where the emotional stress score is used to characterize the quality of the user's current mood; Adjusting the emotional stress score according to the emotional stress score and the preset stress value range, where The calculating an emotional stress score corresponding to the heart rate data according to the heart rate data includes: Inputting the heart rate data into a preset stress index algorithm; Using the preset stress index algorithm to calculate an emotional stress score corresponding to the heart rate data, and the preset stress index algorithm includes an exponential function.
2. The method according to claim 1, characterized in that, The adjusting the emotional stress score according to the emotional stress score and the preset stress value range includes: If the emotional stress score is higher than the preset maximum stress value, then adjusting the emotional stress score to decrease; If the emotional stress score is lower than the preset minimum stress value, then adjusting the emotional stress score to increase.
3. The method according to claim 1 or 2, characterized in that, The adjusting the emotional stress score includes: Selecting music and / or games corresponding to the emotional stress score according to a preset correspondence; Controlling the music player of the wearable device to play music corresponding to the emotional stress score and / or controlling the game component of the wearable device to open games corresponding to the emotional stress score.
4. The method according to claim 1, characterized in that, The motion data includes moving speed and / or moving acceleration, and the determining the motion state of the user at the current moment according to the motion data includes: Comparing the moving speed with a preset speed and / or comparing the moving acceleration with a preset acceleration to obtain a comparison result; Determining the motion state of the user at the current moment according to the comparison result.
5. The method according to claim 1, wherein After the determining the motion state of the user at the current moment according to the motion data, the method further includes: If the motion state matches the preset state, then comparing the heart rate data with a preset heart rate threshold range to obtain a comparison result; Outputting a prompt message corresponding to the comparison result, where the prompt message is used to prompt the user's current heart rate change.
6. The method according to claim 1, wherein After the adjusting the emotional stress score according to the current emotional stress score and the preset stress value range, the method further includes: When the user's emotional stress score is within the preset stress value range, stopping adjusting the emotional stress score.
7. A processing device for physiological data, characterized in that Including: An acquisition module, configured to acquire the physiological parameters of the user collected at the current moment, where the physiological parameters include heart rate data and motion data; A determination module, configured to determine the motion state of the user at the current moment according to the motion data; A calculation module, configured to calculate an emotional stress score corresponding to the heart rate data according to the heart rate data if the motion state does not match a preset state, where the emotional stress score is used to characterize the quality of the user's current emotion. Among them, calculating the emotional stress score corresponding to the heart rate data according to the heart rate data includes: inputting the heart rate data into a preset stress index algorithm; using the preset stress index algorithm to calculate the emotional stress score corresponding to the heart rate data, and the preset stress index algorithm includes an exponential function. An execution module, configured to adjust the emotional stress score according to the emotional stress score and a preset stress value range.
8. The processing device for physiological data according to claim 7, characterized in that, Regarding adjusting the emotional stress score according to the emotional stress score and a preset stress value range, the calculation module is further configured to: If the emotional stress score is higher than a preset maximum stress value, adjust the emotional stress score to decrease; If the emotional stress score is lower than a preset minimum stress value, adjust the emotional stress score to increase.
9. The processing device for physiological data according to claim 7 or 8, characterized in that, Regarding adjusting the emotional stress score, the calculation module is further configured to: Select music and / or games corresponding to the emotional stress score according to a preset correspondence; Control the music player of the wearable device to play music corresponding to the emotional stress score and / or control the game component of the wearable device to open games corresponding to the emotional stress score.
10. The processing device for physiological data according to claim 7, wherein, The motion data includes moving speed and / or moving acceleration. Regarding determining the motion state of the user at the current moment according to the motion data, the determination module is further configured to: Compare the moving speed with a preset speed and / or compare the moving acceleration with a preset acceleration to obtain a comparison result; Determine the motion state of the user at the current moment according to the comparison result.
11. The processing device for physiological data according to claim 7, characterized in that, The processing device for physiological data further includes a prompting module. After determining the motion state of the user at the current moment according to the motion data, the prompting module is configured to: If the motion state matches a preset state, compare the heart rate data with a preset heart rate threshold range to obtain a comparison result; Output a prompt message corresponding to the comparison result, where the prompt message is used to prompt the user's current heart rate change.
12. The processing device for physiological data according to claim 7, characterized in that, The processing device for physiological data further includes a control module. After adjusting the emotional stress score according to the emotional stress score and a preset stress value range, the control module is configured to: When the user's emotional stress score is within the preset stress value range, stop adjusting the emotional stress score.
13. A wearable device, characterized in that, It includes: A sensor component, a processor, and an output component. The sensor component is connected to the processor, and the processor is connected to the output component; The sensor component is configured to collect physiological parameters of the user at the current moment; The processor is configured to obtain the physiological parameters, determine the user's emotional stress score, and control the output component to perform an operation of adjusting the emotional stress score according to the emotional stress score and a preset stress value range. Among them, The physiological parameters include heart rate data and motion data; The determination of the user's emotional stress score includes: determining the user's exercise state at the current moment according to the exercise data; if the exercise state does not match the preset state, calculating the emotional stress score corresponding to the heart rate data according to the heart rate data, and the emotional stress score is used to characterize the quality of the user's current emotion; wherein, The calculating the emotional stress score corresponding to the heart rate data according to the heart rate data includes: inputting the heart rate data into a preset stress index algorithm; using the preset stress index algorithm to calculate the emotional stress score corresponding to the heart rate data, and the preset stress index algorithm includes an exponential function.
14. The device according to claim 13, wherein, The output component includes a music player and / or a game component.
15. The device according to claim 14, wherein, The controlling the output component to perform an operation of adjusting the emotional stress score according to the emotional stress score and a preset stress value range includes: If the emotional stress score is higher than the preset maximum stress value, adjusting the emotional stress score to decrease; If the emotional stress score is lower than the preset minimum stress value, adjusting the emotional stress score to increase.
16. The device according to claim 15, characterized in that, The controlling the output component to perform an operation of adjusting the emotional stress score includes: Selecting music and / or a game corresponding to the emotional stress score according to a preset correspondence; Controlling the music player of the wearable device to play the music corresponding to the emotional stress score and / or controlling the game component of the wearable device to open the game corresponding to the emotional stress score.
17. The device according to claim 13, characterized in that, The sensor component includes a heart rate sensor, an acceleration sensor, and a gyroscope.
18. The device according to claim 17, wherein The exercise data includes a moving speed and / or a moving acceleration, and the moving speed and / or the moving acceleration are collected by the acceleration sensor and the gyroscope. The determining the user's exercise state at the current moment according to the exercise data includes: Comparing the moving speed with a preset speed and / or comparing the moving acceleration with a preset acceleration to obtain a comparison result; Determining the user's exercise state at the current moment according to the comparison result.
19. The device according to claim 13, characterized in that, After determining the user's exercise state at the current moment according to the exercise data, the processor is further configured to: If the exercise state matches the preset state, comparing the heart rate data with a preset heart rate threshold range to obtain a comparison result; Outputting a prompt message corresponding to the comparison result, and the prompt message is used to prompt the user's current heart rate change.
20. The device according to claim 13, characterized in that, After controlling the output component to perform an operation of adjusting the emotional stress score according to the emotional stress score and a preset stress value range, the processor is further configured to: When the user's emotional stress score is within the preset stress value range, stopping adjusting the emotional stress score.
21. A readable storage medium having a computer program stored thereon, characterized in that, The readable storage medium stores computer instructions, and when the computer instructions are executed by the processor, they are used to implement the method according to any one of claims 1-6.
22. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the method according to any one of claims 1-6.
Citation Information
Patent Citations
Music rhythm control terminal and method adaptive to user emotion
CN106599057A