Bayesian neural network for nonlinear model identification

6 次查看(过去 30 天)
Hello everyone,
I’m interested in using Bayesian neural networks to model a dynamical system, similar to the examples presented here: https://www.mathworks.com/help/ident/nonlinear-model-identification.html.
So far, the only relevant resource I’ve found is this page: https://www.mathworks.com/help/deeplearning/ug/train-bayesian-neural-network.html, which demonstrates how to train a Bayesian neural network to predict the rotation of handwritten digits.
Would the methodology and functions shown in that example be suitable for my case? Specifically, can they be adapted to train a model using time series data—i.e., sequences of input and output over time?
Thank you in advance for your support!
Marco
  2 个评论
Mathieu NOE
Mathieu NOE 2025-4-10
hello
I would say probably yes but it would be nice if you could share some data
Marco Pizzoli
Marco Pizzoli 2025-4-11
Hi Mathieu,
Thank you first of all for such a quick response.
Actually, I don't have any data of my own available.
However, to clarify what I would like to do, we can consider the data in the example given at https://www.mathworks.com/help/ident/ug/nonlinear-arx-models-with-custom-regressors.html. Thus, the input and output data that can be loaded with
load icEngine
According to the example:
  • The file icEngine.mat contains one data set with 1500 input-output samples collected at the a sampling rate of 0.04 seconds. The input u(t) is the voltage [V] controlling a By-Pass Idle Air Valve (BPAV), and the output y(t) is the engine speed [RPM/100].
So, what I would like to do would be to identify a Bayesian neural network model capable of estimating and simulating the output y(t) (engine speed) based on the input u(t) (voltage).
Thank you in advance!

请先登录,再进行评论。

回答(1 个)

Gayathri
Gayathri 2025-4-14
Yes, the methodology used to train a Bayesian Neural Network (BNN) for predicting the rotation of handwritten digits can be adapted for modeling a dynamical system with time series data.
Time series data is inherently sequential and often has dependencies across time steps. The BNN example might not be optimized for capturing these dependencies and might not be suitable for time-dependent patterns. You may need to incorporate specialized layers or architectures, such as Recurrent Neural Networks (RNNs) or Long Short-Term Memory networks (LSTMs), to better handle sequential data.
You can also train a LSTM with Bayesion Optimization which might help you achieve your end goal. Please refer to this link, which will help you chose training configurations for LSTM using Bayesian Optimization:
  3 个评论
Marco Pizzoli
Marco Pizzoli 2025-4-14
I will try it and let you know as soon as I have some results.
Thank you :)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by