Does the MATLAB has a convolutional LSTM layer

22 ビュー (過去 30 日間)
Araa
Araa 2024 年 6 月 19 日
コメント済み: Araa 2024 年 6 月 20 日
I am trying to implement a convolutional LSTM network for image classification. As the existing LSTM/Bi-LSTM layers are for 1D vector/series, I am unable to have an LSTM layer right after a convolutional layer. Is there any way to implement a convolutional LSTM in Matlab?
  3 件のコメント
Araa
Araa 2024 年 6 月 20 日
@Walter Roberson, Thanks for the response. This example is for an LSTM layer at the end of the convolutional operations, but I am looking to have LSTM layers in between convolutional layers. Is there any existing convolutional lstm layer to perform such a task?
Mohammad Sami
Mohammad Sami 2024 年 6 月 20 日
While the following matlab example is not a direct answer to your question, it maybe possible for you to adapt it to your needs.

サインインしてコメントする。

採用された回答

Garmit Pant
Garmit Pant 2024 年 6 月 20 日
Hello Araa
A convLSTM layer is a recurrent layer that uses convolution operations internally instead of matrix multiplications. MATLAB currently does not support the convLSTM layer.
Kindly refer to the following workaround to use LSTM networks for image classification:
  • Use CNN Layers to extract features from image. The final result of Convolution must be a 1-D Vector.
  • Use this 1-D vector to feed it to LSTM which will again output a new 1-D Vector.
  • Output of LSTM can be used to classify the image by feeding it to a ‘classificationLayer’.
MATLAB also offers the functionality to define custom layers. You can refer to the following MathWorks documentation to understand the process of defining custom layers
Additionally, you can also check the following MathWorks documentation link to know the list of supported deep learning layers in MATLAB using the :
I hope you find the above explanation and suggestions useful!
  1 件のコメント
Araa
Araa 2024 年 6 月 20 日
Garmit Pant and Mohammad Sami, thanks for the clarification.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by