A kind of display medium of avoiding suppresses the method causing electrocardiographic wave to be failed to pinpoint a disease in diagnosis
Technical field
The present invention relates to figure display and Data Management Analysis field, relate to a kind of display medium of avoiding particularly and suppress the method causing electrocardiographic wave to be failed to pinpoint a disease in diagnosis.
Background technology
In emergency medicine, Brugada ripple, Episilon ripple, Lambda (λ) ripple, these electrocardiagraphic waves relevant to sudden cardiac death of pathologic J ripple, can the early warning patient feature that has sudden cardiac death high-risk.The QRS ripple incisura of ecg wave form associates closely with pause and transition in rhythm or melody trend with this few class electrocardiagraphic wave, and true waveform complete and accurate is shown in emergency treatment and clinical diagnose significant.
After ecg wave form digitized, carry out display waveform by screen, the exquisiteness of waveform depends on the some distance of screen, and point is finer and smoother apart from less image.The account form of some distance is with the numerical value of panel size divided by resolution gained.The effective area of 14 inch liquid crystal display device is generally 300mm × 190mm, and resolution is 1280 × 800, thus the some distance calculating this LCD is 300/1280=0.2344mm or 190/800=0.2375mm, and in other words, 25mm can show about 106 points.And the signal sampling rate of general Digital ECG machine is 500Hz-2K, namely when paper feed is 25mm/s, the point of 500-2000 is needed to be compressed on 106 points, therefore, Wave data needs to carry out double sampling, and portion waveshape details cannot be shown, the pause and transition in rhythm or melody that part is trickle and incisura can not distinguish clearly, thus cause and fail to pinpoint a disease in diagnosis, make the state of an illness of patient to be found in time and to get timely medical treatment, cause life danger.
Summary of the invention
The object of the invention is as solving the problem and providing one can avoid making part electrocardiographic wave details to show because of display medium lack of resolution, the pause and transition in rhythm or melody that part is trickle and incisura can not clearly distinguish, thus the method causing electrocardiographic wave to fail to pinpoint a disease in diagnosis.
For this reason, the invention discloses a kind of display medium of avoiding and suppress the method causing electrocardiographic wave to be failed to pinpoint a disease in diagnosis, comprise the steps:
S1: carry out down-sampling to original electrocardiographicdigital Wave data, obtains, with the Wave data to be shown of display medium resolution match, entering step S2;
S2: treat display waveform data and carry out up-sampling calculating, obtains the up-sampling Wave data of sample rate same with original electrocardiographicdigital Wave data, enters step S3;
S3: contrast original electrocardiographicdigital Wave data and up-sampling Wave data, judge whether to there is wave distortion, if so, enter step S4; If not, step S6 is entered;
S4: the regional extent determining wave distortion, enters step S5;
, there is loss region with the waveform presented under pointing out current resolution in S5: export waveform to be shown, and identify wave distortion region;
S6: export waveform to be shown.
Further, after step S5 completes, enter step S7,
S7: the true waveform that the wave distortion region of mark is amplified under high sampling rate is further shown.
Further, in described step S1, down-sampling rate is determined by display medium size, resolution and chart drive speed.
Further, in described step S2, up-sampling calculates and adopts piecewise linear interpolation method.
Further, described step S3 is specially: contrast original electrocardiographicdigital Wave data and up-sampling Wave data, identify whether original electrocardiographicdigital Wave data exists the Wave crest and wave trough pair do not embodied in up-sampling Wave data in same interval, and then judge that this Wave crest and wave trough is to being whether wave distortion data because down-sampling loss of significance causes, if, then judge to there is wave distortion, enter step S4; If not, then judge to there is not wave distortion, enter step S6.
Further, described step S4 is specially: draw wave distortion data and calculate the regional extent of wave distortion, the regional extent information of wave distortion being write Wave data to be shown, then obtains the Wave data to be shown of the regional extent comprising wave distortion.
Further, in described step S5, the color of high discrimination is adopted clearly to identify prompting wave distortion region.
Further, in described step S5, adopt flashing mode to point out wave distortion region, be specially: glimmer with certain frequency in wave distortion region, point out this place to there is wave distortion.
Further, in described step S5, adopt automatic amplification mode to point out wave distortion region, be specially: automatically present and be amplified to undistorted waveform, and the waveform after this amplification points to waveform distortion zone.
Advantageous Effects of the present invention:
The present invention is by after carrying out down-sampling and up-sampling to original electrocardiographicdigital data, contrast with original electrocardiographicdigital data again, the Wave data finding out distortion is gone forward side by side line identifier, during output, wave distortion region is clearly reminded, thus effectively avoid because of display medium resolution suppress cause fail to pinpoint a disease in diagnosis, improve the accuracy of electrocardiographic diagnosis, be applicable to different display mediums, make the selection face of electrocardiogram display medium become wide.In addition, algorithm of the present invention is simple and quick, has larger promotional value.
Accompanying drawing explanation
Fig. 1 is schematic flow sheet of the present invention;
Fig. 2 is the original electrocardiographicdigital figure oscillogram of the embodiment of the present invention;
Fig. 3 is the oscillogram after the down-sampling of the embodiment of the present invention;
Fig. 4 is waveform and original electrocardiographicdigital figure comparison of wave shape figure after the up-sampling of the embodiment of the present invention;
Fig. 5 is that display figure is amplified at the wave distortion position of the embodiment of the present invention.
Detailed description of the invention
Now the present invention is further described with detailed description of the invention by reference to the accompanying drawings.
As shown in Figure 1, a kind of display medium of avoiding suppresses the method causing electrocardiographic wave to be failed to pinpoint a disease in diagnosis, and its concrete steps are:
S1: carry out down-sampling to original electrocardiographicdigital Wave data, obtains, with the Wave data to be shown of display medium resolution match, entering step S2.
Signals collecting frequency due to electrocardiograph is general all higher than the pattern precision that display medium presents, so down-sampling must be carried out to the original electrocardiographicdigital Wave data gathered reduce the requirement that shows figure with the resolution adapting to display medium of yardstick, concrete grammar is: set display medium effective area as A × B, resolution is C × D, thus the point calculating this display medium is A/C or B/D apart from d.If electrocardiogram chart drive speed is E, then the sample rate of down-sampling is E/d.If the signal sampling rate of Digital ECG machine is F, so down-sampling gets data to original waveform data every Fd/E data exactly, recalculates composition Wave data to be shown.
Figure 2 shows that original electrocardiographicdigital figure waveform, Figure 3 shows that the waveform to be shown after down-sampling, due to the process that down-sampling itself is an information loss, so may there is waveform loss in Wave data to be shown, as the crest 3 in Fig. 2 and trough 2 can not be differentiated out in figure 3.
S2: treat display waveform data and carry out up-sampling calculating, obtains the up-sampling Wave data of sample rate same with original electrocardiographicdigital Wave data, enters step S3.Up-sampling calculates and adopts piecewise linear interpolation method, and its formula is as follows:
Wherein, (X
0, Y
0) and (X
1, Y
1) be two data adjacent in Wave data to be shown, the data that (X, Y) will insert for up-sampling.
The waveform to be shown of Fig. 3 up-sampling waveform after up-sampling as shown by the bold lines in fig.
S3: contrast original electrocardiographicdigital waveform and up-sampling waveform, identify whether original electrocardiographicdigital Wave data exists the Wave crest and wave trough pair do not embodied in up-sampling data in same interval, and then judge that Wave crest and wave trough is to being whether distorted waveform data because down-sampling loss of significance causes, if, then judge to there is wave distortion, enter step S4; If not, then judge to there is not wave distortion, enter step S6: directly export waveform to be shown.
As shown in Figure 4, solid line is up-sampling waveform, and dotted line is original electrocardiographicdigital waveform, by contrast, can find that the crest 3 of original electrocardiographicdigital waveform and trough 2 do not embody in up-sampling waveform, this is distorted waveform, then judge to there is wave distortion, enter step S4.
S4: draw wave distortion data and calculate the regional extent of wave distortion, the regional extent information of wave distortion being write Wave data to be shown, then obtains the Wave data to be shown of the regional extent comprising wave distortion, enter step S5.
S5: export waveform to be shown, clearly identifies the waveform loss of information that prompting exists the trickle small echo of incisura class, enters step S7 at wave distortion position.In this specific embodiment, identified prompting with high discrimination Color pair wave distortion position, as shown in Figure 4, identified by high discrimination color (as red, green etc., cannot embody in the figure) part of arrow to crest 3 and trough 2 distortion.
In other embodiments, flashing mode can also be adopted to point out wave distortion region, be specially: glimmer with certain frequency in wave distortion region, there is wave distortion in prompting this place of the not obvious personage of colour vision, or adopt automatic amplification mode to point out wave distortion region, be specially: automatically present and be amplified to undistorted waveform, and the waveform after this amplification points to waveform distortion zone.
S7: use pattern visual evoked potentials instrument, shows the true waveform that the wave distortion region of mark is amplified under high sampling rate further, omits to avoid important Wave data failing to pinpoint a disease in diagnosis of causing.As shown in Figure 5, for waveform mark to be shown exists the part of distortion in the circle of the left side, for be amplified to true waveform to this distortion position in the circle of the right, therefrom can see again crest 3 and trough 2, thus avoid important waveform to fail to pinpoint a disease in diagnosis causing diagnostic error.
Although specifically show in conjunction with preferred embodiment and describe the present invention; but those skilled in the art should be understood that; not departing from the spirit and scope of the present invention that appended claims limits; can make a variety of changes the present invention in the form and details, be protection scope of the present invention.