Psychophysiology Preregistration Skill
Description
Analyzes psychophysiology research projects and generates comprehensive preregistration documents. Detects physiological signal acquisition systems, processing parameters, and analysis plans from scripts and documentation.
Objective
Generate modality-appropriate psychophysiology preregistration by:
- Confirming psychophysiology modality
- Extracting acquisition parameters from scripts and data files
- Detecting signal processing pipeline (artifact detection, decomposition)
- Extracting statistical analysis plan
- Creating preregistration draft using psychophysiology template
- Guiding user through missing sections
Workflow
Step 1: Confirm Modality
Verify psychophysiology detection:
- Display files found: .acq, .edf, .mat, .txt files with physiological data
- Identify signal types: ECG, EDA, EMG, respiration, pupillometry
- Confirm with user: "I detected psychophysiology files. Proceed?"
Step 2: Detect Signal Types and Software
Software detection:
AcqKnowledge detected: grep for ".acq", "biopac", "AcqKnowledge"
Kubios detected: grep for "kubios", "hrv", "rr_intervals"
Ledalab detected: grep for "ledalab", "eda", "scr"
MATLAB detected: grep for ".mat", "load", "ecg", "eda"
Python detected: grep for "neurokit", "biosppy", "hrv", "eda"
R detected: grep for "RHRV", "physio", "eda.R"
Signal type detection:
ECG/HRV: grep for "ecg", "hrv", "rr", "ibi", "heart_rate", "r_peaks"
EDA/SCR: grep for "eda", "gsr", "scr", "scl", "skin_conductance"
EMG: grep for "emg", "electromyography", "muscle"
Respiration: grep for "resp", "breathing", "respiration_rate"
Pupillometry: grep for "pupil", "eye_tracking", "pupil_diameter"
Step 3: Extract Acquisition Parameters
From AcqKnowledge files (.acq):
- Sampling rate from file header
- Channel names and units
- Recording duration
- Hardware configuration
From Python scripts (NeuroKit2, BioSPPy):
# ECG/HRV extraction
ecg_signals, info = nk.ecg_process(ecg, sampling_rate=1000)
hrv_time = nk.hrv_time(peaks, sampling_rate=1000)
hrv_freq = nk.hrv_frequency(peaks, sampling_rate=1000)
# EDA extraction
eda_signals, info = nk.eda_process(eda, sampling_rate=100)
scr_peaks = nk.eda_peaks(eda_cleaned)
# Detect:
- Sampling rate
- Signal processing functions
- Analysis parameters
From MATLAB scripts:
% ECG/HRV
[r_peaks, rr_intervals] = detect_r_peaks(ecg, fs);
hrv_metrics = calculate_hrv(rr_intervals);
% EDA
[scr, scl] = decompose_eda(eda_signal, fs);
% Detect:
- Sampling frequency (fs)
- Detection algorithms
- Analysis windows
From R scripts (RHRV, physio):
# HRV analysis
hrv.data <- LoadBeatRR(file)
hrv.data <- FilterNIHR(hrv.data)
hrv.data <- CalculateTimeAnalysis(hrv.data)
# Detect:
- Data loading methods
- Filtering parameters
- Analysis functions
Step 4: Extract Signal Processing Pipeline
ECG/HRV Processing:
- R-peak detection algorithm (Pan-Tompkins, Hamilton, etc.)
- Artifact detection method
- Ectopic beat handling
- RR interval filtering
- Interpolation method
- Detrending
EDA Processing:
- Artifact detection and removal
- Decomposition method (high-pass filter, CDA, cvxEDA)
- Baseline correction
- SCR detection criteria (amplitude threshold, rise time)
- Tonic vs. phasic separation
EMG Processing:
- Filtering (high-pass, low-pass, notch)
- Rectification method
- Smoothing/envelope extraction
- Baseline correction
- Burst detection criteria
Respiration Processing:
- Peak detection
- Rate calculation
- Artifact handling
- Baseline correction
Step 5: Extract Analysis Plan
From analysis scripts:
- Baseline period definition
- Analysis windows (e.g., task vs. rest)
- Dependent variables:
- HRV: SDNN, RMSSD, pNN50, LF, HF, LF/HF
- EDA: SCL, SCR amplitude, SCR frequency, AUC
- EMG: mean amplitude, peak amplitude, integrated EMG
- Respiration: rate, variability
- Statistical tests (t-test, ANOVA, mixed models)
- Covariates and confounds
- Multiple comparisons correction
Keywords to search:
baseline, task, rest, condition
ttest, anova, lm, lmer, glm
SDNN, RMSSD, LF, HF, SCL, SCR
mean, median, peak, auc
Step 6: Generate Draft
Create PREREGISTRATION_DRAFT.md with:
- Metadata (from METADATA_SCHEMA.md)
- Study Information (title, hypotheses, design)
- Participants (N, criteria, exclusions)
- Psychophysiological Measures (signal types, acquisition)
- Signal Processing (detection algorithms, artifact handling)
- Analysis Plan (dependent variables, statistical tests)
- Ethics (from ETHICS_PRIVACY_TEMPLATE.md)
Step 7: Interactive Completion
Guide user through sections:
- Verify detected signal types and software
- Confirm acquisition parameters (sampling rate, electrode placement)
- Detail signal processing decisions
- Specify analysis windows and dependent variables
- Define statistical analysis plan
- Complete missing sections
Detection Patterns
File Extensions
.acq - AcqKnowledge/BIOPAC data
.edf - European Data Format (common for physiological signals)
.mat - MATLAB data files
.txt, .csv - Text-based physiological data
.hea, .dat - PhysioNet WFDB format
.ibi, .rr - RR interval files
Software Keywords
- AcqKnowledge:
acq, biopac, AcqKnowledge
- Kubios:
kubios, hrv_analysis, rr_correction
- Ledalab:
ledalab, analyze, optimize
- NeuroKit2:
nk.ecg_process, nk.eda_process, nk.hrv
- BioSPPy:
biosppy.signals, ecg.ecg, eda.eda
- RHRV:
LoadBeatRR, FilterNIHR, CalculateTimeAnalysis
Signal Keywords
- ECG/HRV:
ecg, hrv, r_peak, rr_interval, ibi, heart_rate, SDNN, RMSSD, LF, HF
- EDA:
eda, gsr, scr, scl, skin_conductance, tonic, phasic
- EMG:
emg, muscle, rectify, envelope, burst
- Respiration:
resp, breathing, respiration_rate, breath
- Pupillometry:
pupil, diameter, dilation, constriction
Output Format
# Preregistration: [Study Title]
## Metadata
[From METADATA_SCHEMA.md - all fields required]
## Study Information
- Research question: [extracted or TO BE COMPLETED]
- Hypotheses: [extracted or TO BE COMPLETED]
- Design: [extracted]
## Participants
- N: [extracted or TO BE COMPLETED]
- Inclusion/exclusion: [TO BE COMPLETED]
- Physiology-specific exclusions: [TO BE COMPLETED]
- Cardiovascular conditions (for ECG/HRV)
- Skin conditions (for EDA)
- Medications affecting autonomic function
- Compensation: [TO BE COMPLETED]
## Psychophysiological Measures
### Signal Types
- Signals recorded: [detected: ECG/EDA/EMG/Respiration/Pupil]
### ECG/HRV Acquisition (if applicable)
- System: [detected from files: AcqKnowledge/BIOPAC/etc.]
- Lead configuration: [TO BE COMPLETED]
- Electrode placement: [TO BE COMPLETED]
- Sampling rate: [VERIFY: detected value]
- Online filters: [TO BE COMPLETED]
### EDA Acquisition (if applicable)
- System: [detected from files]
- Electrode placement: [TO BE COMPLETED]
- Electrode type: [TO BE COMPLETED]
- Sampling rate: [VERIFY: detected value]
- Measurement mode: [TO BE COMPLETED]
### EMG Acquisition (if applicable)
- System: [detected from files]
- Muscle sites: [TO BE COMPLETED]
- Electrode placement: [TO BE COMPLETED]
- Sampling rate: [VERIFY: detected value]
### Other Signals
- [Additional signals as detected]
## Experimental Paradigm
- Task: [TO BE COMPLETED]
- Conditions: [TO BE COMPLETED]
- Trial structure: [TO BE COMPLETED]
- Baseline period: [extracted or TO BE COMPLETED]
## Signal Processing
### ECG/HRV Processing (if applicable)
- R-peak detection: [detected algorithm or TO BE COMPLETED]
- Artifact detection: [extracted method or TO BE COMPLETED]
- Ectopic beat handling: [TO BE COMPLETED]
- RR interval filtering: [extracted or TO BE COMPLETED]
### EDA Processing (if applicable)
- Artifact removal: [extracted method or TO BE COMPLETED]
- Decomposition method: [detected or TO BE COMPLETED]
- SCR detection criteria: [extracted or TO BE COMPLETED]
- Baseline correction: [TO BE COMPLETED]
### EMG Processing (if applicable)
- Filtering: [extracted parameters or TO BE COMPLETED]
- Rectification: [TO BE COMPLETED]
- Smoothing: [extracted or TO BE COMPLETED]
## Analysis Plan
### Dependent Variables
- HRV measures: [detected: SDNN/RMSSD/LF/HF or TO BE COMPLETED]
- EDA measures: [detected: SCL/SCR or TO BE COMPLETED]
- EMG measures: [TO BE COMPLETED]
- Analysis windows: [extracted or TO BE COMPLETED]
### Statistical Analysis
- Primary analyses: [extracted or TO BE COMPLETED]
- Statistical tests: [detected or TO BE COMPLETED]
- Covariates: [TO BE COMPLETED]
- Multiple comparisons: [TO BE COMPLETED]
## Ethics & Data Management
[From ETHICS_PRIVACY_TEMPLATE.md]
Behavior Rules
- Always scan script files before asking about parameters
- Detect signal types from file extensions and keywords
- Mark confidence levels for each detection:
- ✓ High (direct in script, >2 mentions)
- ~ Medium (inferred from patterns)
- ? Low (guess, needs verification)
- Never modify project files
- Ask focused questions - one section at a time
- Provide examples for user input fields
- Save as
PREREGISTRATION_DRAFT.md in project root
Example Interaction
User: Create a preregistration
Agent:
1. Scans directory
2. Finds: data.acq, process_hrv.py, analyze_eda.m
3. ✓ Detects: Psychophysiology (confidence: high)
4. Identifies signals:
- ECG/HRV (found "hrv", "r_peaks", "RMSSD")
- EDA (found "eda", "scr", "ledalab")
5. Scans Python script:
- Finds: nk.ecg_process(ecg, sampling_rate=1000)
- Finds: nk.hrv_time(peaks) → SDNN, RMSSD
- Finds: nk.hrv_frequency(peaks) → LF, HF
6. Scans MATLAB script:
- Finds: ledalab analyze
- Finds: SCR detection threshold: 0.05 µS
7. Generates draft with:
- ✓ Signals: ECG, EDA
- ✓ Sampling rate: 1000 Hz (ECG)
- ✓ HRV measures: SDNN, RMSSD, LF, HF
- ~ EDA processing: Ledalab
- ? Electrode placement: [TO BE COMPLETED]
8. Asks:
- "Confirm ECG lead configuration?"
- "Specify EDA electrode placement?"
- "Define baseline and task periods?"
9. Saves: PREREGISTRATION_DRAFT.md
Configuration
Load from configs/psychophys-config.json:
{
"modality": "psychophys",
"template": "templates/psychophys/PSYCHOPHYSIOLOGY_PREREGISTRATION_GUIDE.md",
"signal_types": ["ecg", "hrv", "eda", "emg", "respiration", "pupil"],
"search_patterns": {
"software": ["acqknowledge", "biopac", "kubios", "ledalab", "neurokit", "biosppy", "rhrv"],
"ecg_keywords": ["ecg", "hrv", "r_peak", "rr_interval", "SDNN", "RMSSD", "LF", "HF"],
"eda_keywords": ["eda", "gsr", "scr", "scl", "skin_conductance"],
"emg_keywords": ["emg", "muscle", "rectify", "envelope"],
"resp_keywords": ["resp", "breathing", "respiration_rate"],
"pupil_keywords": ["pupil", "diameter", "dilation"]
},
"required_sections": [
"Metadata",
"Study Information",
"Participants",
"Psychophysiological Measures",
"Experimental Paradigm",
"Signal Processing",
"Analysis Plan",
"Ethics"
]
}
Related Resources
- Template:
templates/psychophys/PSYCHOPHYSIOLOGY_PREREGISTRATION_GUIDE.md
- Common metadata:
templates/biopsych/common/METADATA_SCHEMA.md
- Ethics template:
templates/biopsych/common/ETHICS_PRIVACY_TEMPLATE.md
- References: See README.md "Psychophysiology Resources" section
Key References
- Boucsein et al. (2012). Publication recommendations for electrodermal measurements. Psychophysiology, 49(8), 1017-1034.
- Task Force (1996). Heart rate variability: Standards of measurement. European Heart Journal, 17(3), 354-381.
- Fridlund & Cacioppo (1986). Guidelines for human electromyographic research. Psychophysiology, 23(5), 567-589.
- Cacioppo et al. (2007). Handbook of Psychophysiology (3rd ed.). Cambridge University Press.
1---2name: psychophys3description: Psychophysiology Preregistration Skill4---5# Psychophysiology Preregistration Skill67## Description89Analyzes psychophysiology research projects and generates comprehensive preregistration documents. Detects physiological signal acquisition systems, processing parameters, and analysis plans from scripts and documentation.1011## Objective1213Generate modality-appropriate psychophysiology preregistration by:141. Confirming psychophysiology modality152. Extracting acquisition parameters from scripts and data files163. Detecting signal processing pipeline (artifact detection, decomposition)174. Extracting statistical analysis plan185. Creating preregistration draft using psychophysiology template196. Guiding user through missing sections2021## Workflow2223### Step 1: Confirm Modality24Verify psychophysiology detection:25- Display files found: .acq, .edf, .mat, .txt files with physiological data26- Identify signal types: ECG, EDA, EMG, respiration, pupillometry27- Confirm with user: "I detected psychophysiology files. Proceed?"2829### Step 2: Detect Signal Types and Software3031**Software detection:**32```33AcqKnowledge detected: grep for ".acq", "biopac", "AcqKnowledge"34Kubios detected: grep for "kubios", "hrv", "rr_intervals"35Ledalab detected: grep for "ledalab", "eda", "scr"36MATLAB detected: grep for ".mat", "load", "ecg", "eda"37Python detected: grep for "neurokit", "biosppy", "hrv", "eda"38R detected: grep for "RHRV", "physio", "eda.R"39```4041**Signal type detection:**42```43ECG/HRV: grep for "ecg", "hrv", "rr", "ibi", "heart_rate", "r_peaks"44EDA/SCR: grep for "eda", "gsr", "scr", "scl", "skin_conductance"45EMG: grep for "emg", "electromyography", "muscle"46Respiration: grep for "resp", "breathing", "respiration_rate"47Pupillometry: grep for "pupil", "eye_tracking", "pupil_diameter"48```4950### Step 3: Extract Acquisition Parameters5152**From AcqKnowledge files (.acq):**53- Sampling rate from file header54- Channel names and units55- Recording duration56- Hardware configuration5758**From Python scripts (NeuroKit2, BioSPPy):**59```python60# ECG/HRV extraction61ecg_signals, info = nk.ecg_process(ecg, sampling_rate=1000)62hrv_time = nk.hrv_time(peaks, sampling_rate=1000)63hrv_freq = nk.hrv_frequency(peaks, sampling_rate=1000)6465# EDA extraction66eda_signals, info = nk.eda_process(eda, sampling_rate=100)67scr_peaks = nk.eda_peaks(eda_cleaned)6869# Detect:70- Sampling rate71- Signal processing functions72- Analysis parameters73```7475**From MATLAB scripts:**76```matlab77% ECG/HRV78[r_peaks, rr_intervals] = detect_r_peaks(ecg, fs);79hrv_metrics = calculate_hrv(rr_intervals);8081% EDA82[scr, scl] = decompose_eda(eda_signal, fs);8384% Detect:85- Sampling frequency (fs)86- Detection algorithms87- Analysis windows88```8990**From R scripts (RHRV, physio):**91```r92# HRV analysis93hrv.data <- LoadBeatRR(file)94hrv.data <- FilterNIHR(hrv.data)95hrv.data <- CalculateTimeAnalysis(hrv.data)9697# Detect:98- Data loading methods99- Filtering parameters100- Analysis functions101```102103### Step 4: Extract Signal Processing Pipeline104105**ECG/HRV Processing:**106- R-peak detection algorithm (Pan-Tompkins, Hamilton, etc.)107- Artifact detection method108- Ectopic beat handling109- RR interval filtering110- Interpolation method111- Detrending112113**EDA Processing:**114- Artifact detection and removal115- Decomposition method (high-pass filter, CDA, cvxEDA)116- Baseline correction117- SCR detection criteria (amplitude threshold, rise time)118- Tonic vs. phasic separation119120**EMG Processing:**121- Filtering (high-pass, low-pass, notch)122- Rectification method123- Smoothing/envelope extraction124- Baseline correction125- Burst detection criteria126127**Respiration Processing:**128- Peak detection129- Rate calculation130- Artifact handling131- Baseline correction132133### Step 5: Extract Analysis Plan134135**From analysis scripts:**136- Baseline period definition137- Analysis windows (e.g., task vs. rest)138- Dependent variables:139 - HRV: SDNN, RMSSD, pNN50, LF, HF, LF/HF140 - EDA: SCL, SCR amplitude, SCR frequency, AUC141 - EMG: mean amplitude, peak amplitude, integrated EMG142 - Respiration: rate, variability143- Statistical tests (t-test, ANOVA, mixed models)144- Covariates and confounds145- Multiple comparisons correction146147**Keywords to search:**148- `baseline`, `task`, `rest`, `condition`149- `ttest`, `anova`, `lm`, `lmer`, `glm`150- `SDNN`, `RMSSD`, `LF`, `HF`, `SCL`, `SCR`151- `mean`, `median`, `peak`, `auc`152153### Step 6: Generate Draft154155Create `PREREGISTRATION_DRAFT.md` with:156- **Metadata** (from METADATA_SCHEMA.md)157- **Study Information** (title, hypotheses, design)158- **Participants** (N, criteria, exclusions)159- **Psychophysiological Measures** (signal types, acquisition)160- **Signal Processing** (detection algorithms, artifact handling)161- **Analysis Plan** (dependent variables, statistical tests)162- **Ethics** (from ETHICS_PRIVACY_TEMPLATE.md)163164### Step 7: Interactive Completion165166Guide user through sections:1671. Verify detected signal types and software1682. Confirm acquisition parameters (sampling rate, electrode placement)1693. Detail signal processing decisions1704. Specify analysis windows and dependent variables1715. Define statistical analysis plan1726. Complete missing sections173174## Detection Patterns175176### File Extensions177- `.acq` - AcqKnowledge/BIOPAC data178- `.edf` - European Data Format (common for physiological signals)179- `.mat` - MATLAB data files180- `.txt`, `.csv` - Text-based physiological data181- `.hea`, `.dat` - PhysioNet WFDB format182- `.ibi`, `.rr` - RR interval files183184### Software Keywords185- AcqKnowledge: `acq`, `biopac`, `AcqKnowledge`186- Kubios: `kubios`, `hrv_analysis`, `rr_correction`187- Ledalab: `ledalab`, `analyze`, `optimize`188- NeuroKit2: `nk.ecg_process`, `nk.eda_process`, `nk.hrv`189- BioSPPy: `biosppy.signals`, `ecg.ecg`, `eda.eda`190- RHRV: `LoadBeatRR`, `FilterNIHR`, `CalculateTimeAnalysis`191192### Signal Keywords193- ECG/HRV: `ecg`, `hrv`, `r_peak`, `rr_interval`, `ibi`, `heart_rate`, `SDNN`, `RMSSD`, `LF`, `HF`194- EDA: `eda`, `gsr`, `scr`, `scl`, `skin_conductance`, `tonic`, `phasic`195- EMG: `emg`, `muscle`, `rectify`, `envelope`, `burst`196- Respiration: `resp`, `breathing`, `respiration_rate`, `breath`197- Pupillometry: `pupil`, `diameter`, `dilation`, `constriction`198199## Output Format200201```markdown202# Preregistration: [Study Title]203204## Metadata205[From METADATA_SCHEMA.md - all fields required]206207## Study Information208- Research question: [extracted or TO BE COMPLETED]209- Hypotheses: [extracted or TO BE COMPLETED]210- Design: [extracted]211212## Participants213- N: [extracted or TO BE COMPLETED]214- Inclusion/exclusion: [TO BE COMPLETED]215- Physiology-specific exclusions: [TO BE COMPLETED]216 - Cardiovascular conditions (for ECG/HRV)217 - Skin conditions (for EDA)218 - Medications affecting autonomic function219- Compensation: [TO BE COMPLETED]220221## Psychophysiological Measures222223### Signal Types224- Signals recorded: [detected: ECG/EDA/EMG/Respiration/Pupil]225226### ECG/HRV Acquisition (if applicable)227- System: [detected from files: AcqKnowledge/BIOPAC/etc.]228- Lead configuration: [TO BE COMPLETED]229- Electrode placement: [TO BE COMPLETED]230- Sampling rate: [VERIFY: detected value]231- Online filters: [TO BE COMPLETED]232233### EDA Acquisition (if applicable)234- System: [detected from files]235- Electrode placement: [TO BE COMPLETED]236- Electrode type: [TO BE COMPLETED]237- Sampling rate: [VERIFY: detected value]238- Measurement mode: [TO BE COMPLETED]239240### EMG Acquisition (if applicable)241- System: [detected from files]242- Muscle sites: [TO BE COMPLETED]243- Electrode placement: [TO BE COMPLETED]244- Sampling rate: [VERIFY: detected value]245246### Other Signals247- [Additional signals as detected]248249## Experimental Paradigm250- Task: [TO BE COMPLETED]251- Conditions: [TO BE COMPLETED]252- Trial structure: [TO BE COMPLETED]253- Baseline period: [extracted or TO BE COMPLETED]254255## Signal Processing256257### ECG/HRV Processing (if applicable)258- R-peak detection: [detected algorithm or TO BE COMPLETED]259- Artifact detection: [extracted method or TO BE COMPLETED]260- Ectopic beat handling: [TO BE COMPLETED]261- RR interval filtering: [extracted or TO BE COMPLETED]262263### EDA Processing (if applicable)264- Artifact removal: [extracted method or TO BE COMPLETED]265- Decomposition method: [detected or TO BE COMPLETED]266- SCR detection criteria: [extracted or TO BE COMPLETED]267- Baseline correction: [TO BE COMPLETED]268269### EMG Processing (if applicable)270- Filtering: [extracted parameters or TO BE COMPLETED]271- Rectification: [TO BE COMPLETED]272- Smoothing: [extracted or TO BE COMPLETED]273274## Analysis Plan275276### Dependent Variables277- HRV measures: [detected: SDNN/RMSSD/LF/HF or TO BE COMPLETED]278- EDA measures: [detected: SCL/SCR or TO BE COMPLETED]279- EMG measures: [TO BE COMPLETED]280- Analysis windows: [extracted or TO BE COMPLETED]281282### Statistical Analysis283- Primary analyses: [extracted or TO BE COMPLETED]284- Statistical tests: [detected or TO BE COMPLETED]285- Covariates: [TO BE COMPLETED]286- Multiple comparisons: [TO BE COMPLETED]287288## Ethics & Data Management289[From ETHICS_PRIVACY_TEMPLATE.md]290```291292## Behavior Rules2932941. **Always scan script files** before asking about parameters2952. **Detect signal types** from file extensions and keywords2963. **Mark confidence levels** for each detection:297 - ✓ High (direct in script, >2 mentions)298 - ~ Medium (inferred from patterns)299 - ? Low (guess, needs verification)3004. **Never modify** project files3015. **Ask focused questions** - one section at a time3026. **Provide examples** for user input fields3037. **Save as** `PREREGISTRATION_DRAFT.md` in project root304305## Example Interaction306307```308User: Create a preregistration309310Agent:3111. Scans directory3122. Finds: data.acq, process_hrv.py, analyze_eda.m3133. ✓ Detects: Psychophysiology (confidence: high)3144. Identifies signals:315 - ECG/HRV (found "hrv", "r_peaks", "RMSSD")316 - EDA (found "eda", "scr", "ledalab")3175. Scans Python script:318 - Finds: nk.ecg_process(ecg, sampling_rate=1000)319 - Finds: nk.hrv_time(peaks) → SDNN, RMSSD320 - Finds: nk.hrv_frequency(peaks) → LF, HF3216. Scans MATLAB script:322 - Finds: ledalab analyze323 - Finds: SCR detection threshold: 0.05 µS3247. Generates draft with:325 - ✓ Signals: ECG, EDA326 - ✓ Sampling rate: 1000 Hz (ECG)327 - ✓ HRV measures: SDNN, RMSSD, LF, HF328 - ~ EDA processing: Ledalab329 - ? Electrode placement: [TO BE COMPLETED]3308. Asks:331 - "Confirm ECG lead configuration?"332 - "Specify EDA electrode placement?"333 - "Define baseline and task periods?"3349. Saves: PREREGISTRATION_DRAFT.md335```336337## Configuration338339Load from `configs/psychophys-config.json`:340```json341{342 "modality": "psychophys",343 "template": "templates/psychophys/PSYCHOPHYSIOLOGY_PREREGISTRATION_GUIDE.md",344 "signal_types": ["ecg", "hrv", "eda", "emg", "respiration", "pupil"],345 "search_patterns": {346 "software": ["acqknowledge", "biopac", "kubios", "ledalab", "neurokit", "biosppy", "rhrv"],347 "ecg_keywords": ["ecg", "hrv", "r_peak", "rr_interval", "SDNN", "RMSSD", "LF", "HF"],348 "eda_keywords": ["eda", "gsr", "scr", "scl", "skin_conductance"],349 "emg_keywords": ["emg", "muscle", "rectify", "envelope"],350 "resp_keywords": ["resp", "breathing", "respiration_rate"],351 "pupil_keywords": ["pupil", "diameter", "dilation"]352 },353 "required_sections": [354 "Metadata",355 "Study Information",356 "Participants",357 "Psychophysiological Measures",358 "Experimental Paradigm",359 "Signal Processing",360 "Analysis Plan",361 "Ethics"362 ]363}364```365366## Related Resources367368- Template: `templates/psychophys/PSYCHOPHYSIOLOGY_PREREGISTRATION_GUIDE.md`369- Common metadata: `templates/biopsych/common/METADATA_SCHEMA.md`370- Ethics template: `templates/biopsych/common/ETHICS_PRIVACY_TEMPLATE.md`371- References: See README.md "Psychophysiology Resources" section372373## Key References3743751. Boucsein et al. (2012). Publication recommendations for electrodermal measurements. Psychophysiology, 49(8), 1017-1034.3762. Task Force (1996). Heart rate variability: Standards of measurement. European Heart Journal, 17(3), 354-381.3773. Fridlund & Cacioppo (1986). Guidelines for human electromyographic research. Psychophysiology, 23(5), 567-589.3784. Cacioppo et al. (2007). Handbook of Psychophysiology (3rd ed.). Cambridge University Press.