Bayesian neural network for nonlinear model identification

6 visualizzazioni (ultimi 30 giorni)
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 Commenti
Mathieu NOE
Mathieu NOE il 10 Apr 2025
hello
I would say probably yes but it would be nice if you could share some data
Marco Pizzoli
Marco Pizzoli il 11 Apr 2025
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!

Accedi per commentare.

Risposte (1)

Gayathri
Gayathri il 14 Apr 2025
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 Commenti
Marco Pizzoli
Marco Pizzoli il 14 Apr 2025
I will try it and let you know as soon as I have some results.
Thank you :)

Accedi per commentare.

Categorie

Scopri di più su Sequence and Numeric Feature Data Workflows in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by