# How to deal with data with different sampling frequencies better before using HTM?

**URL:** <https://discourse.numenta.org/t/how-to-deal-with-data-with-different-sampling-frequencies-better-before-using-htm/8017>\
**Category:** Applications\
**Created:** [November 19, 2020, 1:17pm UTC](https://discourse.numenta.org/t/how-to-deal-with-data-with-different-sampling-frequencies-better-before-using-htm/8017 "2020-11-19T13:17:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenjunyi](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/chenjunyi/32/4896_2.png) [@chenjunyi](https://discourse.numenta.org/u/chenjunyi)\
**Post date:** [November 19, 2020, 1:17pm UTC](https://discourse.numenta.org/t/how-to-deal-with-data-with-different-sampling-frequencies-better-before-using-htm/8017/1 "2020-11-19T13:17:59Z")

</div>

The sampling frequency of multiple data is different, how to process the data is better? For example, the following picture

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/numenta/original/2X/4/4bfcb51775298945368c428d7d4fa4ec0276e1ca.png)

---

<div class="post-metadata">

**Author:** ![sheiser1](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/sheiser1/32/766_2.png) [@sheiser1](https://discourse.numenta.org/u/sheiser1)\
**Post date:** [November 19, 2020, 8:37pm UTC](https://discourse.numenta.org/t/how-to-deal-with-data-with-different-sampling-frequencies-better-before-using-htm/8017/2 "2020-11-19T20:37:29Z")

</div>

> [@chenjunyi](#):
>
> The sampling frequency of multiple data is different

First thing I’d consider is aggregation, so for instance take the mean of every 10 time steps (if it’s likely that there will be at least a couple real values every 10).

This will obviously reduce the total number of data points, but achieve the purpose of making every data point represent the same amount of time. This should generally help the signal to noise ratio, which helps the TM learn the sequences with less data.
