# A Novel Battery-Supplied AFE EEG Circuit Capable of Muscle Movement Artifact Suppression
## 4 Simulation and Results: Comprehensive Analysis
### Simulation of Novel EEG-B3V3S/C1 Circuit Design
#### 4.1.1 Simulation in a 50 Hz Electrical Grid Environment
Waveforms: Raw EEG channel 1 signal (V\({}_{\text{chl}}\)—blue), Raw EEG reference channel signal (V\({}_{\text{cher}}\)—green), Ground truth EEG signal magnified 300 times (V\({}_{\text{eeg}}\)—pink), Output of the EEG circuit (V\({}_{\text{out}}\)—cyan), Output of the instrumentation amplifier (V\({}_{\text{vo}}\)—red). This picture presents the same experiment as Figure 19.  
Figure 20: Time response of the simulation. Waveforms: Raw EEG channel 1 signal (V\({}_{\text{chl}}\)—gold), Raw EEG reference channel signal (V\({}_{\text{cher}}\)—purple), Ground truth EEG signal magnified 300 times (V\({}_{\text{eeg}}\)—red), Output of the EEG circuit (V\({}_{\text{out}}\)—blue). This picture presents the same experiment as Figure 19, but time course of the experiment is limited from 0.4 to 3 s.  
Figure 23: Frequency response of the simulation (in a range from 2.85 kHz to 3 kHz). Waveforms: Raw EEG channel 1 signal (V\({}_{\rm ch1}\)—blue), Raw EEG reference channel signal (V\({}_{\rm chref}\)—green), Ground truth EEG signal magnified 300 times (V\({}_{\rm eeg}\)—pink), Output of the EEG circuit (V\({}_{\rm out}\)—cyan), Output of the instrumentation amplifier (V\({}_{\rm vo}\)—red). This picture presents the same experiment limited from 0.4 to 3 s as Figure 20.  
Figure 22: Frequency response of the simulation (in a range from 4 Hz to 30 Hz). Waveforms: Raw EEG channel 1 signal (V\({}_{\rm ch1}\)—blue), Raw EEG reference channel signal (V\({}_{\rm chref}\)—green), Ground truth EEG signal magnified 300 times (V\({}_{\rm eeg}\)—pink), Output of the EEG circuit (V\({}_{\rm out}\)—cyan), Output of the instrumentation amplifier (V\({}_{\rm vo}\)—red). This picture presents the same experiment limited from 0.4 to 3 s as Figure 17:0  
Figure 17:1 Frequency response of the simulation (in a range from 10 mHz to 3 kHz). Waveforms: Raw EEG channel 1 signal (V\({}_{\rm ch1}\)—blue), Raw EEG reference channel signal (V\({}_{\rm chref}\)—green), Ground truth EEG signal magnified 300 times (V\({}_{\rm eeg}\)—pink), Output of the EEG circuit (V\({}_{\rm out}\)—cyan), Output of the instrumentation amplifier (V\({}_{\rm vv}\)—red). This picture presents the same experiment segment limited from 0.4 to 3 s as Figure 17:2  
Figure 17:3 Frequency response of the simulation (in a range from 10 mHz to 3 kHz). Waveforms: Raw EEG channel 1 signal (V\({}_{\rm ch1}\)—blue), Raw EEG reference channel signal (V\({}_{\rm chref}\)—green), Ground truth EEG signal magnified 300 times (V\({}_{\rm eeg}\)—pink), Output of the EEG circuit (V\({}_{\rm out}\)—cyan), Output of the instrumentation amplifier (V\({}_{\rm vv}\)—red). * Simulation in a 50 Hz Electrical Grid Environment in the Time Domain Initially, the simulation (at 50 Hz) focused on demonstrating that our design was able to generate realistic electrode signals, similar to the ones measured in the laboratory experiments during the performance of compound muscle movements. As depicted in Figure 19, the raw EEG reference channel signal (V\({}_{\text{chr}}\)--purple) waveform is the voltage measured at the reference electrode. The raw EEG channel 1 signal (V\({}_{\text{chl}}\)--gold) waveform is the voltage measured at the channel 1 electrode. The ground truth EEG signal (V\({}_{\text{eeg}}\)--red) waveform is depicted, showing the EEG raw signal contained in channel 1, magnified 300 times for an indirect quantitative measurement of the overall gain of the circuit. The output of the EEG circuit (V\({}_{\text{out}}\)--blue) waveform is depicted as the output of the EEG-B3V3S7C1 circuit design. By observing Figure 19, it can be assessed that the output of the EEG circuit (V\({}_{\text{out}}\)--blue) clearly resembles the ground truth EEG signal (V\({}_{\text{eeg}}\)--red), apart from a 14.5 mV DC offset (indirect quantitative measurement of DC offset) and muscle noise artifacts.