fs = 1000 # sampling frequency (samples per second/Hz) dt = 1/fs # seconds per sample stopTime = 5 # length of signal in seconds t = np.arange(0, stopTime-dt, dt).T # time vector in seconds stopTime_plot = 2 #limit time axis for improved visualization
# loop over frequencies for phase for lower_fi inrange(len(phas_freqs)): # get phase values phasefilt = filterFGx(eeg, srate, phas_freqs[lower_fi], phas_freqs[lower_fi]*.4) phase = np.angle(hilbert(phasefilt)) # phase = angle(hilbert(phasefilt)) for upper_fi inrange(len(ampl_freqs)): ampfilt = filterFGx(eeg, srate, ampl_freqs[upper_fi], ampl_freqs[upper_fi]*.78) amplit = np.abs(hilbert(ampfilt))**2 # calculate observed modulation index(MVL) [modidx, _] = MI_CFC_WSH(phase, amplit, 30) # now use permutation testing to get Z-value bm = np.zeros(n_iter) for bi in range (n_iter): cutpoint = random.randrange(np.round(npnts/10), np.round(npnts*.9)) new_amp = np.concatenate((amplit[cutpoint:] , amplit[:cutpoint])) [mi, _] = MI_CFC_WSH(phase, new_amp, 30) bm[bi] = mi # the value we use is the normalized distance away from the mean of # boot-strapped values phaseamp[lower_fi, upper_fi] = (modidx - np.mean(bm)) / np.std(bm)
[1] Li, C., et al., 2021. High-frequency hubs of the ictal cross-frequency coupling network predict surgical outcome in epilepsy patients. IEEE Transactions on Neural Systems and Rehabilitation Engineering, 29, pp.1290-1299. (2区)
[2] Salimpour, Y. and Anderson, W.S., 2019. Cross-frequency coupling based neuromodulation for treating neurological disorders. Frontiers in neuroscience, 13, p.125. (3区)
[3] Musaeus, C.S., et al., 2020. Electroencephalographic cross-frequency coupling as a sign of disease progression in patients with mild cognitive impairment: a pilot study. Frontiers in neuroscience, 14, p.790. (3区)
[4] Zhang, W., et al., 2023. Altered fronto-central theta-gamma coupling in major depressive disorder during auditory steady-state responses. Clinical Neurophysiology, 146, pp.65-76. (3区)
[5] Hülsemann, Mareike J., Ewald Naumann and Björn Rasch. 《Quantification of Phase-Amplitude Coupling in Neuronal Oscillations: Comparison of Phase-Locking Value, Mean Vector Length, Modulation Index, and Generalized-Linear-Modeling-Cross-Frequency-Coupling》. Frontiers in Neuroscience (2019). (3区)
Maybe you could buy me a cup of coffee.
Scan this qrcode
Open alipay app scan this qrcode, buy me a coffee!
Scan this qrcode
Open wechat app scan this qrcode, buy me a coffee!