CN109152174B - Intelligent lamp control method based on breathing and heart rate variability and fine motion sensitivity cushion - Google Patents
Intelligent lamp control method based on breathing and heart rate variability and fine motion sensitivity cushion Download PDFInfo
- Publication number
- CN109152174B CN109152174B CN201811071681.5A CN201811071681A CN109152174B CN 109152174 B CN109152174 B CN 109152174B CN 201811071681 A CN201811071681 A CN 201811071681A CN 109152174 B CN109152174 B CN 109152174B
- Authority
- CN
- China
- Prior art keywords
- signal
- bcg
- heart rate
- breath
- mean value
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61M—DEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
- A61M21/00—Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61M—DEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
- A61M21/00—Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis
- A61M2021/0005—Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus
- A61M2021/0044—Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus by the sight sense
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61M—DEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
- A61M2230/00—Measuring parameters of the user
- A61M2230/04—Heartbeat characteristics, e.g. ECG, blood pressure modulation
- A61M2230/06—Heartbeat rate only
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61M—DEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
- A61M2230/00—Measuring parameters of the user
- A61M2230/40—Respiratory characteristics
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61M—DEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
- A61M2230/00—Measuring parameters of the user
- A61M2230/63—Motion, e.g. physical activity
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Abstract
The intelligent lamp control method based on breathing and heart rate variability and fine motion sensitivity cushion that the invention discloses a kind of, includes the following steps: for fine motion sensitive sensor to be placed on the position under cushion close to buttocks;Cushion side, bottom or other positions for being not easy to be touched is arranged in signal acquisition processing circuit;The collected body movement signal of signal acquisition processing circuit is converted through A/D and enhanced processing, signal processing chip carry out mean value and normalized to bcg [k];The present invention has the switch with signal control intelligent lamp of holding one's breath, and utilizes the color for the light that heart rate variability control intelligent lamp issues;The characteristics of providing convenience for mobile phone and remote control control inconvenience person.
Description
Technical field
The present invention relates to lamps and lanterns control technology fields, quick based on breathing and heart rate variability and fine motion more particularly, to one kind
Feel the intelligent lamp control method of cushion.
Background technique
With the development of technology of Internet of things, smart home gradually comes into average family.For intelligent lamp, currently on the market
Intelligent lamp pass through cell phone application or remote controler and realize the switch and Color control of light bulb, if be unable to skilled operation mobile phone and
Remote controler, intelligent lamp will change in quality into ordinary lamps, and reduce the experience effect of intelligent lamp, limit the popularization and use of intelligent lamp.
Summary of the invention
Goal of the invention of the invention is to provide one kind to overcome the unhandy deficiency of intelligent lamp in the prior art
Intelligent lamp control method based on breathing and heart rate variability and fine motion sensitivity cushion.
To achieve the goals above, the invention adopts the following technical scheme:
A kind of intelligent lamp control method based on breathing and heart rate variability and fine motion sensitivity cushion, includes the following steps:
Fine motion sensitive sensor is placed on the position under cushion close to buttocks by (1-1);
Cushion side, bottom or other positions for being not easy to be touched is arranged in signal acquisition processing circuit by (1-2);
The collected body movement signal of (1-3) signal acquisition processing circuit is converted through A/D and enhanced processing, treated signal
It is denoted as: bcg [k], k=0,1,2 ... ..., N-1;Wherein, N is the length of data;Signal acquisition processing circuit conveys bcg [k]
Into signal processing chip, signal processing chip carries out mean value and normalized to bcg [k];
(1-4) signal processing chip, which extracts, breathes signal of holding one's breath, with signal control of breathing bulb switch state of holding one's breath;
(1-5) signal processing chip extracts the mark that bcg [k] goes Q RR interphase of the signal after mean value and normalized
It is quasi- poor, with the light coloring of standard deviation control intelligent lamp.
It is proposed by the present invention using human-body biological signal (such as breathing, heart rate) realize intelligent bulbs switch operation and from
Dynamic color adjustment technology, can be with the both hands of thorough liberation people.
With the progress of sensor technology, so that passing through fine motion sensitive pressure sensor measurement breathing, heartbeat and other bodies
Body moves generated pressure change and is possibly realized, and the present invention extracts the letter of holding one's breath of the breathing of people by hardware and Processing Algorithm
Number realize to the open and close function of intelligent lamp, for the control of user's intelligent light switch provide more, more interesting selection.
Heart rate and heart rate variability judge health status more than people in addition to can be used as medical guidelines, carry out disease detection
Outside, for Healthy People, heart rate and the heart rate variability then real time reaction state of party, as phychology is gentle, nervous, angry
Etc. moods.Therefore the color of light can be sexually revised according to the real-time heart rate variability of party.
Preferably, further including the steps that multiplying power automatically adjusts:
Since the weight of people, breathing, heartbeat dynamics have biggish difference, the analog signal before A/D conversion is put
Big multiple utilizes the adaptive feedback regulation of following formula:
(2-1) carries out average value processing to bcg [k], and the signal calculation formula after going mean value is as follows:
J1=0,1,2 ..., N-1;I=0,1,2 ..., N-1;
(2-2) seeks the root mean square envelope of the signal after mean value;
Assuming that the length of window is W when calculating envelope, W is odd number;
(2-2-1) to preceding (W-1)/2 point, i.e. when 0≤i≤(W-1)/2, then root mean square envelope is calculated as follows:
(2-2-2) for last (W-1)/2 point, i.e. N- (W-1)/2≤i≤N-1, then root mean square envelope is by following public
Formula calculates:
When (2-2-3) is to intermediate point, i.e. (W-1)/2 < i < N- (W-1)/2, then root mean square envelope is calculated as follows:
(2-3) calculates envelope signal mean value
If env_m is greater than the pre-determined threshold upper limit, shows that enlargement ratio is too big, enlargement ratio is reduced to former times magnification
The half of rate;
If env_m is less than pre-determined threshold lower limit, show that enlargement ratio is too small, is for former amplification by enlargement ratio raising
2 times of multiplying power;
Otherwise, keep present enlargement ratio constant.
Preferably, carrying out mean value to bcg [k] and normalized includes the following steps: that mean value and normalization will be gone
Signal be denoted as bcg_rm [k] and bcg_nm [k] respectively, calculation is as follows:
Bcg_nm [k]=bcg_rm [k]/std_rm
Wherein,
Preferably, step (1-4) comprises the following specific steps that:
(4-1) signal processing chip, which carries out the signal after mean value and normalized to bcg [k], to carry out breath signal and mentions
It takes:
Set high-pass filter [b_HP, a_HP] and low-pass filter [b_LP, a_LP]:
[b_HP, a_HP]=butter (3,0.0008, ' high ');
[b_LP, a_LP]=butter (5,0.0096);
Wherein, butter () indicates Butterworth filter, and 3 and 5 respectively indicate the order of filter;0.0008 is filtering
The passband initial frequency of device, ' high ' expression filter be high-pass filter;0.0096 is the stopband initial frequency of filter;
B_HP, a_HP be respectively high-pass filter sliding average coefficient and autoregressive coefficient, b_LP, a_LP it is respectively low
Bandpass filter sliding average and autoregressive coefficient;
Signal after being carried out mean value and normalized to bcg [k] using following formula is carried out at positive and negative bidirectional filtering
Reason realizes the zero phase-shift of filtered signal and original signal;
Tmp=filtfilt (b_LP, a_LP, bcg_nm)
Resp=filtfilt (b_HP, a_HP, tmp),
Wherein, tmp is intermediate variable, and resp is the breath signal extracted, and filtfit () is the processing of positive and negative bidirectional filtering
Function;
(4-2) signal processing chip carries out judgement of holding one's breath:
The energy eng [j3] of the M breath signal in T seconds is calculated, and seeks its mean value eng_m:
Wherein, Fs is sample frequency;
The energy of nearest 1 breath signal in T seconds is denoted as eng_inst;
Compare eng_mst and eng_m, judge whether to hold one's breath, and it is flag that mark of holding one's breath, which is arranged,;
If eng_inst≤0.7eng_m, flag=1, state of holding one's breath is represented;
Otherwise flag=0 indicates eupnea state;
(4-3) if flag=1, signal processing chip issues the signal for changing bulb switch state, otherwise, without appointing
What is operated.
Preferably, (1-5) includes the following steps:
(5-1) sets following high-pass filter [bh_HP, ah_HP] and low-pass filter [bh_LP, ah_LP]:
[bh_HP, ah_HP]=butter (5,0.0106667, ' high ');
[bh_LP, ah_LP]=butter (7,0.05167959);
Wherein, 5 and 7 order for respectively indicating high-pass filter and low-pass filter, 0.0106667 is the passband of filter
Initial frequency, 0.05167959 is the stopband initial frequency of filter;Bh_HP, ah_HP are respectively that the sliding of high-pass filter is flat
Equal coefficient and autoregressive coefficient, bh_LP, ah_LP are respectively low-pass filter sliding average coefficient and autoregressive coefficient;
(5-2) goes the signal after mean value and normalized to carry out positive and negative bidirectional filtering using following formula to bcg [k]
Heart rate signal is extracted in processing, realizes the zero phase-shift of filtered signal and original signal;
Tmp=filtfilt (bh_LP, ah_LP, bcg_nm)
Heartsig=filtfilt (bh_HP, ah_HP, tmp)
Wherein, tmp is intermediate variable, and heartsig is the heart rate signal extracted;
The length of (5-3) heartsig signal is L seconds, and heartsig signal contains at least one complete interphase;
The auto-correlation coefficient of heartsig signal is calculated using following formula:
I1=0,1,2 ..., τ;I2=0,1,2 ...,
S-1;
Wherein, S=Fs × L is the points of L seconds time heart rate signals;τ be value range be limited to min_interval and
Positive integer between max_interval;
Min_interval and max_interval calculation formula is as follows:
Wherein, Min_HeartBeat, Max_HeartBeat are ordinary people's minimum and maximum heart rate;
(5-4) finds out all local maximum points in the array xc that xc [τ] is formed, and arranges local maximum point
Sequence simultaneously retains maximum Z, sets location index of the local maximum point remained in former array xc as loc
[o], wherein o=0,1 ... ..., Z-1;
If only 2 local maximum points, the RR interphase being calculated are as follows:
If the points of local maximum point are greater than 2, RR interphase are as follows:
(5-5) calculates the standard deviation of nearest Q RR interphase, obtains heart rate variability SDNN:
Wherein,I3=0,1,2 ..., Q-1;It is set in (5-6) signal processing chip
There is intelligent lamp color corresponding with SDNN, signal processing chip controls intelligent lamp according to SDNN and switches to different colors.
Therefore, the invention has the following beneficial effects: the switch for signal control intelligent lamp of holding one's breath can be used, become using heart rate
The color for the light that opposite sex control intelligent lamp issues, to make intelligent lamp hair that can improve the mood of user, user's mood by
Gradual change obtain it is tranquil, happy, indirectly promote user get well, a variety of light corresponding with heart rate variability can be provided
Color, user can have better usage experience;It can be mobile phone and remote control control inconvenience person with the both hands of thorough liberation people
It provides convenience.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the invention.
Specific embodiment
The present invention will be further described with reference to the accompanying drawings and detailed description.
Embodiment as shown in Figure 1 is a kind of intelligent lamp control based on breathing and heart rate variability and fine motion sensitivity cushion
Method includes the following steps:
Step 100, fine motion sensitive sensor is placed on to the position under cushion close to buttocks;Fine motion sensitive sensor is to set
Pvdf membrane in cushion;
Step 200, cushion side, bottom or other positions for being not easy to be touched is arranged in signal acquisition processing circuit
It sets;
Step 300, the collected body movement signal of signal acquisition processing circuit is through A/D conversion and enhanced processing, and treated
Signal is denoted as: bcg [k], k=0,1,2 ... ..., N-1;Wherein, N is the length of data;Signal acquisition processing circuit is by bcg [k]
It is transported in signal processing chip, signal processing chip carries out mean value and normalized to bcg [k];Signal processing chip
Model STM32F103C8T6.
Mean value is carried out to bcg [k] and normalized includes the following steps:
Mean value and normalized signal will be gone to be denoted as bcg_rm [k] and bcg_nm [k] respectively, calculation is as follows:
Bcg_nm [k]=bcg_rm [k]/std_rm
Wherein,
Step 400, signal processing chip, which extracts, breathes signal of holding one's breath, with signal control of breathing bulb switch state of holding one's breath;
Step 410, signal processing chip carries out the signal after mean value and normalized to bcg [k] and carries out breathing letter
Number extract:
Set high-pass filter [b_HP, a_HP] and low-pass filter [b_LP, a_LP]:
[b_HP, a_HP]=butter (3,0.0008, ' high ');
[b_LP, a_LP]=butter (5,0.0096);
Wherein, butter () indicates Butterworth filter, and 3 and 5 respectively indicate the order of filter;0.0008 is filtering
The passband initial frequency of device, ' high ' expression filter be high-pass filter;0.0096 is the stopband initial frequency of filter;
B_HP, a_HP be respectively high-pass filter sliding average coefficient and autoregressive coefficient, b_LP, a_LP it is respectively low
Bandpass filter sliding average and autoregressive coefficient;
Signal after being carried out mean value and normalized to bcg [k] using following formula is carried out at positive and negative bidirectional filtering
Reason realizes the zero phase-shift of filtered signal and original signal;
Tmp=filtfilt (b_LP, a_LP, bcg_nm)
Resp=filtfilt (b_HP, a_HP, tmp),
Wherein, tmp is intermediate variable, and resp is the breath signal extracted, and filtfit () is the processing of positive and negative bidirectional filtering
Function;
Step 420, signal processing chip carries out judgement of holding one's breath:
The energy eng [j3] of the M breath signal in T seconds is calculated, and seeks its mean value eng_m:
Wherein, Fs is sample frequency;
The energy of nearest 1 breath signal in T seconds is denoted as eng_inst;
Compare eng_inst and eng_m, judge whether to hold one's breath, and it is flag that mark of holding one's breath, which is arranged,;
If eng_inst≤0.7eng_m, flag=1, state of holding one's breath is represented;
Otherwise flag=0 indicates eupnea state;
Step 430, if flag=1, signal processing chip issue change bulb switch state signal, otherwise, not into
Any operation of row;
Step 500, Q RR interphase of the signal after mean value and normalized is gone in signal processing chip extraction bcg [k]
Standard deviation, with the light coloring of standard deviation control intelligent lamp.
Step 510, following high-pass filter [bh_HP, ah_HP] and low-pass filter [bh_LP, ah_LP] are set:
[bh_HP, ah_HP]=butter (5,0.0106667, ' high ');
[bh_LP, ah_LP]=butter (7,0.05167959);
Wherein, 5 and 7 order for respectively indicating high-pass filter and low-pass filter, 0.0106667 is the passband of filter
Initial frequency, 0.05167959 is the stopband initial frequency of filter;Bh_HP, ah_HP are respectively that the sliding of high-pass filter is flat
Equal coefficient and autoregressive coefficient, bh_LP, ah_LP are respectively low-pass filter sliding average coefficient and autoregressive coefficient;
Step 520, the signal after going mean value and normalized to bcg [k] using following formula carries out positive and negative two-way filter
Wave processing, extracts heart rate signal, realizes the zero phase-shift of filtered signal and original signal;
Tmp=filtfilt (bh_LP, ah_LP, bcg_nm)
Heartsig=filtfilt (bh_HP, ah_HP, tmp)
Wherein, tmp is intermediate variable, and heartsig is the heart rate signal extracted;
Step 530, the length of heartsig signal is L seconds, and heartsig signal contains at least one complete interphase;
The auto-correlation coefficient of heartsig signal is calculated using following formula:
I1=0,1,2 ..., τ;I2=0,1,2 ...,
S-1;
Wherein, S=Fs × L is the points of L seconds time heart rate signals;τ be value range be limited to min_interval and
Positive integer between max_interval;
Min_interval and max_interval calculation formula is as follows:
Wherein, Min_HeartBeat, Max_HeartBeat are ordinary people's minimum and maximum heart rate;
Step 540, xc [τ] composition array xc in find out all local maximum points, to local maximum point into
Row sorts and retains maximum Z, set location index of the local maximum point remained in former array xc as
Loc [o], wherein o=0,1 ... ..., Z-1;
If only 2 local maximum points, the RR interphase being calculated are as follows:
If the points of local maximum point are greater than 2, RR interphase are as follows:
Step 550, the standard deviation for calculating nearest Q RR interphase, obtains heart rate variability SDNN:
Wherein,I3=0,1,2 ..., Q-1;
Step 560, intelligent lamp color corresponding with SDNN, as shown in table 1, signal processing core are equipped in signal processing chip
Piece controls intelligent lamp according to SDNN and switches to different colors.
The section SDNN | <100 | [100,115) | [115,130) | [130,150) | [150,165) | [165,180] | >180 |
Color index | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
Specific color | It is red | Powder | Orange | Yellow | Green | Blue | Purple |
Table 1
In addition, further including the steps that multiplying power automatically adjusts:
Since the weight of people, breathing, heartbeat dynamics have biggish difference, the analog signal before A/D conversion is put
Big multiple utilizes the adaptive feedback regulation of following formula:
(2-1) carries out average value processing to bcg [k], and the signal calculation formula after going mean value is as follows:
J1=0,1,2 ..., N-1;I=0,1,2 ..., N-1;
(2-2) seeks the root mean square envelope of the signal after mean value;
Assuming that the length of window is W when calculating envelope, W is odd number;
(2-2-1) to preceding (W-1)/2 point, i.e. when 0≤i≤(W-1)/2, then root mean square envelope is calculated as follows:
(2-2-2) for last (W-1)/2 point, i.e. N- (W-1)/2≤i≤N-1, then root mean square envelope is by following public
Formula calculates:
When (2-2-3) is to intermediate point, i.e. (W-1)/2 < i < N- (W-1)/2, then root mean square envelope is calculated as follows:
(2-3) calculates envelope signal mean value
If env_m is greater than the pre-determined threshold upper limit, shows that enlargement ratio is too big, enlargement ratio is reduced to former times magnification
The half of rate;
If env_m is less than pre-determined threshold lower limit, show that enlargement ratio is too small, is for former amplification by enlargement ratio raising
2 times of multiplying power;
Otherwise, keep present enlargement ratio constant.
It should be understood that this embodiment is only used to illustrate the invention but not to limit the scope of the invention.In addition, it should also be understood that,
After having read the content of the invention lectured, those skilled in the art can make various modifications or changes to the present invention, these etc.
Valence form is also fallen within the scope of the appended claims of the present application.
Claims (4)
1. a kind of intelligent lamp control method based on breathing and heart rate variability and fine motion sensitivity cushion, characterized in that including such as
Lower step:
Fine motion sensitive sensor is placed on the position under cushion close to buttocks by (1-1);
Cushion side, bottom or other positions for being not easy to be touched is arranged in signal acquisition processing circuit by (1-2);
The collected body movement signal of (1-3) signal acquisition processing circuit is converted through A/D and enhanced processing, signal note that treated
Are as follows: bcg [k], k=0,1,2 ... ..., N-1;Wherein, N is the length of data;Bcg [k] is transported to by signal acquisition processing circuit
In signal processing chip, signal processing chip carries out mean value and normalized to bcg [k];
Further include the steps that multiplying power automatically adjusts:
Since the weight of people, breathing, heartbeat dynamics have biggish difference, the times magnification of the analog signal before A/D conversion
Number utilizes the adaptive feedback regulation of following formula:
(1-3-1) carries out average value processing to bcg [k], and the signal calculation formula after going mean value is as follows:
J1=0,1,2 ..., N-1;I=0,1,2 ..., N-1;
(1-3-2) seeks the root mean square envelope of the signal after mean value;
Assuming that the length of window is W when calculating envelope, W is odd number;
(1-3-2-1) to preceding (W-1)/2 point, i.e. when 0≤i≤(W-1)/2, then root mean square envelope is calculated as follows:
(1-3-2-2) for last (W-1)/2 point, i.e. N- (W-1)/2≤i≤N-1, then root mean square envelope is as follows
It calculates:
When (1-3-2-3) is to intermediate point, i.e. (W-1)/2 < i < N- (W-1)/2, then root mean square envelope is calculated as follows:
(1-3-3) calculates envelope signal mean value
If env_m is greater than the pre-determined threshold upper limit, shows that enlargement ratio is too big, enlargement ratio is reduced to former enlargement ratio
Half;
If env_m is less than pre-determined threshold lower limit, show that enlargement ratio is too small, is for former enlargement ratio by enlargement ratio raising
2 times;
Otherwise, keep present enlargement ratio constant;
(1-4) signal processing chip, which extracts, breathes signal of holding one's breath, with signal control of breathing bulb switch state of holding one's breath;
(1-5) signal processing chip extracts the standard deviation that bcg [k] goes Q RR interphase of the signal after mean value and normalized,
With the light coloring of standard deviation control intelligent lamp.
2. the intelligent lamp control method according to claim 1 based on breathing and heart rate variability and fine motion sensitivity cushion,
It is characterized in that carrying out mean value to bcg [k] and normalized includes the following steps:
Mean value and normalized signal will be gone to be denoted as bcg_rm [k] and bcg_nm [k] respectively, calculation is as follows:
Bcg_nm [k]=bcg_rm [k]/std_rm
Wherein,
3. the intelligent lamp control method according to claim 1 based on breathing and heart rate variability and fine motion sensitivity cushion,
It is characterized in that step (1-4) comprises the following specific steps that:
(1-4-1) signal processing chip, which carries out the signal after mean value and normalized to bcg [k], to carry out breath signal and mentions
It takes:
Set high-pass filter [b_HP, a_HP] and low-pass filter [b_LP, a_LP]:
[b_HP, a_HP]=butter (3,0.0008, ' high ');
[b_LP, a_LP]=butter (5,0.0096);
Wherein, butter () indicates Butterworth filter, and 3 and 5 respectively indicate the order of filter;0.0008 is filter
Passband initial frequency, ' high ' expression filter be high-pass filter;0.0096 is the stopband initial frequency of filter;
B_HP, a_HP are respectively the sliding average coefficient and autoregressive coefficient of high-pass filter, and b_LP, a_LP are respectively low pass filtered
Wave device sliding average and autoregressive coefficient;
Signal after carrying out mean value and normalized to bcg [k] using following formula carries out positive and negative bidirectional filtering processing,
Realize the zero phase-shift of filtered signal and original signal;
Tmp=filtfilt (b_LP, a_LP, bcg_nm)
Resp=filtfilt (b_HP, a_HP, tmp),
Wherein, tmp is intermediate variable, and resp is the breath signal extracted, and filtfilt () is that positive and negative bidirectional filtering handles letter
Number;
(1-4-2) signal processing chip carries out judgement of holding one's breath:
The energy eng [j3] of the M breath signal in T seconds is calculated, and seeks its mean value eng_m:
Wherein, Fs is sample frequency;
The energy of nearest 1 breath signal in T seconds is denoted as eng_inst;
Compare eng_inst and eng_m, judge whether to hold one's breath, and it is flag that mark of holding one's breath, which is arranged,;
If eng_inst≤0.7eng_m, flag=1, state of holding one's breath is represented;
Otherwise flag=0 indicates eupnea state;
(1-4-3) if flag=1, signal processing chip issues the signal for changing bulb switch state, otherwise, without any
Operation.
4. the intelligent lamp control method according to claim 3 based on breathing and heart rate variability and fine motion sensitivity cushion,
It is characterized in that (1-5) includes the following steps:
(1-5-1) sets following high-pass filter [bh_HP, ah_HP] and low-pass filter [bh_LP, ah_LP]:
[bh_HP, ah_HP]=butter (5,0.0106667, ' high ');
[bh_LP, ah_LP]=butter (7,0.05167959);
Wherein, 5 and 7 order for respectively indicating high-pass filter and low-pass filter, 0.0106667 originates for the passband of filter
Frequency, 0.05167959 is the stopband initial frequency of filter;Bh_HP, ah_HP are respectively the sliding average system of high-pass filter
Several and autoregressive coefficient, bh_LP, ah_LP are respectively low-pass filter sliding average coefficient and autoregressive coefficient;
(1-5-2) goes the signal after mean value and normalized to carry out at positive and negative bidirectional filtering using following formula to bcg [k]
Reason extracts heart rate signal, realizes the zero phase-shift of filtered signal and original signal;
Tmp=filtfilt (bh_LP, ah_LP, bcg_nm)
Heartsig=filtfilt (bh_HP, ah_HP, tmp)
Wherein, tmp is intermediate variable, and heartsig is the heart rate signal extracted;
The length of (1-5-3) heartsig signal is L seconds, and heartsig signal contains at least one complete interphase;
The auto-correlation coefficient of heartsig signal is calculated using following formula:
I1=0,1,2 ..., τ;I2=0,1,2 ..., S-1;
Wherein, S=Fs × L is the points of L seconds time heart rate signals;τ is that value range is limited to min_interval and max_
Positive integer between interval;
Min_interval and max_interval calculation formula is as follows:
Wherein, Min_HeartBeat, Max_HeartBeat are ordinary people's minimum and maximum heart rate;
(1-5-4) finds out all local maximum points in the array xc that xc [τ] is formed, and is ranked up to local maximum point
And retain maximum Z, set location index of the local maximum point remained in former array xc as loc [o],
Wherein, o=0,1 ... ..., Z-1;
If only 2 local maximum points, the RR interphase being calculated are as follows:
If the points of local maximum point are greater than 2, RR interphase are as follows:
(1-5-5) calculates the standard deviation of nearest Q RR interphase, obtains heart rate variability SDNN:
Wherein,I3=0,1,2 ..., Q-1;
Intelligent lamp color corresponding with SDNN is equipped in (1-5-6) signal processing chip, signal processing chip is controlled according to SDNN
Intelligent lamp switches to different colors.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811071681.5A CN109152174B (en) | 2018-09-13 | 2018-09-13 | Intelligent lamp control method based on breathing and heart rate variability and fine motion sensitivity cushion |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811071681.5A CN109152174B (en) | 2018-09-13 | 2018-09-13 | Intelligent lamp control method based on breathing and heart rate variability and fine motion sensitivity cushion |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109152174A CN109152174A (en) | 2019-01-04 |
CN109152174B true CN109152174B (en) | 2019-10-25 |
Family
ID=64825223
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811071681.5A Active CN109152174B (en) | 2018-09-13 | 2018-09-13 | Intelligent lamp control method based on breathing and heart rate variability and fine motion sensitivity cushion |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109152174B (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202634769U (en) * | 2012-04-16 | 2012-12-26 | 深圳市众明半导体照明有限公司 | LED light |
US20160279381A1 (en) * | 2015-03-23 | 2016-09-29 | Adam Jude Ahne | Night terror lamp |
CN105654063B (en) * | 2016-01-08 | 2019-04-19 | 东南大学 | Mental imagery brain power mode recognition methods based on the optimization of artificial bee colony time and frequency parameter |
CN207099406U (en) * | 2017-09-11 | 2018-03-13 | 哈尔滨理工大学 | A kind of lamps in study rooms control circuit |
CN107713675A (en) * | 2017-11-09 | 2018-02-23 | 深圳零智创新科技有限公司 | A kind of intelligent floor mat |
-
2018
- 2018-09-13 CN CN201811071681.5A patent/CN109152174B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109152174A (en) | 2019-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108433722A (en) | Portable brain electric collecting device and its application in SSVEP and Mental imagery | |
CN109366508A (en) | A kind of advanced machine arm control system and its implementation based on BCI | |
CN103070683B (en) | Sleep breathing mode identification method and device based on bioelectrical impedance | |
Islam et al. | Multiband tangent space mapping and feature selection for classification of EEG during motor imagery | |
CN110179643A (en) | A kind of neck rehabilitation training system and training method based on annulus sensor | |
Lian et al. | Wearable armband for real time hand gesture recognition | |
WO2020186651A1 (en) | Smart sports earphones based on eeg thoughts and implementation method and system thereof | |
CN106570474A (en) | Micro expression recognition method based on 3D convolution neural network | |
CN105919591A (en) | Surface myoelectrical signal based sign language recognition vocal system and method | |
CN110263606A (en) | Scalp brain electrical feature based on end-to-end convolutional neural networks extracts classification method | |
CN106974617A (en) | The Signal Pre-Processing Method and signal wave crest detection method of a kind of efficiently and accurately | |
CN113274032A (en) | Cerebral apoplexy rehabilitation training system and method based on SSVEP + MI brain-computer interface | |
CN107766898A (en) | The three classification mood probabilistic determination methods based on SVM | |
CN109620260A (en) | Psychological condition recognition methods, equipment and storage medium | |
CN109299647A (en) | A kind of extraction of multitask Mental imagery brain electrical feature and mode identification method towards vehicle control | |
CN107126303A (en) | A kind of upper and lower extremities exercising support method based on mobile phone A PP | |
CN108261274A (en) | A kind of two-way deformed limb interface system controlled for prosthetic hand with perceiving | |
CN106859617A (en) | A kind of many vital sign parameter collecting devices of Wearable and its parameter extracting method | |
Narayan et al. | Pattern recognition of sEMG signals using DWT based feature and SVM Classifier | |
CN109152174B (en) | Intelligent lamp control method based on breathing and heart rate variability and fine motion sensitivity cushion | |
CN113713333B (en) | Dynamic virtual induction method and system for lower limb rehabilitation full training process | |
CN108156727A (en) | A kind of method that multistage more word sounds of infrared thermal release electric triggering wake up control lamps and lanterns | |
CN106955111A (en) | Brain paralysis youngster's gait recognition method based on surface electromyogram signal | |
CN109152173B (en) | Intelligent lighting color control method based on fine motion sensitivity cushion and heart rate variability | |
CN109498362A (en) | A kind of hemiplegic patient's hand movement function device for healing and training and model training method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210730 Address after: Room a0301, building 3, No. 88, Wanli Road, Yuanhe street, Xiangcheng District, Suzhou, Jiangsu 215100 Patentee after: Bobo Technology (Suzhou) Co.,Ltd. Address before: 310011 No. 36, zone a, floor 1, building 2, No. 1418-50 Moganshan Road, Gongshu District, Hangzhou City, Zhejiang Province (Shangcheng science and technology industrial base) Patentee before: HANGZHOU RUIYI TECHNOLOGY Co.,Ltd. |