We developed a real-time method for determining the arrival times of S-waves based on the principles of the STA/LTA method. First, the arrival time of the P wave was determined using a conventional STA/LTA approach. Artificial noise, quantified in terms of the P-wave amplitude, was then introduced into the signal. Subsequently, STA/LTA was applied to the modified signal to determine the arrival time of S-wave.
The STA/LTA method has been used in many P-wave detection systems owing to its computational efficiency. For P-wave detection, the real-time calculation of \({STA}_{p}\) and \({LTA}_{p}\) was performed on the seismic waveform data:
$$\begin{array}{c}{STA}_{p}\left(k\right)=\frac{1}{{\alpha }_{p}}\sum _{i=k-{\alpha }_{p}}^{k}\left|{x}_{i}\right|;\#\left(1\right)\end{array}$$
$$\begin{array}{c}{LTA}_{p}\left(k\right)=\frac{1}{{\beta }_{p}}\sum _{i=k-{\beta }_{p}}^{k}\left|{x}_{i}\right|;\#\left(2\right)\end{array}$$
$$\begin{array}{c}\frac{{STA}_{p}}{{LTA}_{p}}>{th}_{p}.\#\left(3\right)\end{array}$$
Specifically, the time k, at which Eq. (3) was first satisfied, was identified as the P-wave arrival time γ. Next, the 90th percentile of the P-wave, denoted as q, was calculated from γ to γ + δ s as follows:
$$\begin{array}{c}q={percentile}_{90\%}\left\{{x}_{\gamma },{x}_{\gamma +1},{x}_{\gamma +2},\bullet \bullet \bullet ,{x}_{\gamma +\delta }\right\}.\#\left(4\right)\end{array}$$
Subsequently, the random noise N with values ranging from 0 to 1, was multiplied by q to generate a noise waveform that incorporates the amplitude information of the P-wave from γ to γ + δ. The noise waveform, which is the product of q and N, was replaced with the original signal waveform \({x}_{i}\) from time γ + δ-β to time γ + δ. Therefore, waveform \({y}_{i}\) was generated to detect the S-wave as follows:
$$\begin{array}{c}{y}_{i}=\left\{{q*N}_{\gamma +\delta -\beta },{q*N}_{\gamma +\delta -\beta +1},{q*N}_{\gamma +\delta -\beta +2},\bullet \bullet \bullet ,q*{N}_{\gamma +\delta },{x}_{\gamma +\delta +1},\bullet \bullet \bullet \right\}.\#\left(5\right)\end{array}$$
Although creating \({y}_{i}\) from a time earlier than γ + δ-β presents no problem, we generated only the essential \({y}_{i}\) required to compute the LTA to minimize the cost of the real-time computation. Next, the STA/LTA analysis was performed on the modified waveform \({y}_{i}\) to establish the threshold, ths for detecting the S-wave.
$$\begin{array}{c}{STA}_{s}\left(k\right)=\frac{1}{{\alpha }_{s}}\sum _{i=k-{\alpha }_{s}}^{k}\left|{y}_{i}\right|.\#\left(6\right)\end{array}$$
$$\begin{array}{c}{LTA}_{s}\left(k\right)=\frac{1}{{\beta }_{s}}\sum _{i=k-{\beta }_{s}}^{k}\left|{y}_{i}\right|.\#\left(7\right)\end{array}$$
$$\begin{array}{c}\frac{{STA}_{s}}{{LTA}_{s}}>{th}_{s}.\#\left(8\right)\end{array}$$
where the parameters \({\alpha }_{s}\) and \({\beta }_{s}\) represent the length of time used to calculate the average value. \({\alpha }_{s}\) and \({\beta }_{s}\) can have values identical to those of \({\alpha }_{p}\) and \({\beta }_{p}\). Finally, the time k at which Eq. (8) was first satisfied was designated as the S-wave arrival time.
The δ, q, and \({y}_{i}\) values were updated if the \({STA}_{s}/{LTA}_{s}\) value did not surpass the threshold (ths). The amplitude of P-wave underwent gradual changes, leading to the q value becoming insufficient a few seconds after the P-wave arrival. Hence, we incremented the δ value each second and updated the q and \({y}_{i}\) till the \({STA}_{s}/{LTA}_{s}\) exceeded the ths. First, we generated the q and \({y}_{i}\)based on the data between γ and γ + 2 s and applied \({STA}_{s}/{LTA}_{s}\). If the \({STA}_{s}/{LTA}_{s}\) values did not exceed the ths by γ + 3 s, we updated the q and \({y}_{i}\) again based on the data between γ and γ + 3 s, followed by performing the \({STA}_{s}/{LTA}_{s}\)till γ + 4 s using updated \({y}_{i}\). This iterative process continued until γ + 6 s, beyond which the q and \({y}_{i}\) were not updated.
The objective of this method was to stabilize the temporal fluctuations of the STA/LTA till arrival of S-waves. Directly following the onset of P-wave, the computed LTA encompassed both the pre-P-wave noise and P-wave itself until the time window β allocated for the LTA computation expired. Consequently, the LTA value gradually escalated. In such instances, the STA/LTA required time to stabilize, and the configuration of the threshold became intricate, leading to the risk of overlooking the arrival of S-wave. Hence, by incorporating noise and the parameter q, the temporal fluctuation of STA/LTA, commencing promptly after the arrival of the P-wave (more precisely, after δ has passed), could be assessed based on the interplay between P-waves and S-waves. This augmented the reliable detection of S-waves.
In this study, we selected earthquakes of magnitude ≥ M5.5 and depths ≤ 100 km, occurred between 2003 and 2018, and manually picked S-wave arrival times on the seismic waveforms recorded by Kyoshin Network (K-NET) for the selected earthquakes. The data used in this study were obtained from K-NET stations, located within approximately 200 km from the epicenter of each earthquake. Only seismic events with 20 or more K-NET stations where the S-wave arrival times could be interpreted manually were considered. The 65 earthquakes considered in this analysis are listed in Table 1. In this study, we computed the \({STA}_{p}/{LTA}_{p}\) for the vertical component of waveforms, whereas the parameters q and \({STA}_{s}/{LTA}_{s}\) were derived from the combined horizontal components of the waveforms. The acceleration waveforms recorded by K-NET were integrated into velocity waveforms before the analysis. This was done to augment the amplitude variation in the time domain and aid in the detection of S-waves. The bandwidth range of the dataset used in this study was 0.1–20 Hz.