CN103126669B - Method of improving wave form drawing accuracy degree and drawing method and device applied method - Google Patents

Method of improving wave form drawing accuracy degree and drawing method and device applied method Download PDF

Info

Publication number
CN103126669B
CN103126669B CN201210561139.4A CN201210561139A CN103126669B CN 103126669 B CN103126669 B CN 103126669B CN 201210561139 A CN201210561139 A CN 201210561139A CN 103126669 B CN103126669 B CN 103126669B
Authority
CN
China
Prior art keywords
point
pixel
wave form
value
waveform
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
Application number
CN201210561139.4A
Other languages
Chinese (zh)
Other versions
CN103126669A (en
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.)
Edan Instruments Inc
Original Assignee
Edan Instruments Inc
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 Edan Instruments Inc filed Critical Edan Instruments Inc
Priority to CN201210561139.4A priority Critical patent/CN103126669B/en
Priority to CN201410156924.0A priority patent/CN103976728B/en
Publication of CN103126669A publication Critical patent/CN103126669A/en
Application granted granted Critical
Publication of CN103126669B publication Critical patent/CN103126669B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to the field of medical treatment, in particular to a method of improving a wave form drawing accuracy degree and an electrocardio wave form drawing method and a device applied the method. The electrocardio wave form drawing method comprises that an electrocardio signal is collected, analog-digital conversion of the electrocardio signal is conducted to obtain electrocardio wave form original data, preprocessing of the electrocardio wave form original data is conducted, extracting gaps of feature points are calculated, feature points of an extracting gap of each feature point are extracted, feature point set is obtained, gray value of approaching pixel points of two sides of a connection line of corresponding coordinate points of two adjacent feature points is set, electrocardio wave form drawing pixel point set is obtained, and according to the electrocardio wave form drawing pixel point set, an electrocardio wave form is drawn. The electrocardio wave form drawing method and the device thereof not only can improve efficiency of electrocardio wave form drawing, but also remove burrs and steps of the electrocardio wave form, improve accuracy degree of the electrocardio wave form, and not only are suitable for a static the electrocardio wave form, but also are suitable for a real-time electrocardio wave form.

Description

