While no universal standard exists, most stim files share a common row‑based, column‑delimited structure (e.g., tab‑separated or comma‑separated values). A representative example (visual search task):
| trial | condition | target_orientation | distractor_orientation | set_size | onset_ms | duration_ms | img_file | |-------|-----------|--------------------|------------------------|----------|----------|-------------|-------------------| | 1 | target | 45 | 135 | 8 | 0 | 200 | gratings/45deg.bmp| | 2 | distractor | - | 90 | 8 | 2500 | 200 | gratings/90deg.bmp| | 3 | catch | - | - | 0 | 5000 | 200 | blank.bmp | stim files
Common columns include:
In closed-loop BCI (e.g., stimulating the somatosensory cortex to provide "touch feedback" from a prosthetic hand), the STIM file is not static. The BCI algorithm generates a dynamic STIM file in real-time, updating amplitude based on grip force. While no universal standard exists, most stim files
Machine learning models are now being trained on thousands of patient outcomes. In the near future, a clinician will input a patient’s pain map, and an AI engine will generate 20 potential stim files—ranked by predicted efficacy—in under one second. The doctor simply selects the top performer. Machine learning models are now being trained on
Most commercial neurostimulators come with proprietary software (e.g., Intan StimController, Blackrock Central). However, for advanced users, scripting is the way forward.