Atharv Kashyap‘s Status Report for 11/21/2026
Following our discussion with Professor Byron, I focused this week on addressing some of the neuroscience-related questions about SynapSys, particularly whether our EEG recording setup is comparable to the Wang et al. (2017) benchmark we used to validate our ESP32 CCA decoder.
Before that, I finished updating our firmware to support the ESP32-WROOM-32 instead of the ESP32-S3. The firmware has not yet been tested on the new hardware, but our PCB arrived on Saturday, so I plan to begin testing tomorrow.
- EEG acquisition and electrode placement
Wang used a 64-electrode laboratory headset with nine channels over the visual cortex for analysis. Our four channels (O1, Oz, O2, POz) are a subset of those nine, but our dry electrodes will definitely introduce more noise. To improve signal quality, we plan to verify electrode placement and contact quality before recording. We are also considering adding PO3 and PO4 if six channels are available. - Visual stimulus setup
Wang used a 60 Hz monitor at a fixed 70 cm viewing distance, with precisely sized flashing targets and controlled trial timing. Our flicker generation follows the same mathematical approach, but our screen layout, contrast, and trial structure differ. We can control the viewing distance. - Brain response latency
I investigated how quickly the visual cortex responds to flashing stimuli. Wang reports a visual response delay of approximately 137 ms, while the rhythmic response takes additional time to develop. This helped clarify that our 2.5-second analysis window is not the brain’s response delay, but the amount of EEG data we collect before classification. - Eye tracking and trial validation
I explored using webcam-based gaze tracking to verify whether participants are actually looking at the intended target. This could help identify incorrectly labeled recordings during calibration.
I propose adding a recording mode with a fixed viewing distance, full-screen stimuli, and a 0.5-second cue, 5-second flicker, and 0.5-second blank period to make our experiments more comparable.
Schedule
I am currently on schedule. The firmware has been updated for the ESP32-WROOM-32, and I have addressed several questions raised during our meeting with Professor Byron. The main remaining dependency has been the custom PCB, which arrived this Saturday. We can now begin hardware testing and integration.
Deliverables for Next Week
The PCB is here and its initial testing should be done tomorrow and early next week so that mid week we can begin and debug through our integration.
Atharv Kashyap‘s Status Report for 11/14/2026
Latency tests are complete. The sliding signal window for the incoming brain data is optimized to be 2.5 seconds. After trial and error, results showed that window length accuracy increased from approximately 85% at 1 second to 96.3% at 2.5 seconds (52/54 trials succeeded), with marginal improvement beginning to plateau at 3 seconds. 2.5 seconds is already half of the total latency we allotted during for our user requirements. So the next thing to test was the latency of the ESP32 processing. I expected this to be a lot more than what it actually was, because I thought the SVD process and complex matrix arithmetic to find orthonormal bases for CCA would increase computation time, but interestingly the full filtering and classification timing for the ESP32 is around 4.5 ms. Adding up the remaining latency for the results to show up on the end phone via BLE leads to a total latency of 3.1 seconds, which is under our 5 second latency requirement. The final part of the latency will be the ADC to ESP output via SPI but that is expected to be very low as well. Latency was the first task to check that I mentioned last week, the second was confidence thresholding.
For confidence thresholding, I set it arbitrarily and then tweaked it based on the Wang dataset. This will have to be recalibrated for our actual brain wave data when we get to that part. But confidence thresholding allows for rejection of brain wave data that does not match our expected output. This is consistent with the testing as frequencies like 10 Hz and 14 Hz fail to get recognized on the phone output end.
Schedule
I am currently on schedule. Hopefully, we get our PCB and work on testing that next. Integration from the software end is rather seamless once the ADS to ESP communication works. Everything on the ESP side is ready, there is a 625 sample ring buffer on it that takes the latest 2.5 seconds of values only.
Deliverables for Next Week
We need to test integration, but on my end I have to update firmware code which is currently hardcoded for ESP32, but our manufactured PCB comes with an ESP32-WROOM which has different firmware and so some of the code needs to be updated to accommodate our final design. Data will also not arrive by COM so all that code will be thrown out, it was just there for testing and live demo.
Atharv Kashyap‘s Status Report for 11/07/2026
I built a BLE connection from the esp32 to a frontend app. Initially, I was going to keep it a simple web app but there were issues with bluetooth transfer over web apps so I ended up pivoting to building a native iPhone app using Swift. I have hobby programmed apps in Xcode so it wasn’t a challenging shift. The code itself is barely 300 lines, most of which is designing to make the UI look better. It basically flashes Yes, with a green light, and the audio track, No, with a red light, and the audio track, or Help, with an alert, and an audio track. I also still need to work on the confidence rejection threshold based on the public dataset, the app did take longer than I expected, especially trying to prep it for the live demo next week. A lot of my time was spent on getting things to work more smoothly and prepping a Yes, No, Help, and random dataset extraction from the Wang dataset and sending them intermittently to the ESP32. Since we don’t have access to the ESP32 beforehand (coming with the board, now separately ordered to save costs), it was difficult to get live testing done and I had to borrow a friend’s component based on their availability which also took time. For the live demo prep, I also prepared the screen to look like somebody actually using it, giving sample data of a certain frequency will show the flicker and highlight what was chosen, which is an easy way to check if the classification was correct when the ESP32 decodes and sends commands over BLE.
Below is the demo prep, fun fact those are the real EEG files shown on screen! This is NOT what the real interface looks like, the real one is just a pink central dot and 3 flickers happening nonstop until the user directs their gaze. This one is just for the live demo to confirm that the ESP32 matches.



