Overfitting after first epoch

I am using convolutional neural networks (via Keras) as my model for facial expression recognition (55 subjects). My data set is quite hard and around 450k with 7 classes. I have balanced my training set per subject and per class label.

I implemented a very simple CNN architecture (with real-time data augmentation):

model = Sequential()
model.add(Convolution2D(32, 3, 3, border_mode=borderMode, init=initialization,  input_shape=(48, 48, 3)))



After first epoch, my training loss decreases constantly while validation loss increases. Could overfitting happen that soon? Or is there a problem with my data being confusing? Should I also balance my testing set?

It is very unlikely for such huge dataset(450k ) to overfit after just one epoch.

Try to run the code for 20-30 epochs and see if you see any decrease in the validation set error (increase in validation accuracy.)

Try to change your learning rate if (unless you are using adaptive learning parameter)

• increasing the learning rate solved it in my particular problem! Thanks for the hint! Apr 7 at 12:35

Balancing the training set makes sense, there is no need to balance the test set. Anyway, you should not be watching overfitting in such a simple model.

It is interesting to validate that the training set and validation set variables are exactly the same, and if you did not do any transformation in a set and for some reason did not in the other.

I understand you are doing holdout crossvalidation, try k-fold crossvalidation or bootstrap can help.