CN101669819A - Electrocardiogram signal lossless compression method based on PT conversion and linear prediction combination - Google Patents
Electrocardiogram signal lossless compression method based on PT conversion and linear prediction combination Download PDFInfo
- Publication number
- CN101669819A CN101669819A CN200910024050A CN200910024050A CN101669819A CN 101669819 A CN101669819 A CN 101669819A CN 200910024050 A CN200910024050 A CN 200910024050A CN 200910024050 A CN200910024050 A CN 200910024050A CN 101669819 A CN101669819 A CN 101669819A
- Authority
- CN
- China
- Prior art keywords
- sign indicating
- indicating number
- signal
- conversion
- section
- 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.)
- Granted
Links
Images
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
The invention discloses an electrocardiogram signal lossless compression method based on PT conversion and linear prediction combination, belonging to the technical field of data processing. The method comprises the following compression processes: carrying out PT conversion on an original electrocardiogram signal; subtracting a converted original signal value and an estimated value to obtain a residual error signal of the whole electrocardiogram signal; carrying out self-adaption variable grade RICE coding on the residual error signal to output a coding bit stream and finishing the lossless compression on the electrocardiogram signal; decoding the compressed bit stream; reconstructing the signal and finishing decompression. The lossless compression method ensures the information completion and accuracy of the compressed electrocardiogram signal and can be used for transmitting and storing the electrocardiogram signal.
Description
Technical field
The invention belongs to technical field of data processing, relate to data compression, in order to realize lossless compress electrocardiogram ECG signal.
Background technology
ECG signal is one of most important bio signal.Development along with modern medicine, ECG signal assosting effect to diagnostic accuracy in clinical diagnosis is also increasing, use more and more widely, the status in modern medicine is apparent more important, and ECG signal is that outstanding contribution has also been made in the development of modern medicine clinical diagnosis.In order not influence clinical diagnosis, the lossless compress of information is a best choice, because the ECG signal data volume is bigger, seems very necessary so compress for ECG signal.
In the recent period, some scholar has proposed some compression methods at ECG signal, and as based on method of wavelet, based on method of linear prediction etc., but most method is the lossy compression method method, can't guarantee fully the integrity and the correctness of ECG signal.
The RAR that existing application is wider, the ZIP method, be in field of data compression two kinds of methods of maturation and wide adaptability comparatively, RAR and ZIP method all are that original storage format of main utilization change data realizes the compression to data, the algorithm of both cores all is to realize on the basis of LZW encryption algorithm, belongs to the coding compression algorithm based on dictionary.。Though these two kinds of methods can realize the lossless compress to ECG signal, compression ratio is low excessively, causes the unnecessary storage and the waste of transmission space.
Summary of the invention
The objective of the invention is to overcome the shortcoming and defect of above-mentioned prior art, propose a kind ofly,, improve compression ratio, conserve memory and transmission space to keep the complete and correctness of information based on PT conversion and the bonded electrocardiogram signal lossless compression method of linear prediction.
The key problem in technology of realizing the object of the invention is to adopt the PT conversion, autoregression linear prediction and adaptive variable rank RICE coding, and implementation step comprises as follows:
(1) primary ECG signal is carried out the PT conversion;
(2) signal after the conversion is predicted according to the following procedure;
(2a) choose a segment signal and train, be fixed the predictive coefficient group;
(2b) to current some X
n2k before point trained, and obtains the dynamic prediction coefficient sets, and k is a prediction order;
(2c) select to adopt dynamic prediction coefficient sets or fixing predictive coefficient group according to the thresholding of setting, when the training matrix determinant is lower than threshold value, then choose fixedly the predictive coefficient group as predictive coefficient, otherwise, adopt present dynamic predictive coefficient group as predictive coefficient;
(2d), utilize the autoregression formula, try to achieve current some X according to the predictive coefficient of determining
nEstimated value;
(2e) repeat (2b)-(2d), obtain the estimated value of whole segment signal, finish prediction ECG signal after the conversion;
(3) original signal value after the conversion and estimated value are subtracted each other, obtain the residual signals of whole section ECG signal;
(4) residual signals is carried out following self-adapting changeable rank RICE coding;
(4a) establish current some e
n, according to e
nThe average of the big or small absolute value of this n point value is tried to achieve in the distribution of numerical values recited of n before point; Setting is with 2
2Be thresholding, per 2
2Be single order,, select e according to the thresholding at average place
nThe coding exponent number;
(4b), determine e according to as giving a definition
nPreceding sign indicating number section and exponent number sign indicating number section, wherein k is the exponent number of encoding:
Preceding sign indicating number section: e
nDivide exactly 2
k, the gained merchant is n
a, then with n
aIndividual 1 and one 0 as preceding sign indicating number section;
Exponent number sign indicating number section: e
nDivide exactly 2
k, the gained remainder is n
e, then with k n
eBinary code as exponent number sign indicating number section;
(4c) preceding sign indicating number section and exponent number sign indicating number are merged, finish e
nCoding;
(4d) coding to residual signals is finished in repetition (4a)-(4c);
(4e) output encoder bit stream is finished the lossless compress to ECG signal;
This method compared with prior art has the following advantages:
A. the present invention can recover original signal fully as a kind of lossless compression algorithm, and the complete and correctness, particularly ECG signal that have kept data are as a kind of medical signals, and the maintenance complete and correctness of its data message is very necessary.
B. the present invention makes signal have better predictability after conversion owing to adopted the PT alternative approach.
C. the present invention has adopted autoregressive linear predictor, and has designed a kind of at the adaptive RICE coded method of signal characteristic.Make it all can reach more excellent coding compression performance to different signals.
D. simulation result shows, the present invention and RAR, and the ZIP compression method is compared, and the lossless compress performance is more excellent
Description of drawings
Fig. 1 is a schematic flow sheet of the present invention;
Fig. 2 carries out result after the PT conversion with the present invention to one section ECG signal.
The specific embodiment
With reference to Fig. 1, specific implementation step of the present invention is as follows:
Step 1 is carried out PT (peak transform) conversion to primary ECG signal;
The PT conversion is a kind of nonlinear geometric transformation, and it can be converted into low frequency with high-frequency signal, and it is defined as follows:
Curved section: be defined as the continuous function f (x) in the finite interval [a, b].
Curved section stack: given two curved section f
1(x), f
2(x) be defined in finite interval [a respectively
1, b
1], [a
2, b
2] on, and b
1≤ a
2, the new curved section f (x) that stack is generated is defined in [a
1, b
1+ b
2-a
2].
Then:
Wherein, f
2(a) be f
2(x) functional value of ordering at a, f
1(b) be f
1(x) functional value of ordering at b.New curved section f (x) is exactly by f
1(x), f
2(x) obtain by connection and displacement.
The PT conversion has only changed the order of curved section, and is reversible.Reciprocal transformation can come superimposed curves section again according to their original order.
By as above definition, we carry out a PT conversion to primary ECG signal, obtain the signal after the conversion, as shown in Figure 2, wherein Fig. 2 a is an original electrocardiographicdigital figure signal, and Fig. 2 b is the ECG signal after the PT conversion, can see, signal after the conversion, more level and smooth than primary signal, high fdrequency component obviously reduces.
Step 2, the signal after using the autoregression linear predictor to conversion carries out the linear prediction of k rank, tries to achieve estimated signal, further tries to achieve residual signals by estimated signal.
(2a) choose one section signal after the conversion, train, be fixed the predictive coefficient group according to following formula:
Wherein
Be the vector of predictive coefficient group, C is an estimated matrix,
Vector for selected signal segment;
(2b) basis (1) formula is to current some X
n2k before point trained, and obtains the dynamic prediction coefficient sets, and k is a prediction order;
(2c) select to adopt dynamic prediction coefficient sets or fixing predictive coefficient group, the matrix (C in (1) formula according to the thresholding of setting
TC)
-1The value of determinant during less than this thresholding, then choose fixedly the predictive coefficient group as predictive coefficient, otherwise, adopt present dynamic predictive coefficient group as predictive coefficient;
(2d), carry out autoregression according to following formula according to the predictive coefficient of determining:
Wherein, X
EnBe current some X
nEstimated value, k is a prediction order, the predictive coefficient of a for determining, X
N-tBe X
nThe before t point, X
E (n-t)Be X
EnThe before t point.
Obtain estimated value X by (2) formula
En
(2e) repeat (2b)-(2d), obtain the estimated value X of whole segment signal
e, finish prediction to ECG signal after the conversion;
Step 3 is with original signal value X after the conversion and estimated value X
eSubtract each other, further encoded by following formula and compress required predicted residual signal value e
x
e
x=X-X
e????????????????????????(3)
Step 4 is carried out following self-adapting changeable rank RICE coding to residual signals;
(4a) establish current some e of residual signals
n, according to e
nThe average of the big or small absolute value of this n point value is tried to achieve in the distribution of numerical values recited of n before point; Setting is with 2
2Be thresholding, per 2
2Be single order,, select e according to the thresholding at average place
nThe coding exponent number;
(4b), determine e according to as giving a definition
nPreceding sign indicating number section and exponent number sign indicating number section, wherein k is the exponent number of encoding:
Preceding sign indicating number section: e
nDivide exactly 2
k, the gained merchant is n
a, then with n
aIndividual 1 and one 0 as preceding sign indicating number section;
Exponent number sign indicating number section: e
nDivide exactly 2
k, the gained remainder is n
e, then with k n
eBinary code as exponent number sign indicating number section;
(4c) preceding sign indicating number section and exponent number sign indicating number are merged, finish e
nCoding;
(4d) coding to residual signals is finished in repetition (4a)-(4c);
(4e) output encoder bit stream is finished the lossless compress to ECG signal;
With reference to Fig. 1, decompression process of the present invention is as follows:
Steps A, according to the bit stream that decoding end is received, decode according to the following procedure:
(1A) 0,1 number of bits of receiving according to decoding end is determined current some e of residual signals
nPreceding sign indicating number section decoding n
aDecoding n with exponent number sign indicating number section
e
(2A) determine exponent number k according to the number of bits of the exponent number sign indicating number section that obtains;
(3A) by preceding sign indicating number section decoding n
a, exponent number sign indicating number section decoding n
eWith exponent number k, obtain current some e
n:
e
n=n
a×2
k+n
e;
(4A) repeat (1A)-(3A), obtain whole section residual signals value e
X
Step B is with the residual signals value e that obtains
XWith the ECG signal estimated value X after the conversion
eAddition obtains the original signal value X after the conversion, that is:
X=e
X+X
e;
Step C carries out the PT inverse transformation to the ECG signal after the conversion, obtains original electrocardiographicdigital figure signal, realizes reconstruct, and decompression is finished.
Effect of the present invention can further specify by following concrete experimental data.
1, experimental condition and content
Experiment of the present invention is 8 file size unanimities choosing among the MIT-BIH ECG signal compression verification data base, the identical ECG signal file of signal length is as test sample book, to the test sample book chosen respectively according to compression method of the present invention, the RAR compression method, the ZIP compression method carries out lossless compress test, and the compression ratio of three kinds of methods is compared.
2, result of the test
The compression ratio that three kinds of distinct methods obtain is as shown in table 1.
The compression ratio that three kinds of methods of table 1 obtain
Test sample book | The inventive method compression ratio | RAR compression method compression ratio | ZIP compression method compression ratio |
??11442_01 | ??2.03 | ??1.91 | ??1.27 |
??08730_01 | ??2.25 | ??2.02 | ??1.23 |
??08730_02 | ??2.15 | ??1.92 | ??1.18 |
??11950_01 | ??2.12 | ??1.96 | ??1.27 |
??08730_04 | ??2.06 | ??1.86 | ??1.13 |
??12531_02 | ??2.05 | ??1.95 | ??1.32 |
??12621_02 | ??2.16 | ??1.94 | ??1.18 |
??12490_01 | ??2.22 | ??2.06 | ??1.35 |
As seen from Table 1, compression method of the present invention and RAR compression method, the ZIP compression method is compared, the compression ratio of all test files all be higher than the back both.Contrast three kinds of methods, the compression ratio of RAR compression method is a little less than the inventive method, and the ZIP compression method then all is lower than the inventive method and RAR compression method on compression ratio.
Claims (4)
1. one kind based on PT conversion and the bonded electrocardiogram signal lossless compression method of linear prediction, comprises the steps:
(1) primary ECG signal is carried out the PT conversion;
(2) signal after the conversion is predicted according to the following procedure;
(2a) choose a segment signal and train, be fixed the predictive coefficient group;
(2b) to current some X
n2k before point trained, and obtains the dynamic prediction coefficient sets, and k is a prediction order;
(2c) select to adopt dynamic prediction coefficient sets or fixing predictive coefficient group according to the thresholding of setting, when the training matrix determinant is lower than threshold value, then choose fixedly the predictive coefficient group as predictive coefficient, otherwise, adopt present dynamic predictive coefficient group as predictive coefficient;
(2d), utilize the autoregression formula, try to achieve current some X according to the predictive coefficient of determining
nEstimated value;
(2e) repeat (2b)-(2d), obtain the estimated value of whole segment signal, finish prediction ECG signal after the conversion;
(3) original signal value after the conversion and estimated value are subtracted each other, obtain the residual signals of whole section ECG signal;
(4) residual signals is carried out following self-adapting changeable rank RICE coding;
(4a) establish current some e
n, according to e
nThe average of the big or small absolute value of this n point value is tried to achieve in the distribution of numerical values recited of n before point; Setting is with 2
2Be thresholding, per 2
2Be single order,, select e according to the thresholding at average place
nThe coding exponent number;
(4b), determine e according to as giving a definition
nPreceding sign indicating number section and exponent number sign indicating number section, wherein k is the exponent number of encoding:
Preceding sign indicating number section: e
nDivide exactly 2
k, the gained merchant is n
a, then with n
aIndividual 1 and one 0 as preceding sign indicating number section;
Exponent number sign indicating number section: e
nDivide exactly 2
k, the gained remainder is n
e, then with k n
eBinary code as exponent number sign indicating number section;
(4c) preceding sign indicating number section and exponent number sign indicating number are merged, finish e
nCoding;
(4d) coding to residual signals is finished in repetition (4a)-(4c);
(4e) output encoder bit stream is finished the lossless compress to ECG signal.
2. according to the described method of claim 1, wherein the definite predictive coefficient of the described basis of step (2d) utilizes the autoregression formula, asks current some X
nEstimated value X
En, be the following formula of predictive coefficient substitution that will determine, it is minimized try to achieve:
Wherein, k is a prediction order, the predictive coefficient of a for determining, X
N-tBe X
nThe before t point, X
E (n-t)Be X
EnThe before t point.
3. according to the described method of claim 1, wherein described preceding sign indicating number section is merged with exponent number sign indicating number section of step (4c) is that exponent number sign indicating number Duan Yuqian sign indicating number section is connected, preceding sign indicating number section pro-, and exponent number sign indicating number Duan Zaihou is connected to become e
nWhole sign indicating number section.
4. the decompression method based on PT conversion and the bonded ECG signal of linear prediction comprises the steps:
Steps A, according to the bit stream that decoding end is received, decode according to the following procedure:
(1A) 0,1 number of bits of receiving according to decoding end is determined current some e of residual signals
nPreceding sign indicating number section decoding n
aDecoding n with exponent number sign indicating number section
e
(2A) determine exponent number k according to the number of bits of the exponent number sign indicating number section that obtains;
(3A) by preceding sign indicating number section decoding n
a, exponent number sign indicating number section decoding n
eWith exponent number k, obtain current some e
n:
e
n=n
a×2
k+n
e;
(4A) repeat (1A)-(3A), obtain whole section residual signals value e
X
Step B is with the residual signals value e that obtains
XEstimated value X with ECG signal after the conversion
eAddition obtains the original signal value X after the PT conversion, that is:
X=e
X+X
e;
Step C carries out the PT inverse transformation to the ECG signal after the conversion, obtains original electrocardiographicdigital figure signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100240502A CN101669819B (en) | 2009-09-25 | 2009-09-25 | Electrocardiogram signal lossless compression method based on PT conversion and linear prediction combination |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100240502A CN101669819B (en) | 2009-09-25 | 2009-09-25 | Electrocardiogram signal lossless compression method based on PT conversion and linear prediction combination |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101669819A true CN101669819A (en) | 2010-03-17 |
CN101669819B CN101669819B (en) | 2011-06-01 |
Family
ID=42017386
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100240502A Expired - Fee Related CN101669819B (en) | 2009-09-25 | 2009-09-25 | Electrocardiogram signal lossless compression method based on PT conversion and linear prediction combination |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101669819B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102028458A (en) * | 2011-01-13 | 2011-04-27 | 深圳市科曼医疗设备有限公司 | Method for synchronously outputting electrocardiogram and vectorcardiogram |
CN102323977A (en) * | 2011-06-29 | 2012-01-18 | 无锡市吉天通信科技有限公司 | Electrocardio data storage method based on electrocardio characteristic points |
CN102688032A (en) * | 2012-05-11 | 2012-09-26 | 东华大学 | Electrocardiogram signal sparse decompression and compression system based on concise common dictionary base |
US8606351B2 (en) | 2011-12-28 | 2013-12-10 | General Electric Company | Compression of electrocardiograph signals |
CN104159108A (en) * | 2014-08-11 | 2014-11-19 | 浙江大学 | Real-time lossless electrocardiosignal compression method and device based on adaptive prediction and variable length coding improvement |
CN109199374A (en) * | 2018-10-15 | 2019-01-15 | 烟台羿中医疗科技有限公司 | A kind of multi-lead electrocardiogram (ECG) data recording device and method |
CN109414170A (en) * | 2015-12-07 | 2019-03-01 | 三星电子株式会社 | Electronic equipment and its control method |
CN114896220A (en) * | 2021-12-13 | 2022-08-12 | 南京数维康信息科技有限公司 | Electrocardio data processing method and device, server and readable storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5832490A (en) * | 1996-05-31 | 1998-11-03 | Siemens Medical Systems, Inc. | Lossless data compression technique that also facilitates signal analysis |
CN1180746C (en) * | 2001-06-26 | 2004-12-22 | 陈士良 | Cardioelectric spectrometer |
CN1206961C (en) * | 2002-12-03 | 2005-06-22 | 沈阳东软数字医疗系统股份有限公司 | Real time data collecting lossless compressing method for 12 lead ECG |
-
2009
- 2009-09-25 CN CN2009100240502A patent/CN101669819B/en not_active Expired - Fee Related
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102028458A (en) * | 2011-01-13 | 2011-04-27 | 深圳市科曼医疗设备有限公司 | Method for synchronously outputting electrocardiogram and vectorcardiogram |
CN102028458B (en) * | 2011-01-13 | 2012-05-23 | 深圳市科曼医疗设备有限公司 | Method for synchronously outputting electrocardiogram and vectorcardiogram |
CN102323977A (en) * | 2011-06-29 | 2012-01-18 | 无锡市吉天通信科技有限公司 | Electrocardio data storage method based on electrocardio characteristic points |
CN102323977B (en) * | 2011-06-29 | 2014-04-30 | 无锡市吉天通信科技有限公司 | Electrocardio data storage method based on electrocardio characteristic points |
US8606351B2 (en) | 2011-12-28 | 2013-12-10 | General Electric Company | Compression of electrocardiograph signals |
CN102688032A (en) * | 2012-05-11 | 2012-09-26 | 东华大学 | Electrocardiogram signal sparse decompression and compression system based on concise common dictionary base |
CN104159108A (en) * | 2014-08-11 | 2014-11-19 | 浙江大学 | Real-time lossless electrocardiosignal compression method and device based on adaptive prediction and variable length coding improvement |
CN109414170A (en) * | 2015-12-07 | 2019-03-01 | 三星电子株式会社 | Electronic equipment and its control method |
CN109414170B (en) * | 2015-12-07 | 2021-09-21 | 三星电子株式会社 | Electronic device and control method thereof |
CN109199374A (en) * | 2018-10-15 | 2019-01-15 | 烟台羿中医疗科技有限公司 | A kind of multi-lead electrocardiogram (ECG) data recording device and method |
CN114896220A (en) * | 2021-12-13 | 2022-08-12 | 南京数维康信息科技有限公司 | Electrocardio data processing method and device, server and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN101669819B (en) | 2011-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101669819B (en) | Electrocardiogram signal lossless compression method based on PT conversion and linear prediction combination | |
CN107832837B (en) | Convolutional neural network compression method and decompression method based on compressed sensing principle | |
CN1659785B (en) | Method and system for multi-rate lattice vector quantization of a signal | |
CN102368385B (en) | Backward block adaptive Golomb-Rice coding and decoding method and apparatus thereof | |
CN101944362B (en) | Integer wavelet transform-based audio lossless compression encoding and decoding method | |
CN103458460B (en) | Method and device for compressing and decompressing signal data | |
CN103067022A (en) | Nondestructive compressing method, uncompressing method, compressing device and uncompressing device for integer data | |
CN102298137B (en) | Method for compressing adaptive data-rate original data of satellite-borne SAR (Synthetic Aperture Radar) | |
CN111641826B (en) | Method, device and system for encoding and decoding data | |
JP2010537245A (en) | Digital content encoding and / or decoding | |
CN110910894B (en) | Coding and decoding of spectral peak positions | |
CN105103192B (en) | Method and apparatus for vertex error correction | |
CN101521010B (en) | Coding and decoding method for voice frequency signals and coding and decoding device | |
CN108989817A (en) | A kind of radar data compression method based on reference frame dislocation prediction | |
CN115987296A (en) | Traffic energy data compression transmission method based on Huffman coding | |
CN116185971A (en) | Intelligent processing system for electronic pressure weighing data | |
CN102982807B (en) | Method and system for multi-stage vector quantization of speech signal LPC coefficients | |
CN101266795B (en) | An implementation method and device for grid vector quantification coding | |
CN101266796A (en) | A quantified coding method and device | |
CN101615911A (en) | A kind of decoding method and device | |
CN105427583B (en) | A kind of highway traffic data compression method encoded based on LZW | |
CN105376578A (en) | Image compression method and device | |
CN116488660A (en) | Mixed data compression method of human physiological signals | |
CN111035381B (en) | Real-time electrocardiogram data lossless compression method | |
CN103886862A (en) | Pulse encoding and decoding method and pulse coder-decoder |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110601 Termination date: 20150925 |
|
EXPY | Termination of patent right or utility model |