A kind of method for drafting and device that improves waveform drawing accuracy method and apply it
Technical field
the present invention relates to medical field, be specifically related to a kind of method that improves waveform drawing accuracy.
the invention still further relates to the waveform drawing method of this raising waveform drawing accuracy method of application and ecg wave form method for drafting and the device corresponding with it.
Background technology
conventionally, in PC electrocardiograph system (being called for short PC ECG), need the electrocardiogram (ECG) data of fixed sample rate to be presented on the personal computer monitor that resolution is different.For different resolution, the number of the pixel that display can show is different.The resolution of 1440*900 of take is example, and according to calculating, on lateral attitude, the screen of 1mm can show 4 pixels.The sampling rate of supposing receiving box is 1000Hz, and under 25mm/s waveform walking speed, 1mm need to show 40 sampled points.Therefore,, on lateral attitude, each pixel is wanted 10 sampled datas of overlapping demonstration.The waveform of drawing out so has not only affected the drafting speed of waveform, and can make waveform occur burr.In addition, on the display of raster scanning display mode, the displaing coordinate of pixel is the approximation of actual coordinate, can only round numbers.When this makes the resolution of display lower, the waveform drawing can present stepped.Ecg wave form is the foundation of the diagnosis state of an illness, and the burr that the overlapping demonstration of sampled point causes and the ladder of waveform drawing all can affect the observation of doctor to ecg wave form.Therefore we need to find a kind of method to eliminate burr and the ladder of ecg wave form.
the method of eliminating clinically at present overlapping demonstration is mainly extract minutiae, and by a feature point extraction interval is set, in extracting interval, the point of absolute value maximum is as characteristic point.But this method only applicable ecg wave form changes milder situation, for changing waveform faster, will lose key feature points, thereby affect the validity of waveform, causes doctor's false judgment.
the ladder occurring while drawing ecg wave form for elimination is generally to adopt anti-aliasing processing.Current most popular anti-aliasing algorithm is " the anti-aliasing algorithm of Wu ".The method connects a desirable line segment between two end points, then according to line segment both sides pixel, to the distance of line segment, the brightness that weights regulate both sides pixel is set, thereby reach the object of visually eliminating sawtooth, the method is actually the thickness that has increased curve.But the method is just obvious for effect in the coordinate (abscissa or vertical coordinate) of two somes situation relatively far apart, very near if the coordinate of two points is separated by, and only differs pixel one or two, this algorithm basic inefficacy just so.So just all waveform ladders of cancellation completely, still can affect to doctor's observation ecg wave form.
Summary of the invention
for overcoming above-mentioned defect, object of the present invention is to provide a kind of being applied to improve waveform drawing efficiency in waveform drawing process, eliminates waveform drawing burr and ladder, and then improves the method for waveform accuracy.
the present invention also aims to provide a kind of for realizing the waveform drawing method of above-mentioned raising waveform accuracy method and ecg wave form method for drafting and the device corresponding with it.
the object of the invention is to be achieved through the following technical solutions:
a kind of method that improves waveform accuracy of the present invention, comprising:
obtain waveform data points set, calculated characteristics point extracts interval simultaneously;
to waveform data points, set is extracted, and obtains characteristic point set;
described to waveform data points set extract, the step that obtains characteristic point set is:
poor to every adjacent two data point in waveform data points set, obtain difference set, sign symbol to every adjacent two differences of this difference set compares, if the sign symbol of every adjacent two differences is not identical, catastrophe point is not set, if the sign symbol of every adjacent two differences is identical, the intermediate point of adjacent three data points that these adjacent two differences are corresponding is set to catastrophe point, obtain catastrophe point set, add up the number of catastrophe point in each feature point extraction interval, if the number of catastrophe point is zero in feature point extraction interval, extract intermediate point in feature point extraction interval as characteristic point, if the number of catastrophe point is greater than zero in feature point extraction interval, getting in feature point extraction interval the catastrophe point of numerical value maximum in catastrophe point is characteristic point, obtain characteristic point set.
as a modification of the present invention, according to the resolution of display, size, default sample frequency and the walking speed calculated characteristics point of waveform, extract interval.
a method that improves waveform drawing accuracy, comprising:
according to characteristic point set, obtain the pixel set corresponding with it;
according to adjacent two coordinates that pixel is corresponding in pixel set, obtain slope value set, and judge in slope value set, whether to exist for zero or infinitely-great slope value, if exist for zero or infinitely-great slope value, the gray value of the both sides adjacent pixels point of the coordinate points line that adjacent two pixels are corresponding is set to α, wherein 0< α < 1, if do not exist for zero or infinitely-great slope value, the absolute value of slope value and default slope threshold value are compared, if the absolute value of slope value is greater than default slope threshold value, the gray value of the both sides adjacent pixels point of coordinate points line corresponding to adjacent two pixels is set to respectively to γ and δ, wherein according to pixel, the distance to line determines respectively for γ and δ, γ+δ=1 wherein, if the absolute value of slope is less than default slope threshold value, if judgement slope value is for just, the lower pixel point gray value of coordinate points line corresponding to adjacent two characteristic points is set to β, if slope value is for negative, the top pixel gray value of coordinate points line corresponding to adjacent two characteristic points is set to β, 0.5< β <1 wherein, thereby obtain the set of waveform drawing pixel,
according to the pixel gray value drawing waveforms in the set of waveform drawing pixel.
as a modification of the present invention, the numerical value of each characteristic point is rounded to the coordinate figure as Y, wherein round according to the mode rounding up and carry out, the sequence number at the feature point extraction interval under each characteristic point is as X coordinate figure, the pixel corresponding to coordinate figure of each characteristic point obtaining stored, obtained pixel set.
a waveform drawing method, comprising:
obtain waveform data points set, calculated characteristics point extracts interval simultaneously;
to waveform data points, set is extracted, and obtains characteristic point set, then obtains the pixel set corresponding with it according to characteristic point set;
to pixel, set is calculated and is obtained the set of waveform drawing pixel, and according to the pixel gray value drawing waveforms in the set of waveform drawing pixel;
described to waveform data points set extract, the step that obtains characteristic point set be as above to waveform data points set extract, obtain the step of characteristic point set;
described to pixel set calculate obtain waveform drawing pixel set step be as above to pixel set calculates the step of acquisition waveform drawing pixel set.
a kind of for realizing the device of waveform drawing method as above, mainly comprise: main control module, be connected with main control module respectively for data memory module that data are stored, waveform data points set is carried out to the data preprocessing module, data characteristics point abstraction module, waveform drawing module of feature point extraction interval calculation, waveform display module for waveform being shown or printing;
described data characteristics point extraction module comprises consecutive number strong point difference computational unit, the first comparing unit, feature point extraction unit and the pixel set acquiring unit connecting successively; Described consecutive number strong point difference computational unit, asks poor for the every adjacent two data point to the set of data points of waveform, obtains difference set; Described the first comparing unit, for the sign symbol of adjacent two differences of difference set is compared, obtains catastrophe point set; Described feature point extraction unit, for extracting characteristic point according to the number of catastrophe point in feature point extraction interval, obtains characteristic point set; Described pixel set acquiring unit, for calculating coordinate figure corresponding to each characteristic point according to the value of characteristic point set characteristic point, obtains pixel set;
described waveform drawing module comprises slope value set acquiring unit, slope value judging unit, gray value setting unit and the waveform drawing unit connecting successively; Described slope value set acquiring unit, for calculate the slope of every adjacent two pixel lines according to the pixel of pixel set, obtains slope value set; Described slope value judging unit, for screening the slope value of slope value set, judges that in slope value set, whether having slope absolute value is zero or infinitely-great slope value, if nothing, and the slope value in set of slopes and predetermined threshold value are compared; Described gray value setting unit, for the gray value of the both sides adjacent pixels point of adjacent two pixel respective coordinates point lines is set according to the slope value of slope value set, obtains the set of waveform drawing pixel; Described drawing unit, for drawing waveform according to the waveform drawing pixel set obtaining.
as a modification of the present invention, described data preprocessing module comprises sampling unit, the filter unit connecting successively and takes out an interval calculation unit; Described sampling unit, for Wave data is sampled, obtains the data after sampling; Described filter unit, for the data of sampling are carried out to low-pass filtering treatment, obtains waveform data points set; A described interval calculation unit of taking out, for extracting interval according to the walking speed of the resolution of display, size, waveform and default sample frequency calculated characteristics point.
a kind of ecg wave form drawing apparatus, mainly comprise: main control module, be connected with main control module respectively for data memory module that data are stored, for gathering the electrocardio-data collection module of EGC waveform data, for EGC waveform data being carried out to pretreated electrocardiogram (ECG) data pre-processing module, for to obtaining the electrocardiogram (ECG) data feature point extraction module of ecg wave form characteristic point set, for drawing the ecg wave form drafting module of ecg wave form, ecg wave form display module for ecg wave form being shown or printing;
described electrocardiogram (ECG) data feature point extraction module comprises consecutive number strong point difference computational unit, the first comparing unit, feature point extraction unit and the pixel set acquiring unit connecting successively;
described consecutive number strong point difference computational unit, asks poor for the every adjacent two data point to the set of data points of ecg wave form, obtains difference set;
described the first comparing unit, for the sign symbol of adjacent two differences of difference set is compared, obtains catastrophe point set;
described feature point extraction unit, for extracting characteristic point according to the number of catastrophe point in feature point extraction interval, obtains characteristic point set;
described pixel set acquiring unit, for calculating coordinate figure corresponding to each characteristic point according to the value of characteristic point set characteristic point, obtains pixel set.
as a modification of the present invention, described ecg wave form drafting module comprises slope value set acquiring unit, slope value judging unit, gray value setting unit and the waveform drawing unit connecting successively;
described slope value set acquiring unit, for calculate the slope of every adjacent two pixel lines according to the pixel of pixel set, obtains slope value set;
described slope value judging unit, for screening the slope value of slope value set, judges that in slope value set, whether having slope absolute value is zero or infinitely-great slope value, if nothing, and the slope value in set of slopes and predetermined threshold value are compared;
described gray value setting unit, for the gray value of the both sides adjacent pixels point of adjacent two pixel respective coordinates point lines is set according to the slope value of slope value set, obtains ecg wave form and draws pixel set;
described drawing unit, draws ecg wave form for drawing pixel set according to the ecg wave form obtaining.
as a further improvement on the present invention, described electrocardio-data collection module comprises receiving element and AD conversion unit;
described receiving element, the human ecg signal gathering for receiving conducting wire;
described AD conversion unit is connected with receiving element, for electrocardiosignal is carried out to analog digital conversion, obtains ecg wave form initial data.
provided by the invention a kind of improve waveform drawing accuracy method and apply this method for drafting and device not only can obtain accurately ecg wave form characteristic point, and eliminated the burr occurring in ecg wave form drawing process, and then improved the accuracy of ecg wave form.The slope of every neighbor pixel line in calculating pixel point set in the method wherein, obtain set of slopes, the result of determination of carrying out according to the slope value in this set is set the gray value of pixel, and then carry out waveform drawing, can further eliminate the step that ecg wave form occurs, greatly improve the accuracy of ecg wave form.Wherein a kind of ecg wave form method for drafting provided by the invention and the device of applying this ecg wave form method for drafting be both applicable to the drafting of static ecg wave form, also applicable to the drafting of heart real time waveform.
Accompanying drawing explanation
for ease of explanation, the present invention is described in detail by following preferred embodiment and accompanying drawing.
fig. 1 is a kind of schematic flow sheet that improves waveform drawing accuracy method of the present invention;
fig. 2 is a kind of another schematic flow sheet that improves waveform drawing accuracy method of the present invention;
fig. 3 is a kind of waveform drawing method flow of the present invention schematic diagram;
fig. 4 is the idiographic flow schematic diagram that a kind of waveform drawing method of the present invention is applied to ecg wave form;
fig. 5 is a kind of ecg wave form drawing apparatus of the present invention schematic diagram;
fig. 6 is the concrete schematic diagram of a kind of ecg wave form drawing apparatus of the present invention.
?the specific embodiment
in order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
please refer to Fig. 1, a kind of method that improves waveform drawing accuracy of the present invention, comprises the following steps:
step 11: obtain waveform data points set, calculated characteristics point extracts interval simultaneously;
detailed process is: the number M that obtains the pixel of every millimeter of demonstration on display according to the resolution of display, size; According to the walking speed S of default sample frequency F and waveform, obtain the number R of the data point of every millimeter of demonstration, wherein R=F/S; The number Q that obtains the data point that each pixel on average will show, wherein Q=R/M, is feature point extraction interval, and feature point extraction interval refers in every Q point extracts a point as characteristic point; The waveform data points set of wherein obtaining is preferably the set of EGC waveform data point.
step 12: set is extracted to waveform data points, obtains characteristic point set;
detailed process is: poor to every adjacent two data point in waveform data points set, obtain difference set, sign symbol to every adjacent two differences of this difference set compares, if the sign symbol of every adjacent two differences is not identical, catastrophe point is not set, if the sign symbol of every adjacent two differences is identical, the intermediate point of adjacent three data points that these adjacent two differences are corresponding is set to catastrophe point, obtain catastrophe point set, add up the number of catastrophe point in each feature point extraction interval, if the number of catastrophe point is zero in feature point extraction interval, extract intermediate point in feature point extraction interval as characteristic point, if the number of catastrophe point is greater than zero in feature point extraction interval, getting in feature point extraction interval the catastrophe point of numerical value maximum in catastrophe point is characteristic point, obtain characteristic point set, the feature point set of wherein said acquisition share in drawing waveforms.
please refer to Fig. 2, a kind of method that improves waveform drawing accuracy of the present invention, comprises the following steps:
step 21: obtain the pixel set corresponding with it according to characteristic point set;
detailed process is: the numerical value of each characteristic point is rounded to the coordinate figure as Y, wherein round according to the mode rounding up and carry out; The sequence number at the feature point extraction interval under each characteristic point is as X coordinate figure; The sequence number at feature point extraction interval refer in characteristic point interval the sequence number of somewhat residing pixel, be that every Q data point occupies a pixel on screen, the pixel corresponding to coordinate figure of each characteristic point obtaining stored, obtained the set of pixel.
step 22: according to pixel set, obtain the set of waveform drawing pixel;
detailed process is: according to adjacent two coordinates that pixel is corresponding in pixel set, obtain slope value set, and judge in slope value set, whether to exist for zero or infinitely-great slope value, if exist for zero or infinitely-great slope value, the gray value of the both sides adjacent pixels point of the coordinate points line that adjacent two pixels are corresponding is set to α, wherein 0< α < 1, if do not exist for zero or infinitely-great slope value, the absolute value of slope value and default slope threshold value are compared, if the absolute value of slope value is greater than default slope threshold value, the gray value of the both sides adjacent pixels point of coordinate points line corresponding to adjacent two pixels is set to respectively to γ and δ, wherein according to pixel, the distance to line determines respectively for γ and δ, γ+δ=1 wherein, if the absolute value of slope is less than default slope threshold value, if judgement slope value is for just, the lower pixel point gray value of coordinate points line corresponding to adjacent two characteristic points is set to β, if slope value is for negative, the top pixel gray value of coordinate points line corresponding to adjacent two characteristic points is set to β, 0.5< β <1 wherein, thereby obtain the set of waveform drawing pixel.
step 23: according to the pixel gray value drawing waveforms in the set of waveform drawing pixel.
present embodiment mainly be take ecg wave form as example, illustrates ecg wave form and how by the method for above-mentioned raising waveform drawing accuracy, to draw; Wherein, for realizing a kind of method for drafting of ecg wave form, mainly comprise slave computer and host computer, slave computer mainly obtains electrocardiosignal by cardiac diagnosis lead-line, then through analog digital conversion, convert analogue signal to digital signal, again digital signal is passed to host computer, host computer to electrocardiogram (ECG) data store, pretreatment, feature point extraction, anti-aliasing processing, demonstration and printing.
refer to Fig. 3, a kind of waveform drawing method of the present invention, comprises the following steps:
step 101: gather original waveform signal;
detailed process is: by the conducting wire acquired signal on collecting cassette, signal obtains waveform initial data through analog digital conversion, collecting cassette can be that wireless collection box can be also wired collecting cassette, for wireless collection box, also will have a receiving box, the present embodiment is set the data that at least needed to gather 10 seconds.
step 102: original waveform signal is carried out to pretreatment, and calculated characteristics point extracts interval;
detailed process is: waveform initial data is carried out to low-pass filtering pretreatment, and filtering noise disturbs, the set of acquisition waveform data points S (n), and n=1,2,3 ..., N}, total number that N is data point; According to the resolution of display, size, obtain the number M of the pixel of every millimeter of demonstration on display; According to the walking speed S of default sample frequency F and waveform, obtain the number R of the data point of every millimeter of demonstration, wherein R=F/S; The number Q that obtains the data point that each pixel on average will show, wherein Q=R/M, is feature point extraction interval, and feature point extraction interval refers in every Q point extracts a point as characteristic point.
step 103: extract the characteristic point in each feature point extraction interval, obtain characteristic point set;
detailed process is: poor to every adjacent two data point in set of data points, obtain a difference set { X (n), n=1,2,3 ... N-1}, X (n)=S (n+1)-S (n) wherein, S (n) is n point in set of data points { S (n) }; Sign symbol to every adjacent two difference X (n) and X (n+1) in difference set compares, if sign symbol is identical, adjacent three data point S (n) that these two differences are corresponding are described, S (n+1), the intermediate point S (n+1) of S (n+2) is catastrophe point, if sign symbol is different, adjacent three data point S (n) that these two differences are corresponding is described, S (n+1), there is not catastrophe point in S (n+2), meanwhile, obtains a catastrophe point set { V (i), i=1,2,3 ... I}, { V (i) } is the subset of waveform data points set { S (n) }; When catastrophe point V (i) refers to drawing waveforms, cause waveform to occur the point of turnover; Add up the number of catastrophe point in each feature point extraction interval, if number is zero, extract intermediate point in each feature point extraction interval as characteristic point, if be greater than zero, getting catastrophe point maximum in catastrophe point is characteristic point, obtain characteristic point set { H (j), j=1,2,3,, J}, { H (j) } is the subset of EGC waveform data point set { S (n) }.
step 104: the gray value to adjacent locations pixel arranges;
detailed process is: the slope that calculates adjacent two characteristic point H (j) and H (j+1) respective coordinates line, obtain a slope value set { Z (j), j=1, 2, 3, J-1}, each slope value in slope value set is judged, if slope value exists for zero or is infinity, the gray value that the adjacent pixels point on two coordinate points line both sides is set is α, 0< α < 1 wherein, the value of this gray value α is that the distance of putting coordinate points line according to this adjacent pixels is determined, and this gray value also all refers to normalization gray value afterwards, be about to the actual grey of pixel in total gray scale activity, for example take 256 gray scales as example, its gray scale from 0 to 255, if the actual grey of pixel is 128, the gray value after normalizing is 128/256=0.5, therefore the scope of the gray value after known normalization is between 0 to 1, if slope value does not exist for zero or is infinity, the absolute value of slope value and default slope threshold value λ are compared, if the absolute value of slope value is greater than default slope threshold value λ, also there are other pixels in the close region that these adjacent two pixel lines are described, the gray value of the pixel on both sides is set to respectively to γ and δ, wherein γ and δ are that the distance to line determines according to close region pixel, and have γ+δ=1, can eliminate by the border of line is fogged the sawtooth of ecg wave form like this, if the absolute value of slope is less than default slope threshold value λ, judge the positive and negative of slope, if slope value is for just, the gray value of the lower pixel point of these adjacent two characteristic point respective coordinates lines is set to β, if slope value is for negative, the gray value of the top pixel of these adjacent two characteristic point respective coordinates lines is set to β, in order to keep the flatness of waveform, 0.5< β <1 is set, and its β value is determined to the distance of coordinate line according to top pixel.
step 105: according to the pixel gray value drawing waveforms arranging;
detailed process is: the gray value drawing waveforms according to upper and lower two pixels of waveform, obtains new oscillogram.
shown in Fig. 4, the specific descriptions that a kind of waveform drawing method of the present invention is applied to electrocardiosignal are as follows, comprise the steps:
step 101: gather electrocardiosignal, obtain ecg wave form initial data;
detailed process is: by the conducting wire on collecting cassette, from human body, gather electrocardiosignal, electrocardiosignal obtains ecg wave form initial data through analog digital conversion, collecting cassette can be that wireless collection box can be also wired collecting cassette, for wireless collection box, also will have a receiving box, the present embodiment is set the electrocardiogram (ECG) data that at least needed to gather 10 seconds.
step 1021: initial data is sampled and filter preprocessing, obtain preprocessed data set;
detailed process is: the ecg wave form initial data of slave computer collection sends to host computer by collecting cassette, obtain EGC waveform data, EGC waveform data is sampled and Filtering Processing obtains the set of data points { S (n) of pretreated EGC waveform data, n=1,2,3 ... N}, total number that N is data point; Sample frequency is set to different sample frequencys according to different collecting cassettes, and generally, the sample frequency F of wired collecting cassette is 1000Hz, and the sample frequency of wireless collection box is 500Hz; The frequency of wave filter comprises 25Hz, 35Hz, 45Hz, 75Hz, 100Hz, 150Hz.The data of the data length of sampling in the present embodiment at least sampling for 10 seconds.
step 1022: extract interval according to the walking speed of the resolution of display, size, waveform and sample frequency calculated characteristics point;
detailed process is: the number M that obtains the pixel of every millimeter of demonstration on indicator screen according to the resolution of display, size; According to default sample frequency F and default waveform walking speed S, obtain the number R of the data point of every millimeter of demonstration, wherein R=F/S; Then according to the number R of the number M of pixel and data point, obtain the number Q of the data point that each pixel on average will show, wherein Q=R/M, is feature point extraction interval, and feature point extraction interval refers in every Q point extracts a point as characteristic point.
step 1031: adjacent two data point in the set of data points of pretreated electrocardiogram (ECG) data is asked to difference, obtain difference set;
detailed process is: poor to every adjacent two data point, obtain a difference set X (n), n=1,2,3 ..., N-1}, wherein X (n)=S (n+1)-S (n).
step 1032: the sign symbol to every adjacent two differences in difference set compares, and obtains catastrophe point set;
detailed process is: the sign symbol to every adjacent two difference X (n) and X (n+1) in difference set compares, if sign symbol is identical, adjacent three data point S (n) that these two differences are corresponding are described, S (n+1), the intermediate point S (n+1) of S (n+2) is catastrophe point, if sign symbol is different, adjacent three data point S (n) that these two differences are corresponding are described, S (n+1), there is not catastrophe point in S (n+2), obtain a catastrophe point set { V (i), i=1,2,3,, I}, { V (i) } is the subset of EGC waveform data point set { S (n) }; When catastrophe point V (i) refers to drawing waveforms, cause the point of waveform turnover.
step 1033: extract characteristic point according to the number of the catastrophe point in feature point extraction interval, obtain characteristic point set;
detailed process is: add up the number of catastrophe point in each feature point extraction interval, if the number of catastrophe point is zero, do not have catastrophe point, get intermediate point in each feature point extraction interval as characteristic point, if the number of catastrophe point is greater than zero, getting maximum catastrophe point is characteristic point, obtains characteristic point set { H (j), j=1,2,3 ... J}, { H (j) } is the subset of EGC waveform data point set { S (n) }.
step 1034: calculate coordinate figure corresponding to each characteristic point according to the value of the characteristic point in characteristic point set, obtain pixel set;
detailed process is: the numerical value of each characteristic point is rounded to the coordinate figure as Y, wherein round according to the mode rounding up and carry out; The sequence number at the feature point extraction interval under each characteristic point is as X coordinate figure; The sequence number at feature point extraction interval refer in characteristic point interval the sequence number of somewhat residing pixel, be that every Q data point occupies a pixel on screen, the pixel corresponding to coordinate figure of each characteristic point obtaining stored, obtain set { P (j), j=1,2 of pixel, 3,, J}, P (j) is the pixel coordinate that H (j) is corresponding.
step 1041: the slope of every adjacent two pixel lines in the set of calculating pixel point, obtains slope value set;
detailed process is: in pixel set { P (j) }, the slope of the line between every adjacent two pixels calculates, and obtains corresponding slope value, obtain corresponding slope value set Z (j), j=1,2,3 ..., J-1}.
step 1042: judge that whether having slope absolute value in slope value set is zero or infinitely-great slope value;
detailed process is: the slope value in screening slope value set { Z (j) }, and judge that in slope value set { Z (j) }, whether having slope absolute value is zero or infinitely-great slope value, if when judgement exists slope absolute value to be zero or infinitely-great slope value, the gray value of the pixel its adjacent two pixel line both sides being closed on is made as α; If it is that infinitely-great slope value illustrates that the X coordinate of these two pixels is identical that judgement exists slope absolute value, if it is that zero slope value illustrates that these two pixel Y coordinates are identical that judgement exists slope absolute value, the gray value of the pixel that soon its adjacent two pixel line both sides will be closed on is made as α, wherein 0< α < 1.
step 1043: the absolute value of each slope value in set of slopes and default slope threshold value λ are compared, corresponding gray value is set;
detailed process is: in judgement slope value set { Z (j) }, be while not existing slope absolute value to be zero or infinitely-great slope value, the absolute value of each slope value in set of slopes { Z (j) } and default slope threshold value λ are compared, if the absolute value of slope value is greater than default slope threshold value λ, also there are other pixels in the close region that these adjacent two pixel lines are described, the gray value of the pixel on both sides is set to γ and δ, wherein according to adjacent pixels o'clock, the distance to two pixel lines determines respectively for γ and δ, and there is γ+δ=1, can eliminate by the border of line is fogged the sawtooth of ecg wave form like this, if the absolute value of slope is less than default slope threshold value λ, judge the positive and negative of slope value, if slope value is for just, the gray value of the lower pixel point of these adjacent two characteristic point respective coordinates lines is set to β, if slope value is for negative, the gray value of the top pixel of these adjacent two characteristic point respective coordinates lines is set to β, in order to keep the flatness of waveform, 0.5< β <1 is set.
step 1044: obtain ecg wave form according to each pixel of the gray value arranging and draw pixel set;
detailed process is: the pixel set of drawing according to each pixel acquisition ecg wave form of the gray value arranging P1 (k), and k=1,2,3 ..., K}, wherein K>=J.
step 105: the gray value of drawing pixel in pixel set according to ecg wave form is drawn ecg wave form;
detailed process is: according to the gray value of pixel in the set of waveform drawing pixel, draw ecg wave form, wherein the width of final wavy curve is two pixels.
reference as shown in Figure 5, the drawing apparatus of a kind of ecg wave form of the present invention, this device mainly comprises: electrocardio-data collection module 301, electrocardiogram (ECG) data pre-processing module 302, electrocardiogram (ECG) data feature point extraction module 303, ecg wave form drafting module 304 and main control module 305; Described electrocardio-data collection module 301 is connected with main control module 305, for gathering human ecg signal, and electrocardiosignal is converted into digital signal sends to main control module 305; Described electrocardiogram (ECG) data pre-processing module 302 is connected with main control module 305, for the electrocardiogram (ECG) data transmitting from main control module is carried out to pretreatment, comprising sampling and Filtering Processing, eliminate noise calculated characteristics point and extract interval, pretreatment result is sent to main control module 305 simultaneously; Described electrocardiogram (ECG) data feature point extraction module 303 is connected with main control module 305, for pass the extraction of the pretreated electrocardiogram (ECG) data of coming and feature point extraction interval electrocardiogram (ECG) data being carried out to characteristic point according to main control module 305, obtain characteristic point set, and characteristic point set is sent it back to main control module 305; Described ecg wave form drafting module 304 is connected with main control module 305, for obtain slope value set according to characteristic point set, and obtains the set of ecg wave form drafting pixel according to the gray value that slope value arranges respective pixel point, ecg wave form is drawn simultaneously.
the drawing apparatus of a kind of ecg wave form of the present invention also comprises electrocardiogram (ECG) data memory module 306 and ecg wave form display module 307; Described electrocardiogram (ECG) data memory module 306 is connected with main control module 305, for electrocardiogram (ECG) data is stored; Described ecg wave form display module 307 is connected with main control module 305, for ecg wave form is presented on display or by ecg wave form and is printed; And main control module 305 extracts the electrocardiogram (ECG) data of storage from electrocardiogram (ECG) data memory module 306, and ECG Data Transmission Based is sampled to electrocardiogram (ECG) data pre-processing module, Filtering Processing, and then result is transferred to again to electrocardiogram (ECG) data feature point extraction module 303, and ecg wave form drafting module 304 is depicted as the characteristic point of extraction ecg wave form and shows.
as shown in Figure 6, in the drawing apparatus of a kind of ecg wave form of the present invention, described electrocardio-data collection module 301 comprises: receiving element 3011 and AD conversion unit 3021; Described receiving element 3011, the human ecg signal gathering for the conducting wire receiving on collecting cassette; This electrocardiosignal is the electrocardiosignal of simulation; Described AD conversion unit 3021 is connected with receiving element 3011, for the electrocardiosignal of simulation is changed into digital electrocardiosignal, obtains EGC waveform data simultaneously; This electrocardiosignal is original electrocardiosignal, and this EGC waveform data is original EGC waveform data.Described electrocardiogram (ECG) data pre-processing module 302 comprises: sampling unit 3021, filter unit 3022 and take out an interval calculation unit 3023; Described sampling unit 3021, for original EGC waveform data is sampled, obtains the electrocardiogram (ECG) data after sampling; Described filter unit 3022 is connected with sampling unit, for the electrocardiogram (ECG) data of sampling is carried out to low-pass filtering treatment, eliminate to disturb and noise, obtain pretreated EGC waveform data set of data points S (n), n=1,2,3 ..., N}; A described interval calculation unit 3023 and the described filter unit 3022 taken out, for extracting interval according to the resolution of display, size, waveform walking speed and sample frequency calculated characteristics point.Described electrocardiogram (ECG) data feature point extraction module 303 comprises: consecutive number strong point difference computational unit 3031, the first comparing unit 3032, feature point extraction unit 3033 and pixel set acquiring unit 3034; Described consecutive number strong point difference computational unit 3031, asks poor for the adjacent two data point according to the set of data points of electrocardiogram (ECG) data, calculates and obtains difference set; Described the first comparing unit 3032 is connected with consecutive number strong point difference computational unit 3031, for the sign symbol of adjacent two differences of difference set is compared, obtains catastrophe point set; Described feature point extraction unit 3033 is connected with described the first comparing unit 3032, for extracting characteristic point according to the number of the catastrophe point in feature point extraction interval, obtains characteristic point set; Described pixel set acquiring unit 3034 is connected with described feature point extraction unit 3033, for calculate coordinate figure corresponding to each characteristic point according to the value of the characteristic point of characteristic point set, obtains pixel set.Described ecg wave form drafting module 304 comprises slope value set acquiring unit 3041, slope value judging unit 3042, gray value setting unit 3043 and waveform drawing unit 3044; Described slope value set acquiring unit 3041, for calculate the slope of every adjacent two pixel lines according to pixel set, obtains slope value set; Described slope value judging unit 3042 is connected with described slope value set acquiring unit 3041, for screening the slope value of slope value set, and judges that in slope value set, whether having slope absolute value is zero or infinitely-great slope value; Described gray value setting unit 3043 is connected with described slope value judging unit 3042, the gray value of adjacent pixels point on the both sides of the coordinate points line that adjacent two pixels are corresponding is set according to the slope value in slope value set, obtains ecg wave form and draw pixel set; In the set of judgement slope value, be while not existing slope absolute value to be zero or infinitely-great slope value, the absolute value of each slope value in set of slopes and default slope threshold value λ are compared, the gray value on adjacent two pixel line both sides is arranged; Described waveform drawing unit 3044 is connected with described gray value setting unit 3043, draws pixel set, and according to ecg wave form, draw pixel set ecg wave form is drawn for obtaining ecg wave form according to each pixel of the gray value arranging.
the foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (2)

