CN101669819B - 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 PDF

Info

Publication number
CN101669819B
CN101669819B CN2009100240502A CN200910024050A CN101669819B CN 101669819 B CN101669819 B CN 101669819B CN 2009100240502 A CN2009100240502 A CN 2009100240502A CN 200910024050 A CN200910024050 A CN 200910024050A CN 101669819 B CN101669819 B CN 101669819B
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.)
Expired - Fee Related
Application number
CN2009100240502A
Other languages
Chinese (zh)
Other versions
CN101669819A (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.)
Xidian University
Original Assignee
Xidian University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xidian University filed Critical Xidian University
Priority to CN2009100240502A priority Critical patent/CN101669819B/en
Publication of CN101669819A publication Critical patent/CN101669819A/en
Application granted granted Critical
Publication of CN101669819B publication Critical patent/CN101669819B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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

Based on PT conversion and the bonded electrocardiogram signal lossless compression method of linear prediction
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:
f ( x ) = f 1 ( x ) , x ∈ [ a 1 , b 1 ] f 2 ( x ) - f 2 ( a ) + f 1 ( b ) , x ∈ ( b 1 , b 1 + b 2 - a 2 ]
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:
a → = ( C T C ) - 1 C T X → - - - ( 1 )
Wherein
Figure G2009100240502D00033
Be the vector of predictive coefficient group, C is an estimated matrix,
Figure G2009100240502D00034
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:
Σ i = 1 N | | X en - Σ t = 1 k a t X n - t | | + Σ i = 1 k | | X n - Σ t = 1 k a t X e ( n - t ) | | - - - ( 2 )
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 (3)

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 according to following formula:
a → = ( C T C ) - 1 C T x → - - - 1 )
Wherein
Figure FSB00000432767300012
Be the vector of predictive coefficient group, C is an estimated matrix,
Figure FSB00000432767300013
Vector for selected signal segment;
(2b) according to 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, when 1 according to the thresholding of setting) matrix (C in the formula TC) -1Determinant when being 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) according to the predictive coefficient of determining, utilize As followsThe autoregression formula is tried to achieve current some X nEstimated value:
Σ i = 1 N | | X en - Σ t = 1 k a t X n - t | | + Σ i = 1 k | | X n - Σ t = 1 k a t X e ( n - t ) | | - - - ( 2 )
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;
(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. electrocardiogram signal lossless compression method according to 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-, exponent number sign indicating number Duan Zaihou is connected to become e nWhole sign indicating number section.
3. decompression method based on PT conversion and the bonded ECG signal of linear prediction comprises:
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: i.e. pro-sign indicating number section: use 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; In exponent number sign indicating number section: use e nDivide exactly 2 k, the gained remainder is n e, then with k n eBinary code as exponent number sign indicating number section;
(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.
CN2009100240502A 2009-09-25 2009-09-25 Electrocardiogram signal lossless compression method based on PT conversion and linear prediction combination Expired - Fee Related CN101669819B (en)

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 CN101669819A (en) 2010-03-17
CN101669819B true 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)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102028458B (en) * 2011-01-13 2012-05-23 深圳市科曼医疗设备有限公司 Method for synchronously outputting electrocardiogram and vectorcardiogram
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
CN104159108B (en) * 2014-08-11 2017-08-11 浙江大学 Electrocardiosignal real-time lossless compression method and device based on adaptive prediction and improvement variable-length encoding
KR101930337B1 (en) * 2015-12-07 2018-12-19 삼성전자 주식회사 Electronic apparatus and the control metho d thereof
CN109199374A (en) * 2018-10-15 2019-01-15 烟台羿中医疗科技有限公司 A kind of multi-lead electrocardiogram (ECG) data recording device and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0810532A3 (en) * 1996-05-31 1999-02-24 Siemens Medical Systems, Inc. A lossless data compression technique that also facilitates signal analysis
CN1393204A (en) * 2001-06-26 2003-01-29 陈士良 Cardioelectric spectrometer
CN1423997A (en) * 2002-12-03 2003-06-18 沈阳东软数字医疗系统股份有限公司 Real time data collecting lossless compressing method for 12 lead ECG

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0810532A3 (en) * 1996-05-31 1999-02-24 Siemens Medical Systems, Inc. A lossless data compression technique that also facilitates signal analysis
CN1393204A (en) * 2001-06-26 2003-01-29 陈士良 Cardioelectric spectrometer
CN1423997A (en) * 2002-12-03 2003-06-18 沈阳东软数字医疗系统股份有限公司 Real time data collecting lossless compressing method for 12 lead ECG

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
zhihai He.《Peak Transform for efficient image representation and coding》.《IEEE transactions on image processing》.2007,1-14. *

Also Published As

Publication number Publication date
CN101669819A (en) 2010-03-17

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
CN102368385B (en) Backward block adaptive Golomb-Rice coding and decoding method and apparatus thereof
EP1514355B1 (en) Method and system for multi-rate lattice vector quantization of a signal
CN103067022B (en) A kind of integer data lossless compression method, decompression method and device
CN101944362B (en) Integer wavelet transform-based audio lossless compression encoding and decoding method
CN103458460B (en) Method and device for compressing and decompressing signal data
US20110181448A1 (en) Lossless compression
CN101815992A (en) Coding and/or decoding digital content
CN111641826B (en) Method, device and system for encoding and decoding data
EP3226242B1 (en) Coding of spectral peak positions
CN115883670B (en) Medical data analysis and acquisition method and device
CN101099669A (en) Electrocardiogram data compression method and decoding method based on optimum time frequency space structure code
CN108989817A (en) A kind of radar data compression method based on reference frame dislocation prediction
CN116185971B (en) Intelligent processing system for electronic pressure weighing data
CN101521010A (en) Coding and decoding method for voice frequency signals and coding and decoding device
CN115987296A (en) Traffic energy data compression transmission method based on Huffman coding
CN102982807B (en) Method and system for multi-stage vector quantization of speech signal LPC coefficients
CN101266796A (en) A quantified coding method and device
CN109495113A (en) A kind of compression method and device of EEG signals
CN112950729A (en) Image compression method based on self-encoder and entropy coding
CN113143284B (en) Electrocardiosignal compression method based on wavelet transformation and dual-mode prediction
CN117915107B (en) Image compression system, image compression method, storage medium and chip
CN111640467B (en) DNA sequencing quality fraction lossless compression method based on self-adaptive coding sequence
WO2014000443A1 (en) Image data compression and decompression method and device

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