modern annotation_mask, sleep_state and posterior_rhythm

- processes.annotation_mask: the director's state words and interval rules
  on the EDF+ annotations (MNE), window dominant state and 'mixta'.
- processes.sleep_state: vigilancia's features from batched Hann
  periodograms (mne psd_array_welch), depth index, HK1K cut-offs or cohort
  reference + KMeans (scikit-learn) after train().
- biomarkers.posterior_rhythm: Welch of the wake windows (MNE), 1/f-fitted
  dominant peak, median of O1 O2 P3 P4; private copy of the baselines.
- Registered as the modern modules; Pipeline.default("modern") now runs
  the full slice.

On a synthetic study: annotation states and sleep-state labels identical to
legacy, rhythm equal (6.5 Hz); contract suites and cohort cut-offs tested.
This commit is contained in:
AlbertoPMDM
2026-11-18 20:53:52 -06:00
parent acfd3a70d4
commit 1f8793aacb
12 changed files with 885 additions and 0 deletions
+3
View File
@@ -38,6 +38,9 @@ posterior_rhythm = "tea_modulo.legacy.biomarkers.posterior_rhythm:MODULE"
[project.entry-points."tea_modulo.modules"]
validation = "tea_modulo.validation:MODULE"
preprocessing = "tea_modulo.preprocessing:MODULE"
annotation_mask = "tea_modulo.processes.annotation_mask:MODULE"
sleep_state = "tea_modulo.processes.sleep_state:MODULE"
posterior_rhythm = "tea_modulo.biomarkers.posterior_rhythm:MODULE"
[project.entry-points."tea_modulo.executors"]
legacy = "tea_modulo.legacy.executor:run_serial"