1. improve ecg wave form and draw a method for accuracy, comprising:
obtain waveform data points set, calculated characteristics point extracts interval simultaneously;
to waveform data points, set is extracted, and obtains characteristic point set;
it is characterized in that, described to waveform data points set extract, the step that obtains characteristic point set is:
poor to every adjacent two data point in waveform data points set, obtain difference set, sign symbol to every adjacent two differences of this difference set compares, if the sign symbol of every adjacent two differences is not identical, catastrophe point is not set, if the sign symbol of every adjacent two differences is identical, the intermediate point of adjacent three data points that these adjacent two differences are corresponding is set to catastrophe point, obtain catastrophe point set, add up the number of catastrophe point in each feature point extraction interval, if the number of catastrophe point is zero in feature point extraction interval, extract intermediate point in feature point extraction interval as characteristic point, if the number of catastrophe point is greater than zero in feature point extraction interval, getting in feature point extraction interval the catastrophe point of numerical value maximum in catastrophe point is characteristic point, obtain characteristic point set.
2. a kind of method that ecg wave form is drawn accuracy that improves according to claim 1, is characterized in that, according to the resolution of display, size, default sample frequency and the walking speed calculated characteristics point extraction interval of waveform.
3. an ecg wave form method for drafting, comprising:
Obtain waveform data points set, calculated characteristics point extracts interval simultaneously;
To waveform data points, set is extracted, and obtains characteristic point set, then obtains the pixel set corresponding with it according to characteristic point set;
To pixel, set is calculated and is obtained the set of waveform drawing pixel, and according to the pixel gray value drawing waveforms in the set of waveform drawing pixel;
It is characterized in that, described to waveform data points set extract, the step that obtains characteristic point set be claimed in claim 1 to waveform data points set extract, obtain the step of characteristic point set;
Described to pixel set calculate and obtain waveform drawing pixel set step and be:
According to adjacent two coordinates that pixel is corresponding in pixel set, obtain slope value set, and judge in slope value set, whether to exist for zero or infinitely-great slope value, if exist for zero or infinitely-great slope value, the gray value of the both sides adjacent pixels point of the coordinate points line that adjacent two pixels are corresponding is set to α, wherein 0< α < 1, if do not exist for zero or infinitely-great slope value, the absolute value of slope value and default slope threshold value are compared, if the absolute value of slope value is greater than default slope threshold value, the gray value of the both sides adjacent pixels point of coordinate points line corresponding to adjacent two pixels is set to respectively to γ and δ, wherein according to pixel, the distance to line determines respectively for γ and δ, γ+δ=1 wherein, if the absolute value of slope is less than default slope threshold value, if judgement slope value is for just, the lower pixel point gray value of coordinate points line corresponding to adjacent two characteristic points is set to β, if slope value is for negative, the top pixel gray value of coordinate points line corresponding to adjacent two characteristic points is set to β, 0.5< β <1 wherein, thereby obtain the set of waveform drawing pixel.
4. one kind for realizing the device of ecg wave form method for drafting claimed in claim 3, mainly comprise: main control module, be connected with main control module respectively for data memory module that data are stored, waveform data points set is carried out to the data preprocessing module, data characteristics point abstraction module, waveform drawing module of feature point extraction interval calculation, waveform display module for waveform being shown or printing; It is characterized in that,
Described data characteristics point extraction module comprises consecutive number strong point difference computational unit, the first comparing unit, feature point extraction unit and the pixel set acquiring unit connecting successively; Described consecutive number strong point difference computational unit, asks poor for the every adjacent two data point to the set of data points of waveform, obtains difference set; Described the first comparing unit, for the sign symbol of adjacent two differences of difference set is compared, obtains catastrophe point set; Described feature point extraction unit, for extracting characteristic point according to the number of catastrophe point in feature point extraction interval, obtains characteristic point set; Described pixel set acquiring unit, for calculating coordinate figure corresponding to each characteristic point according to the value of characteristic point set characteristic point, obtains pixel set;
Described waveform drawing module comprises slope value set acquiring unit, slope value judging unit, gray value setting unit and the waveform drawing unit connecting successively; Described slope value set acquiring unit, for calculate the slope of every adjacent two pixel lines according to the pixel of pixel set, obtains slope value set; Described slope value judging unit, for screening the slope value of slope value set, judges that in slope value set, whether having slope absolute value is zero or infinitely-great slope value, if nothing, and the slope value in set of slopes and predetermined threshold value are compared; Described gray value setting unit, for the gray value of the both sides adjacent pixels point of adjacent two pixel respective coordinates point lines is set according to the slope value of slope value set, obtains the set of waveform drawing pixel; Described drawing unit, for drawing waveform according to the waveform drawing pixel set obtaining.
5. a kind of device according to claim 4, is characterized in that, described data preprocessing module comprises sampling unit, the filter unit connecting successively and takes out an interval calculation unit; Described sampling unit, for Wave data is sampled, obtains the data after sampling; Described filter unit, for the data of sampling are carried out to low-pass filtering treatment, obtains waveform data points set; A described interval calculation unit of taking out, for extracting interval according to the walking speed of the resolution of display, size, waveform and default sample frequency calculated characteristics point.
6. an ecg wave form drawing apparatus, mainly comprise: main control module, be connected with main control module respectively for data memory module that data are stored, for gathering the electrocardio-data collection module of EGC waveform data, for EGC waveform data being carried out to pretreated electrocardiogram (ECG) data pre-processing module, for to obtaining the electrocardiogram (ECG) data feature point extraction module of ecg wave form characteristic point set, for drawing the ecg wave form drafting module of ecg wave form, ecg wave form display module for ecg wave form being shown or printing; It is characterized in that,
Described electrocardiogram (ECG) data feature point extraction module comprises consecutive number strong point difference computational unit, the first comparing unit, feature point extraction unit and the pixel set acquiring unit connecting successively;
Described consecutive number strong point difference computational unit, asks poor for the every adjacent two data point to the set of data points of ecg wave form, obtains difference set;
Described the first comparing unit, for the sign symbol of adjacent two differences of difference set is compared, obtains catastrophe point set;
Described feature point extraction unit, for extracting characteristic point according to the number of catastrophe point in feature point extraction interval, obtains characteristic point set;
Described pixel set acquiring unit, for calculating coordinate figure corresponding to each characteristic point according to the value of characteristic point set characteristic point, obtains pixel set.
7. a kind of ecg wave form drawing apparatus according to claim 6, is characterized in that, described ecg wave form drafting module comprises slope value set acquiring unit, slope value judging unit, gray value setting unit and the waveform drawing unit connecting successively;
Described slope value set acquiring unit, for calculate the slope of every adjacent two pixel lines according to the pixel of pixel set, obtains slope value set;
Described slope value judging unit, for screening the slope value of slope value set, judges that in slope value set, whether having slope absolute value is zero or infinitely-great slope value, if nothing, and the slope value in set of slopes and predetermined threshold value are compared;
Described gray value setting unit, for the gray value of the both sides adjacent pixels point of adjacent two pixel respective coordinates point lines is set according to the slope value of slope value set, obtains ecg wave form and draws pixel set;
Described drawing unit, draws ecg wave form for drawing pixel set according to the ecg wave form obtaining.
8. according to a kind of ecg wave form drawing apparatus described in claim 6 or 7, it is characterized in that, described electrocardio-data collection module comprises receiving element and AD conversion unit;
Described receiving element, the human ecg signal gathering for receiving conducting wire;
Described AD conversion unit is connected with receiving element, for electrocardiosignal is carried out to analog digital conversion, obtains ecg wave form initial data.
CN201210561139.4A 2012-12-21 2012-12-21 Method of improving wave form drawing accuracy degree and drawing method and device applied method Active CN103126669B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210561139.4A CN103126669B (en) 2012-12-21 2012-12-21 Method of improving wave form drawing accuracy degree and drawing method and device applied method
CN201410156924.0A CN103976728B (en) 2012-12-21 2012-12-21 A kind of method improving ecg wave form drafting accuracy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210561139.4A CN103126669B (en) 2012-12-21 2012-12-21 Method of improving wave form drawing accuracy degree and drawing method and device applied method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201410156924.0A Division CN103976728B (en) 2012-12-21 2012-12-21 A kind of method improving ecg wave form drafting accuracy

