To measure cortical excitability and observe network responses, Transcranial Magnetic Stimulation (TMS) technology brings together several key elements: highly precise stimulation, environmental noise reduction, stable coil positioning, and continuous physiological monitoring. What truly sets TMS apart is its ability to draw causal conclusions. Researchers can use it to determine how specific brain regions contribute to processes like cognition, emotion, and motor control. This is a significant step beyond passive imaging, which can only show correlation. The precision of TMS has opened the door for major advances, like the causal mapping of functional circuits through targeted agitation. There have been clear demonstrations that repetitive TMS (rTMS) can induce bidirectional neuroplasticity, a finding with great potential for rehabilitation after a stroke or traumatic brain injury (Kricheldorff et al., 2022). In the clinic, this has led to the development and approval of rTMS protocols for depression and some obsessive-compulsive disorders, all built on refining the stimulation frequency, coil orientation, and target (Saini et al., 2018). Other paradigms, like single and paired-pulse TMS, are now mainstays for characterizing the sensorimotor system, helping researchers probe excitability and inhibition to monitor conditions like ALS, MS, and Parkinson's (Lazzaro et al., 2024).
Assignment 6: Option D - Portia Wainwright
Introduction
Challenges of Conventional TMS Systems
While this technology is incredible and useful, issues arise in the fact that conventional TMS systems are confined in a lab. They require dedicated facilities, highly trained staff, and a schedule of in-person visits. These factors hold back applications where TMS would be most effective if they were delivered in frequent, context-specific situations, or over a long duration. A portable, clinic-friendly TMS device would erase these barriers and unlock a wider range of uses. Some possibilities that a portable device would enable are daily/at-home neuroplasticity training, rapid depression/OCD intervention, greater access for rural/mobility limited populations, enable research in different environments to understand interactions with natural behaviours, and longitudinal monitoring. By removing the logistical and environmental chains of lab-bound systems, portability would transform TMS. It would shift the treatment from being an episodic, clinic-only intervention to a continuous, adaptive, and widely accessible treatment. This could support high-frequency treatment schedules, enable context-triggered interventions, and finally integrate stimulation into the flow of everyday activities and recovery.
Technical Barriers to Portable TMS
Despite how great the impact of a portable device would be, there are significant barriers hindering the development of portable TMS devices. The primary reasons being its inherently large, heavy, and power-intensive core components. Clinically effective TMS necessitates the delivery of extremely high peak currents (often several kiloamperes (kA) within approximately 100 microseconds (μs)) to generate therapeutic magnetic fields of 1.5-2 Tesla (T) (Barker et al., 1985; Rossi et al., 2009). Generating the rapid, high-energy pulses required for TMS demands bulky power-delivery hardware: large energy-storage capacitors (often rated in the kilovolt range and tens to hundreds of microfarads), high-current semiconductor switches such as IGBTs (e.g., 1.2 kV, >1 kA modules in cTMS systems), and robust thermal management (heat sinks or cooling) to handle the power dissipation (Peterchev et al., 2014; Zeng et al., 2022). Even in advanced modular TMS designs, these subsystems remain large and heavy, in part due to peak-current demands exceeding 10 kA (Zeng et al., 2022). Modern batteries, while capable of storing sufficient total energy, are generally unable to deliver the ultra-high instantaneous currents needed for effective TMS, necessitating additional energy buffers such as large capacitor banks or supercapacitors. Computational coil-design studies demonstrate that maintaining clinically relevant E-field amplitude and focality requires very high peak energy, making energy buffering unavoidable (Gomez et al., 2018). Miniaturizing the coil poses further challenges: the well-known depth–focality tradeoff means that smaller coils lose either penetration depth or spatial specificity compared to conventional figure-8 coils (Deng et al., 2013; Deng et al., 2014). In addition, repetitive stimulation generates significant resistive (Joule) heating in the coil, which has been empirically shown in figure-8 coils, driving the need for active thermal-management systems (Belyk et al., 2019; Weyh et al., 2005). From a procedural standpoint, precise coil placement (typically with ±1 cm accuracy) is critical, and errors in positioning significantly affect efficacy and safety (de Goede et al., 2018). Motor-threshold calibration further requires skilled operators and time, as threshold is sensitive to coil orientation, anatomy, and distance from cortex (Herbsman et al., 2009). Finally, the cost and regulatory burden of TMS systems remain major barriers: state-of-the-art stimulators cost upwards of USD 50,000, driven using specialized high-voltage capacitors, precision-wound coils, and rigorous safety certification (Ehsan Vaghefi et al., 2015).
Innovations in Portable TMS
Recent innovations have begun to address these issues, for example, a recent peer-reviewed study describes a 3 kg battery-powered wearable rTMS device (1.7 kg for the coil, 1.3 kg for the stimulator) that achieves stimulation intensities comparable to commercial machines and uses a 1.6 kV capacitor for high-current delivery (Qi et al., 2025). However, the production of a fully portable, widely useable, and cost-effective, home-use TMS device still requires significant breakthroughs in energy delivery, thermal control, and the automation of coil targeting and safety protocols. The probability of a portable, energy-efficient neuromodulation system is based on abandoning the idea of miniaturizing a single, high-power clinical coil. Instead, the core is comprised of three innovative, interacting components: (1) a cap-mounted array of small coils; (2) a belt-mounted, supercapacitor-buffered stimulator; and (3) closed-loop, EEG-guided pulse optimization. Multi-coil arrays enable constructive interference of fields and flexible steering, avoiding the significant mass and inductance required by a large, conventional figure-8 coil (Wang et al., 2023). The integration of ferrite flux guides increases local magnetic flux density, which enhances the superficial induced electric fields while simultaneously reducing the peak current requirements (Mohannad Tashli et al., 2023; RamRakhyani & Lazzi, 2014). This approach is supported by prior work demonstrating that ferrite-enhanced designs can significantly increase the surface E-field without a proportional increase in current. High-efficiency SiC/IGBT switching electronics further mitigate energy losses, while supercapacitor buffering enables the delivery of rapid, high-current pulses without necessitating oversized batteries (Raju et al., 2024; Zeng et al., 2022). Furthermore, a closed-loop control system, informed by EEG responsiveness and FEM-based pulse-shaping algorithms, allows the system to achieve functionally equivalent cortical activation using lower total energy (Christoph Zrenner & Ziemann, 2023; Tervo et al., 2022). This principle aligns with studies demonstrating that adaptive, state-dependent stimulation increases efficacy at lower intensities (Karabanov et al., 2016; Zrenner et al., 2018). This design paradigm shifts the engineering challenge from maximizing raw magnetic output to optimizing intelligent temporal and spatial field control, making a wearable system of approximately 3 kg feasible. A cap-based format also inherently stabilizes coil position, improves EEG integration, and allows for efficient thermal spreading, a critical factor, as small coils heat rapidly at high duty cycles. Performance targets and practical constraints for such a system must be defined conservatively to balance portability with clinical relevance. Utilizing a set of 6–12 mini-coils with ferrite flux guides, the system aims to reproduce ≥ 70% of the surface E-field amplitude of a clinical coil at a depth of 1-2 cm. This design accepts the trade-off of reduced penetration to deeper cortical layers, which is a known limitation of small-coil geometries documented in modeling studies (Deng et al., 2014).
Thermal Management and Safety
Thermal constraints necessarily limit continuous stimulation to burst-based rTMS patterns; however, these patterns are compatible with common therapeutic protocols, such as intermittent theta-burst stimulation (iTBS). A 36 Wh battery paired with a supercapacitor buffer is projected to support a full rTMS session under realistic assumptions, aligning with published estimates for low-energy stimulators (Roth et al., 2022). Mechanical and safety targets - including a cap temperature <45 °C, stable coil positioning, automated impedance and motion checks, and an emergency cutoff - are designed to align with IEC 60601 norms and established TMS safety guidelines (Rossi et al., 2021). While this system cannot replace full-scale clinical TMS for deep targets or high-duty-cycle paradigms, it achieves sufficient capability for superficial stimulation, research applications, home-based adjunctive protocols, and early-phase clinical pilot studies. In effect, the design trades maximum depth and duty cycle for portability, automation, and user accessibility, reflecting a plausible pathway toward the first genuinely wearable, closed-loop magnetic neuromodulation platform. Miniaturizing Transcranial Magnetic Stimulation (TMS) is fundamentally limited by the physics of generating short, high-amplitude magnetic pulses. These pulses normally require kiloampere-scale currents, large capacitor banks, and thermally robust figure-8 coils (Barker et al., 1985; Deng et al., 2013). To overcome these constraints, the proposed design replaces the traditional single-coil architecture with an energy-buffered multi-coil array, distributing stimulation across 6–12 small coils embedded in a wearable cap. High-permeability ferrites and permalloy backing plates are used to concentrate magnetic flux at the scalp. This approach allows for the generation of clinical-like superficial E-fields at a reduced current, a strategy supported by research on ferrite-enhanced coils (Zhang et al., 2022). A belt-mounted module housing supercapacitors delivers the required instantaneous current without necessitating a heavy battery. This is aided by compact SiC MOSFET switching electronics that minimize energy losses and waste heat. Field control is achieved through phased-array timing, enabling constructive interference patterns that approximate the focality of a full clinical coil. Heat management, another major bottleneck, is addressed through a composite strategy: a graphite thermal spreader, litz-wire coils, micro-fan–assisted airflow, and temperature-aware duty cycling. These techniques parallel thermal solutions employed in high-power wearables and smartphone cooling (Cho et al., 2021). Such strategies are critical for maintaining coil temperatures below the ~45 °C safety threshold described in TMS safety guidelines (Rossi et al., 2021). Furthermore, advances in simulation software (e.g., SimNIBS, COMSOL) reduce reliance on empirical hardware prototyping by enabling accurate modeling of array interference patterns and the resultant scalp–brain E-field distributions. As a portable stimulator cannot match the absolute magnetic field amplitudes of full-size TMS machines, the system relies on closed-loop computational compensation to achieve functional equivalence rather than raw field equivalence. Low-noise, dry-electrode EEG provides real-time neural feedback, allowing the system to automatically titrate the stimulation amplitude to the minimum level needed for reliable cortical activation. This principle is supported by studies demonstrating that EEG-informed TMS increases efficiency and reduces the required intensity (Karabanov et al., 2016; Zrenner et al., 2018). Adaptive waveform shaping further improves activation probability by optimizing pulse rise dynamics within the system's energy constraints (Peterchev et al., 2011). Together, these innovations address the three core engineering obstacles: peak-current delivery, coil overheating, and reduced field strength. The design shifts the paradigm from brute-force hardware to a system based on intelligent field shaping, advanced thermal engineering, and neural feedback.
Conclusion
A portable, wearable Transcranial Magnetic Stimulation (TMS) platform possesses the potential to transform clinical care and neuroscience by enabling stimulation outside of laboratory settings and within real-world contexts. The feasibility of such a platform, however, is contingent upon several scientifically documented advances and known physical limitations. Closed-loop systems, which utilize real-time EEG to time or "gate" pulses to moments of high cortical responsiveness, can substantially increase stimulation efficacy. This enhanced efficiency allows for lower-power hardware to achieve meaningful neurophysiological effects. The physics of coil geometry imposes an unavoidable trade-off between penetration depth and stimulation focality. Small, superficial coils can reproduce a large fraction of the surface E-field but cannot reliably reach deep cortical targets. Consequently, portable systems should be realistically directed toward superficial cortical modulation and complementary use cases (e.g., maintenance therapy, augmentation, or research) rather than serving as direct replacements for high-power clinical devices. Recent engineering demonstrations have established the basic feasibility of lightweight repetitive TMS (rTMS). A 3-kg battery-powered wearable rTMS prototype, for example, has been reported to attain stimulation intensities and repetition rates comparable to commercial devices while significantly reducing power consumption (Qi et al., 2025). This illustrates that energy-buffered, miniaturized hardware, combined with meticulous coil design, can make ambulatory TMS a realistic prospect. Despite a portable TMS system being plausible, substantial challenges remain. Particularly, thermal limits, regulatory validation, and ensuring safety and robustness in uncontrolled settings. However, these challenges are considered addressable with current technologies. Potential solutions include graphite thermal spreaders, duty-cycle controls, energy buffering with supercapacitors, and phased-array coil steering. This suggests a realistic development pathway: from initial proof-of-concept (1–2 years) to research-ready devices (~5 years). With sustained clinical trials and regulatory certification, targeted home-use applications may become feasible over a longer horizon.
📚 References
- Barker, A. T., Jalinous, R., & Freeston, I. L. (1985). Non-invasive magnetic stimulation of human motor cortex. The Lancet, 325(8437), 1106–1107. https://doi.org/10.1016/s0140-6736(85)92413-4
- Belyk, M., Murphy, B. K., & Beal, D. S. (2019). Accessory to dissipate heat from transcranial magnetic stimulation coils. Journal of Neuroscience Methods, 314, 28–30. https://doi.org/10.1016/j.jneumeth.2019.01.008
- Christoph Zrenner, & Ziemann, U. (2023). Closed-Loop Brain Stimulation. Biological Psychiatry (1969). https://doi.org/10.1016/j.biopsych.2023.09.014
- de Goede, A. A., ter Braack, E. M., & van Putten, M. J. A. M. (2018). Accurate Coil Positioning is Important for Single and Paired Pulse TMS on the Subject Level. Brain Topography, 31(6), 917–930. https://doi.org/10.1007/s10548-018-0655-6
- Deng, Z.-D., Lisanby, S. H., & Peterchev, A. V. (2013). Electric field depth–focality tradeoff in transcranial magnetic stimulation: Simulation comparison of 50 coil designs. Brain Stimulation, 6(1), 1–13. https://doi.org/10.1016/j.brs.2012.02.005
- Deng, Z.-D., Lisanby, S. H., & Peterchev, A. V. (2014). Coil Design Considerations for Deep Transcranial Magnetic Stimulation. Clinical Neurophysiology: Official Journal of the International Federation of Clinical Neurophysiology, 125(6), 1202–1212. https://doi.org/10.1016/j.clinph.2013.11.038
- Ehsan Vaghefi, Cai, P., Fang, F., Byblow, W. D., Stinear, C. M., & Thompson, B. (2015). MRI guided brain stimulation without the use of a neuronavigation system. BioMed Research International, 2015, 1–8. https://doi.org/10.1155/2015/647510
- Gomez, L. J., Goetz, S. M., & Peterchev, A. V. (2018). Design of transcranial magnetic stimulation coils with optimal trade-off between depth, focality, and energy. Journal of Neural Engineering, 15(4), 046033. https://doi.org/10.1088/1741-2552/aac967
- Herbsman, T., Forster, L., Molnar, C., Dougherty, R., Christie, D., Koola, J., Ramsey, D., Morgan, P. S., Bohning, D. E., George, M. S., & Nahas, Z. (2009). Motor threshold in transcranial magnetic stimulation: The impact of white matter fiber orientation and skull-to-cortex distance. Human Brain Mapping, 30(7), 2044–2055. https://doi.org/10.1002/hbm.20649
- Karabanov, A., Thielscher, A., & Siebner, H. R. (2016). Transcranial brain stimulation: closing the loop between brain and stimulation. Current Opinion in Neurology, 29(4), 397–404. https://doi.org/10.1097/wco.0000000000000342
- Kricheldorff, J., Göke, K., Kiebs, M., Kasten, F. H., Herrmann, C. S., Witt, K., & Hurlemann, R. (2022). Evidence of Neuroplastic Changes after Transcranial Magnetic, Electric, and Deep Brain Stimulation. Brain Sciences, 12(7), 929. https://doi.org/10.3390/brainsci12070929
- Lazzaro, V. D., Ranieri, F., Doretti, A., Boscarino, M., Luca Maderna, Colombo, E., Davide Soranna, Zambon, A., Ticozzi, N., Musumeci, G., Capone, F., & Silani, V. (2024). Transcranial static magnetic stimulation for amyotrophic lateral sclerosis: a bicentric, randomised, double-blind placebo-controlled phase 2 trial. The Lancet Regional Health - Europe, 45, 101019–101019. https://doi.org/10.1016/j.lanepe.2024.101019
- Mohannad Tashli, Weistroffer, G., Aryan Mhaskar, Deepak Kumbhare, Baron, M. S., & Hadimani, R. L. (2023). Investigation of soft magnetic material cores in transcranial magnetic stimulation coils and the effect of changing core shapes on the induced electric field in small animals. AIP Advances, 13(2). https://doi.org/10.1063/9.0000550
- Peterchev, A. V., DʼOstilio, K., Rothwell, J. C., & Murphy, D. L. (2014). Controllable pulse parameter transcranial magnetic stimulator with enhanced circuit topology and pulse shaping. Journal of Neural Engineering, 11(5), 056023–056023. https://doi.org/10.1088/1741-2560/11/5/056023
- Qi, Z., Liu, H., Jin, F., Wang, Y., Lu, X., Liu, L., Yang, Z., Fan, L., Song, M., Zuo, N., & Jiang, T. (2025). A wearable repetitive transcranial magnetic stimulation device. Nature Communications, 16(1). https://doi.org/10.1038/s41467-025-58095-9
- Raju, S., Nihal Kularatna, Wilson, M. T., & Ross, A. S. (2024). Supercapacitor-based pulse generator with waveform adjustment capability for small animal transcranial magnetic stimulation. Biomedical Physics & Engineering Express, 11(1), 015045–015045. https://doi.org/10.1088/2057-1976/ad9f6b
- RamRakhyani, A. K., & Lazzi, G. (2014). Ferrite core non‐linearity in coils for magnetic neurostimulation. Healthcare Technology Letters, 1(4), 87–91. https://doi.org/10.1049/htl.2014.0087
- Rossi, S., Hallett, M., Rossini, P. M., & Pascual-Leone, A. (2009). Safety, ethical considerations, and application guidelines for the use of transcranial magnetic stimulation in clinical practice and research. Clinical Neurophysiology, 120(12), 2008–2039. https://doi.org/10.1016/j.clinph.2009.08.016
- Saini, R., Chail, A., Bhat, P., Srivastava, K., & Chauhan, V. (2018). Transcranial magnetic stimulation: A review of its evolution and current applications. Industrial Psychiatry Journal, 27(2), 172. https://doi.org/10.4103/ipj.ipj_88_18
- Tervo, A. E., Nieminen, J. O., Lioumis, P., Metsomaa, J., Souza, V. H., Sinisalo, H., Stenroos, M., Sarvas, J., & Ilmoniemi, R. J. (2022). Closed-loop optimization of transcranial magnetic stimulation with electroencephalography feedback. Brain Stimulation. https://doi.org/10.1016/j.brs.2022.01.016
- Wang, T., Yan, L., Yang, X., Geng, D., Xu, G., & Wang, A. (2023). Optimal Design of Array Coils for Multi-Target Adjustable Electromagnetic Brain Stimulation System. Bioengineering, 10(5), 568–568. https://doi.org/10.3390/bioengineering10050568
- Weyh, T., Wendicke, K., Mentschel, C., Zantow, H., & Siebner, H. R. (2005). Marked differences in the thermal characteristics of figure-of-eight shaped coils used for repetitive transcranial magnetic stimulation. Clinical Neurophysiology, 116(6), 1477–1486. https://doi.org/10.1016/j.clinph.2005.02.002
- Zeng, Z., Koponen, L. M., Hamdan, R., Li, Z., & Goetz, S. M. (2022). Modular multilevel TMS device with wide output range and ultrabrief pulse capability for sound reduction. Journal of Neural Engineering, 19(2), 026008–026008. https://doi.org/10.1088/1741-2552/ac572c
- Zrenner, C., Desideri, D., Belardinelli, P., & Ziemann, U. (2018). Real-time EEG-defined excitability states determine efficacy of TMS-induced plasticity in human motor cortex. Brain Stimulation, 11(2), 374–389. https://doi.org/10.1016/j.brs.2017.11.016
Other Course Work
📊 Assignment 1: EEG Analysis
📓 Copy of assignment1_eeg_filtering - Portia Wainwright.ipynb
Jupyter Notebook💡 Opens in Google Colab for interactive execution. Requires Google account.
🎨 Assignment 2: BrainImation
📄 Wainwright-Psych 403 assignment 2.pdf
View Original PDF2025 - 10 - 20 P SYCH 403 Assignment 2 Portia Wainwright
T his assignment is a neurofeedback tool , as specifi ed under option 2 . It aims to aid
meditation through an artistic, brain - controlled display responding to alpha wave activity
in real time. It looks to provide a meditative space where the user’s mental state is
visually shown as blooming flowers. When the brain shows higher alpha activity , new
flowers appear and expand, fading as the mind quiets. A flower’s color and pulse are
linked to the strength of alpha activity, turning brainwaves into a garden of calmness.
Flowers were picked as the visual motif because they stand for growth, balance, and
peace. Flowers work as good symbols for the mental states linked to alpha waves. Each
flower’s bloom and pulse copy a breathing rhythm, which backs up mindfulness through
visual feedback. The colors go from cool blues for low alpha to bright pinks for high
alpha, showing a change from stress to relaxation. The rhythmic pulse of the flowers
makes a soothing feedback loop between brain state and motion. The fading of the
flowers as they expand helps with meditative breathing and relaxation.
The project was coded in p5.js using the BrainImation live editor, using the
eegData.alpha stream as the main signal. Some technical implementati ons were :
• EEG Input: A new flower appears only when alpha activity goes past a level, so
only calm states are tracked.
• Flower Geometry: Uses polar coordinates with trigonometry to make petal
shapes via sin(8 * angle) .
• Pulse Animation: Each flower expands and contracts using a sinewave oscillation
with a random start.
• Growth and Fading: Flower size grows with alpha strength while transparency
fades.
• Color and Emotion Mapping: Brain relaxation is mapped to hues from blue to violet
using map(alpha, 0, 1, 200, 330).
• EEG Variability: Smoothed signal by spacing new blooms every 15 frames and fading
older ones gradually.
Several problems arose during this work. The main one was coding with almost no
coding experience . As a result , AI was needed to create codes, specific ally the code for
the flower shape. It took work using multiple AI platforms to create a working code for
the flower visuals . E ven with the he lp of AI, c odes from various ones had to be put
together and modif ied to create the final code. Making the pulse and the color change to
correspond with high alpha was another problem. Along with the help of AI, there was
trial and error. The trial and error w as helpful because I saw patterns and could change
the code myself. After making a stable code, I work ed with it to find out how things
changed and what I liked when it in regard to aesthetics . Th rou gh all the challenges
face d , I was able to learn lots about coding and created the meditative neurofeedback
tool for this assignment .
2025 - 10 - 20 P SYCH 403 Assignment 2 Portia Wainwright
In general, this project improved my grasp of neurofeedback design, where visuals are
tied to body signals. I learned how to use real - time EEG data in creative coding, how to
design feedback loops, and how math functions like sine and cosine can make nature -
like movement. I also found that brain - computer interfaces can be scientific and artistic
tools for mindfulness.
🎥 Wainwright-Neurofeedbacktooldemo.mp4
💡 Videos require Google Drive access. Open in new tab if it doesn't load.
🎮 Wainwright-alpha-example (4).js
💡 Code is embedded in this portfolio - opens instantly in the live BrainImation editor (no internet required!)
🎯 Midterm Project
📄 Psyhc 403 midterm 1 - Portia Wainwright.pdf
View Original PDF2025 - 10 - 27 P SYCH 4 03: Midterm 1 Portia Wainwright
Part 1: BrainImation Neurofeedback Trainer
F or part 1 of the midterm, I cre ated a new neurofeedback tool that translates EEG signals
into both au ditory and visual feedback. I t implemen ts a novel BCI ne urofeedback concept
of brain s tate training. T he program encourages users to increase t h e ratio between their
al pha waves and theta waves to reach a calm meditative state . T h is new approach uses
both auditory and visual signals to aid e users in r eaching the target state.
T he logic of this program runs in a continuous loop . The EEG data is collected , then
smoothed using exponential smoothing, it then use s the da ta to calculate both an
alpha /theta ratio and a meditation score (which is alpha minus beta activity). T he program
then gives three output s, the fir st being a sound component where the frequency and
timing of notes correspond to the user ’ s meditation score. T he second , is a mandala flower
visual ization where the size, colo ur, and number of petals refl ect how clo se t he user ’ s
brainwaves are to the target alpha/theta ratio. T he third o ut put is a progress bar which
tracks mind calmness through the difference of alpha /beta activity. A s a final to uch to help
the users stay consistent, there is a re ward chime which is triggered when the user
maintains the target ratio for a sufficient amount of time.
T his approach is different from basic EEG parameter control because it integrates multi -
modal feedback , adaptive timing, and reward - based reinfor cement to create a closed - loop
system where the user can learn to regulate their brain activity over time. The
ne urofeedback is continuous, smooth, and sensitive to relative changes and does n ’ t just
rely on the raw signal thr esh olds.
By creating this new tool, I learned how to implement different cod ing techniques to get my
system where I wanted it. T his program also taught me the importance of signal smoothing,
meaningful visuals, and timing in neurofeedback design . I also learned how to add multiple
differen t fe edback features int o the code to create a neurofeedback program.
V ideo demonstration link :
laptop wa s overwhelmed with having both the program and screen - recording running at the
same time. When the scr een recording was off the audio worked perfectly . )
2025 - 10 - 27 P SYCH 4 03: Midterm 1 Portia Wainwright
Part 2: ERP Experiment
For the second part of this midterm, I designed a simulated Event - Related P otential (ERP )
study . I t measure s the P300 component , a positive deflection in EEG activity that typically
occurs around the 300 ms mark , following a n infrequent stimulus. T he P300 i s often used
in oddball paradigms, which is what I used for this study.
The experiment is an oddball paradigm, and it works by presenting two visual categories : a
frequent stimulus (blue ci rcle, 80% probability) and a rare stimulus (an orange square, 20%
probabilit y). E ach stimulus fl ashes on the screen at regular intervals and their onsets are
time - locked for ERP averaging. T he stimulus display is shown below the ERP plot , with
lab els clearly distinguishing which type is active . T h e ERP plot is clear in showing which line
belongs to whic h stimulus by matching the colour of the stimulus labels.
T he averaging system works by generating a new EEG epoch each time a stimulus is
presented . The epochs are cat e g orized based on stimulus type a nd are aver aged
separately . T he script con tinuall y updates the average ERP t race for each categ ory in real
time, presentin g b oth on the same pl ot. T he x - axis represents time ( - 200 to +800 ms relative
to stimulus onset) and vertical /horizontal grid lines mark 0 ms and every 100 ms. T he tr ial
counters in the upper - right corner show how many epochs have been contributed to each
average.
If this were tested with real EEG, I would expect the r are (target) stimuli to produce a larger
P300 amplitude around 300 – 400 ms after the stimulus is presented, compared to the
f requent (standard) stimuli. This is consistent with literature findings, in that the P300 is an
expression of cognitive processes of attention and stimulus evaluation. The repetitive
condition would show a smaller or no P300, which is a sign of habituation and decreased
attentional processing.
Video demonstration link:
📝 wainwright_midterm_part1 - Portia Wainwright.txt
💡 Code is embedded in this portfolio - opens instantly in the live BrainImation editor (no internet required!)
📝 wainwright_midterm_part2 (3) - Portia Wainwright.txt
💡 Code is embedded in this portfolio - opens instantly in the live BrainImation editor (no internet required!)