Nested Deep Learning Model Towards A Foundation Model for Brain Signal Data