# How to add real sensor data to PINN

**URL:** <https://forums.developer.nvidia.com/t/how-to-add-real-sensor-data-to-pinn/326820>\
**Category:** Technical Support (PhysicsNeMo Only)\
**Created:** [March 12, 2025, 2:42am UTC](https://forums.developer.nvidia.com/t/how-to-add-real-sensor-data-to-pinn/326820 "2025-03-12T02:42:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peg33608](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@peg33608](https://forums.developer.nvidia.com/u/peg33608)\
**Post date:** [March 12, 2025, 2:42am UTC](https://forums.developer.nvidia.com/t/how-to-add-real-sensor-data-to-pinn/326820/1 "2025-03-12T02:42:42Z")

</div>

I want to train a thermal flow model.  
Now I have the geometric model of the machine and a lot of temperature data from various sensors, but I lack initial velocity data.  
How can I incorporate these data into the training process using the Physics-Informed Neural Network method?

Thank you.

---

<div class="post-metadata">

**Author:** ![daniel.fleischer1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@daniel.fleischer1](https://forums.developer.nvidia.com/u/daniel.fleischer1)\
**Post date:** [March 12, 2025, 12:47pm UTC](https://forums.developer.nvidia.com/t/how-to-add-real-sensor-data-to-pinn/326820/2 "2025-03-12T12:47:04Z")

</div>

This might help:

> [@How to create a digital twin with only data-driven?](https://forums.developer.nvidia.com/t/how-to-create-a-digital-twin-with-only-data-driven/237697/2):
>
> Hi @matiyanez Yes, Modulus does allow for physic-driven, hybrid, and data-driven training. An example of a pure data-driven problem is the [Darcy problem](https://docs.nvidia.com/deeplearning/modulus/user_guide/neural_operators/darcy_fno.html) which has image like data. For point wise data you can use the [PointwiseConstraint.from\_numpy()](https://gitlab.com/nvidia/modulus/modulus/-/blob/release_22.09/modulus/domain/constraint/continuous.py#L134) where you can feed in a set of numpy dictionaries to train from. This is used in a couple spots of our examples such as the [three fin heat sink](https://gitlab.com/nvidia/modulus/examples/-/blob/release_22.09/three_fin_2d/heat_sink_inverse.py#L116) which can combined with other physics-based training constraints.

---

<div class="post-metadata">

**Author:** ![peg33608](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@peg33608](https://forums.developer.nvidia.com/u/peg33608)\
**Post date:** [March 13, 2025, 1:16am UTC](https://forums.developer.nvidia.com/t/how-to-add-real-sensor-data-to-pinn/326820/3 "2025-03-13T01:16:43Z")

</div>

Thank you for your reply.  
I have read those examples, but I am still confused.  
I have many different geometry and corresponding temperature data, but I lack any initial velocity data.  
This missing velocity data makes it challenging to calculate the PDE that requires velocity, as seen in the Darcy example using the PINO method.  
On the other hand, if I use the three-fin example, which is only designed for a single geometry, can I only use one pair of data within pointwise constraints for training the model?
