Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parameter_identification_biased_measurements #249

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Peter230655
Copy link
Contributor

@Peter230655 Peter230655 commented Sep 22, 2024

I try to identify parameters with noisy and biased measurements.
I doubled the set of eoms and made the second set a shifted copy of the first set.
I used the existing simulation for noisy measurements, and basically made these changes:

  • made the number of measurements variable
  • doubled the set of eoms
  • used sympy mechanics to get the eoms (I feel unsure about incorporating speed constraints manually).

My tests fo far seem to show that this will identify c and k closely, independent of the bias.
Unclear to me still is this:

  • the bias it calculates is twice the actual bias.
  • the speeds vary rapidly, they certainly do not reflect the 'true' speeds of the system.

I hope you do not regret you taught me how to make PRs :-)

Comment: if I give the initial conditions as instance constraints, it calculates the bias correctly - but c and k are completely off.

@Peter230655
Copy link
Contributor Author

I added friction to be identified. It gets all three parameters accurately. The estimated biases now seem to have no relation to the actually given biases. Somehow it seems the 'freedom of the biases is needed to get the parameters accurately.

@Peter230655
Copy link
Contributor Author

Peter230655 commented Sep 23, 2024

My tests (many of them) seem to show this:

  • the parameters are identified closely, comparable to the simulation without bias in examples-gallery. Accuracy does not seem to depend on the biases of the measurements.
  • the biases are not identified correctly, however the ratio "estimated bias of measurement i / actual bias of measurement i" is close to constant (errors in the range of the error of the identified parameters). This makes sense in my opinion.

So, if biases in the measurements cannot be outruled this may be a viable way of doing parameter estimation.

@Peter230655
Copy link
Contributor Author

What does not give me full confidence in this model is this: While the parameters are identified as good as in the model without bias, and the results seem totally independent of the bias, the speeds are not at all realistic. They fluctuate rapidly.
Yet, no mater what I tried, the parameters are identified correctly, and the positions fit nicely into the measurements, regardless of bias.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant