CN106618545A - Pulse rate quick calculation method and apparatus - Google Patents

Pulse rate quick calculation method and apparatus Download PDF

Info

Publication number
CN106618545A
CN106618545A CN201710067518.0A CN201710067518A CN106618545A CN 106618545 A CN106618545 A CN 106618545A CN 201710067518 A CN201710067518 A CN 201710067518A CN 106618545 A CN106618545 A CN 106618545A
Authority
CN
China
Prior art keywords
pulse
hunting zone
sampled point
array element
chip microcomputer
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
CN201710067518.0A
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.)
Hubei Engineering University
Original Assignee
Hubei Engineering University
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 Hubei Engineering University filed Critical Hubei Engineering University
Priority to CN201710067518.0A priority Critical patent/CN106618545A/en
Publication of CN106618545A publication Critical patent/CN106618545A/en
Pending legal-status Critical Current

Links

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/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B2562/00Details of sensors; Constructional details of sensor housings or probes; Accessories for sensors
    • A61B2562/02Details of sensors specially adapted for in-vivo measurements

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Medical Informatics (AREA)
  • Surgery (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Physiology (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Cardiology (AREA)
  • Molecular Biology (AREA)
  • Physics & Mathematics (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Psychiatry (AREA)
  • Signal Processing (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

The embodiment of the invention provides a pulse rate quick calculation method and apparatus. A collection number in a sampling point searching range can be calculated according to a preset human body pulse frequency range, pulse signal sampling frequency and a searching range formula set by a one-chip microcomputer. The one-chip microcomputer can search pulse waveform data sampling points stored in a buffering area of the one-chip microcomputer based on the sampling point searching range to achieve a period sampling point numbers contained by the pulse waveform; and the one-chip microcomputer can calculate a pulse rate according to the preset pulse rate calculation formula, a sampling time interval and sampling points contained by the pulse waveform in one period. Therefore, the pulse rate can be quickly calculated upon inadequacy of one-chip microcomputers; even upon plenty of data collection and displaying tasks, the pulse signal data can be collected in real time, so calculation errors can be avoided and one-chip microcomputer task processing burden can be reduced.

Description

Pulse frequency quick calculation method and device
Technical field
The present invention relates to field of computer technology, in particular to a kind of pulse frequency quick calculation method and device.
Background technology
With the development and the raising of singlechip controller performance of electronic circuit, patrolled by conventional analog circuits or complexity The control system for collecting circuit composition is gradually replaced with single-chip microcomputer by the control system of core.In certain application scenario, need Real time inspection pulse impulse waveform and pulse frequency (Pulse Rate per minute, hereinafter referred to as pulse frequency) are wanted, needs single-chip microcomputer to complete The collection of pulse signal, calculate, process, sending display screen to and the operation such as show.Because display screen directly electrically connects with single-chip microcomputer Connect, when the System Computer for taking single-chip microcomputer is compared in the real-time refreshing of display screen, be likely to result in not enough during single-chip microcomputer machine.
It is single according to existing pulse frequency computational methods if being related to the process computing of mass data in pulse signal waveform It is very painstaking that piece machine is behaved, and the time delay that acquisition tasks may be caused to process, pulse wave sampling number tails off, and shows screen display What is shown is no longer a pulse cycle, and sampling time interval is increased compared to originally.Thus, when pulse frequency is counted, easily Cause mistake in computation, increased the burden of single-chip microcomputer process task.
The content of the invention
In order to overcome above-mentioned deficiency of the prior art, the present invention to provide a kind of pulse frequency quick calculation method and device, It can be avoided when facing mass data collection and showing task, it is impossible to Real-time Collection pulse data, so that pulse rate meter Calculate failure.
The embodiment of the present invention provides a kind of pulse frequency quick calculation method, and methods described includes:
Single-chip microcomputer according to the human pulse frequency range, the sample frequency sampled to pulse signal for pre-setting and Hunting zone formulary is calculated the collection number of sampled point hunting zone;
The single-chip microcomputer is based on the pulse preserved in the several buffering areas to single-chip microcomputer of collection of the sampled point hunting zone The sampled point of Wave data is scanned for, and obtains the sampled point points included by the pulse wave of a cycle;
The single-chip microcomputer is based on default pulse frequency computing formula, sampling time interval and the pulse wave in one cycle Sampled point points included by shape are calculated pulse frequency.
The embodiment of the present invention also provides a kind of pulse frequency quick computing device, and described device includes:
Collection number computing module, for sampling according to the human pulse frequency range for pre-setting, to pulse signal Sample frequency and hunting zone formulary be calculated the collection number of sampled point hunting zone;
Search module, for the arteries and veins preserved in the several buffering areas to single-chip microcomputer of collection based on the sampled point hunting zone The sampled point of Wave data of fighting is scanned for, and obtains the sampled point points included by the pulse wave of a cycle;
Pulse frequency computing module, for based on default pulse frequency computing formula, sampling time interval and one week Sampled point points included by the pulse wave of phase are calculated pulse frequency.
In terms of existing technologies, the invention has the advantages that:
A kind of pulse frequency quick calculation method provided in an embodiment of the present invention and device, are pre-set by single-chip microcomputer foundation Human pulse frequency range, sample frequency that pulse signal is sampled and hunting zone formulary be calculated sampling The collection number of point search scope.Single-chip microcomputer is based on preservation in the several buffering areas to single-chip microcomputer of collection of the sampled point hunting zone The sampled point of pulse wave data scan for, obtain the sampled point points included by the pulse wave of a cycle.Monolithic Machine is based on the sampled point included by default pulse frequency computing formula, sampling time interval and the pulse wave in one cycle Points are calculated pulse frequency.Thus, when not enough in single-chip microcomputer machine, pulse frequency can quickly be calculated, even if having big Amount data acquisition and when showing task, also can Real-time Collection pulse signal data, it is to avoid mistake in computation, alleviate single-chip microcomputer process The burden of task.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be attached to what is used needed for embodiment Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the block diagram of the sphygmus measurement system that present pre-ferred embodiments are provided.
Fig. 2 is the block diagram of the single-chip microcomputer that present pre-ferred embodiments are provided.
The step of Fig. 3 is the pulse frequency quick calculation method of present pre-ferred embodiments offer flow chart.
The schematic flow sheet of the sub-step that step S140 includes in Fig. 3 that Fig. 4 is provided for present pre-ferred embodiments.
The schematic flow sheet of the sub-step that step S150 includes in Fig. 3 that Fig. 5 is provided for present pre-ferred embodiments.
The pulse wave schematic diagram that Fig. 6 is provided for present pre-ferred embodiments.
The schematic flow sheet of the sub-step that step S160 includes in Fig. 3 that Fig. 7 is provided for present pre-ferred embodiments.
Fig. 8 is another kind of flow chart of steps of the pulse frequency quick calculation method that present pre-ferred embodiments are provided.
Fig. 9 is the functional block diagram of the quick computing device of pulse frequency that present pre-ferred embodiments are provided.
Icon:10- sphygmus measurement systems;100- single-chip microcomputers;110- memories;120- processors;130- mixed-media network modules mixed-medias; 140- converters;200- display screens;300- sensors;The quick computing device of 400- pulse frequencies;410- acquisition modules;420- is preserved Module;430- mean value computation modules;440- gathers number computing module;450- search modules;460- pulse frequency computing modules;470- Judge module.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The a part of embodiment of the present invention, rather than the embodiment of whole.Present invention enforcement generally described and illustrated in accompanying drawing herein The component of example can be arranged and designed with a variety of configurations.Therefore, reality of the invention below to providing in the accompanying drawings The detailed description for applying example is not intended to limit the scope of claimed invention, but is merely representative of the selected enforcement of the present invention Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made Every other embodiment, belongs to the scope of protection of the invention.Therefore, embodiments of the invention below to providing in the accompanying drawings Detailed description be not intended to limit the scope of claimed invention, but be merely representative of the selected embodiment of the present invention. Based on the embodiment in the present invention, it is all that those of ordinary skill in the art are obtained under the premise of creative work is not made Other embodiment, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then it need not be further defined and is explained in subsequent accompanying drawing.Additionally, term " the One ", " second " etc. is only used for distinguishing description, and it is not intended that indicating or implying relative importance.
Fig. 1 is referred to, Fig. 1 is the block diagram of the sphygmus measurement system 10 that present pre-ferred embodiments are provided.It is described Sphygmus measurement system 10 includes single-chip microcomputer 100, display screen 200 and the sensor 300 being electrically connected with each other.Sensor 300 is to people The pulse of body measures and gathers pulse information, and the pulse information of collection is transferred to single-chip microcomputer 100 and is carried out by sensor 300 again Calculate, process.Single-chip microcomputer 100 will be sent to display screen 200 and shown through the pulse information for calculating, process.
In this example it is shown that screen 200 preferably adopts TFT (Thin Film Transistor, thin film transistor (TFT)) liquid crystal Display screen.Each liquid crystal pixel point of TFT display screens is driven by the thin film transistor (TFT) behind pixel is integrated in, so as to There is high speed, high brightness, high-contrast.TFT display applications are on all kinds of Laptop & Desktops extensively Main flow display device.
In the present embodiment, sensor 300 may be, but not limited to, infrared sensor, acoustic sensor, piezoelectric sensing Device etc..It is preferred that adopting piezoelectric transducer, piezoelectric transducer is using made by the piezo-electric effect produced after some dielectric medium stresses Sensor.So-called piezo-electric effect refers to that some dielectrics are deformed upon (including bending in the external force effect by a direction And telescopic shape change) when, due to the polarization phenomena of internal charge, the phenomenon of electric charge can be produced on its surface.
Fig. 2 is referred to, Fig. 2 is the block diagram of the single-chip microcomputer 100 that present pre-ferred embodiments are provided.Including memory 110th, the quick computing device 400 of processor 120, mixed-media network modules mixed-media 130, converter 140 and pulse frequency.
The memory 110, processor 120, mixed-media network modules mixed-media 130 and converter 140 are directly or indirectly electric each other Property connection, to realize the transmission or interaction of data.For example, these elements each other can by one or more communication bus or Holding wire is realized being electrically connected with.The quick computing device 400 of the pulse frequency that is stored with memory 110, the pulse frequency is quickly calculated Device 400 includes that at least one can be stored in the software in the memory 110 in the form of software or firmware (firmware) Functional module, the processor 120 is stored in software program and module in memory 110 by operation, each so as to perform Plant application of function and data processing.
Wherein, the memory 110 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 110 be used for storage program, the processor 120 after execute instruction is received, Perform described program.Further, the software program and module in above-mentioned memory 110 may also include operating system, and it can Including the various component softwares for management system task (such as memory management, storage device control, power management etc.) and/or Drive, and can be in communication with each other with various hardware or component software, so as to provide the running environment of other software component.
The processor 120 can be a kind of IC chip, the disposal ability with signal.Above-mentioned processor 120 can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc..Can also be digital signal processor (DSP), special IC (ASIC), scene Programmable gate array (FPGA) either other PLDs, discrete gate or transistor logic, discrete hardware group Part.Can realize or perform disclosed each method in the embodiment of the present invention, step and logic diagram.General processor can be with It is microprocessor or the processor can also be any conventional processor etc..
The mixed-media network modules mixed-media 130 is used for the communication connection set up between single-chip microcomputer 100 and display screen 200 and sensor 300, Realize the transmitting-receiving operation of pulse signal and data.
The converter 140 can be that (Analog to Digital Converter, A/D converter is that analog turns to ADC Parallel operation).The analog signal of real world, such as temperature, pressure, sound or image etc., needs are converted into being stored more easily, locate Reason and the digital form launched.Continuously varying analog signal is converted to discrete data signal by A/D converter Device.
It is appreciated that the structure described in Fig. 2 is only illustrated, single-chip microcomputer 100 may also include more more than shown in Fig. 2 or more Few component, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can adopt hardware, software or its group Close and realize.
First embodiment
Refer to Fig. 3, Fig. 3 be present pre-ferred embodiments provide pulse frequency quick calculation method the step of flow chart. Methods described is applied to single-chip microcomputer 100, especially single-chip microcomputer 100 not enough during machine.In the present embodiment, not toe during machine It is:Carry out because single-chip microcomputer 100 needs to complete the data acquisition of human pulse analog/digital signal conversion, the data to gathering Calculate to process and send the data message after process to display screen 200 and the work such as show, if there are a large amount of numbers in signal waveform It is not enough when may cause 100 machine of single-chip microcomputer according to computing is processed, the time delay of ADC acquisition tasks.
Pulse frequency quick calculation method idiographic flow is described in detail below.
Step S140, single-chip microcomputer 100 to pulse signal according to the human pulse frequency range that pre-sets, sampled Sample frequency and hunting zone formulary are calculated the collection number of sampled point hunting zone.
In the present embodiment, single-chip microcomputer 100 is estimation by the collection number of the calculated sampled point hunting zone Value.The collection number of the sampled point hunting zone includes that the first hunting zone gathers number and the second hunting zone collection number, described Hunting zone formulary includes the first search formula and the second search formula.
Fig. 4 is referred to, the flow process of the sub-step that step S140 includes in Fig. 3 that Fig. 4 is provided for present pre-ferred embodiments Schematic diagram, step S140 can include sub-step S141 and sub-step S142.
Sub-step S141, according to the human pulse frequency range for pre-setting, the sampling sampled to pulse signal frequency Rate and the first search formula are calculated the first hunting zone collection number.
In the present embodiment, the normal range (NR) that the human pulse frequency range for pre-setting refers to human pulse is 55-100 beat/min, according to frequency, about between 0.917Hz-1.666Hz.The sampling frequency that pulse signal is sampled Rate is usually arranged as 200Hz, i.e., a sampled point is gathered per 5ms.The first search formula includes:
Nmin=(1/Fmax) * sample frequencys;
Nmax=(1/Fmin) * sample frequencys.
In the present embodiment, Fmax represents the highest frequency of the human pulse frequency range for pre-setting, Fmin tables Show the low-limit frequency of the human pulse frequency range for pre-setting.Nmin is represented when selection highest frequency Fmax is calculated When, minimum sampled point points shared by a cycle pulse wave, Nmax is represented when selecting low-limit frequency Fmin to be calculated, Maximum sampled point points shared by a cycle pulse wave.Wherein, the value of described Fmax, Fmin, Nmin and Nmax is meter Calculate estimate.It is described in detail below by citing.
The human pulse frequency range for pre-setting is described that pulse signal is entered about between 0.917Hz-1.666Hz The sample frequency of row sampling is 200Hz.It is 2Hz (about 120 beats/min) that single-chip microcomputer 100 selects highest frequency Fmax, then a cycle Minimum sampled point points are shared by pulse wave:
Nmin=(1/Fmax) * 200=(1/2) * 200=100;
It is 0.8Hz (about 48 beats/min) that single-chip microcomputer 100 selects low-limit frequency Fmin, then shared by a cycle pulse wave Maximum sampled point is counted:
Nmax=(1/Fmin) * 200=(1/0.8) * 200=250;
Guarantee to search crest and trough of the pulse wave in a cycle, thus first hunting zone is adopted Collection number is more than or equal to Nmax, here, first hunting zone collection number is preferably at 260 points.
Sub-step S142, gathers number and the second search formula is calculated described second and searches according to first hunting zone Rope scope gathers number.
In the present embodiment, the second search formula includes:
Smin=1/2*Nmin;
Smax=(1+1/2) * Nmin.
Wherein, Smin represents minimum search sampled point points, and Smax represents that maximum search sampled point is counted.Smin and Smax It is calculating estimate.
In the present embodiment, the selection principle for calculating the second hunting zone collection number is as follows:
(1) must occur in hunting zone a minimum of a value (trough of pulse wave) or maximum (pulse wave Crest) sampled point;
(2) have in hunting zone and only one of which minimum of a value or maximum sampled point (i.e. can not be while two ripples occur Paddy or two crests).
Based on mentioned above principle, it is 2Hz that single-chip microcomputer 100 chooses highest frequency Fmax, and Nmin is 100, to search minimum of a value Sampled point, then it is minimum to search for sampled point points Smin=1/2*Nmin=50, maximum search sampled point points Smax=(1+1/ 2) * Nmin=150.In the same manner, it is 0.8Hz that single-chip microcomputer 100 chooses low-limit frequency Fmin, and Nmax is 260, is adopted to search minimum of a value Sampling point, then it is minimum to search for sampled point points Smin=1/2*Nmax=130, maximum search sampled point points Smax=(1+1/2) * Nmax=390.Two kinds of situations of summary, second hunting zone collection number (S) should meet simultaneously:S>130, S<150, institute State the second hunting zone collection number and be preferably at 140 points.
Step S150, single-chip microcomputer 100 is based in the several buffering areas to single-chip microcomputer 100 of collection of the sampled point hunting zone The sampled point of the pulse wave data of preservation is scanned for, and obtains the sampled point points included by the pulse wave of a cycle.
Fig. 5 is referred to, the flow process of the sub-step that step S150 includes in Fig. 3 that Fig. 5 is provided for present pre-ferred embodiments Schematic diagram, step S150 can include sub-step S151, sub-step S152, sub-step S153 and sub-step S154.
Refer to Fig. 6, the pulse wave schematic diagram that Fig. 6 is provided for present pre-ferred embodiments.In the present embodiment, adopt Two-dimensional coordinate system represents pulse wave, and the abscissa x of pulse wave each sampled point can represent times of collection, and ordinate y can To represent voltage, current potential etc., ordinate y is used for the size of fiducial value in the search, to obtain the crest and trough of pulse wave.
Sub-step S151, to be input into array (IN [n]) in first input array element (IN [0]) as starting point, and The first search that number (260) obtains being scanned in input array (IN [n]) is gathered based on first hunting zone Scope, the nearest input array of first input array element (IN [0]) described in detection range in first hunting zone The first maximum maximum input array element (i.e. the wave crest point P1 (x1, y1) of pulse wave) of element value.
In the present embodiment, the sampled point point value of first hunting zone is 260, i.e., with described first input number Constituent element element (IN [0]) searches for successively 260 points for starting point.In the present embodiment, with described first input array element (IN [0]) be starting point, search for successively along the incremental orders of input array (IN [n]) subscript value n, find apart from IN [0] it is nearest the The first maximum maximum input array element (crest P1 (x1, y1)) of one input array element value (y).
Sub-step S152, with the described first maximum array element P1 (x1, y1) that is input into for starting point, and based on described second Hunting zone collection number obtains the second hunting zone scanned in the input array, in second hunting zone Search obtain being input into the first minimum minimum input array element of array element value (i.e. pulse wave trough point P2 (x2, y2))。
Referring to Fig. 6, the sampled point point value of second hunting zone is 140, i.e., maximum defeated with described first Enter array element P1 (x1, y1) and search for 140 points successively for starting point.In the present embodiment, with the described first maximum input array Element P1 (x1, y1) is starting point, is searched for successively along the incremental orders of input array (IN [n]) subscript value n, finds input array The first minimum minimum input array element (trough P2 (x2, y2)) of element value (y).
Sub-step S153, with the described first minimum array element P2 (x2, y2) that is input into for starting point, and based on described second Hunting zone collection number obtains the 3rd hunting zone scanned in the input array, in the 3rd hunting zone Search obtains being input into the second maximum maximum input array element (i.e. wave crest point P3 (x3, y3)) of array element value.
Referring to Fig. 6, the sampled point point value of second hunting zone is 140, i.e., minimum defeated with described first Enter array element P2 (x2, y2) and search for 140 points successively for starting point.In the present embodiment, with the described first minimum input array Element P2 (x2, y2) is starting point, is searched for successively along the incremental orders of input array (IN [n]) subscript value n, finds input array The second maximum maximum input array element (crest P3 (x3, y3)) of element value (y).
Sub-step S154, based on the described first maximum maximum input array unit P3 of array element P1 and second that are input into one is obtained Sampled point points included by the pulse wave in individual cycle.
In the present embodiment, it is input into number based on the described first maximum abscissa x1 for being input into array element P1 and second is maximum The abscissa x3 of constituent element P3 obtains the sampled point points included by the pulse wave of a cycle:x3-x1+1.
Step S160, single-chip microcomputer 100 is based on default pulse frequency computing formula, sampling time interval and one cycle Pulse wave included by sampled point points be calculated pulse frequency.
Fig. 7 is referred to, the flow process of the sub-step that step S160 includes in Fig. 3 that Fig. 7 is provided for present pre-ferred embodiments Schematic diagram, step S160 can include sub-step S161 and sub-step S162.
Sub-step S161, single-chip microcomputer 100 by included by the pulse wave in one cycle sampled point points with it is described Sampling time interval is multiplied and obtains the pulse sampling period.
In the present embodiment, the sampled point points * included by the pulse wave of pulse cycle (unit ms)=a cycle Sampling time interval=(x3-x1+1) * 5.Wherein, according to the sample frequency that pulse signal is sampled be 200Hz, institute Sampling time interval is stated for 5ms.
The pulse sampling period is brought into the default pulse frequency computing formula by sub-step S162, single-chip microcomputer 100 In carry out being calculated pulse frequency, and the pulse frequency is saved in into buffering area output array OUT [m] set in advance In.
In the present embodiment, each calculated pulse frequency is saved in into respectively institute according to the sequencing for calculating In stating each output array element of output array OUT [m].For example:For the first time calculated pulse frequency is saved in OUT [0] In, second calculated pulse frequency is saved in OUT [1], by that analogy.The default pulse frequency computing formula:Arteries and veins Rate of fighting (unit:Beat/min)=[1000ms/ (pulse cycle (unit ms))] * 60.
Fig. 8 is referred to, Fig. 8 is another kind of step stream of the pulse frequency quick calculation method that present pre-ferred embodiments are provided Cheng Tu.Methods described also includes in addition to above-mentioned steps:
Step S110, single-chip microcomputer 100 obtains the parameter specification of the display screen 200 being electrically connected with the single-chip microcomputer 100.
In this example it is shown that screen 200 preferably adopts TFT lattice lcd screens, dot matrix is to embody a concentrated reflection of crystal structure Periodicity and a concept introducing.One dot matrix can be reduced to series of parallel lattice point ranks (abbreviation array), or A series of parallel lattice point plane (abbreviation front).Illustrate by taking 320 × 280 dot matrix as an example in the following step.
Step S120, single-chip microcomputer 100 obtains the sample point data of predetermined number and protects according to the parameter specification of display screen 200 Input array (IN [n]) set in advance in the buffering area of the single-chip microcomputer 100 is stored to, by each sampled point according to the elder generation for sampling Afterwards order is saved in respectively in each input array element of the input array.
In the present embodiment, the sampled point points for pre-setting the predetermined number being stored in the buffering area are n.With this As a example by 320 × 280 dot matrix TFT liquid crystal displays that embodiment is selected, in order to ensure the stability that pulse frequency is calculated, n values are 320 Integral multiple, here is taken as at 640 points, that is, set the input array of 640 word lengths:IN[640].Wherein, the input array unit The value preserved in element corresponds to the ordinate y of each sampled point.
Step S130, single-chip microcomputer 100 calculates the data mean value that each input array element is preserved in the input array.
In the present embodiment, because real-time pulse wave can receive human body electromagnetic signal, human body shake and external environment Deng affecting, slow baseline drift signal and random pulse signal can be produced, larger doing can be brought to the calculating of pulse frequency Disturb, here needs to take the data (the corresponding values of ordinate y) that input array IN [640] is preserved in a baseline value, i.e. buffering area Mean value (Average).And initial value, i.e. Max=Min=Average are assigned to maximum (Max) and minimum of a value (Min).In search During, the maximum (Max) is used to preserve larger obtained by the ordinate y for passing through comparison pulse waveform sampling point every time Value, to find the wave crest point of pulse wave;The minimum of a value (Min) is used to preserve every time by comparison pulse waveform sampling point Ordinate y obtained by less value, to find the trough point of pulse wave.
Step S170, single-chip microcomputer 100 judges whether pulse frequency calculation times exceed the default upper limit number of the output array.
In the present embodiment, the default upper limit number refers to the default input array element of output array OUT [m] Number, is preferably arranged to 5 times, i.e. OUT [0]-OUT [4].
In the present embodiment, when pulse frequency calculation times are not less than the default upper limit number of the output array 5 times, perform Step S120.When the pulse frequency calculation times are more than 5 times, execution step S175.
Step S175, whole pulse frequencies that the output array of single-chip microcomputer 100 pairs is preserved carry out mean value computation, obtain final Output pulse frequency.
In the present embodiment, single-chip microcomputer 100 calculates the average of whole pulse frequencies that output array OUT [m] is preserved:(OUT [0]+OUT [1]+OUT [2]+OUT [3]+OUT [4])/5, the value is the pulse frequency after filtering, the used monolithic of the average Machine 100 is transferred to display screen 200 and is shown.
Second embodiment
Fig. 9 is referred to, Fig. 9 is the functional module of the quick computing device 400 of pulse frequency that present pre-ferred embodiments are provided Block diagram.Described device includes:
Acquisition module 410, for obtaining the parameter specification of the display screen 200 being electrically connected with the single-chip microcomputer 100.
In the present embodiment, the acquisition module 410 is used to perform step S110 in Fig. 8, with regard to the acquisition module 410 specific descriptions are referred to the description of step S110.
Preserving module 420, for the sample point data of predetermined number being obtained according to the parameter specification of display screen 200 and being preserved The input array set in advance in the buffering area of the single-chip microcomputer 100, each sampled point is divided according to the sequencing of sampling In not being saved in each input array element of the input array.
In the present embodiment, the preserving module 420 is used to perform step S120 in Fig. 8, with regard to the preserving module 420 specific descriptions are referred to the description of step S120.
Mean value computation module 430, for calculating the input array in each input data for being preserved of array element it is equal Value.
In the present embodiment, the mean value computation module 430 is used to perform step S130 in Fig. 8, with regard to the average The specific descriptions of computing module 430 are referred to the description of step S130.
Collection number computing module 440, for adopting according to the human pulse frequency range for pre-setting, to pulse signal The sample frequency and hunting zone formulary of sample are calculated the collection number of sampled point hunting zone.
In the present embodiment, the collection number computing module 440 is used to perform step S140 in Fig. 8, adopts with regard to described The specific descriptions of collection number computing module 440 are referred to the description of step S140.
Search module 450, for protecting in the several buffering areas to single-chip microcomputer 100 of collection based on the sampled point hunting zone The sampled point of the pulse wave data deposited is scanned for, and obtains the sampled point points included by the pulse wave of a cycle.
In the present embodiment, the search module 450 is used to perform step S150 in Fig. 8, with regard to the search module 450 specific descriptions are referred to the description of step S150.
Pulse frequency computing module 460, for based on default pulse frequency computing formula, sampling time interval and one Sampled point points included by the pulse wave in cycle are calculated pulse frequency.
In the present embodiment, the pulse frequency computing module 460 is used to perform step S160 in Fig. 8, with regard to the arteries and veins The specific descriptions of rate of fighting computing module 460 are referred to the description of step S160.
Judge module 470, for judging whether pulse frequency calculation times exceed the default upper limit number of output array.
In the present embodiment, the output array is set in advance in the buffering area of the single-chip microcomputer 100.The judgement mould Block 470 is used to perform step S170 in Fig. 5, and with regard to the specific descriptions of the judge module 470 step S170 is referred to Description.
The judge module 470, is additionally operable to when the pulse frequency calculation times exceed the default upper limit of the output array During number, mean value computation is carried out to whole pulse frequencies that the output array is preserved, obtain final output pulse frequency.
In the present embodiment, the judge module 470 is additionally operable to perform step S175 in Fig. 8, with regard to the judgement mould The specific descriptions of block 470 are referred to the description of step S175.
In sum, a kind of pulse frequency quick calculation method provided in an embodiment of the present invention and device, by single-chip microcomputer meter Calculation obtains the collection number of sampled point hunting zone.Based on preservation in the several buffering areas to single-chip microcomputer of collection of sampled point hunting zone The sampled point of pulse wave data scan for, obtain the sampled point points included by the pulse wave of a cycle.It is based on Sampled point points meter included by default pulse frequency computing formula, sampling time interval and the pulse wave in one cycle Calculation obtains pulse frequency.Thus, when not enough in single-chip microcomputer machine, pulse frequency can quickly be calculated, even if there is mass data Collection and when showing task, also can Real-time Collection pulse signal data, it is to avoid mistake in computation, alleviate single-chip microcomputer process task Burden.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (10)

1. a kind of pulse frequency quick calculation method, it is characterised in that methods described includes:
Single-chip microcomputer is according to the human pulse frequency range for pre-setting, the sample frequency sampled to pulse signal and search Scope formulary is calculated the collection number of sampled point hunting zone;
The single-chip microcomputer is based on the pulse wave preserved in the several buffering areas to single-chip microcomputer of collection of the sampled point hunting zone The sampled point of data is scanned for, and obtains the sampled point points included by the pulse wave of a cycle;
The single-chip microcomputer is based on default pulse frequency computing formula, sampling time interval and the pulse wave in one cycle institute Including sampled point points be calculated pulse frequency.
2. method according to claim 1, it is characterised in that it is described be calculated sampled point hunting zone the step of it Before, methods described also includes:
The single-chip microcomputer obtains the parameter specification of the display screen being electrically connected with the single-chip microcomputer;
The single-chip microcomputer obtains the sample point data of predetermined number and is saved in the single-chip microcomputer according to the parameter specification of display screen Buffering area in input array set in advance, by each sampled point according to sampling sequencing be saved in the input respectively In each input array element of array, wherein, the value of the input array element corresponds to the ordinate of each sampled point;
The single-chip microcomputer calculates the data mean value that each input array element is preserved in the input array.
3. method according to claim 2, it is characterised in that the collection number of the sampled point hunting zone is searched including first Rope scope gathers number and the second hunting zone collection number, and the hunting zone formulary includes the first search formula and the second search Formula, the single-chip microcomputer according to the human pulse frequency range for pre-setting, the sample frequency that pulse signal is sampled with And hunting zone formulary be calculated sampled point hunting zone collection number step include:
According to the human pulse frequency range for pre-setting, the sample frequency sampled to pulse signal and first search Formula is calculated the first hunting zone collection number;
Number is gathered according to first hunting zone and the second search formula is calculated the second hunting zone collection number.
4. method according to claim 3, it is characterised in that the single-chip microcomputer is adopted based on the sampled point hunting zone The sampled point of the pulse wave data preserved in the several buffering areas to single-chip microcomputer of collection is scanned for, and obtains the pulse wave of a cycle The step of sampled point included by shape is counted includes:
With first input array element in the input array as starting point, and number is gathered based on first hunting zone The first hunting zone for scanning in the input array is obtained, in first hunting zone the described in detection range The first maximum maximum input array element of one nearest input array element value of input array element;
With the described first maximum input array element as starting point, and obtained described based on second hunting zone collection number The second hunting zone scanned in input array, the search in second hunting zone obtains being input into array element value most The minimum input array element of little first;
With the described first minimum input array element as starting point, and obtained described based on second hunting zone collection number The 3rd hunting zone scanned in input array, the search in the 3rd hunting zone obtains being input into array element value most The maximum input array element of big second;
The pulse wave of a cycle is obtained based on the described first maximum input array element and the second maximum input array element Included sampled point points.
5. method according to claim 4, it is characterised in that the single-chip microcomputer based on default pulse frequency computing formula, The step of sampled point points included by the pulse wave in sampling time interval and one cycle are calculated pulse frequency is wrapped Include:
Sampled point points included by the pulse wave in one cycle are multiplied with the sampling time interval and obtain pulse Sampling period;
The pulse sampling period is brought into the default pulse frequency computing formula to carry out being calculated pulse frequency, and will The pulse frequency is saved in buffering area output array set in advance, wherein, will each calculated pulse Rate is saved in respectively in each output array element of the output array according to the sequencing for calculating.
6. method according to claim 5, it is characterised in that methods described also includes:
Judge whether pulse frequency calculation times exceed the default upper limit number of the output array;
When pulse frequency calculation times upper limit number default more than the output array, what the output array was preserved is complete Portion's pulse frequency carries out mean value computation, obtains final output pulse frequency.
7. the quick computing device of a kind of pulse frequency, it is characterised in that described device includes:
Collection number computing module, for according to the human pulse frequency range, adopting of being sampled to pulse signal for pre-setting Sample frequency and hunting zone formulary are calculated the collection number of sampled point hunting zone;
Search module, for the pulse wave preserved in the several buffering areas to single-chip microcomputer of collection based on the sampled point hunting zone The sampled point of graphic data is scanned for, and obtains the sampled point points included by the pulse wave of a cycle;
Pulse frequency computing module, for based on default pulse frequency computing formula, sampling time interval and one cycle Sampled point points included by pulse wave are calculated pulse frequency.
8. device according to claim 7, it is characterised in that described device also includes:
Acquisition module, for obtaining the parameter specification of the display screen being electrically connected with the single-chip microcomputer;
Preserving module, for the sample point data of predetermined number to be obtained according to the parameter specification of display screen and the monolithic is saved in Input array set in advance in the buffering area of machine, each sampled point is saved in respectively according to the sequencing of sampling described defeated In entering each input array element of array, wherein, the value of the input array element corresponds to the ordinate of each sampled point;
Mean value computation module, for calculating the input array in each input data mean value for being preserved of array element;
Judge module, for judging whether pulse frequency calculation times exceed the default upper limit number of output array, wherein, the output Array is set in advance in the buffering area of the single-chip microcomputer;
The judge module, is additionally operable to when pulse frequency calculation times upper limit number default more than the output array, right Whole pulse frequencies that the output array is preserved carry out mean value computation, obtain final output pulse frequency.
9. device according to claim 8, it is characterised in that the collection number of the sampled point hunting zone is searched including first Rope scope gathers number and the second hunting zone collection number, and collection number of the search module based on the sampled point hunting zone is right The sampled point of the pulse wave data preserved in the buffering area of single-chip microcomputer is scanned for, and the pulse wave for obtaining a cycle is wrapped The mode of the sampled point points for including includes:
With first input array element in the input array as starting point, and number is gathered based on first hunting zone The first hunting zone for scanning in the input array is obtained, in first hunting zone the described in detection range The first maximum maximum input array element of one nearest input array element value of input array element;
With the described first maximum input array element as starting point, and obtained described based on second hunting zone collection number The second hunting zone scanned in input array, the search in second hunting zone obtains being input into array element value most The minimum input array element of little first;
With the described first minimum input array element as starting point, and obtained described based on second hunting zone collection number The 3rd hunting zone scanned in input array, the search in the 3rd hunting zone obtains being input into array element value most The maximum input array element of big second;
The pulse wave of a cycle is obtained based on the described first maximum input array element and the second maximum input array element Included sampled point points.
10. device according to claim 9, it is characterised in that the pulse frequency computing module is based on default pulse frequency Sampled point points included by the pulse wave of computing formula, sampling time interval and one cycle are calculated pulse frequency Mode include:
Sampled point points included by the pulse wave in one cycle are multiplied with the sampling time interval and obtain pulse Sampling period;
The pulse sampling period is brought into the default pulse frequency computing formula to carry out being calculated pulse frequency, and will The pulse frequency is saved in the buffering area output array set in advance, wherein, will be calculated described every time Pulse frequency is saved in respectively in each output array element of the output array according to the sequencing for calculating.
CN201710067518.0A 2017-02-07 2017-02-07 Pulse rate quick calculation method and apparatus Pending CN106618545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710067518.0A CN106618545A (en) 2017-02-07 2017-02-07 Pulse rate quick calculation method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710067518.0A CN106618545A (en) 2017-02-07 2017-02-07 Pulse rate quick calculation method and apparatus

Publications (1)

Publication Number Publication Date
CN106618545A true CN106618545A (en) 2017-05-10

Family

ID=58846260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710067518.0A Pending CN106618545A (en) 2017-02-07 2017-02-07 Pulse rate quick calculation method and apparatus

Country Status (1)

Country Link
CN (1) CN106618545A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829471A (en) * 2003-06-16 2006-09-06 达腾科技有限公司 Devices and methods for heart-rate measurement and wrist-watch incorporating same
CN105662455A (en) * 2016-01-14 2016-06-15 南京邮电大学 Hand-held type voice-broadcast heart sound detection device
CN105997035A (en) * 2016-05-04 2016-10-12 深圳欧德蒙科技有限公司 Non-contact type heart rate measurement method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829471A (en) * 2003-06-16 2006-09-06 达腾科技有限公司 Devices and methods for heart-rate measurement and wrist-watch incorporating same
CN105662455A (en) * 2016-01-14 2016-06-15 南京邮电大学 Hand-held type voice-broadcast heart sound detection device
CN105997035A (en) * 2016-05-04 2016-10-12 深圳欧德蒙科技有限公司 Non-contact type heart rate measurement method and system

Similar Documents

Publication Publication Date Title
US8818740B2 (en) Sensor-powered wireless cable leak detection
US11280809B2 (en) Method and apparatus for processing oscilloscope signal and oscilloscope
CN113211426B (en) Robot fault diagnosis method and device, computer equipment and storage medium
CN106618545A (en) Pulse rate quick calculation method and apparatus
CN110187274A (en) A kind of stepper motor detection method, device and system
CN109362826A (en) Dough fermentation control method and device, cooking equipment and storage medium
CN115144749A (en) Motor test system based on big data
CN111736539A (en) Monitoring data display method, device, system, server and storage medium
CN105629167A (en) Asynchronous motor fault detection system
WO2019049199A1 (en) Data display system, display device, and data display method
CN111766863B (en) Binding method of operation equipment and task land parcels and related device
CN105808019A (en) Method for detecting touch point coordinates of infrared touch screens
CN117233596A (en) Method and device for monitoring the operating state of an elevator system
CN112992023A (en) Self-checking method and self-checking circuit of input signal
CN108169544A (en) Voltage dip methods of exhibiting and device
CN104965647A (en) Information processing method and electronic device
CN113489906B (en) Method and device for controlling shooting equipment, computer equipment and storage medium
CN118152960A (en) Multi-sensor fault prediction method and device, electronic equipment and storage medium
CN114370343B (en) Industrial vehicle control method, system and instrument based on self-adaptive communication
CN203012163U (en) Analog seismic signal generator
CN112801044B (en) Video image processing method and device, video client and analysis platform
WO2024180879A1 (en) Analysis system, analysis system analysis method, server device, server device control method, and program
CN111473815B (en) Double-host state monitoring system based on multiple sensors and monitoring method thereof
CN112147970B (en) Method and device for detecting abnormity of household appliance
CN111580096B (en) Defense area drawing method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication