Data continuity is a crucial metric for evaluating the quality of seismic waveform data. Current methods for assessing seismic waveform data continuity often face challenges such as excessive file segments or irregular arrangements among data segments, leading to significant time consumption or algorithm failure. To address these issues, this study introduces a bitmap-based method for evaluating waveform data continuity. This method constructs bitmap vectors to represent the recording and overlapping statuses by mapping data sampling points into bits. The constructed bitmap vectors effectively capture the continuity of data recording within the assessment time window and eliminate the impact of disordered or overlapped data segments from a data structure perspective. This approach enables rapid and accurate calculation of continuity metrics. Experimental results in real-world scenarios demonstrate the method’s superior performance, robustness, and practical value for conducting reliable continuity assessments on waveform data from the China seismic network.
根据待评价波形构建Bitmap位向量是本方法的关键步骤。每条待评价波形数据需构建2个Bitmap位向量:记录位向量 V 和重叠位向量 U,分别用于表示评价窗口内各采样时刻的记录状态和重叠状态。位向量中的每个二进制位与评价窗口中期望记录到的每个采样点相对应,位向量的长度与评价窗口内期望的采样点数量一致。要构建的位向量与待评价数据的映射关系为:
式中:Sample表示波形数据采样点;i表示采样点索引;表示位向量 V 中的第i位;表示位向量 U 中的第i位。
构建位向量的过程如下:新建并初始化记录位向量 V 和重叠位向量 U,向量长度与评价窗口内的期望采样点数相同。然后遍历待评价波形记录中的各数据分段 S,根据数据分段的起始时间和结束时间确定当前分段在位向量中的起始和结束位置索引。此时,若 V 中对应位置的值已为1,则表明之前记录的分段与当前分段存在重叠,需将 V 中对应位置的值复制到重叠位向量 U 中的相同位置,以指示数据重叠;然后,将记录位向量 V 中对应位置的二进制位设置为1,以指示该时间段内有数据存在。遍历结束后,位向量构建完毕。具体算法如表1所列。
图2绘出了构建算法的具体示例,包括输入波形、Bitmap位向量构建的分步结果和最终映射结果,重点描述了对位向量的赋值过程。图2(a)对应图1中的典型数据场景,构建过程中按顺序遍历3个分段:首先读入,将 V 在时间范围内的值复制到 U 中对应位置,由于此前 V 和 U 刚完成初始化, U 中的值未发生变化,然后将 V 在时间范围内的值赋1以记录;接着读入,将 V 在时间范围内的值复制到 U 中对应位置,由于此前该范围内 V 中已有部分位被赋1, U 中对应位置也将置1,从而记录发生的重叠,然后将 V 在时间范围内的值赋1以记录;最后读入,将 V 在时间范围内的值复制到 U 中对应位置,由于此前该范围内 V 中值全为0, U 中的值未发生变化。最终的映射结果中,可看到 V 和 U 清晰指示了数据的记录和重叠情况。图2(b)对应图1中的异常数据场景,构建过程与图2(a)一致。值得注意的是,在对进行处理时,算法未受到分段间相互关系的影响,有效杜绝了分段乱序造成的问题。
XUWeiwei. Research progress on seismic data quality control[J]. Progress in Geophysics, 2018, 33(3): 998-1004.
[3]
孙业君. 地震台网记录数据质量评估的方法研究与实现[D]. 南京: 东南大学, 2015.
[4]
SUNYejun. Research and implementation of quality evaluation method of seismic network recording data[D]. Nanjing: Southeast University, 2015.
[5]
TRANIL, KOYMANSM, ATKINSONM, et al. WFCatalog: a catalogue for seismological waveform data[J]. Computers & Geosciences, 2017, 106: 101-108.
[6]
PETERSENG M, CESCAS, KRIEGEROWSKIM. Automated quality control for large seismic networks: implementation and application to the AlpArray seismic network[J]. Seismological Research Letters, 2019, 90(3): 1177-1190.
[7]
BATINIC, CAPPIELLOC, FRANCALANCIC, et al. Methodologies for data quality assessment and improvement[J]. ACM Computing Surveys, 2009, 41(3): 1-52.
[8]
MERITXELLG O, SIERRAB, FERREIROS. On the evaluation, management and improvement of data quality in streaming time series[J]. IEEE Access, 2022, 10: 81458-81475.
CHENTong, HANXuejun, MAYanlu. Preliminary application of time series database in distributed storage and processing of massive seismic waveform data[J]. Earthquake Research in China, 2022, 38(4): 799-809.
[11]
PARKJ, HAYWARDC, KIMB I, et al. Data quality control tools used to monitor seismoacoustic research arrays in South Korea[J]. Journal of Seismology, 2023, 27(4): 659-679.
CASEYR, TEMPLETONM E, SHARERG, et al. Assuring the quality of IRIS data with MUSTANG[J]. Seismological Research Letters, 2018, 89(2A): 630-639.
[14]
RINGLERA T, HAGERTYM T, HOLLANDJ, et al. The data quality analyzer: a quality control program for seismic data[J]. Computers & Geosciences, 2015, 76: 96-111.
[15]
AURK A, BOBECKJ, ALBERTIA, et al. Pycheron: a Python-based seismic waveform data quality control software package[J]. Seismological Research Letters, 2021, 92(5): 3165-3178.
[16]
SHARERG, KEYSONL, TEMPLETONM E, et al. Developments in seismic data quality assessment using MUSTANG at the IRIS DMC[C]//AGU Fall Meeting Abstracts. New Orleans, LA: AGU, 2017: IN52A-04.
[17]
ICHINOSEG. Waveform data quality assessment[R]. Livermore, CA, United States: Lawrence Livermore National Laboratory (LLNL), 2023.
[18]
YULIATMOKOR S, GUNAWANM T, ADIM, et al. Seismic station quality monitoring and evaluation system in Indonesia[J]. IOP Conference Series: Earth and Environmental Science, 2023, 1276(1): 012045.
[19]
COLWELLJ R, WITSILA J C, MACPHERSONK A, et al. Unsupervised machine learning clustering of seismic and infrasound data quality metrics[J]. Seismological Research Letters, 2024, 95(3): 1812-1833.
ZHENGXiufen, OUYANGBiao, ZHANGDongning, et al. Technical system construction of Data Backup Centre for China Seismograph Network and the data support to researches on the Wenchuan earthquake[J]. Chinese Journal of Geophysics, 2009, 52(5): 1412-1417.
[22]
CHANC Y, IOANNIDISY E. Bitmap index design and evaluation[J]. ACM SIGMOD Record, 1998, 27(2): 355-366.
SHENYing, CHENWangyuan, HOUChenyu, et al. A bitmap index based activities conflict query algorithm[J]. Journal of Central South University (Science and Technology), 2018, 49(11): 2738-2744.
LIUYang, ZHANGTianshi, LIShichao, et al. A real-time reasoning engine for injection-production optimization of water and oil wells on account of Bitmap[J]. Acta Automatica Sinica, 2017, 43(6): 1007-1016.
CHAIXuchao, WANGWenqing, WANGDanning, et al. Big data storage platform construction scheme and research of the National Seismic Data Backup Center[J]. Journal of Geodesy and Geodynamics, 2017, 37(): 1-8.
[29]
KRISCHERL, MEGIEST, BARSCHR, et al. ObsPy: a bridge for seismology into the scientific Python ecosystem[J]. Computational Science & Discovery, 2015, 8(1): 014003.