Sharing custom process for Sleep Spindle Analysis for sleep researchers

Hello @chanakyareddy thank you for your question :slight_smile:
Firstly, the custom-process that I wrote is for analysing already identified and extracted individual/discrete spindles so the process of manually extracting sleep spindles is independent of the process.

Now, onto your question, it's not naive at all, no worries.
The reasons for manual extraction is as follows:

  1. It is well known from articles like Warby et al. (2014) and its related papers that automatic detection of spindles, while useful, is actually not as great as people assume. Therefore automatic detection algorithms are usually used in conjunction with visual re-checking of the spindles identified by the algorithms - i.e. a semi-automatic process. Therefore at this stage our group decided to just manually identify the discrete spindles if we eventually have to recheck the spindles identified by the algorithms.
  2. There is a plan in place to implement an automatic detection algorithm eventually but that is in due course. Due to where we are at in our data preprocessing and analysis we decided to manually identify the spindles first and compare its results to the (eventual) automatic detection algorithm - therefore think of the current methods as stage 1 in our spindle analysis pipeline.
  3. One of the main issues with visual identification of spindles is the large quantity of time spent in visual identification. Fortunately, our sleep research is a nap study meaning the quantity of data to visually identify the spindles is not much compared to overnight noctural studies.
  4. One of the other main issues with visual identification of spindles is the aspect of subjectivity, which is the case with sleep staging as well. Therefore we decided to cross-check the visually identified spindles in the time domain (which is the gold standard for identifying spindles) with spindles in the time-frequency domain. This allowed our team to check the spindles we've identified subjectively in the time domain from a different perspective. While the element of subjectivity would still be present, by implementing this method, we can reduce the degree of subjectivity. If you wish to know more about this check my other forum post down below.