# Implementing NODE for problems with insufficient data

**URL:** <https://discourse.julialang.org/t/implementing-node-for-problems-with-insufficient-data/93388>\
**Category:** General Usage\
**Created:** [January 23, 2023, 9:52am UTC](https://discourse.julialang.org/t/implementing-node-for-problems-with-insufficient-data/93388 "2023-01-23T09:52:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mehdi\_lotfi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mehdi_lotfi/32/37774_2.png) [@mehdi\_lotfi](https://discourse.julialang.org/u/mehdi_lotfi)\
**Post date:** [January 23, 2023, 9:52am UTC](https://discourse.julialang.org/t/implementing-node-for-problems-with-insufficient-data/93388/1 "2023-01-23T09:52:50Z")

</div>

Hi All,  
How can we use neural ODE with a limited data set? For example, sometimes, we do not have data for all compartments, so how can we define the NODE problem?  
Suppose we have three state variables and real data only for one state. Can we still apply Neural ODE in this case? And if we can, then how?  
Thank you in advance for all of you.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [January 23, 2023, 11:02am UTC](https://discourse.julialang.org/t/implementing-node-for-problems-with-insufficient-data/93388/2 "2023-01-23T11:02:26Z")

</div>

> [@mehdi\_lotfi](#):
>
> How can we use neural ODE with a limited data set? For example, sometimes, we do not have data for all compartments, so how can we define the NODE problem?

You can, but of course the more data the better predictions.

> [@mehdi\_lotfi](#):
>
> Suppose we have three state variables and real data only for one state. Can we still apply Neural ODE in this case? And if we can, then how?

It outputs a time series. Just subset that time series to what matches the data.

---

<div class="post-metadata">

**Author:** ![mehdi\_lotfi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mehdi_lotfi/32/37774_2.png) [@mehdi\_lotfi](https://discourse.julialang.org/u/mehdi_lotfi)\
**Post date:** [January 23, 2023, 3:40pm UTC](https://discourse.julialang.org/t/implementing-node-for-problems-with-insufficient-data/93388/3 "2023-01-23T15:40:55Z")

</div>

Thank you for the response, but my question was not about the time point issue. It was like in the traditional SIR model; when we did not have measurements for all compartments, including S, I, and R, after doing structural identifiability analysis, we could find how many parameters can we estimate with available data. So my question is, do we have the same process in NODE? How can I find examples like this?  
I found some examples implemented in Julia, but in most of them, the number of measurements and a number of compartments in the modeling is the same.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [February 15, 2023, 7:49am UTC](https://discourse.julialang.org/t/implementing-node-for-problems-with-insufficient-data/93388/4 "2023-02-15T07:49:07Z")

</div>

> [@mehdi\_lotfi](#):
>
> o my question is, do we have the same process in NODE? How can I find examples like this?

A pure neural ODE definitely cannot do predictions on what’s not measured. At best a UDE approach could at least try.
