Summary of the invention
The objective of the invention is in order to solve the above-mentioned problems in the prior art, technical scheme of the present invention is as follows:
A kind of portable cardiac diagnosis monitoring device based on rhythm mode comprises ECG signal acquisition module, signal front-end processing module, A/D modular converter, primary processor, data storage cell and display module; The signal that the ECG signal acquisition module is gathered imports primary processor into again behind the A/D modular converter after the signal front-end processing resume module; Primary processor is connected with data storage cell, display module respectively; Primary processor is finished feature extraction and classification diagnosis.
Described signal front-end processing module comprises one-level amplifying circuit, secondary amplification filtering circuit, power frequency trap circuit; Electrocardiosignal obtains the ECG signal of 1 ± 0.1V again through the power frequency trap after one-level amplification, secondary amplify; Described one-level amplifying circuit is the instrument amplifier of 10 times of amplifications; Secondary amplification filtering circuit is 100 times of amplification filtering circuit that the amplifier chip constitutes; The power frequency trap circuit is the 50Hz wave trap.
The ECG signal acquisition module adopts simulation V5 to lead, and promptly anodal at left breast the 4th intercostal midaxillary line place, negative pole places the mode of leading of breastbone upper limb.Primary processor is finished data acquisition by the PIO mouth.Described one-level amplifying circuit also is connected with right lower limb common mode negative-feedback circuit (being driven-right-leg circuit) and carries out further common mode disturbances inhibition.
Described display module is a LCD MODULE.This device also comprises radio receiving transmitting module; Described LCD MODULE is by PIO mouth and host interface; Pass through the SPI interface communication between described radio receiving transmitting module and the primary processor; Radio transmitting and receiving chip is carried out parameter configuration to primary processor and data transmit; The work of wireless transmission is divided into: user side registration process and data transmission procedure.
This equipment also is provided with data storage function: described data storage cell and primary processor are by the SPI interface communication; Data storage cell adopts general fast-flash memory storage card, as the SD card.
The SPI interface is a serial peripheral interface; PIO is the parallel transmission interface.
Primary processor is finished feature extraction and classification diagnosis according to the heart beat rhythm variation mode.Step is that the electrocardiogram ECG signal extraction R crest location from gathering obtains rhythm and pace of moving things interval signal; Extract rhythm and pace of moving things variation mode again, add up its regularity of distribution, and describe its regularity of distribution by index quantification; According to variation mode distribution, set up the hyperspace model then, unknown data is classified.
The invention has the beneficial effects as follows:
The present invention is based on the cardioscribe detection system of embedded technology, and volume is little, and is low in energy consumption, is convenient to carry the long record ECG signal.Adopt general fast-flash memory storage card storage ECG data, volume is little, in light weight, capacity is big, cost is low.In addition, system also possesses wireless data transmission function.Adopt heart rhythm signal as object, be not subject to the influence of noise and certainty of measurement.Based on the mode profile of characteristic parameter cardiac rhythm variation and physiological status, pathological state closely related, have clear physical meaning, and simple description form, particular state is had distribution of specific, use short time data just can produce stable result, be fit to clinical use.Algorithm is simple, is convenient to realize based on micro controller systems such as single-chip microcomputer, ARM.
Specific embodiments
The invention will be further described below in conjunction with accompanying drawing and the specific embodiment.
This equipment operation principle structured flowchart as shown in Figure 1.Comprising: electrocardiogram acquisition module (mainly finishing the electrocardiogram collection), storage and demonstration, wireless transmission; Heart beat rhythm signal, the feature extraction of rhythm and pace of moving things variation mode distribution; The definition index is with quantitative description mode profile feature; Make up the hyperspace model and classify, export the result.
Its specific embodiments is as follows:
1. the structural framing of hardware system is seen Fig. 2.Obtain electrocardiosignal from human body with crosslinking electrode, detect front end it is amplified and Filtering Processing, obtain the signal of certain frequency scope and amplitude, handle through analog-digital converter, the digital signal after the conversion is delivered to primary processor by special interface.Adopt the arm processor of embedded technology in this example, finish ecg wave form demonstration, data preservation, wireless transmission and data analysis and warning.Because general arm processor may be used to this equipment, primary processor just has not been further limited at this.
Adopt simulation V5 to lead (promptly anodal at left breast the 4th intercostal midaxillary line place, negative pole places the mode of leading of breastbone upper limb) 2.ECG signal obtains, drive inhibition 50Hz power frequency with right lower limb simultaneously and disturb.One-level is amplified (10 times) and is adopted high accuracy, low-power consumption instrument amplifier, and common amplifier chip constitutes secondary and amplifies (100 times), power frequency trap (50Hz), and the amplitude of obtaining is the ECG signal about 1V, as Fig. 3.Owing to describedly lead, amplifying circuit, power frequency notch filter and right lower limb common mode negative-feedback circuit (being driven-right-leg circuit) and their connected mode be all very common in the prior art, just be not further limited at this.
3. radio receiving transmitting module adopts the transceiver chip as master chip, selects PTR8000 in this example for use.The function of this chip has, and the multifrequency point multiband can be used for multiple-point wireless transmission; Low voltage power supply, GFSK modulation, but frequency hopping, and have carrier wave detection, matching addresses, data ready output.Built-in communication protocol and CRC check.Primary processor can carry out parameter configuration and data transmission to radio transmitting and receiving chip by special interface (as the SPI interface).In order to realize the transfer of data of point-to-multipoint, promptly service end is to the working method of several user sides, and satisfies the response and the space requirement of embedded system, and the work of wireless transmission is divided into: user side registration process and data transmission procedure.A general purpose control passage is used for service end and sends order and request-reply to user side, and user side sends request to service end; A plurality of data channel, the data channel that each user is corresponding different is used for transmitting data to service end.
4. data storage adopts general fast-flash memory storage card (as the SD card).Size is little, and is in light weight, and memory capacity is big, and data transmission bauds is fast, possesses the defencive function of data information, supports hot plug, has great mobile motility and well safety.
5. primary processor is gathered, is shown by special interface (as the PIO mouth), carries out rhythm and pace of moving things extraction to obtaining electrocardiogram ECG.The interval of detecting the electrocardiogram adjacent R ripple of continuous acquisition obtains heart beat rhythm signal RR (i), represent the i time and the i+1 time heart beating between interval.Its process is as follows:
1. get the search window width about about 1.5 cycles in cycle, the electrocardiogram (ECG) data of sampling is found out the slope maximum; 2. this slope maximum is designated as MaxSlopeGate; Position with MaxSlopeGate is a starting point, seeks the interior amplitude maximum of certain window scope (about an about QRS ripple is wide) backward, and its corresponding position is the preliminary position of R ripple; 3. calculate this R ripple position and time value between the RR of R ripple position last time, if this interval,, think then that the R ripple of seeking exists many inspections or omission, rejects this position less than RR interval threshold minimum MinRRInternal or greater than RR interval thresholding maximum MaxRRInternal, adjust the search window width, if the search window width is then dwindled in omission, if many inspections, then increase the search window width, search meets the requirements up to the interval of the R ripple position of finding, or does not find that 4. reposition changes over to once more; 4. with the current R ripple position that searches out as benchmark pass backward half QRS ripple wide about, get next window width (about about 1.5 cycles) data, return step 1., seek next R ripple position.
(described threshold value is to decide according to the scope of the interval between normal person the i time and the i+1 time heart beating, for example, and for the desirable threshold value of normal person: MinRRInternal=300ms, MaxRRInternal=2000ms)
6. extract rhythm and pace of moving things variation mode.The present invention proposes to use the directional information of three kinds of symbology heart rate variabilities, and the building method of concrete symbol sebolic addressing is as follows: as RR (i)〉RR (i+1), x (i) is designated as 0; As RR (i)=RR (i+1), x (i) is designated as 1; As RR (i)<RR (i+1), x (i) is designated as 2; I=1,2,3 .., N-1.Setting the word length width is m, structure sequence vector: X (i)=[x (i), x (i+1) .., x (i+ (m-1))], i=1,2 .., N-m.Definition index quantification description scheme distribution characteristics, the Probability p of add up every kind of pattern appearance, to might combining form the distribution probability ask comentropy:
As follows with two-dimensional spatial model explanation classificating thought, as Fig. 4:
At two-dimensional space two known vectorial OA (a of classification are arranged
1, a
2) and vectorial OB (b
1, b
2), and the vectorial OC (c that waits to declare classification
1, c
2).Angle between OC and OA, the OB is respectively α and β.If α<β, then think OC more near OA, just in that OC and OA are close in nature.If wherein, vectorial OA, OB have represented the position of centre of gravity of A, B two class vectors respectively, can conclude that then the C point belongs to category-A; Otherwise, then belong to category-B.
A wherein
i, b
i, c
i(i=1,2) are respectively the plane coordinates value of A, B, C each point.
It is as follows that the C point is differentiated: when α<β, and cos α-cos β〉0, the C point belongs to category-A; As α〉during β, cos α-cos β〉0, the C point belongs to category-B.
Primary processor can also be with age factor as feature input separately; The detected object age is chosen different category sets as standard.
The work process of primary processor for example shown in Figure 5: electrocardiogram obtains, and the R crest extracts to obtain the heart beat rhythm signal, extracts rhythm and pace of moving things variation mode, makes up the hyperspace model.Read age information, the right side of fifty, calculate and young healthy group (for example OA represents) and disease group (for example OB represents) between included angle cosine COS, fall into the group of COS maximum; More than 50 years old, calculate with old healthy organize and disease group between included angle cosine COS, fall into the group of COS maximum.
This equipment shows the classification diagnosis result at last on screen.Normally then show normal; Tachycardia, bradycardia, premature beat, the leakage slight state of an illness such as fight is reminded the patient to have a rest or is taken medicine or seek advice from Xiang the doctor; Quiver, stop fighting in heart failure, dangerous arrhythmia, chamber, warning surpasses the still then electrocardio of the transmission storage at once request first aid of no change of 30s electrocardio.Patient can press the warning key and send the request that helps according to self state of feeling during this.