Time series data preparation for LSTM

Hi, I have time series data in form of 200 mat files. I need to perform binary classification of these mat files. The 200 labels for these mat files are stored in a csv file.

Can somebody please guide me how to prepare dataset and dataloader in this case .
Also I need to do stratified sampling of test, train and validation set due to imbalance data.