This folder is made available as part of the following research paper published in ICAAI '22: Proceedings of the 6th International Conference on Advances in Artificial Intelligence.

Title: Miscellaneous EEG Preprocessing and Machine Learning for Pilots' Mental States Classification: Implications
Authors: Ibrahim M. Alreshidi, Irene Moulitsas, and KARL W. JENKINS.

Abtract:
Higher cognitive process efforts may result in mental exhaustion, poor performance, and long-term health issues. An EEG-based methods for detecting a pilot's mental state have recently been created utilizing machine learning algorithms. EEG signals include a significant noise component, and these approaches either ignore this or use a random mix of preprocessing techniques to reduce noise. In the absence of uniform preprocessing procedures for cleaning, it would be impossible to compare the efficacy of machine learning models across research, even if they employ data obtained from the same experiment. In this study, we intend to evaluate how preprocessing approaches affect the performance of machine learning models. To do this, we concentrated on fundamental preprocessing techniques, such as a band-pass filter and independent component analysis. Using a publicly accessible actual physiological dataset gathered from a pilot who was exposed to a variety of mental events, we explore the influence of these preprocessing strategies on two machine learning models, SVMs and ANNs. Our findings indicate that the performance of the models is unaffected by preprocessing techniques. Moreover, our findings indicate that the models were able to anticipate the mental states from merged data collected in two environments. These findings demonstrate the necessity for a standardized methodological framework for the application of machine learning models to EEG inputs.

We have performed our experiments on an Intel(R) Core(TM) i7-10700 2.90 GHz CPU with 32 GBytes RAM PC. We have used Python within Jupyter Notebook to write the code for our experiments. Utilised libraires include Scikit-Learn, and MNE-Python

## Contents of this repository
Data: 
This folder contains:
- A dataset called Pilot_5_CA_raw.fif, which contains the EEG data of a pilot when he was experiencing the channelised attention state in a non-flight environment.
- A dataset called Pilot_5_DA_raw.fif, which contains the EEG data of a pilot when he was experiencing the diverted attention state in a non-flight environment.
- A dataset called Pilot_5_SS_raw.fif, which contains the EEG data of a pilot when he was experiencing the startle/surprise state in a non-flight environment.
- A dataset called Pilot_5_LOFT_raw.fif, which contains the EEG data of a pilot when he was experiencing the channelised attention, diverted attention, and startle/surprise state in a flight simulator environment.

Source code:
This folder contains:
- A jupyter notebook called ICAAI_Conference.ipynb which was used to generate the results of the study.
- A python file called cf_matrix which was used to plot the confusion matrix