CPC G10L 25/66 (2013.01) [G10L 25/03 (2013.01)] | 17 Claims |
1. A method of processing a waveform, the waveform being representative of bodily sounds, the method executable by an electronic device having a processor, the method comprising:
acquiring, by the processor, the waveform having a plurality of amplitude data points, the waveform having a low-frequency component and a high-frequency component,
the low-frequency component being in a first frequency range and
the high-frequency component being in a second frequency range,
the second frequency range being above the first frequency range;
selecting, by the processor, a target moving averaging filter amongst a first moving averaging filter and a second moving averaging filter for filtering the waveform,
the first moving averaging filter to be used for preserving the low-frequency component of the waveform,
the first moving averaging filter being configured to average a first number of amplitude data points at a given moving iteration;
the second moving averaging filter to be used for preserving the high-frequency component of the waveform,
the second moving averaging filter being configured to average a second number of amplitude data points at the given moving iteration, the second number being inferior to the first number;
applying, by the processor, the target moving averaging filter on the waveform for reducing noise in the waveform, thereby generating a second waveform.
|