CN114795163A - Human body state detection method and device, terminal equipment and storage medium - Google Patents

Human body state detection method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN114795163A
CN114795163A CN202210445540.5A CN202210445540A CN114795163A CN 114795163 A CN114795163 A CN 114795163A CN 202210445540 A CN202210445540 A CN 202210445540A CN 114795163 A CN114795163 A CN 114795163A
Authority
CN
China
Prior art keywords
heart rate
state
human body
sleep
user
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210445540.5A
Other languages
Chinese (zh)
Inventor
刘凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202210445540.5A priority Critical patent/CN114795163A/en
Publication of CN114795163A publication Critical patent/CN114795163A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation

Abstract

The invention discloses a human body state detection method, a human body state detection device, terminal equipment and a storage medium, wherein heart rate data of a user are acquired; detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value; and adjusting the environment state of the user according to the human body state. Confirm the human state domain through rest rhythm of the heart benchmark value, motion rhythm of the heart highest value and sleep rhythm of the heart lowest value, compare the user's that will acquire rhythm of the heart data and human state domain, make accurate judgement to the human state that the user was located to satisfy people to the requirement of comfortable life, improve human comfort level.

Description

Human body state detection method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the technical field of monitoring human body states, and in particular, to a human body state detection method, apparatus, terminal device, and storage medium.
Background
In daily life, because everyone's health quality and life habit are different, also inequality to the stress response ability of environment, judge the human body state and help combining the human state to adjust the environmental condition of locating, especially the system design of current intelligent house class changes the environmental condition according to the human state who judges, can the dynamic demand people to comfortable life's requirement, improves human comfort level.
Therefore, it is necessary to provide a solution for detecting the human body status.
Disclosure of Invention
The invention mainly aims to provide a human body state detection method, a human body state detection device, a terminal device and a storage medium, and aims to meet the requirement of people on comfortable life and improve the comfort of human bodies.
In order to achieve the above object, the present invention provides a human body state detection method, which is applied to wearable equipment, and comprises the following steps:
acquiring heart rate data of a user;
detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value;
and adjusting the environment state of the user according to the human body state.
Optionally, the step of detecting the human body state of the user according to the heart rate data based on the predetermined human body state domain further includes:
acquiring the rest heart rate reference value, the exercise heart rate maximum value and the sleep heart rate minimum value;
calculating a sports heart rate threshold value according to the resting heart rate reference value and the sports heart rate maximum value, and determining a sports state domain according to the sports heart rate threshold value and the sports heart rate maximum value;
calculating a sleep heart rate threshold value according to the rest heart rate reference value and the sleep heart rate minimum value, and determining a sleep state domain according to the sleep heart rate threshold value and the sleep heart rate minimum value;
and determining a rest state domain according to the exercise heart rate threshold and the sleep heart rate threshold, wherein the human body state domain comprises the sleep state domain, the rest state domain and the exercise state domain.
Optionally, the step of detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain includes:
judging a human body state domain where the heart rate data is located;
if the heart rate data is in the sleep state domain, judging that the user is in a sleep state;
if the heart rate data is in the resting state domain, judging that the user is in a resting state;
and if the heart rate data is in the motion state domain, judging that the user is in a motion state.
Optionally, if the heart rate data is in the sleep state domain, the step of determining that the user is in the sleep state further includes:
acquiring a sleep heart rate data set of the user within a preset sleep monitoring time;
calculating a sleep heart rate data mean value according to the sleep heart rate data set;
and if the average value of the sleep heart rate data is smaller than the sleep heart rate threshold, returning to the step of acquiring the sleep heart rate data set of the user within the preset sleep monitoring time and the subsequent steps until the execution times reach the sleep monitoring threshold, and outputting that the user is in a sleep state.
Optionally, if the heart rate data is in the exercise state domain, the step of determining that the user is in the exercise state further includes:
acquiring a exercise heart rate data set of the user within a preset exercise monitoring time;
calculating a mean value of exercise heart rate data according to the exercise heart rate data set;
and if the average value of the exercise heart rate data is larger than the exercise heart rate threshold value, returning to the step of acquiring the exercise heart rate data set of the user within the preset exercise monitoring time and the subsequent steps until the execution times reach the exercise monitoring threshold value, and outputting that the user is in an exercise state.
Optionally, if the heart rate data is in the resting state domain, the step of determining that the user is in the resting state further includes:
the method comprises the steps that rest heart rate data of a user are obtained at intervals of preset rest monitoring time;
calculating a heart rate offset according to the resting heart rate data and a resting heart rate reference value, and judging whether the state of the user is changed or not according to the heart rate offset;
and if the state of the user is changed, adjusting the preset rest monitoring time and returning to the step of acquiring the heart rate data of the user and the subsequent steps until the human body state of the user is determined.
Optionally, the step of adjusting the environmental state of the user according to the human body state includes:
judging the human body state of the user;
if the human body state of the user is a motion state, sending a preset motion state instruction to intelligent equipment, wherein the intelligent equipment comprises one or more of an air conditioner, a fresh air system, a player, an alarm clock, a lighting system and a water dispenser, and the motion state instruction comprises one or more of motion temperature, motion wind power, motion wind speed, moisture supplement reminding, beverage type and beverage quantity;
and if the human body state of the user is a sleep state, sending a preset sleep state instruction to the intelligent equipment, wherein the sleep state instruction comprises one or more of sleep temperature, sleep wind power, sleep wind speed, light brightness and awakening time.
In addition, to achieve the above object, the present invention also provides a human body state detection device, including:
the acquisition module is used for acquiring heart rate data of a user;
the judgment module is used for detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value;
and the adjusting module is used for adjusting the environment state of the user according to the human body state.
In addition, in order to achieve the above object, the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a human body state detection program stored in the memory and operable on the processor, and the human body state detection program, when executed by the processor, implements the steps of the human body state detection method as described above.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a human body state detection program which, when executed by a processor, implements the steps of the human body state detection method as described above.
According to the human body state detection method, the human body state detection device, the terminal equipment and the storage medium, the heart rate data of a user are acquired; and detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value. The human body state domain is determined through the resting heart rate reference value, the exercise heart rate maximum value and the sleep heart rate minimum value, the acquired heart rate data of the user are compared with the human body state domain, and therefore the human body state where the user is located is accurately judged.
Drawings
FIG. 1 is a schematic diagram of functional modules of a terminal device to which a human body state detection apparatus of the present invention belongs;
FIG. 2 is a flowchart illustrating a human body status detection method according to an exemplary embodiment of the present invention;
FIG. 3 is a flowchart illustrating a human body status detection method according to another exemplary embodiment of the present invention;
FIG. 4 is a flowchart illustrating the step S20 in the embodiment of FIG. 2;
FIG. 5 is a schematic diagram illustrating sleep state heart rate acquisition according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of exercise state heart rate acquisition according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of human body states corresponding to different heart rates in the embodiment of the present invention;
fig. 8 is a schematic flow chart of adaptively adjusting a home environment according to different states of a human body in the embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: by acquiring heart rate data of a user; and detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value. The human body state domain is determined through the resting heart rate reference value, the exercise heart rate maximum value and the sleep heart rate minimum value, the acquired heart rate data of the user are compared with the human body state domain, and therefore the human body state where the user is located is accurately judged.
Specifically, referring to fig. 1, fig. 1 is a functional module schematic diagram of a terminal device to which the human body state detection apparatus of the present invention belongs. The human body state detection device can be a device which is independent of the terminal equipment and can detect the human body state, and the human body state detection device can be borne on the terminal equipment in a hardware or software mode. The terminal device can be an intelligent mobile terminal with a data processing function, such as a mobile phone and a tablet personal computer, and can also be a fixed terminal device or a server with a data processing function.
In this embodiment, the terminal device to which the human body status detecting apparatus belongs at least includes an output module 110, a processor 120, a memory 130 and a communication module 140.
The memory 130 stores an operating system and a human body state detection program, and the human body state detection device can store the acquired heart rate data of the user, a predetermined human body state domain, the human body state of the user judged according to the heart rate data, a resting heart rate reference value, a highest exercise heart rate value, a lowest sleep heart rate value and other information in the memory 130; the output module 110 may be a display screen or the like. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein, the human body state detection program in the memory 130 realizes the following steps when being executed by the processor:
acquiring heart rate data of a user;
detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value;
and adjusting the environment state of the user according to the human body state.
Further, the human body state detection program in the memory 130 when executed by the processor further implements the steps of:
acquiring the rest heart rate reference value, the exercise heart rate maximum value and the sleep heart rate minimum value;
calculating a sports heart rate threshold value according to the resting heart rate reference value and the sports heart rate maximum value, and determining a sports state domain according to the sports heart rate threshold value and the sports heart rate maximum value;
calculating a sleep heart rate threshold value according to the rest heart rate reference value and the sleep heart rate minimum value, and determining a sleep state domain according to the sleep heart rate threshold value and the sleep heart rate minimum value;
and determining a rest state domain according to the exercise heart rate threshold and the sleep heart rate threshold, wherein the human body state domain comprises the sleep state domain, the rest state domain and the exercise state domain.
Further, the human body state detection program in the memory 130 when executed by the processor further implements the steps of:
judging a human body state domain where the heart rate data is located;
if the heart rate data is in the sleep state domain, judging that the user is in a sleep state;
if the heart rate data is in the resting state domain, judging that the user is in a resting state;
and if the heart rate data is in the motion state domain, judging that the user is in a motion state.
Further, the human body state detection program in the memory 130 when executed by the processor further implements the steps of:
acquiring a sleep heart rate data set of the user within a preset sleep monitoring time;
calculating a sleep heart rate data mean value according to the sleep heart rate data set;
and if the average value of the sleep heart rate data is smaller than the sleep heart rate threshold, returning to the step of acquiring the sleep heart rate data set of the user within the preset sleep monitoring time and the subsequent steps until the execution times reach the sleep monitoring threshold, and outputting that the user is in a sleep state.
Further, the human body state detection program in the memory 130 when executed by the processor further implements the steps of:
acquiring a exercise heart rate data set of the user within a preset exercise monitoring time;
calculating a mean value of exercise heart rate data according to the exercise heart rate data set;
and if the average value of the exercise heart rate data is larger than the exercise heart rate threshold value, returning to the step of acquiring the exercise heart rate data set of the user within the preset exercise monitoring time and the subsequent steps until the execution times reach the exercise monitoring threshold value, and outputting that the user is in an exercise state.
Further, the human body state detection program in the memory 130 when executed by the processor further implements the steps of:
the method comprises the steps that rest heart rate data of a user are obtained at intervals of preset rest monitoring time;
calculating a heart rate offset according to the resting heart rate data and a resting heart rate reference value, and judging whether the state of the user is changed or not according to the heart rate offset;
and if the state of the user is changed, adjusting the preset rest monitoring time and returning to the step of acquiring the heart rate data of the user and the subsequent steps until the human body state of the user is determined.
Further, the human body state detection program in the memory 130 when executed by the processor further implements the steps of:
judging the human body state of the user;
if the human body state of the user is a motion state, sending a preset motion state instruction to intelligent equipment, wherein the intelligent equipment comprises one or more of an air conditioner, a fresh air system, a player, an alarm clock, a lighting system and a water dispenser, and the motion state instruction comprises one or more of motion temperature, motion wind power, motion wind speed, moisture supplement reminding, beverage type and beverage quantity;
and if the human body state of the user is a sleep state, sending a preset sleep state instruction to the intelligent equipment, wherein the sleep state instruction comprises one or more of sleep temperature, sleep wind power, sleep wind speed, light brightness and awakening time.
According to the scheme, the heart rate data of the user are acquired; and detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value. The human body state domain is determined through the resting heart rate reference value, the exercise heart rate maximum value and the sleep heart rate minimum value, the acquired heart rate data of the user are compared with the human body state domain, and therefore the human body state where the user is located is accurately judged.
Based on the above terminal device architecture but not limited to the above architecture, embodiments of the method of the present invention are presented.
The execution subject of the method of the present embodiment may be a human body state detection device or a terminal device, and the human body state detection device is used for example in the present embodiment.
Referring to fig. 2, fig. 2 is a flowchart illustrating a human body status detection method according to an exemplary embodiment of the present invention. The human body state detection method comprises the following steps:
step S10, heart rate data of the user are obtained;
in daily life, the stress response capability to the environment is different due to different physical qualities and living habits of each person, and different states of the human body can be reflected by heart rate data. Before obtaining the current heart rate data of the user, detecting the heart rate data of the user through a heart rate detection sensor, wherein the heart rate detection sensor is connected with the wearable device.
Specifically, in the embodiment of the invention, the heart rate detection sensor is additionally arranged in the human body wearable device to obtain the heart rate data of the user. When a human body is in a sleep state, the metabolism speed is reduced, and the heart rate is low. When the human body is in a motion state, the metabolism speed is accelerated, and the heart rate is higher. The heart rate detection sensor detects the current heart rate of a human body, the detected heart rate is converted into an electric signal and is transmitted to the processor of the wearable device through AD conversion, and therefore the human state of a user can be judged.
Step S20, detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value;
furthermore, before human body state detection is carried out, a human body state domain of a current user needs to be determined, the human body state domain mainly comprises a sleep state domain, a rest state domain and a motion state domain, and the human body state domain is obtained by calculation according to a collected rest heart rate reference value, a highest motion heart rate value and a lowest sleep heart rate value. After the human body state domain of the current user is established, the human body state where the user is located can be judged according to the acquired heart rate data of the user, and then the current environment state is combined for adjustment, so that the environment where the user is located and the human body state are more suitable, if the motion state is judged to exceed the human body load of the user, the user can be reminded to take a rest, and if the user is judged to be in a sleep state, intelligent equipment which determines factors such as temperature, illumination, volume and the like in the current environment can be adjusted, so that the comfort level of the user is improved.
And step S30, adjusting the environment state of the user according to the human body state.
Judging the human body state of the user;
if the human body state of the user is a motion state, sending a preset motion state instruction to intelligent equipment, wherein the intelligent equipment comprises one or more of an air conditioner, a fresh air system, a player, an alarm clock, a lighting system and a water dispenser, and the motion state instruction comprises one or more of motion temperature, motion wind power, motion wind speed, moisture supplement reminding, beverage type and beverage quantity;
and if the human body state of the user is a sleep state, sending a preset sleep state instruction to the intelligent equipment, wherein the sleep state instruction comprises one or more of sleep temperature, sleep wind power, sleep wind speed, light brightness and awakening time.
Specifically, if the wearing interface gives a motion state, the intelligent home control system plays motion music and videos by adjusting an air conditioner and a fresh air system, sets an alarm to remind for supplementing water, presets proper beverage types and quantity according to the current state of a human body, and then monitors the change of the state of the human body after the household environment is adjusted in real time to finely adjust the environment;
if the wearing interface gives the sleep state, the intelligent home control system can adjust the air conditioner, the fresh air system, the light brightness, the preset alarm clock and the like through the sleep state, creates an environment state more suitable for sleeping, monitors the change of the human body state after the household environment is adjusted in real time, and finely adjusts the environment.
In the embodiment, the heart rate data of the user is acquired; and detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value. The human body state domain is determined through the resting heart rate reference value, the exercise heart rate maximum value and the sleep heart rate minimum value, the acquired heart rate data of the user are compared with the human body state domain, and therefore the human body state where the user is located is accurately judged.
Referring to fig. 3, fig. 3 is a flowchart illustrating a human body status detection method according to another exemplary embodiment of the present invention. Based on the embodiment shown in fig. 2, in this embodiment, before the step of detecting the human body state of the user according to the heart rate data based on the predetermined human body state domain, the human body state detection method further includes:
step S01, acquiring the rest heart rate reference value, the exercise heart rate maximum value and the sleep heart rate minimum value;
when the user uses wearable equipment, the intelligent home server can set the wearable equipment, and the heart rate value acquired when the user is in a resting state is taken as a resting heart rate reference value P 0 Taking the heart rate maximum value collected when the user is in the exercise state as the exercise heart rate maximum value P max Taking the lowest value of the heart rate collected when the user is in the sleep state as the lowest value P of the sleep heart rate min Because different people's rest heart rate can be different, the human body also can be different at rest heart rate under the environment of difference, so all need recalibrate when wearing or the environment changes at every turn.
Step S02, calculating a sports heart rate threshold value according to the resting heart rate reference value and the sports heart rate maximum value, and determining a sports state domain according to the sports heart rate threshold value and the sports heart rate maximum value;
further, a resting heart rate reference value P is determined 0 With the highest value P of the exercise heart rate max Then, the exercise heart rate value P can be calculated according to the resting heart rate reference value and the exercise rate maximum value 1 Namely:
P 1 =P 0 +(P max -P 0 )*α
where α is the heart rate intensity coefficient, in the embodiment of the present invention, α is set to 80%, that is, a heart rate higher than 80% of the maximum heart rate is considered to be in the exercise state, and a heart rate lower than 80% of the resting heart rate is considered to be in the sleep state.
Calculating exercise heart rate threshold P 1 After that, the process is carried outAccording to exercise heart rate threshold P 1 With the highest value P of the exercise heart rate max A motion state field is determined.
Step S03, calculating a sleep heart rate threshold value according to the resting heart rate reference value and the sleep heart rate minimum value, and determining a sleep state domain according to the sleep heart rate threshold value and the sleep heart rate minimum value;
determining resting heart rate reference value P 0 With the lowest value P of the sleep heart rate min Then, the heart rate can be measured according to the resting heart rate reference value P 0 And a sleep heart rate threshold value P min Calculating a sleep heart rate threshold P 2 Namely:
P 2 =P 0 -(P 0 -P min )*α
where α is the heart rate intensity coefficient, in the embodiment of the present invention, α is set to 80%, that is, a heart rate higher than 80% of the maximum heart rate is considered to be in the exercise state, and a heart rate lower than 80% of the resting heart rate is considered to be in the sleep state.
Calculating a sleep heart rate threshold P 2 Then, according to the sleep heart rate threshold value P 2 With the lowest value P of the sleep heart rate min A sleep state domain is determined.
Step S04, determining a resting state domain according to the exercise heart rate threshold and the sleep heart rate threshold, wherein the human body state domain comprises the sleep state domain, the resting state domain and the exercise state domain.
Calculating exercise heart rate threshold P 1 And a sleep heart rate threshold value P 2 Then, the heart rate can be measured according to the exercise heart rate threshold value P 1 And a sleep heart rate threshold value P 2 The resting state domain comprises a resting heart rate reference value, the sleeping state domain, the resting state domain and the motion state domain form a human body state domain, and the detected current heart rate data of the user is compared with boundary values of the sleeping state domain, the resting state domain and the motion state domain, so that the human body state of the user can be rapidly judged.
According to the scheme, the resting heart rate reference value, the exercise heart rate maximum value and the sleep heart rate minimum value are obtained; calculating a sports heart rate threshold value according to the resting heart rate reference value and the sports heart rate maximum value, and determining a sports state domain according to the sports heart rate threshold value and the sports heart rate maximum value; calculating a sleep heart rate threshold value according to the rest heart rate reference value and the sleep heart rate minimum value, and determining a sleep state domain according to the sleep heart rate threshold value and the sleep heart rate minimum value; and determining a rest state domain according to the exercise heart rate threshold and the sleep heart rate threshold, wherein the human body state domain comprises the sleep state domain, the rest state domain and the exercise state domain. The human body state domain is formed by the sleep state domain, the rest state domain and the motion state domain, and the detected current heart rate data of the user is compared with boundary values of the sleep state domain, the rest state domain and the motion state domain, so that the human body state of the user can be rapidly judged.
Referring to fig. 4, fig. 4 is a detailed flowchart illustrating step S20 in the embodiment of fig. 2. This embodiment is based on the embodiment shown in fig. 2, and in this embodiment, the step S20 includes:
step S201, judging a human body state domain where the heart rate data is located;
after the current heart rate data of the user is acquired, comparing the heart rate data with a boundary threshold value of a sleep state domain, a rest state domain or a motion state domain, namely judging the range of the heart rate data, if the heart rate data is between the lowest value of the sleep heart rate and the sleep heart rate threshold value, the heart rate data is in the sleep state domain, if the heart rate data is between the sleep heart rate threshold value and the motion heart rate threshold value, the heart rate data is in the rest state domain, and if the heart rate data is between the motion heart rate threshold value and the highest value of the motion heart rate, the heart rate data is in the motion state domain.
Step S202, if the heart rate data is in the sleep state domain, determining that the user is in a sleep state;
if heart rate data is in the sleep state domain, then tentatively judge that the user is in the sleep state, can further collect user's heart rate data and carry out accurate judgement to the human state that the user is located, specifically include:
acquiring a sleep heart rate data set of the user within a preset sleep monitoring time;
calculating a sleep heart rate data mean value according to the sleep heart rate data set;
and if the average value of the sleep heart rate data is smaller than the sleep heart rate threshold, returning to the step of acquiring the sleep heart rate data set of the user within the preset sleep monitoring time and the subsequent steps until the execution times reach the sleep monitoring threshold, and outputting that the user is in a sleep state.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating a sleep state heart rate acquisition in an embodiment of the present invention, as shown in fig. 5, when a human body is in a sleep state, heart rate data is low, in the embodiment of the present invention, a preset sleep monitoring time is 10 seconds, that is, heart rate data is acquired every 1 second, a sleep heart rate data set of a user is obtained after 10 times of acquisition, and then a current sleep heart rate data mean value P is calculated 2 ', i.e.:
Figure BDA0003616651400000111
wherein x is the heart rate detected every second, and the average value of the current sleep heart rate data and the sleep heart rate threshold value P 2 Comparing, if the average value of the current sleep heart rate data is less than the sleep heart rate threshold value P 2 If the user is in the sleep state at the moment, the wearable device can continuously acquire the current sleep heart rate data mean value of the next time period as a new P 2 ', then with a sleep heart rate threshold P 2 For comparison, the next time period continues to do so. When the time of judging the sleep state exceeds a certain time period, the wearable device judges that the human body enters a deep sleep state, and the wearable device gives a state. When the time of judging the sleep state does not exceed a certain time period, the wearable device does not act at the moment.
Step S203, if the heart rate data is in the resting state domain, determining that the user is in a resting state;
if heart rate data is in the state of rest domain, then tentatively judge that the user is in the state of rest, can further collect user's heart rate data and carry out accurate judgement to the human state that the user was located, specifically include:
the method comprises the steps that rest heart rate data of a user are obtained at intervals of preset rest monitoring time;
calculating a heart rate offset according to the resting heart rate data and a resting heart rate reference value, and judging whether the state of the user is changed or not according to the heart rate offset;
and if the state of the user is changed, adjusting the preset rest monitoring time and returning to the step of acquiring the heart rate data of the user and the subsequent steps until the human body state of the user is determined.
As one of the embodiments, when the user is in a resting state, the heart rate detection sensor detects the heart rate every ten minutes to save electric power. Once the heart rate value is found to be abnormal (higher or lower), that is, the current state may change, the heart rate detection sensor detects the heart rate every two minutes, and the current heart rate value is obtained more accurately with quick response. Where the heart rate offset | P-P 0 |>If (oa can take 10), then the heart rate detection sensor responds quickly.
And step S204, if the heart rate data is in the motion state domain, determining that the user is in a motion state.
If heart rate data is in the motion state field, then tentatively judge that the user is in the motion state, can further collect user's heart rate data and carry out accurate judgement to the human state that the user was located, specifically include:
acquiring a exercise heart rate data set of the user within a preset exercise monitoring time;
calculating a mean value of exercise heart rate data according to the exercise heart rate data set;
and if the average value of the exercise heart rate data is larger than the exercise heart rate threshold value, returning to the step of acquiring the exercise heart rate data set of the user within the preset exercise monitoring time and the subsequent steps until the execution times reach the exercise monitoring threshold value, and outputting that the user is in an exercise state.
Referring to fig. 6, fig. 6 is a schematic diagram of exercise state heart rate acquisition according to an embodiment of the present invention, as shown in fig. 6In the embodiment of the invention, the preset exercise monitoring time is 10 seconds, namely the heart rate data is collected every 1 second, 10 times of heart rate data are collected to obtain the exercise heart rate data set of a user, and then the average value P of the current exercise heart rate data is calculated 1 ', i.e.:
Figure BDA0003616651400000121
wherein x is the heart rate detected every second, and the average value of the current exercise heart rate data and the exercise heart rate threshold value P 1 Comparing, if the average value of the current exercise heart rate data is less than the exercise heart rate threshold value P 1 If the user is in the exercise state at the moment, the wearable device can continuously acquire the current exercise heart rate data mean value of the next time period as the new P 1 ', then with the exercise heart rate threshold P 1 For comparison, the next time period continues to do so. When the time of the exercise state is judged to exceed a certain time period, the wearable device considers that the human body is in the exercise state for a long time, and the wearable device gives the state. When the time judged as the motion state does not exceed a certain time period, the wearable device does not act at the moment.
According to the scheme, the embodiment specifically judges whether the heart rate data is in a sleep state domain, a rest state domain or a motion state domain in the human body state domain; if the heart rate data is in the sleep state domain, judging that the user is in a sleep state; if the heart rate data is in the resting state domain, judging that the user is in a resting state; and if the heart rate data is in the motion state domain, judging that the user is in a motion state. The human body state of the user is preliminarily judged according to the heart rate data of the user, further collection and monitoring are carried out, the human body state of the user in a period of time is obtained, and therefore the human body state of the user is accurately judged.
In addition, an embodiment of the present invention further provides a human body state detection device, where the human body state detection device includes:
the acquisition module is used for acquiring heart rate data of a user;
the judgment module is used for detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value;
and the adjusting module is used for adjusting the environment state of the user according to the human body state.
At present, the system design of domestic intelligent home is mainly to detect the environment according to various sensors and make corresponding judgments, and through corresponding measures, the state of the environment is changed, and the requirements of comfortable life of people are dynamically met. However, the environment is not equal to the actual sense and the physical state of the human body, and better experience can be provided for people if measures are implemented after comprehensive judgment through the actual state of the human body and the data of the sensors of the environment.
Specifically, when the human body wears the heart rate calibration device (in a resting state), the heart rate calibration device can perform heart rate calibration, and can set the current collection heart rate value as the heart rate reference value P at the intelligent home server side 0 . As known, different people have different resting heart rates, and the resting heart rate of a human body under different environments also differs, so that the people need to be recalibrated each time the people wear the equipment or the environments change.
The heart rate detection sensor detects the heart rate every ten minutes in a resting state so as to save electric quantity. Once the heart rate value is found to be abnormal (higher or lower), that is, the current state may change, the heart rate detection sensor detects the heart rate every two minutes, and the current heart rate value is obtained more accurately with quick response. Where the heart rate offset | P-P 0 |>If (oa can take 10), then the heart rate detection sensor responds quickly.
Referring to fig. 7, fig. 7 is a schematic diagram of human body states corresponding to different heart rates in the embodiment of the present invention, and as shown in fig. 7, the highest value of the heart rate in the exercise state is denoted as P max The exercise heart rate threshold is recorded as P 1 The lowest value of the heart rate in the sleeping state is recorded as P min Go to sleepSleep heart rate threshold is recorded as P 2
Exercise heart rate threshold P 1 =P 0 +(P max -P 0 )*α
Sleep heart rate threshold P 2 =P 0 -(P 0 -P min )*α
Where α is the heart rate intensity coefficient, which can be set here to 80%, i.e. a heart rate above 80% of the maximum heart rate is considered as a state of exercise and a heart rate below 80% of the resting heart rate is considered as a state of sleep.
When the human body is in a motion state, the heart rate is higher at the moment, and the average value of the collected heart rate (the heart rate is assumed to be collected for 10 seconds) is taken, namely
Figure BDA0003616651400000131
Where x is the heart rate detected per second. When average heart rate P 1 ’>P 1 (exercise heart rate threshold), the wearable device judges the exercise state at the moment, and the wearable device continues to acquire the heart rate average value of the next time period as a new P 1 ', then with the exercise heart rate threshold P 1 For comparison, the next time period continues to do so. When the time t of the exercise dynamics is judged to exceed a certain time period delta t, the wearing equipment considers that the human body is in the exercise state for a long time, and the wearing equipment gives the state. When the time t judged as the movement state does not exceed a certain time period delta t, the wearable equipment does not act at the moment.
When the human body is in a sleep state, the heart rate is low at the moment, and the average value of the collected heart rate (the heart rate is assumed to be collected for 10 seconds) at the moment is taken, namely
Figure BDA0003616651400000132
Where x is the heart rate detected per second. When the average heart rate P 2 ’<P 2 (sleep heart rate threshold), at this moment, the wearable device judges the wearable device to be in a sleep state, and the wearable device can continuously acquire the heart rate average value of the next time period as a new P 2 Then is compared with the sleep heart rate threshold P 2 For comparison, the next time period continues to do so. When the time t judged as the sleeping state exceeds a certain time period delta t, the wearing device is set at the momentThe wearing type equipment gives the state after the human body is considered to enter the deep sleep state. When the time t judged to be in the sleep state does not exceed a certain time period delta t, the wearable equipment does not act at the moment.
Referring to fig. 8, fig. 8 is a schematic flow chart illustrating adaptive adjustment of a home environment according to different states of a human body in an embodiment of the present invention, and as shown in fig. 8, if a wearing interface provides a motion state, an intelligent home control system may play motion music and videos by adjusting an air conditioner and a fresh air system, set an alarm to remind to replenish water, predetermine a proper beverage type and quantity according to a current state of the human body, and then monitor a change of a state of the human body after the adjustment of the home environment in real time to perform a fine adjustment of the environment;
if the wearing interface gives the sleep state, the intelligent home control system can adjust the air conditioner, the fresh air system, the light brightness, the preset alarm clock and the like through the sleep state, creates an environment state more suitable for sleeping, monitors the change of the human body state after the household environment is adjusted in real time, and finely adjusts the environment.
In the embodiment, the state of the human body is judged by detecting the heart rate change of the human body in different states, and then the environment state is adjusted in real time by combining comprehensive judgment of various environment sensors, so that the function of self-adaptive identification of the state of the human body is achieved. The heart rate varies from person to person due to their physiological condition and physical constitution. This patent is through a rhythm of the heart detection algorithm, and the human state of discernment is got to the self-adaptation, and intelligence wearing class equipment is got as one and is borrowed the mouth and go to bear, cooperatees with intelligent home systems, makes people obtain better life and experiences.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a human body state detection program that is stored in the memory and is executable on the processor, and the human body state detection program implements the steps of the human body state detection method described above when executed by the processor.
Since the body state detection program is executed by the processor, all technical solutions of all the embodiments are adopted, so that at least all the advantages brought by all the technical solutions of all the embodiments are achieved, and detailed description is omitted here.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a human body state detection program is stored on the computer-readable storage medium, and when the human body state detection program is executed by a processor, the steps of the human body state detection method are implemented.
Since the body state detection program is executed by the processor, all technical solutions of all the embodiments are adopted, so that at least all the advantages brought by all the technical solutions of all the embodiments are achieved, and detailed description is omitted here.
Compared with the prior art, the human body state detection method, the human body state detection device, the terminal equipment and the storage medium provided by the embodiment of the invention acquire heart rate data of a user; and detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value. The human body state domain is determined through the resting heart rate reference value, the exercise heart rate maximum value and the sleep heart rate minimum value, the acquired heart rate data of the user are compared with the human body state domain, and therefore the human body state where the user is located is accurately judged.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A human body state detection method is applied to wearable equipment and comprises the following steps:
acquiring heart rate data of a user;
detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value;
and adjusting the environment state of the user according to the human body state.
2. The human state detection method according to claim 1, wherein the step of detecting the human state of the user from the heart rate data based on a predetermined human state domain further comprises before:
acquiring the rest heart rate reference value, the exercise heart rate maximum value and the sleep heart rate minimum value;
calculating a sports heart rate threshold value according to the resting heart rate reference value and the sports heart rate maximum value, and determining a sports state domain according to the sports heart rate threshold value and the sports heart rate maximum value;
calculating a sleep heart rate threshold value according to the rest heart rate reference value and the sleep heart rate minimum value, and determining a sleep state domain according to the sleep heart rate threshold value and the sleep heart rate minimum value;
and determining a rest state domain according to the exercise heart rate threshold and the sleep heart rate threshold, wherein the human body state domain comprises the sleep state domain, the rest state domain and the exercise state domain.
3. The human state detection method of claim 2, wherein the step of detecting the human state of the user from the heart rate data based on a predetermined human state domain comprises:
judging a human body state domain where the heart rate data is located;
if the heart rate data is in the sleep state domain, judging that the user is in a sleep state;
if the heart rate data is in the resting state domain, judging that the user is in a resting state;
and if the heart rate data is in the motion state domain, judging that the user is in a motion state.
4. The human body state detection method according to claim 3, wherein the step of determining that the user is in the sleep state if the heart rate data is in the sleep state domain further comprises:
acquiring a sleep heart rate data set of the user within a preset sleep monitoring time;
calculating a sleep heart rate data mean value according to the sleep heart rate data set;
and if the average value of the sleep heart rate data is smaller than the sleep heart rate threshold, returning to the step of acquiring the sleep heart rate data set of the user within the preset sleep monitoring time and the subsequent steps until the execution times reach the sleep monitoring threshold, and outputting that the user is in a sleep state.
5. The human body state detection method according to claim 3, wherein the step of determining that the user is in the exercise state if the heart rate data is in the exercise state domain further comprises:
acquiring a exercise heart rate data set of the user within a preset exercise monitoring time;
calculating a mean value of exercise heart rate data according to the exercise heart rate data set;
and if the average value of the exercise heart rate data is larger than the exercise heart rate threshold value, returning to the step of acquiring the exercise heart rate data set of the user within the preset exercise monitoring time and the subsequent steps until the execution times reach the exercise monitoring threshold value, and outputting that the user is in an exercise state.
6. The human body state detection method according to claim 3, wherein the step of determining that the user is in a resting state if the heart rate data is in the resting state field further comprises:
the method comprises the steps that rest heart rate data of a user are obtained at intervals of preset rest monitoring time;
calculating a heart rate offset according to the resting heart rate data and a resting heart rate reference value, and judging whether the state of the user is changed or not according to the heart rate offset;
and if the state of the user is changed, adjusting the preset rest monitoring time and returning to the step of acquiring the heart rate data of the user and the subsequent steps until the human body state of the user is determined.
7. The human body state detection method according to claim 1, wherein the step of adjusting the state of the environment where the user is located according to the human body state comprises:
judging the human body state of the user;
if the human body state of the user is a motion state, sending a preset motion state instruction to intelligent equipment, wherein the intelligent equipment comprises one or more of an air conditioner, a fresh air system, a player, an alarm clock, a lighting system and a water dispenser, and the motion state instruction comprises one or more of motion temperature, motion wind power, motion wind speed, moisture supplement reminding, beverage type and beverage quantity;
and if the human body state of the user is a sleep state, sending a preset sleep state instruction to the intelligent equipment, wherein the sleep state instruction comprises one or more of sleep temperature, sleep wind power, sleep wind speed, light brightness and awakening time.
8. A human body state detection device characterized by comprising:
the acquisition module is used for acquiring heart rate data of a user;
the judgment module is used for detecting the human body state of the user according to the heart rate data based on a predetermined human body state domain, wherein the human body state domain is obtained by calculating a rest heart rate reference value, a sport heart rate maximum value and a sleep heart rate minimum value;
and the adjusting module is used for adjusting the environment state of the user according to the human body state.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a human body state detection program stored on the memory and executable on the processor, the human body state detection program, when executed by the processor, implementing the steps of the human body state detection method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a human body state detection program, which when executed by a processor implements the steps of the human body state detection method according to any one of claims 1 to 7.
CN202210445540.5A 2022-04-26 2022-04-26 Human body state detection method and device, terminal equipment and storage medium Pending CN114795163A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210445540.5A CN114795163A (en) 2022-04-26 2022-04-26 Human body state detection method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210445540.5A CN114795163A (en) 2022-04-26 2022-04-26 Human body state detection method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114795163A true CN114795163A (en) 2022-07-29

