# Troubleshooting Inverse Problem with PINNs for Wind Turbine Aerodynamics using NeuralPDE.jl

**URL:** <https://discourse.julialang.org/t/troubleshooting-inverse-problem-with-pinns-for-wind-turbine-aerodynamics-using-neuralpde-jl/113232>\
**Category:** Numerics\
**Tags:** diffeq, sciml, neural-network\
**Created:** [April 19, 2024, 11:59am UTC](https://discourse.julialang.org/t/troubleshooting-inverse-problem-with-pinns-for-wind-turbine-aerodynamics-using-neuralpde-jl/113232 "2024-04-19T11:59:23Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![SathvikBhagavan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sathvikbhagavan/32/205417_2.png) [@SathvikBhagavan](https://discourse.julialang.org/u/SathvikBhagavan)\
**Post date:** [April 26, 2024, 2:48pm UTC](https://discourse.julialang.org/t/troubleshooting-inverse-problem-with-pinns-for-wind-turbine-aerodynamics-using-neuralpde-jl/113232/7 "2024-04-26T14:48:55Z")

</div>

Looking at the implementation, there is one bug that caught my eye:

In additional loss function, `phi(t_data, θ)` gives a matrix instead of a vector. Doing something like:

```julia
wr_data2 = reshape(wr_data, 1, :)
function additional_loss(phi, θ)
    loss = sum(abs2, phi(t_data, θ) .- wr_data2)/size(wr_data2, 2)
    return loss
end

```

Looking at the data, it looks very noisy, use an interpolation of it in the additional loss?

Also the time span is very large. PINNs are generally not great with large time spans. So I recommend to try it out on smaller time spans first.

If your goal is to just estimate parameters, may be doing through normal parameter estimation routines (without PINNs) would be better.

---

_[View the full topic](https://discourse.julialang.org/t/troubleshooting-inverse-problem-with-pinns-for-wind-turbine-aerodynamics-using-neuralpde-jl/113232)._
