Electrocardiogram (ECG) signal analysis is one of the key research projects in current medical related fields, which is committed to applying modern signal processing technology to ECG signal processing more widely. In this paper, the noise sources of ECG signals are analyzed, and IIR digital filters are used to reduce the three main noise interferences of ECG signals in order to achieve the effect of noise reduction. At the same time, digital filters such as IIR derivative filter and moving average filter are used to locate R wave in QRS complex, and Matlab is used for data simulation analysis.