Publications (2)

Publication Number Publication Date
CN103126669A CN103126669A (en) 2013-06-05
CN103126669B true CN103126669B (en) 2014-09-17

Family

ID=48487589

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201210561139.4A Active CN103126669B (en) 2012-12-21 2012-12-21 Method of improving wave form drawing accuracy degree and drawing method and device applied method
CN201410156924.0A Active CN103976728B (en) 2012-12-21 2012-12-21 A kind of method improving ecg wave form drafting accuracy

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201410156924.0A Active CN103976728B (en) 2012-12-21 2012-12-21 A kind of method improving ecg wave form drafting accuracy

Country Status (1)

Country Link
CN (2) CN103126669B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104856672B (en) * 2015-06-05 2016-04-27 厦门纳龙科技有限公司 A kind of display medium of avoiding suppresses the method causing electrocardiographic wave to be failed to pinpoint a disease in diagnosis
CN105054925A (en) * 2015-08-26 2015-11-18 深圳邦健生物医疗设备股份有限公司 Feature point obtaining and waveform drawing
CN105184080B (en) * 2015-09-09 2019-07-12 北京嘉和美康信息技术有限公司 A kind of lead waveform method of replacing and device
CN105125208B (en) * 2015-10-16 2018-04-27 东软熙康健康科技有限公司 A kind of electrocardio drawing drawing method and electrocardiogram drawing tool
CN105595988A (en) * 2015-12-23 2016-05-25 石家庄翰纬医疗设备有限公司 Electrocardiogram wave form drawing method and calculation device
CN109087374B (en) * 2018-08-14 2023-05-05 珠海迈越信息技术有限公司 Signal quality curve drawing method and device
CN111345807B (en) * 2018-12-21 2022-08-09 四川锦江电子科技有限公司 Electrocardiographic waveform drawing method, module and device
CN109770891B (en) * 2019-01-31 2022-04-29 上海交通大学 Electrocardiosignal preprocessing method and preprocessing device
CN111856576A (en) * 2020-07-27 2020-10-30 广州海洋地质调查局 Plume identification method and processing terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0857457A2 (en) * 1997-01-31 1998-08-12 Hewlett-Packard Company Method and system for the fast determination of EKG waveform morphology
CN101378251A (en) * 2007-08-28 2009-03-04 深圳迈瑞生物医疗电子股份有限公司 Method for improving signal display quality under a condition of low sampling rate
CN101489472A (en) * 2006-07-13 2009-07-22 爱德华兹生命科学公司 Method and apparatus for continuous assessment of a cardiovascular parameter using the arterial pulse pressure propagation time and waveform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1641388B1 (en) * 2003-06-16 2015-04-15 Dayton Technologies Limited Devices and methods for heart-rate measurement and wrist-watch incorporating same
CN101334985B (en) * 2007-06-27 2012-02-01 深圳迈瑞生物医疗电子股份有限公司 Wave data displaying apparatus and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0857457A2 (en) * 1997-01-31 1998-08-12 Hewlett-Packard Company Method and system for the fast determination of EKG waveform morphology
CN101489472A (en) * 2006-07-13 2009-07-22 爱德华兹生命科学公司 Method and apparatus for continuous assessment of a cardiovascular parameter using the arterial pulse pressure propagation time and waveform
CN101378251A (en) * 2007-08-28 2009-03-04 深圳迈瑞生物医疗电子股份有限公司 Method for improving signal display quality under a condition of low sampling rate

