The detecting system and its detection method of human body sitting stateTechnical field
The present invention relates to the detecting system of body state detection technique field, in particular to a kind of human body sitting state and itsDetection method.
Background technology
At present, with the continuous propulsion of information age, people increasingly be unable to do without computer at work, when people are longBetween be sitting in before computer when handling official business, people can be allowed to feel exhausted, or even the health disease in terms of cervical vertebra, lumbar vertebrae, serious danger can be triggeredThe health of people is done harm to.(sitting state is the device for progressively occurring being used on the market at present detecting people's sitting stateRefer to the state that human body keeps taking a seat for a long time, the time is generally more than half an hour), such as:Intelligent bracelet, Intelligent cushion, intelligenceEnergy wrist-watch etc., but the equipment of above-mentioned detection people sitting state is required to realize to people's sitting state with human contactDetection, the shortcomings that using trouble be present (is embodied in:Intelligent bracelet and intelligent watch need to be worn on could be complete with peopleThe detection of paired people's sitting state, once people forget to wear the detection that can not realize to people's sitting state, intelligence is satPad is also required to be contacted with the body of people, therefore the shortcomings that using trouble be present), and it is above-mentioned for detecting people's sitting shapeIts accuracy in detection of the equipment of state is often relatively low, easily (is embodied in by external interference:Intelligent bracelet and intelligent watch are mainly adoptedThe detection to people's sitting state is realized with gyroscope, when people stand up, due to inertia, installed in Intelligent braceletThe signal that people stand up can be detected with the gyroscope in intelligent watch, therefore realizes the detection to people's sitting state, but byIt is worn in Intelligent bracelet and intelligent watch in people's wrist, when the wrist generation action of people, even if people do not haveStand up, due to inertia, the gyroscope in Intelligent bracelet and intelligent watch, which can also detect, is mistakenly considered peopleThe signal to stand up, so as to which the error to people's sitting state-detection can be produced, the shortcomings that accuracy in detection is low be present;Intelligent cushionThen main to realize the detection to people's sitting state using pressure sensor, when people stand up, people make to Intelligent cushionDistress resolves, Intelligent cushion are then judged as that people have stood up, therefore realize the detection to people's sitting state, but due toIntelligent cushion need contacted with human body, when the sitting posture of people changes i.e. buttocks is moved when, even if people remain unchangedIt is sitting on cushion, Intelligent cushion can also be mistakenly considered people and stand up, so as to which the error to people's sitting state-detection can be produced,The shortcomings that accuracy in detection is low be present).
The content of the invention
The technical problem to be solved in the present invention is to provide a kind of inspection that can be realized in a non-contact manner to people's sitting stateThe detecting system and its detection method of the human body sitting state of survey.
In order to solve the above technical problems, the invention provides a kind of detecting system of the human body sitting state of following structure,Including doppler radar sensor module, signal processing module, processor and alarm set, doppler radar sensor module is led toCross signal processing module with processor to be connected, alarm set is connected with processor.
The detecting system of the human body sitting state of the present invention, wherein, signal processing module is LPF amplifying circuit.
The detecting system of the human body sitting state of the present invention, wherein, alarm set is by the prompting mould using optical signal promptingOne or more in block, the prompting module reminded using voice signal and the prompting module reminded using vibration signal are formed.
The detection method of the human body sitting state of the present invention, comprises the following steps:
A, the data in system initialization, i.e. processor emptying buffer, and start doppler radar sensor module and enterRow detection;
B, processor obtains respiratory signal data and heartbeat signal data from doppler radar sensor module, and will exhaleInhale signal data and heartbeat signal data are saved in two buffering areas reserved in processor respectively;
C, whether the time that processor judgment step b is performed reaches the default time, continues to hold if the not up to timeRow step b, next step is entered if having reached the time;
D, Fourier transform is carried out respectively to the respiratory signal data in two buffering areas of processor and heartbeat signal data,Its transformation for mula is:
Wherein, x [n] is the respiratory signal data or heartbeat signal data that processor collects, and f [k] is progress FourierBreath signal Fourier series or heartbeat signal Fourier series after conversion, N=1024, i are imaginary units;
E, the breath signal Fourier series and heartbeat signal Fourier series that are obtained after step d processing are carried out respectivelyAmplitude calculates, and calculation formula is as follows:
P [k]=| f [k] |
Wherein, p [k] is breath signal amplitude sequence or heartbeat signal amplitude sequence, and f [k] is breath signal Fourier's sequenceRow or heartbeat signal Fourier series, then in obtained breath signal amplitude sequence or heartbeat signal amplitude sequence, andIn the range of human body respiration frequency (10-40 beats/min) and palmic rate (30-120 beats/min), some of amplitude maximum are foundIndividual breath signal amplitude and heartbeat signal amplitude, and calculate the frequency corresponding to each breath signal amplitude and heartbeat signal amplitudeRate, calculation formula are as follows:
F=fs/N × k
Wherein, f is the frequency corresponding to breath signal amplitude or heartbeat signal amplitude, and N=1024, fs are sample rate, and k isThe position of breath signal amplitude or heartbeat signal amplitude in the sequence;
F, to the breath signal frequency and heartbeat signal frequency that are obtained after step e processing, time-domain analysis is carried out, is counted firstBreath signal frequency and the cycle corresponding to heartbeat signal frequency are calculated, calculation formula is:
T=1/f
Wherein, f is breath signal frequency or heartbeat signal frequency, and t is breath signal cycle or heartbeat signal cycle,
Using fs as sample frequency, then within breath signal cycle and heartbeat signal cycle, breath signal and heartbeat signalHave M=t*fs sampled point respectively, using M sampled point as window, to the respiratory signal data in two buffering areas of processor andHeartbeat signal data are compared with the breath signal frequency and heartbeat signal frequency obtained in step e respectively, obtain breathing letterWhat the number C1 and heartbeat signal data that number occurs relative to breath signal frequency occurred relative to heartbeat signal frequencyNumber C2;
G, time that the number C1 and heartbeat signal frequency that processor occurs to the breath signal frequency obtained through step f occurNumber C2 is judged, as simultaneously judged result exists for the breathing presence or heartbeat of human body or breathes and heartbeat is present, then placeDevice increase sitting time and return to step b are managed, the breathing and heartbeat if judged result is human body are not present, then processor is thenIncrease time departure simultaneously enters next step;
H, processor judges whether time departure exceedes preset value, if time departure is not less than preset value, then return to stepB, as time departure exceedes preset value, processor empties sitting time and return to step b.
The detection method of the human body sitting state of the present invention, the default time mentioned in step c are one minute.
The detection method of the human body sitting state of the present invention, the processor increase sitting time mentioned in step g, work as increaseThe sitting time afterwards exceedes preset value, and processor then starts alarm set to remind people, until enter next time step h andWhen meeting that the breathing of human body and heartbeat are not present, processor just stops the work of alarm set.
After said structure, compared with prior art, the present invention has advantages below:Passed by using Doppler radarSensor module realizes the detection to people's sitting state, whole detection process without and human contact, have easy to useAdvantage (is embodied in:The present invention need not be worn on human body, without with human contact), and using non-contacting mode comeThe detection to people's sitting state is realized, the non-action interference to caused by the system of standing up of human body can be overcome, so as to carryThe degree of accuracy of high detection and the anti-interference for improving system.
Brief description of the drawings
Fig. 1 is the structural representation of detecting system of the present invention.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and detailed description.
As shown in figure 1, in this specific embodiment, the detecting system of human body sitting state of the invention, including DopplerRadar sensor module 1, signal processing module 2, processor 3 and alarm set 4, doppler radar sensor module 1 pass through letterNumber processing module 2 is connected with processor 3, and alarm set 4 is connected with processor 3, and signal processing module 2 is LPF amplification electricityRoad, alarm set 4 is by the prompting module reminded using optical signal, the prompting module reminded using voice signal and using vibration letterOne or more of compositions in number prompting module reminded.
The detection method of the human body sitting state of the present invention, comprises the following steps:
A, the data in system initialization, i.e. processor emptying buffer, and start doppler radar sensor module and enterRow detection;
B, processor obtains respiratory signal data and heartbeat signal data from doppler radar sensor module, and will exhaleInhale signal data and heartbeat signal data are saved in two buffering areas reserved in processor respectively;
C, whether the time that processor judgment step b is performed reaches the default time, continues to hold if the not up to timeRow step b, next step is entered if having reached the time;
D, Fourier transform is carried out respectively to the respiratory signal data in two buffering areas of processor and heartbeat signal data,Its transformation for mula is:
Wherein, x [n] is the respiratory signal data or heartbeat signal data that processor collects, and f [k] is progress FourierBreath signal Fourier series or heartbeat signal Fourier series after conversion, N=1024, i are imaginary units;
E, the breath signal Fourier series and heartbeat signal Fourier series that are obtained after step d processing are carried out respectivelyAmplitude calculates, and calculation formula is as follows:
P [k]=| f [k] |
Wherein, p [k] is breath signal amplitude sequence or heartbeat signal amplitude sequence, and f [k] is breath signal Fourier's sequenceRow or heartbeat signal Fourier series, then in obtained breath signal amplitude sequence or heartbeat signal amplitude sequence, andIn the range of human body respiration frequency (10-40 beats/min) and palmic rate (30-120 beats/min), some of amplitude maximum are foundIndividual breath signal amplitude and heartbeat signal amplitude, and calculate the frequency corresponding to each breath signal amplitude and heartbeat signal amplitudeRate, calculation formula are as follows:
F=fs/N × k
Wherein, f is the frequency corresponding to breath signal amplitude or heartbeat signal amplitude, and N=1024, fs are sample rate, and k isThe position of breath signal amplitude or heartbeat signal amplitude in the sequence;
F, to the breath signal frequency and heartbeat signal frequency that are obtained after step e processing, time-domain analysis is carried out, is counted firstBreath signal frequency and the cycle corresponding to heartbeat signal frequency are calculated, calculation formula is:
T=1/f
Wherein, f is breath signal frequency or heartbeat signal frequency, and t is breath signal cycle or heartbeat signal cycle,
Using fs as sample frequency, then within breath signal cycle and heartbeat signal cycle, breath signal and heartbeat signalHave M=t*fs sampled point respectively, using M sampled point as window, to the respiratory signal data in two buffering areas of processor andHeartbeat signal data are compared with the breath signal frequency and heartbeat signal frequency obtained in step e respectively, obtain breathing letterWhat the number C1 and heartbeat signal data that number occurs relative to breath signal frequency occurred relative to heartbeat signal frequencyNumber C2;
G, time that the number C1 and heartbeat signal frequency that processor occurs to the breath signal frequency obtained through step f occurNumber C2 is judged, as simultaneously judged result exists for the breathing presence or heartbeat of human body or breathes and heartbeat is present, then placeDevice increase sitting time and return to step b are managed, the breathing and heartbeat if judged result is human body are not present, then processor is thenIncrease time departure simultaneously enters next step;
H, processor judges whether time departure exceedes preset value, if time departure is not less than preset value, then return to stepB, as time departure exceedes preset value, processor empties sitting time and return to step b.
The default time mentioned in step c is one minute, and the respiration rate of human body and the calculating of beats are with oneMinute is reference, therefore is herein set to the default time one minute.
The processor increase sitting time mentioned in step g, sitting time after increase exceed preset value, and processor is thenStart alarm set to remind people, until when entering step h next time and meeting that the breathing of human body and heartbeat are not present,Processor just stops the work of alarm set.
Embodiment above is only that the preferred embodiment of the present invention is described, and not the scope of the present invention is enteredRow limits, and on the premise of design spirit of the present invention is not departed from, those of ordinary skill in the art make to technical schemeThe various modifications gone out and improvement, it all should fall into the protection domain of claims of the present invention determination.