Here is the mobile app UI, there’s nothing more on it, very barebones at the moment, and there is also an alert sound with a voice reading of the word:

Schedule
I am currently on schedule. The remaining challenge is integrating the ESP32-S3 with our custom ADS1299 EEG acquisition hardware. The current results use prerecorded EEG sent to the board, so live EEG acquisition and end-to-end system performance still need to be verified.
Deliverables for Next Week
Latency testing should be done next, and I still need to work on the confidence rejection threshold. We really need to get on hardware testing ASAP.
Atharv Kashyap‘s Status Report for 10/31/2026
I lost a really close friend and did not do any work this week. I missed the ethical lecture too. I am behind schedule and will do next week what I expected to have gotten done by this week. Which means I will work on building mobile app frontend and BLE integration. I also still need to work on the confidence rejection threshold using the public dataset.
Atharv Kashyap‘s Status Report for 10/24/2026
This week, I focused on getting our EEG decoder running directly on the ESP32-S3. Previously, we had validated the filtering and CCA algorithms in Python and tested the C++ implementation on a computer. This week, I completed the embedded firmware integration, compiled it using ESP-IDF, and successfully flashed it onto our physical ESP32-S3 board.
The firmware is designed to handle EEG acquisition, filtering, CCA classification, confidence checks, and command output over BLE and USB without relying on a computer for processing. I first verified the firmware in an ESP32-S3 emulator, where all 48 decision points matched Python. During testing, I also resolved issues involving the replay timer, task monitoring, and USB communication.

I then tested the decoder on the actual ESP32-S3 using 54 prerecorded EEG trials from three subjects, same as last week from Wang et al.’s dataset. The board achieved 96.3% classification accuracy (52/54 correct), matching the Python reference implementation on all 54 trials, including the same two incorrect classifications. Across 432 decision points, the maximum difference in CCA scores was approximately 5 × 10⁻⁵, well below our tolerance of 10⁻³. This basically proves that the Python code correctly ported over to C and works the same on the ESP32-S3.

I also measured the decoder’s execution time on the physical chip. Each decision took 4.46 ms on average, with a worst-case time below 5 ms. Since the decoder makes a new decision every 500 ms, the processing time is well within our real-time requirements. Latency build-up really happens on the sliding window during incoming data, and the final BLE transfer. The internal latency is working as expected. These results confirm that the ESP32-S3 can run our signal-processing and classification algorithms efficiently without external computing resources.