Family

ID=82508134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210445540.5A Pending CN114795163A (en) 2022-04-26 2022-04-26 Human body state detection method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114795163A (en)

Similar Documents

Publication Publication Date Title
US11717188B2 (en) Automatic detection of user&#39;s periods of sleep and sleep stage
US10492721B2 (en) Method and apparatus for improving and monitoring sleep
US9697740B2 (en) Wellness management method and system by wellness mode based on context-awareness platform on smartphone
US9421420B2 (en) Wellness/exercise management method and system by wellness/exercise mode based on context-awareness platform on smartphone
CN108292173A (en) For the technology based on biological information control equipment
US20130195295A1 (en) Hearing Aid With A Sensor For Changing Power State Of The Hearing Aid
CN108592347A (en) Air conditioner and its control method, control device and readable storage medium storing program for executing
CN113639449B (en) Method and device for controlling air conditioner and air conditioner
CN112032985A (en) Air conditioner adjusting method and system, intelligent terminal and storage medium
CN112004172A (en) Earphone control method, earphone and computer readable storage medium
WO2019137514A1 (en) Wristband-based human body fatigue determination method, and wristband
KR101765659B1 (en) Sleep Management Apparatus and Method Thereof
CN114795163A (en) Human body state detection method and device, terminal equipment and storage medium
CN111557826A (en) Control method and device of neck massager and storage medium
Han et al. Smart sleep care system for quality sleep
CN111459042B (en) Control method and system of household appliance, television and storage medium
CN114650481A (en) Earphone control method, system, device and computer readable storage medium
US20220205670A1 (en) Heating control system through prediction of user&#39;s sleep time based on big data analysis using smartphone
CN113367692B (en) Adjusting method, adjusting system and storage medium capable of adjusting blood sugar of user
CN112294283A (en) Vital sign detection system and corresponding control method
US11030911B2 (en) Electronic apparatus, notification method, and computer-readable storage medium
CN102395313B (en) For the treatment of the method and system of physiological signal
CN111609528A (en) Method for controlling air conditioner through neck massager and related equipment
CN110941326A (en) Voltage control method and electronic equipment
WO2015048683A1 (en) Health management context-aware platform on smartphone

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination