Hi @Walid,
Yes, you can input short feature vectors to BiLSTM networks, though this requires proper data formatting. BiLSTM layers expect sequence data with dimensions [batchSize, sequenceLength, numFeatures].
For health indicator parameters, reshape your feature vector accordingly:
% Example: 10 health parameters as features healthFeatures = [glucose, bp, cholesterol, ...]; % 1×10 vector % Reshape for BiLSTM: treat as single timestep inputData = reshape(healthFeatures, 1, 1, 10); % [1, 1, 10]
However, consider whether BiLSTM is optimal for non-sequential health indicators. Standard feedforward networks or classification layers may be more appropriate for static feature vectors, as BiLSTM's temporal modeling capabilities are underutilized without sequential dependencies.
References
BiLSTM Layer Documentation: https://www.mathworks.com/help/deeplearning/ref/bilstmlayer.html
Sequence Input Layer: https://www.mathworks.com/help/deeplearning/ref/sequenceinputlayer.html
Classification with LSTM Networks: https://www.mathworks.com/help/deeplearning/ug/classify-sequence-data-using-lstm-networks.html
If your health indicators have temporal relationships or you plan to extend to time-series analysis, BiLSTM remains suitable.