Also Published As

Publication number Publication date
CN103126669A (en) 2013-06-05
CN103976728B (en) 2015-12-02
CN103976728A (en) 2014-08-13

Similar Documents

Publication Publication Date Title
CN103126669B (en) Method of improving wave form drawing accuracy degree and drawing method and device applied method
CN107529646B (en) Non-contact heart rate measurement method and device based on Euler image amplification
CN108186011B (en) Atrial fibrillation detection method, atrial fibrillation detection device and readable storage medium
US11562222B2 (en) Systems and methods of identity analysis of electrocardiograms
CN109117730B (en) Real-time electrocardiogram atrial fibrillation judgment method, device and system and storage medium
CN108647565B (en) Data preprocessing method for classifying electrocardiosignals based on deep learning model
CN107480716B (en) Method and system for identifying saccade signal by combining EOG and video
KR20140139564A (en) Systems and methods for ecg monitoring
CN109106345A (en) Pulse signal characteristic detection method and device
CN112711979A (en) Non-contact vital sign monitoring under slow random motion based on biological radar
CN107348971A (en) A kind of heart disease screening system based on heart sound detection and machine learning algorithm
CN111161268B (en) Image processing method, device, electronic equipment and computer storage medium
CN109077721A (en) atrial fibrillation detection device and storage medium
CN107753012B (en) Magnetocardiogram signal quality evaluation method, system and server
CN109634419A (en) The recognition methods of healing robot motion intention and its computer readable storage medium
CN109002798B (en) Single-lead visual evoked potential extraction method based on convolutional neural network
CN110507299A (en) Heart rate signal detection device and method
Fathail et al. Ecg paper digitization and r peaks detection using fft
CN114469133B (en) Undisturbed atrial fibrillation monitoring method
CN105489228A (en) Rhonchus identification method based on frequency domain image processing
CN102764474B (en) Auxiliary exercise training system and method
CN112773340B (en) Pulse feature extraction system and method based on EEMD-PNCC
CN109044338A (en) atrial fibrillation detection device and storage medium
CN111887836B (en) Electrocardiosignal processing method, device and equipment
CN105105728A (en) Method and device for pulse wave measurement

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant