detect spindles using UCSD