Schedule
I am currently on schedule. The main goal for this week was to move beyond computer-based testing and verify that our decoder works on the actual ESP32-S3. This has now been accomplished, including confirming that the embedded implementation matches Python and meets our processing-time requirements.
The remaining challenge is integrating the ESP32-S3 with our custom ADS1299 EEG acquisition hardware. The current results use prerecorded EEG sent to the board, so live EEG acquisition and end-to-end system performance still need to be verified.
Deliverables for Next Week
Since ADS1299 isn’t prepared yet and board hasn’t arrived yet, next week I will work on building mobile app frontend and BLE integration. I also still need to work on the confidence rejection threshold using the public dataset.
Atharv Kashyap‘s Status Report for 10/18/2026
This week, the main focus was on getting my design report sections complete, accurate, and well-formatted on LaTeX. But outside of that, I also focused on validating the SSVEP classification pipeline I wrote last week in Python by using real EEG recordings from the Wang et al. dataset. I limited it as the dataset was way too big to accomodate on my device. I also prepared the decoder for deployment on the ESP32-S3. This included working on dataset integration, signal processing, testing, and the C++ implementation.
Previously, I had developed and tested our Python-based EEG decoder using synthetic signals. This week, I downloaded and integrated the Wang et al. (2017) SSVEP benchmark dataset to test whether the pipeline could classify the actual brain signals. To match what we want to achieve and also limit the size of the dataset to test the classification, I used recordings from three subjects (S1–S3), selecting the O1, Oz, O2, and POz channels to match our planned electrode configuration. The dataset contains recordings at 8, 12, and 15 Hz, which are close to our target frequencies. To achieve this I used Claude to write a benchmark walkthrough that checks each stage of the pipeline including but not limited to loading raw EEG, filtering, CCA classification, and final predictions.

The highlighted shows 2.5-second EEG window used for classification.

The peaks at the stimulus frequencies and their harmonics confirm that the recordings contain detectable SSVEP responses.
Then I also needed to test the digital signal processing and filtering. I tested the filtering pipeline on the real EEG recordings to verify that it removes unwanted noise without significantly altering the SSVEP signals. The pipeline uses a 0.5–45 Hz bandpass filter, with a configurable 60 Hz notch filter. The 12 Hz signal experienced only 0.02 dB attenuation.

The next step was to evaluate the complete classification pipeline using 54 real EEG trials across the three subjects. I chose this number because it is how much disk space I had left and it felt significant enough. With our four-channel configuration, the classifier correctly identified 52 out of 54 trials, thus being 96.3% accurate. I also used Claude to generated confusion matrices and correlation-score distributions to examine where the classifier made mistakes. Both incorrect predictions occurred on 15 Hz trials.


I also ran experiments to understand how different processing parameters affect classification accuracy. Specifically, I compared EEG window lengths, electrode configurations, and the number of harmonics used in CCA. This was the most fun part to tweak and observe what changed and how! Results showed that window length accuracy increased from approximately 85% at 1 second to 96.3% at 2.5 seconds, with marginal improvement at 3 seconds. But I can’t afford to spend too much time on the window due to our latency user requirements. I also found that using two harmonics improved accuracy compared with using only the fundamental frequency.
Once all this was done, the final porting to ESP32 remains. It is not yet complete and will be the focus of next week.
Schedule
The Python signal-processing and classification pipeline is implemented and has now been tested successfully on real EEG data. The next major milestone is running the decoder on the ESP32-S3. The C++ implementation is in the work, but the full firmware has not yet been compiled and tested on the microcontroller. Also, final calibration values discussed in previous report and will depend on recordings from our custom EEG acquisition hardware. In the meantime, I can continue firmware development and testing using prerecorded EEG data.
Deliverables for Next Week
For next week, I want to finalize and complete ESP32 firware integration, compile and flash the firmware, and test the decoder on the firmware with the practice EEG data to see if the data matched what I achieved this week. While this happens, I will also measure latency, processing time, and memory usage.
Atharv Kashyap‘s Status Report for 10/03/2026
This week I moved from planning the signal-processing pipeline to building it. I implemented the first Python version of the SynapSys decoder, including bandpass/notch filtering, CCA, three-command classification, and rejection logic. I kept the main parameters configurable so we can easily change things like sample rate, window length, harmonics, and thresholds once we start testing with our own hardware. The next step for next week will be converting this to C/C++ using tools like Claude so that it runs on the ESP32 as well as testing on real datasets to make sure all parts are working (this was only tested this week with synthetic data).
For now, the classifier compares the EEG against 8.57, 12, and 15 Hz references and gives each one a CCA score. The highest score is the predicted command. I also added confidence and winner-vs-runner-up margin checks so the system can eventually reject unclear inputs instead of always forcing a YES, NO, or HELP result. This is exactly what we documented for our design report and what Theodora presented last week. I have not chosen the final thresholds yet because these need to be determined from our own calibration recordings.
Here is a screenshot of the repository:

I (using Claude) also wrote automated tests for all the different coding stages. Right now, 193 tests pass with no failures. These cover the reference signals, filtering, CCA calculations, classification/rejection logic, synthetic EEG generation, metrics, and data loading.

Before moving to real EEG, I tested everything using synthetic data where I already knew the correct answer. I generated fake EEG containing 8.57, 12, or 15 Hz signals, then added noise, drift, 60 Hz interference, and differences between channels. For example, a synthetic 12 Hz trial should produce the largest CCA correlation for the 12 Hz reference rather than 8.57 or 15 Hz. There was no noise in these data points so obviously I expected a big spike and strong correlation scores. This was just to test if the processing worked. I repeated this for all three commands.
Example CCA output:
I cannot upload thet tests.csv files due to security reasons on WordPress blocking me.
For clean signals, the correct CCA reference clearly gives the highest score for all three commands as expected.

I then added much more noise and also tested pure noise, off-target signals, and ambiguous mixtures. The correct reference still tended to score highest for valid trials, but the scores became closer together as the inputs got worse. This was useful because it showed exactly why we need rejection logic instead of just picking the largest score every time.

Python is being used as our reference implementation and analysis environment, while the final filtering, CCA, and rejection logic will run in C/C++ on the ESP32-S3.
Schedule
I am on track right now. Next week is going to be busy because we also need to finish the design report and get the PCB ready to send out.
Deliverables for Next Week
Finalize and send out the PCB design (will help with layout and BOM finalization), test CCA against Wang et al. SSVEP dataset and once it works, port the Python to C/C++ for the ESP32 and finish my parts for the design report.
Atharv Kashyap‘s Status Report for 09/26/2026
I was sick this week and missed Wednesday’s class, as well as some targets our team had set between ourselves for the design proposal. This caused us to be a little rushed at the end of the week before slides and this report were due. I did not communicate this well enough to my team, so one thing I need to improve is communicating delays earlier instead of waiting until a deadline has passed.
My planned work also changed after our discussion with Prof. Byron Yu. He brought up several valid concerns regarding what were controlled and confounding variables in the experimentations we planned to build our model around. We realized that public SSVEP datasets were collected under specific experimental conditions that do not necessarily match our electrodes, hardware, display, or environment. Instead of relying on those results to validate our system, I developed an initial plan for collecting our own data as written below:
- Keep electrode placement, reference, viewing distance, screen brightness, lighting, sampling rate, and trial duration consistent. Here are some preliminary numbers. For our initial testing, we will use O1, Oz, O2, and POz over the visual cortex with the same reference and bias placement (earlobes) for every session. The display will be fixed at 60 Hz, approximately 60 cm from the user, with constant brightness and room lighting. EEG will be sampled at 250 Samples/sec and processed over 2–3 second windows. Each command will initially be tested over 30 randomized trials, split into blocks of 10 with short breaks to reduce fatigue. These values will remain fixed during testing so changes in classification performance can be attributed primarily to the EEG response rather than changes in the experimental setup.
- Use our three stimuli at 8.57, 12, and 15 Hz with the display fixed at 60 Hz. These numbers have changed since before. The reason was that studies showed SSVEP responses are strongest at the stimulus frequency and can also appear at its harmonics, so we wanted frequencies that were sufficiently separated without one being a simple harmonic of another. We also wanted frequencies that our 60 Hz display could reproduce exactly using integer frame periods. Our current set uses 7, 5, and 4 frames per cycle, giving 8.57, 12, and 15 Hz. This keeps all three targets in a commonly used SSVEP frequency range while avoiding direct harmonic overlap between our three fundamental frequencies.
- First test each frequency individually and verify that it appears in the measured EEG.
- Then collect randomized YES/NO/HELP trials in blocks with rest periods.
Finally, I completed a working stimulus renderer for YES/NO/HELP. It generates the three frame-locked frequencies, checks the display refresh rate (so it was not hardcoded to my Macbook, for example), logs the frame timing, and gives us an interface for both the presentation and later data collection.
Below is a screenshot of the interface:

AI, specifically Claude Opus, was used in its creation, as well as setting up the initial repo with README, pyproject, various pytests, and general documentation.
Schedule
I am behind schedule, in this course and my others, due to being sick and because the experimental approach changed this week. I completed my other course’s labs early so I can dedicate more time to the project on Tuesday and Thursday’s dedicated lab time next week to catch up.
Deliverables for Next Week
I plan to implement and test the initial CCA classifier, help write the design report, and define quantitative requirements for classification/rejection and PCB testing. I will also finish documenting and testing the stimulus renderer so it is ready for our eventual EEG experiments. As a team, we plan to finish the schematic/design review, continue PCB layout and component choices, and move toward the first PCB fabrication order.
Atharv Kashyap‘s Status Report for 09/19/2026
This week I focused mainly on the signal-processing side of SynapSys and on researching existing SSVEP systems as well as how they are decoded so that we can make informed decisions before implementation or further planning. I spent the time doing literature review, researching datasets, doing component research, and BOM development.
I read several papers on SSVEP-based BCIs. Below are the ones that stood out and my reflections about them:
Neural Decoding of EEG Signals with Machine Learning: A Systematic Review
This paper clarified the broader EEG pipeline where it showed how to separate preprocessing, feature extraction, and classification. It taught that alpha brain waves occupy 8-13 Hz which we will focus on for SSVEP. SSVEP is steady-state visually evoked potential where lights flickering at different rates as visual stimuli cause our brain to generate an electrical signal.
Low-cost Circuit Design of EEG Signal Acquisition for the Brain-computer Interface System
This was the perfect EEG paper which showed the breakdown of the circuitry we will build into the following sections: RFI filter, protection circuit, main amplifier, band-pass filter (active low-pass and high-pass filters), notch filter, and isolation circuit. I believe this paper will be key for the designing of our PCB and we might follow it almost exactly.
I also investigated several open SSVEP datasets so that we can build and validate the decoding software in parallel while our PCB is still being designed. This is important to the schedule because signal-processing development does not need to wait for fabrication.
Here is the first one: An open dataset for human SSVEPs in the frequency range of 1-60 Hz and here this is the download link
It contains recordings from 30 subjects, 64 EEG channels, stimulus frequencies from 1–60 Hz in 1-Hz increments, two modulation depths, and a 240-Hz stimulus display. It also provides both continuous BIDS recordings and stimulus-locked MATLAB epochs. It is a little overkill and overaccurate for our purposes since we will only have 8 channels at most if everything works well with only three categories of Hertz (eached mapped to a unique control) on a lower resolution display.
I therefore also investigated Zhu et al.’s paper which is much closer to the constraints of SynapSys because it also used 8-channel EEG with recordings using both wet and dry electrodes. This is also very important because our current design uses wet Ag/AgCl electrodes.
Schedule
My portion of the project is on schedule. A lot of planning work was done and we can move to the PCB design stage now. The public datasets allow me to develop and test the decoding pipeline while schematic/layout work proceeds in parallel.
Deliverables for Next Week
Next week I plan to move from research into a working offline implementation. My main deliverables are to download a manageable subset of SSVEP data, load and visualize the raw/epoched EEG in Python, implement the initial CCA decoder, and produce baseline classification accuracy on public data. Alongside this, everything needs to be ordered and PCB design must be in the works.
