CNN+BLSTM network

2 views (last 30 days)
zeinab al hawraa koumayha
Answered: praguna manvi on 5 Nov 2024
I'm working on CNN+BLSTM project on matlab2019 that provides the training of these 2 blocks together. Which layer can I use to make the CNN output (feature maps) compatible with BLSTM input? I want to convert each feature map into a vector. Flatten layer doesn't solve my issue.

Answers (1)

praguna manvi
praguna manvi on 5 Nov 2024
To integrate "CNN" and "LSTM" blocks together, you should apply the "CNN" layer to each input in the sequence. The extracted feature maps can then be passed onto "BLSTM" or "LSTM" layers for sequential processing. Here's an existing example in R2024b that demonstrates this:
openExample("deeplearning_shared/SequenceClassificationUsingCNNLSTMNetworkExample")
For more information, check out the "Define 2-D CNN LSTM Architecture" section at the following link:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!