Finite State Machine-Based Modeling of EEG Cognitive State Transitions with Fuzzy-Assisted Inputs
Electroencephalogram (EEG) signal analysis remains a challenging task due to its nonlinear, non-stationary, and noise-sensitive nature, requiring modeling approaches that balance adaptability, robustness, and interpretability. This paper presents a hybrid neuroadaptive framework that integrates fuzzy logic with a finite state machine (FSM) to model both continuous variations in EEG-derived features and discrete temporal transitions between cognitive states. The proposed system employs a Takagi-Sugeno fuzzy inference mechanism to handle uncertainty and smooth variability in key EEG features, including theta-to-beta ratio, spectral entropy, and logarithmic alpha power. The resulting fuzzy output is used to drive an FSM that represents cognitive dynamics through structured state transitions, enabling interpretable temporal modeling. The framework is implemented in a Simulink environment and evaluated using EEG data from the OpenNeuro repository, including subjects with Alzheimer's disease and healthy controls, incorporating signal conditioning, feedback mechanisms, and state-based control to ensure stability and responsiveness. Performance is evaluated under varying noise levels and latency conditions using root mean square error (RMSE) and output variability metrics. Results demonstrate that the hybrid model maintains stable and predictable behavior, achieving low error under nominal conditions and exhibiting controlled degradation under increasing noise and delay. The integration of fuzzy inference with FSM-based modeling provides a balanced trade-off between smooth adaptation and structured decision-making, making the approach suitable for real-time EEG-based cognitive state monitoring and neuroadaptive applications.