We develop a robust and automatic determination of peak frequencies of direct wave arrivals from microseismic events using mirror image of the recorded signal. These peak frequencies can be then used to evaluate attenuation quality factor (Q). We propose to use procedure that consists of automatic determination of the peak frequencies in combination with matched filter to facilitate selection of suitable events. Using both natural and induced seismicity datasets, we show that matched filter detection along with automatic determination of the peak frequencies gives consistent values of quality factor when compared with manual processing. Proposed technique significantly reduces processing time making it a suitable tool in attenuation analysis of large datasets.