- Imported necessary libraries (NumPy, Pandas, Matplotlib, Seaborn, Plotly, SciPy, TensorFlow).
- Loaded the emotion dataset from a CSV file ('emotions.csv').
- Displayed the first 5 rows of the dataset.
- Converted textual emotion labels ('NEGATIVE', 'NEUTRAL', 'POSITIVE') to numerical values (0, 1, 2).
- Counted the occurrences of each emotion.
- Created a pie chart to visualize the distribution of emotions.
- Plotted a sample of EEG time-series data.
- Used Welch's method to calculate the power spectral density.
- Plotted the power spectral density.
- Calculated the correlation matrix.
- Visualized the correlation matrix using a heatmap.
- Applied t-distributed Stochastic Neighbor Embedding (t-SNE) for dimensionality reduction.
- Visualized the data in a 2D scatter plot.
- Performed t-tests to identify significant features for each emotion.
- Visualized the number of significant and non-significant features for each emotion using a bar chart.
- Normalized the data using z-score normalization.
- Split the data into training and testing sets.
- Built a neural network model using TensorFlow and Keras.
- Compiled the model with the Adam optimizer and sparse categorical crossentropy loss.