Removal of Power Line Interference and Noise Important Matlab
Transcript of Removal of Power Line Interference and Noise Important Matlab
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
1/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden1
MSc ThesisMSc ThesisMSc ThesisMSc Thesis REPORTREPORTREPORTREPORTLEVEL: 20 P, DLEVEL: 20 P, DLEVEL: 20 P, DLEVEL: 20 P, D----LEVELLEVELLEVELLEVEL
report submitted to the Department of Computer Science and Electronics, Mlardalen Univerreport submitted to the Department of Computer Science and Electronics, Mlardalen Univerreport submitted to the Department of Computer Science and Electronics, Mlardalen Univerreport submitted to the Department of Computer Science and Electronics, Mlardalen Univer
in part fulin part fulin part fulin part fulfilment of the Degree of Master of Science infilment of the Degree of Master of Science infilment of the Degree of Master of Science infilment of the Degree of Master of Science in
Electronics with Biomedical EngineeringElectronics with Biomedical EngineeringElectronics with Biomedical EngineeringElectronics with Biomedical Engineering
: E
:
. B
www.mdh.se
Department of Computer
Science and Electronics08
[R P L I
S F T S]
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
2/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden2
Table of Contents
DEDICATION ___________________________________________________________ 7
ACKNOWLEDGEMENTS___________________________________________________ 8
ABSTRACT _____________________________________________________________ 9
1 CHAPTER1 ________________________________________________________ 10
1.1 D 10
1.2 10
1.3 111.3.1 C1 ________________________________________________________________ 111.3.2 C2 ________________________________________________________________ 111.3.3 C3 ________________________________________________________________ 111.3.4 C4 ________________________________________________________________ 111.3.5 C5 ________________________________________________________________ 111.3.6 C6 ________________________________________________________________ 121.3.7 C7 ________________________________________________________________ 121.3.8 C8 ________________________________________________________________ 121.3.9 R _______________________________________________________________ 12
2 CHAPTER2 ________________________________________________________ 13
2.1 G 132.1.1 H M P ECG D ________________________________ 14
2.2 B . 15
2.3 . 16
2.4 A . 16
2.5 C AAB 17
3 CHAPTER3 ________________________________________________________ 18
3.1 D (D) 18
3.2 F 18
3.3 D F? 19
3.4 A D F 19
3.5 D F 20
3.6 C D F A 21
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
3/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden3
3.7 DIGIA FIE DE, EIE AD CEFFICIE 223.7.1 O D F _____________________________________________________ 223.7.2 SS D F __________________________________________________ 233.7.3 C D F. _______________________________________________ 23
4 CHAPTER4 ________________________________________________________ 24
4.1 I 24
4.2 E A F 24
4.3 A F D 25
4.4 A F 25
4.5 G A F 26
4.6 , A A 27
4.7 C C A A 28
4.8 I C A F 29
5 CHAPTER5 ________________________________________________________ 31
5.1 I 31
5.2 A F A A 31
5.3 F I (FI) 32
5.4 FI F A D 335.4.1 A: ______________________________________________________________ 335.4.2 D:____________________________________________________________ 33
5.5 C FI II F 33
5.6 A FI 34
6 CHAPTER6 ________________________________________________________ 36
6.1 A F A 36
6.2 I A 36
6.3 A 37
6.4 D A F A 38
6.5 C 39
6.6 A C 41
6.7 I C A F 42
7 CHAPTER7 ________________________________________________________ 44
7.1 44
7.2 D D 45
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
4/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden4
7.3 AAB I 45
7.4 467.4.1 R P L I (50 H) ECG S LMS A _______ 467.4.2 R H H F N O ECG S __________ 51
7.5 A I 53
8 CHAPTER8 ________________________________________________________ 55
8.1 CCI AD FE EEACH 558.1.1 C _______________________________________________________________ 558.1.2 S F W/F E _______________________________ 56
9 APPENDIX A _______________________________________________________ 57
9.1 AAB CDE F ECG IGA 57
10 APPENDIX C _______________________________________________________ 61
10.1 AAB CDE F HAIC AD HIGH FEEC IE F ECG IGAB GEEA CH EJECI FIE 61
11 REFERENCES _______________________________________________________ 65
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
5/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden5
List of Figures
FIGURE 21 ECG QRS _________________________________ 14
FIGURE 4.1 P A F ________________________________26
FIGURE 4.2 T ______________________ 27
FIGURE 4.3 S I C A F ____________ 29
FIGURE 5.1 FINITE IMPULSE RESPONSE (FIR) FILTER STRUCTURE ____________________34
FIGURE 5.2 T A S P________________________________ 38
FIGURE 6.1 LMSADAPTIVE ALGORITHM_____________________________________ 37
FIGURE 6.2 OUTLINE OF ADAPTIVE TRANSVERSAL FILTER __________________________39
FIGURE 6.3 NOISE CANCELLATION EXAMPLE___________________________________ 40
FIGURE 6.4 BLOCK DIAGRAM OF ADAPTIVE NOISE CANCELLER_______________________ 41
FIGURE 6.5 INTERFERENCE CANCELLATION BY ADAPTIVE FILTERING____________________ 42
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
6/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden6
Mind is not a vessel to be
filled, but a fire to be kindled.
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
7/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden7
DEDICAI
I
P
, . I
. F, I N
A , N
.
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
8/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden8
ACKEDGEE
I A A
.
I
I F
,
(. B), (
E). T
,
.
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
9/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden9
ABAC
I F
W ,
. T
. T (50/60 H)
. T
ECG
LMS ( ) . T
(DSP) MATLAB ,
LMS . T
E (ECG), E (EEG) E (EMG).
MATLAB
.
A
() ECG
, .
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
10/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden10
1 CHAE1
HEI IDCI
1.1
T
. I
ECG, EEG EMG.
T 50/60 H ,
. T (EMF) .
[1] T 50/60 H
ECG, 50/60 H ECG
. T ECG
. [1]
T ECG
. O
. I ,
. T
50H. D ECG
ECG .
1.2
T 50/60 H
ECG
(LMS) FIR MATLAB . T
ECG
MATLAB .
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
11/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden11
1.3
T .
1.3.1 C1
T , ,
.
1.3.2 C2
T ECG. A
, & ECG ,
, , , &
MATLAB .
1.3.3 C3
T , ,
& , , ,
&
, & .
1.3.4
C4
T . I
,
, ,
. T
.
1.3.5 C5
T ,
, FIR , . I
FIR LMS
. I
AC FIR .
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
12/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden12
1.3.6 C6
T
(LMS)
. I & LMS
, , .
1.3.7 C7
I , . I
& DSP
& LMS,
ECG &
. I
ECG . F .
1.3.8 C8
T . I
, .
1.3.9
T , ,
.
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
13/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden13
2 CHAE2
IDCI ECG IGA IH E IE IEFEECE
2.1
T
. P
.
T &
. T
, , , ,
. [2]
D ,
(110 V ). E
. M
(AC). T N A 60 H; 50 H
.
T 50/60 H
E (ECG), E (EEG) E
(EMG) . I
ECG
.
T 2.1 ECG QRS . T
ECG 50 H
QRS . T QRS
ECG ECG. [3]
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
14/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden14
F 2.1 ECG QRS [3]
A (60 H)
QRS . [4] I
, ECG ECG
.
C, 50/60 H
. E (EMI) 50/60 H ECG . [5]
S . T
AC . T
. W
, AC
. F AC
.
2.1.1 H ECG D
T ,
. [6] E
. T
. W
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
15/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden15
. T
. [7]
A ECG ;
. T ECG
, , , , , ,
. [6]
2.2 .
T E (ECG)
. T ECG
50/60 H . T
ECG. [8]
D ;
ECG ECG ..
. I
. I
. T
/ "H". F
U S 60 H 50 H .
M ECG, , ,
. T 50 H (AC) , (DC). T
. [9] N
ECG. T
(ECG ) (
ECG ) [4]
W ECG ,
. T ECG 50/60 H
1 H
. V
. T
ECG . [10]
T ,
AC . T
ECG . I 50/60 H
ECG . D
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
16/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden16
ECG . D
;
. [10]
.
L P F G NR F
A F
G
I
, O ECG
. T (50H) ECG
.
2.3 .
T
(DSP),
LMS . T ,
ECG
MATLAB .
T 50 H ECG
LMS FIR . T
. T
ECG
.
2.4 .
T ,
ECG S ECG .
T ECG
.
T 50/60 H
, DSP ..
, FIR, IIR, LMS
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
17/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden17
T ,
, .
T
, &
MATLAB .
I ECG
.
I , ,
,
.
2.5
MATLAB , M. I
.
[11]
T MATLAB
, ,
, . I (FIR)
(IIR), , . I
& ,
& , & & . [12]
[14]
MATLAB .
[11] I ,
.
MATLAB ,
, , &
, , ,
,
. [12] [14]
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
18/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden18
3 CHAE3
BAIC HE F DIGIA FIE
3.1 ()
D (DSP)
. [13] T
.. , , (
) . [11]A
. T
. [15]
T D
S P. I DSP
,
. [16] T S P
, ,
, , , &
, , , ,
, , . [13][11] D
,
, CD , , , DSP , , .
3.2
A ;
, , . T
, . [17]
T , . T
;
.
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
19/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden19
3.3 ?
D
(DSP)
. T . A
. [18] D
, , , ,
. [19]
T . D
. [20] T
..
() (), () ()
. T
. [19] D ,
ECG, EMG EEG.
A
, , , PID
P (, DSP , , CPLD
).O ADC, ,
. A
DAC . D F
,
.
3.4
T ; .
1 T
.
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
20/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden20
2 A
. I
[21]
3 P CAD .
4 B . [17]
5 R (PC,
DAC, ADC, CPLD) ,
.
6
D
. [17]
7 D
. [21]
8 W
. T DSP ,
.. RF (
) , . [22]
9 D
.
10 D ,
. [17]
11 D ,
. [19]
3.5
T DSP . T
,
. D
,
. [17] B
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
21/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden21
,
.
T , F I R (FIR)
I I R (IIR) . [23] [13] [24]
. [25] T F I
R (FIR) I I R (IIR)
.[26] [25] T & (FIR)
& (IIR) . [19]. N
. B
FIR
. [26]
T
. T .
T ( )
.
3.6
T
. F
. F .
L
. T
. [21]
T ,
. T
. I IIR ,
FIR
. T
[17]
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
22/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden22
3.7 ,
T
. [19] T ,
,
:
3.7.1 D F
T
[28]
. [27] T
. I ,
.
I FIR . I IIR . [28]
D :
T
.[27]
=
T ,
(1) . [27]
= 1
T , (1
2) ; . [27]
= ( + 1 + 2) / 3
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
23/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden23
3.7.2 D F
SS LMS ,
.
T ,
. T
, :
[26]
1/ 2
I , , ,
.
3.7.3 C D F.
C ,
. F FIR ,
. [28]
T
. [29]
I ,
, . T .. 0,
1, 2... .
Z : = 0
F : = 0+ 11
S : = 0+ 11+ 22
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
24/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden24
4 CHAE4
ADAIE FIE
4.1
T ,
. [2] A
, DSP
. T (LMS)
1959 W H. [30]
A
K B T L 1965, [20]
. [31]
A
. I , ,
,
. [30] T
, , , .
4.2
A
. [32] I ,
,
. M ,
. [2] W
.
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
25/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden25
4.3
T .
I
, .[33] T
..
, , , ,
, . [34][33]
D ,
;
ECG
. [34] I ,
. G ,
, , ,
, . [35]
A . [33] I
(DSP). U
.
S , .
4.4
A ,
. [32] L,
()
. O , . T
. T
( )
. [36] T
, ..
LMS . [31]
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
26/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden26
T , ,
. [25]
A
. [4]
T 4.1. T ()
,
(). [32]
F. 4.1P A F [32]
T : [32]
T
T
T
T
4.5
T ;
. [33] T
4.1,
PROGRAMMABLRDIGITAL FILTER
ADAPTIVE ALGORITHMFOR
COEFFICIENT UPDATING
+X(n)
Input Signal
y(n)
y(n)
e(n)
Reference
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
27/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden27
. T
. A
. T
,
. [37]
2
F 4.2 T . [37]
T ; . [25]
4.6 ,
T ;
. F
.
T LMS
, (). [38] T
;
. I
FIR . [30]
AdaptiveFilter
FilterAdaptation Rules
Quality
Assessmen
FilterOutpu
FilterInput
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
28/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden28
T
. [39] R
. T
. [30]
4.7
T
. [30] F
LMS . T LMS
,
E [ ()] 0 [1]
T LMS
. [33] F
, , (HDTV). I
,
LMS .
[30]
T LMS FIR
R.
[30]
T LMS
. [1] T
R . T
LMS
0< < 1 / [33][30]
W R. T LMS
. [33] T
1/ . [1][30]
)]()(*[ nxnxERx T
=
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
29/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden29
I R
. A
. [33]
4.8
W
() .[30] T
,
, .
[34] I ,
[33] () , ()
() .[30][32]
() = () ()
F 4.3 S I C A F [34] [30][32]
T
(). I
() .[30] I
Unknown System
H(z)
Adaptive Filter
H(z)^y(n)
a(n)
y(n)
noise, w(n)
input, x(n)
+
+
+
-,
output
error e n
out ut d n
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
30/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden30
. [34]
[33]
T . [30]
T . I
;
.
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
31/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden31
5 CHAE5
ADAIE AGIH F FI FIE
5.1 I
T FIR
, ,
. I
.
5.2 A F A A
T
. T
(50/60 H) ECG
( ) (
). S
. T
.
T ,
LMS ,
. [30] F
,
. [17]
F ,
;
. T
, .
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
32/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden32
5.3 F I (FI)
A I R (FIR) [40]
( )
. [41] FIR [40]
. T ,
FIR . T
. [19]
F 5.1 F (FIR) [42]
T FIR 5.2,
FIR N ( N )
. A
. [42]T FIR , ,
. [13]
FIR IIR ,
. T
. T FIR
FIR .
+
+ + +
X X X X
7-1
7-1
7-1
7-1
y(n)^
ana2a1a0
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
33/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden33
5.4 FI F A D
T FIR
. FIR
. F FIR . [24]
5.4.1 A:
FIR F L P
C
T
C
FIR S
T
5.4.2 D:
L S IIR
H ""
5.5 C FI II F
T (FIR) (IIR)
. T , . [25] T
FIR IIR .[43]
II FIE FI FIE
M E L E
A E N A E
M B U A S
NL P R L P RM R G L R G
CAD D P A CAD D P A
N E G D D I E
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
34/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden34
C FIR IIR
. T FIR IIR
. T FIR
. [43] I
. [25] M FIR IIR FIR IIR
S . FIR
. [44] R
, FIR IIR .
5.6 A FI
T . F
. A FIR
.
I 5.3 ,
() () (). T FIR
(),
. T
(), ()
(). [35]
F 5.2 T A S P [35]
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
35/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden35
T A FIR
,
() N
()S
() I ()P
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
36/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden36
6 CHAE6
EA EA AE () AGIH
6.1 A F A
T
.. LMS (L M S), RLS (R L S, NLMS (N
L M S), . T
, LMS. T
.
6.2 I A
T LMS
, . [33] I
. T
. T (LMS)
. [45] T
LMS,
. [46] LMS , . [45] T
[33]
,
. [45]
E , LMS
, .
S
. [47] T LMS
, . [46] D ,
. [48]
L ;
. [45]
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
37/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden37
LMS . LMS . LMS .
LMS .
I LMS . [49] T
LMS
. T
.
6.3
LMS . [33] T
LMS LMS
. [48] T LMS
. [33] LMS
.
F
F
. [48]
A A
A
. [48]
F 6.1 LMS A A [50]
LMS adaptive filterL,,,Z -
Primary input d +e
y
Reference input
x
-
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
38/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden38
I 6.1, (LMS) . T
, X . T
, LMS .
T
() = () () [50]
T , ()
() . F
() () . H
. T
. T (MSE) :
= E[2()] [50]
6.4
T ,
. T
. [33]
T
. [51] T
,
. [33] D LMS ,
:
. [51]
T A
, . T
, , . [52] T LMS
. [33]
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
39/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden39
F 6.2 O [51]
T 6.2. T
()
. A , (), ( 1), . . . ( N + 1)
.
6.5
T , ()
.
() = () + 1()
T () 1()
. T 1(),
() (). [47]
TransversalFilter
AdaptationAlgorithm
+
(n|n-1)
c( -1)
d( )
+(n)
e(n)
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
40/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden40
F 6.3 N C E [47]
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
41/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden41
TF 6.3
() R ,
() R ,
() R ,() R .
T
. T
. [36] T ()
(), () . T
() ()
. T ()
.
6.6
A
. O 50/60
H ECG . [53]
F 6.4 B D A N C [30][31][47][48]
AdaptiveFilter
SignalSource
Noise Source
d(n)Primary
Input e(n)
x(n)
ReferenceInput
y(n)
+
FilterOutput
Error Signal
s + no
n1
z
System Output
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
42/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden42
A
. F 1
. T
1
. [31] T
. T
. S
. [30]
T LMS ..
,
. [48] T
. T
. I . T 6.3.
6.7
T ;
ECG, EEG EMG . I
50 H ECG . A
.
I 6.5 . T
. T . [54]
F 6.5 I C A F [54]
Adaptive
filter
SystemOutput 1
ReferenceSignal
PrimarySignal
u +de
-
d
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
43/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden43
A
. T ()
. [54]
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
44/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden44
7 CHAE7
DEIG, AAI AD IAI
7.1
T ECG
. R 50/60 H ECG
LMS
.T
ECG MATLAB .
N ECG
. I ,
.
R P L I A LMS A
ECG S.
R
ECG .
W
, . T
E
(ECG), (EEG) (EMG). T
; . T
, ,
ECG . I
, , ,
.
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
45/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden45
7.2 D D
I (DSP)
. T
.
I .. ECG (50 H) (50
H) . I LMS ,
.
T ECG 50 H 50 H;
ECG . B
50 H LMS
. T LMS .
T 47 H 53 H ECG 50 H. T
ECG ECG
. S
ECG . F DSP
, .. , ,
.
T
. T
,
.
7.3 AAB I
MATLAB
. I , &
, . T
(LMS)
FIR MATLAB . T
50/60 H ECG . T
ECG 50 H
(1=50 H) 50 H
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
46/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden46
. T FIR LMS
ECG . T
ECG
LMS
. F
LMS FIR MATLAB . T
LMS .
T
MATLAB . T
MATLAB
&
.
7.4
T LSM
(50 H) ECG .
7.4.1 Removal of Power Line Interference (50 Hz) from ECG Signalby LMS Algorithm
T ECG LMS .
T ECG 50 H MATLAB ECG S
50 H ECG S,
M . T LMS , FIR
. T ECG S, 50 H N , M , E
A LMS . T
ECG .
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
47/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden47
7.4.1.1
FT=16;
= 0.005;
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-1
0
1Original ECG Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-1
0
150 Hz Noise Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-2
0
2Mixed Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-5
0
5Error Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-2
0
2LMS Filtered Output
ECG S S1
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
48/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden48
FT=16;
= 0.009;
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-1
0
1Original ECG Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-1
0
150 Hz Noise Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-2
0
2Mixed Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-5
0
5
Error Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-2
0
2
LMS Filtered Output
ECG S S2
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
49/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden49
FT=32;
= 0.005;
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-1
0
1Original ECG Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-1
0
150 Hz Noise Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-2
0
2Mixed Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-5
0
5Error Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-2
0
2LMS Filtered Output
ECG S S3
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
50/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden50
FT=32;
= 0.009;
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-1
0
1Original ECG Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-1
0
150 Hz Noise Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-2
0
2Mixed Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000-5
0
5Error Signal
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
-2
0
2LMS Filtered Output
ECG S S4
I ECG S S1, 16
0.005 . T , ,
, , ECG , 50 H ,
, . T ECG 50 H
50 H ( ) . T
ECG
50 H . T LMS
ECG . I
50 H ECG .
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
51/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden51
I ECG S S2, 16
0.009, ECG S S1. I
.
I ECG S S3, 16
32 0.005. T ECG (50 H) (50 H) LMS . T
ECG S S4
32 0.009 . I
. S
. I
, . B
, LMS
.
7.4.2 H H F ECG
T ECG ,
ECG . T ECG
.
H
ECG . T
.
B ECG. H
ECG
. T M
.
T ECG
, ECG . W
ECG ,
ECG .
T ECG ( )
. I ECG
. T
ECG , .
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
52/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden52
N (50 H). A
.. ,
,
ECG .
F ECG . T
ECG
. B ECG ,
. T
.
7.4.2.1
0 200 400 600 800 1000 1200-1
0
1
ECG
0 200 400 600 800 1000 1200-1
0
1
HUM
0 200 400 600 800 1000 1200-20
0
20
HF-Noise
0 200 400 600 800 1000 1200-20
0
20
MixedSig
0 200 400 600 800 1000 1200-20
0
20
WithoutHum
0 200 400 600 800 1000 1200-2
0
2
Output
O ECG S HUM H F N S N F
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
53/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden53
A ECG
,
ECG .
7.5 A I
B . ECG
. A
50/60 H ECG . A LMS
, ECG
50 H. T LMS ECG . T LMS
, ECG
.
T MATLAB ECG . T
. F
,
. T FIR ,
DSP . A FIR LMS
.
T LMS ,
FIR
.
LMS
FIR
. A ,
LMS . I ,
. O , , .
M
( ) ECG . T
. T ECG (50 H)
ECG H
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
54/67
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
55/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden55
8 CHAE8
8.1 CCI AD FE EEACH
8.1.1 C
T P L
I S F T S. T
ECG ,
. I
ECG . T
.
I FIR
, FIR . T
,
.. FIR (F ) & IIR (I )
, LMS ( ) & RLS ( )
. T LMS
,
. T LMS
.
A
. T
. T
. S
.
T ECG . T
50 H. I
50 H ECG ,
. A LMS
.
T ,
. T
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
56/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden56
LMS . T ECG
LMS ,
() . T
LMS
.
B
. T
. I
. B
ECG ,
ECG . T
LMS .
F
ECG . T ,
ECG . I
() ECG
.
8.1.2 F /F E
T
MATLAB (ECG).
I
,
ECG . T
.
I , LMS
NLMS RLS
. I
ECG .
I
.
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
57/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden57
9 AEDI A
9.1 AAB CDE F ECG IGA
% I ECG
% 50 H N ECG LMS
;
;
= (0,'SS');
('P',[ (3)/4 (4)/4 (3)/1.5 (4)/1.5])
% C
% O ECG
F = 1000;
L=1000*10;
=1:L;
ECG_=(50);
ECG=ECG_;
=1:L/501
ECG_=[ ECG_ ECG];
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
58/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden58
1=50; % F N S
% R ECG S
=1:(ECG_);
N_ = (2**1*/F); % P L I
% R N S ECG
M_ = ECG_ + N_; % ECG S P N
%%%%%%%%%%%%%%%% POWER LINE INTERFERENCE %%%%%%%%%%%%%%%
%%%%%%%%%%%%%A LMS %%%%%%%%%%%%%
%P H=;
=ECG_;
=N_;
=M_;
=++;
1=()*N_;
_=15;
=(1,_);
=0.005; % L M S (LMS) .
FT=16; =1:L
1=0;
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
59/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden59
=1:_
1=1+ (,)*1(+1);
()=1;()=()();
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
60/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden60
% O ECG S
(5,1,1); () ;('O ECG S');
% P L I (L F N)
(5,1,2);() ;('50 H N S');
% M ECG S P L I (50 H)
(5,1,3);() ;('M S');
(5,1,4);() ;('E S');
% F O
(5,1,5);(F__O) ;('LMS F O');
;
;
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
61/67
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
62/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden62
=1:(ECG_);
HUM = (2**1*/F); % L F HUM S
% R N S E ECG
H_F_N = 5*(2**2*/F + /4) +
10*(2**(2+50)*/F + 2*/7 ) ; % H F N S
M_S = ECG_ + H_F_N + HUM; % ECG S P N
F = F/2; % N F [H]
W0 = 50; % N F [H]
0 = W0*/F; % N N
BW = 10; % 3B BW [H]
B = BW*/F; % N B
1 = (0); 2 = (1 (B/2))/(1 + (B/2));
= [1+2 2*1*(1+2) 1+2];
= [2 2*1*(1+2) 2*2];
O__H=(,,M_S);
M=100;
=0.25;
=1:M
()=(2***(M/2))*(0.42 0.5*(2**/M) + 0.08*(4*/M) )/(M/2);
((M/2))=2**;
=/();
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
63/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden63
F__O=(,1,O__H);
(1)
% O ECG S
(6,1,1);
(ECG_)
('ECG')
% L N (HUM )
(6,1,2);
(HUM)
('HUM')
% H F N
(6,1,3);
(H_F_N)
('HFN')
% M ECG S HUM H F N
(6,1,4);
(M_S)
('M S')
% O W HUM
(6,1,5);
(O__H)
('W H')
% F O
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
64/67
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
65/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
MSc Thesis Report, Mlardalen University, Sweden65
11EFEECE
T , .
[1] S F, C K E P, A N C
ECG S, 2002
[2] ://..//A_ A 20081122
[3] R L, R ECG
A , ETH Z, E E D
G, Z
[4] A A F ECG A, N C A
D N V . T, S M, IEEE, YS Z, S M,
IEEE
[5] ://..../ER/0410//_7. A 20081123
[6] ://2.../_//. A
20080913
[7] ://..//_. A 20081123
[8] ://4../11/PDF/525_1.
[9] D. A. M N, T C P L, F 5 (2002)
C, T, A S C
U S L A. B D R, D P,
S U N,I I I A S
S, I. B A H M C, C.
[10] A E, P D. A, A A L A ECG N
[11] J L, D S P A MATLABB T A, RS P L. 2002
[12] ://.. A 20081121
[13] H J, S R HS R D F,
U L, S, 1998
[14] MATLAB S
[15] P D. C , J I. M , F S S, A B
[16] J G. P, D G. M D S P, P,
A A
[17] E. C. I, B. W. J, D S P
[18] R J, M C, J H D F U D F
D T
[19] E P. C, D F A I, J W & S, I.
1995
[20] H S, A F T, 2 E, U S A: P
H, I. 1991,
[21] K L, I D F U DS
A, D , L N. 23, 2004
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
66/67
-
7/27/2019 Removal of Power Line Interference and Noise Important Matlab
67/67
Removal of Power Line Interference and other Single Frequency Tones from Signals
[46] L. G, L. L, G.J. W, N S C S LMS,
D E E, L U, S, 1995
[47] M H. H, J. S D S P M,
W & S.
[48] S H, A F T, F E, P H, I 2002
[49] I J C, A, S, . 3, . 1, M2005
[50] C L S H. RFI AIRSAR , J
P L C I T
[51] S A S P I J
& E E V. 18, N. 3/4, 1992.
[52] A. Z, P A F SL S, S
[53] J L. S, R B, B B I P
MB A, N H, U.S.A. R U, P,
N J, U.S.A.
[54] H, S. A F T. T E. N J: PH,
I.1996