Professional Documents
Culture Documents
BACHELOR OF ENGINEERING
In
MEDICAL ELECTRONICS ENGINEERING
B. M. S. COLLEGE OF ENGINEERING
(Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)
1. INTRODUCTION 3
2. CODE 4
3. FLOWCHART 6
4. SIMULATION RESULT 7
5. CONCLUSION 8
6. LITERATURE SURVEY 9
7. ACKNOWLEDGEMENT 10
8. REFERENCES 11
2
INTRODUCTION
Electrocardiogram (ECG) signals are a crucial tool for monitoring the electrical activity of
the heart. They are widely used in the medical field for diagnosing heart conditions and
monitoring the effects of treatment. However, the recorded ECG signals are often
contaminated by high frequency noise, which can interfere with accurate analysis and
diagnosis. To address this issue, one common approach is to use a digital filter to remove the
high frequency noise.
A Butterworth filter is a type of low-pass filter that is commonly used for ECG signal
filtering. The Butterworth filter is characterised by its flat frequency response in the passband
and a roll-off rate that is proportional to the square of the frequency. This makes it an ideal
filter for removing high frequency noise from ECG signals while preserving the important
features of the ECG signal, such as the QRS complex and the T-wave.
H(s) = 1 / (1 + (s / s_c)^(2n))
where s is the Laplace variable, s_c is the cutoff frequency, and n is the order of the filter. In
this case, we will use a third-order Butterworth filter, so n = 3.
The simulation of this code has been implemented in ModelSim. ModelSim is a simulation
and debugging tool for digital designs described in hardware description languages (HDLs),
such as Verilog and VHDL. It is widely used in the semiconductor industry for verification
and validation of digital designs, as well as in academia for teaching digital design and digital
logic.
3
CODE
module Butterworth_filter(
input wire clk,
input wire reset,
input wire[15:0] sample,
output wire[15:0] filtered_sample
);
4
TESTBENCH
module Butterworth_filter_tb();
reg clk;
reg reset;
reg[15:0] sample;
wire[15:0] filtered_sample;
Butterworth_filter dut (
.clk(clk),
.reset(reset),
.sample(sample),
.filtered_sample(filtered_sample)
);
initial begin
clk = 0;
reset = 1;
#10 reset = 0;
#100 sample = 16'h1000;
#100 sample = 16'h2000;
#100 sample = 16'h3000;
#100 sample = 16'h4000;
#100 $finish;
end
endmodule
5
FLOWCHART
6
SIMULATION RESULT
7
CONCLUSION
From the result, it shows that the unwanted signal in the raw ECG signal is attenuated
through the designed filter. By sharing the delay elements between input coefficients and
feedback coefficients through optimization with Direct Form II structure, the resource
utilization is improved. It is possible to enhance and analyse the performance of the designed
filter by implementing it in Application Specific Integrated Circuit (ASIC).
8
LITERATURE SURVEY
9
ACKNOWLEDGEMENT
We would like to acknowledge Dr. M.S. Suma for her vital cooperation and help in ensuring
the successful completion of our assignment.
We would also like to thank the Department of Medical Electronics Engineering for
providing us with the wonderful opportunity to work on this assignment.
10
REFERENCES
[1]C. -H. Chang, H. -J. Ko and K. -M. Chang, "Cancellation of high-frequency noise in ECG
signals using adaptive filter without external reference," 2010 3rd International Conference
on Biomedical Engineering and Informatics, Yantai, China, 2010, pp. 787-790, doi:
10.1109/BMEI.2010.5639953.
[2] kj, Shanthi. (2020). Survey on Filtering Techniques Applied to ECG Signal. International
Journal of Innovative Technology and Exploring Engineering. 9.
10.35940/ijitee.G1003.0597S20.
[3]Almalchy, Mohammed & Ciobanu, Vlad & Popescu, Nirvana. (2019). Noise Removal
from ECG Signal Based on Filtering Techniques. 176-181. 10.1109/CSCS.2019.00037.
11